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

/* ===== v1.0.0 链接卡片副标题与悬停简介 ===== */
.xw-sub {
    display: block;
    max-width: 100%;
    margin: 2px 0 0;
    color: #8a93a6;
    font-size: 11px;
    font-weight: 400;
    font-style: normal;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.url-card .url-info p.xw-sub,
.fl-card-body em.xw-sub { color: #8a93a6; }
.io-black-mode .xw-sub,
.io-black-mode .url-card .url-info p.xw-sub { color: #98a2b3; }

/* 悬停浮层：定位在元素下方，与常驻副标题同为「名称 + 简介」结构 */
.xw-tip-pop {
    position: fixed;
    z-index: 100002;
    display: none;
    box-sizing: border-box;
    max-width: 300px;
    padding: 9px 12px;
    border: 1px solid rgba(20, 30, 60, .08);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(20, 30, 60, .18);
    font-size: 12px;
    line-height: 1.6;
    pointer-events: none;
}
.xw-tip-pop .xw-tip-name {
    display: block;
    margin-bottom: 2px;
    color: #2b3445;
    font-size: 12.5px;
    font-weight: 700;
}
.xw-tip-pop .xw-tip-desc {
    display: block;
    color: #6b7488;
    word-break: break-word;
}
.io-black-mode .xw-tip-pop {
    background: #2b3240;
    border-color: #3a4252;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .4);
}
.io-black-mode .xw-tip-pop .xw-tip-name { color: #f2f4f8; }
.io-black-mode .xw-tip-pop .xw-tip-desc { color: #b9c2d0; }

/* ===== 链接卡片显示样式（仅作用于 .url-card） ===== */
.url-card .url-body > a.card {
    display: block;
    border: 1px solid rgba(20, 30, 60, .06);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(20, 30, 60, .06);
    transition: transform .25s ease, box-shadow .25s ease;
}
.url-card .url-body > a.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(20, 30, 60, .12);
}
.url-card .url-body:hover { transform: none; box-shadow: none; }
.url-card .card-body { padding: 12px 44px 12px 14px; }

.url-card .url-img {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    margin-right: 12px !important;
    border-radius: 10px;
    background: #eaf2ff;
    overflow: hidden;
}
.url-card .url-img > img {
    width: 100%;
    height: 100%;
    max-height: none;
    border-radius: 10px;
    object-fit: cover;
}
.url-card .url-info { padding-right: 0; }
.url-card .url-info .text-sm strong {
    font-size: 14px;
    font-weight: 700;
    transition: color .2s ease;
}
.url-card .url-body:hover .url-info .text-sm strong { color: #f1404b; }
.url-card .url-info p,
.url-card .url-info p.xw-sub {
    margin: 3px 0 0;
    color: #8a93a6;
    font-size: 12px;
    line-height: 1.4;
}

/* 卡片右侧圆形箭头 */
.url-card .url-body > a.togo {
    top: 50%;
    right: 12px;
    width: 24px;
    height: 24px;
    line-height: 22px;
    border: 1px solid rgba(136, 136, 136, .35);
    border-radius: 50%;
    background: transparent;
    opacity: .75;
    transform: translateY(-50%);
    transition: opacity .25s, border-color .25s;
}
.url-card .url-body:hover > a.togo { opacity: 1; border-color: #f1404b; }
.url-card .url-body > a.togo i { line-height: 22px; }

/* 链接卡片网站名称：取消主题单行省略，允许换行，电脑端完整显示（手机端由 JS 截断为 5 汉字） */
.url-card .url-info .text-sm.overflowClip_1 {
    display: block !important;
    -webkit-line-clamp: unset;
    -webkit-box-orient: initial;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    word-break: break-word;
    line-height: 1.35;
}

.io-black-mode .url-card .url-body > a.card { background: #2b3240; border-color: #3a4252; }
.io-black-mode .url-card .url-img { background: #394152; }

/* 链接卡片的悬停简介：黑底 + 向上三角（其它入口仍用白底浮层） */
.xw-tip-pop.xw-tip-card {
    padding: 7px 12px;
    border-color: #22252b;
    border-radius: 6px;
    background: #22252b;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
}
.xw-tip-pop.xw-tip-card::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    margin-left: -6px;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid #22252b;
}
.xw-tip-pop.xw-tip-card .xw-tip-name { display: none; }
.xw-tip-pop.xw-tip-card .xw-tip-desc { color: #fff; font-size: 12.5px; }
.io-black-mode .xw-tip-pop.xw-tip-card { background: #22252b; border-color: #22252b; }
.io-black-mode .xw-tip-pop.xw-tip-card .xw-tip-desc { color: #fff; }

/* ===== v1.0.0 移动端 / 平板 / 安全区域适配 ===== */
:root {
    --xw-safe-l: env(safe-area-inset-left, 0px);
    --xw-safe-r: env(safe-area-inset-right, 0px);
    --xw-safe-b: env(safe-area-inset-bottom, 0px);
}
html, body {
    max-width: 100%;
    overflow-x: clip;
}
@supports not (overflow-x: clip) {
    html, body { overflow-x: hidden; }
}
img, video, canvas, svg, iframe { max-width: 100%; }
img { height: auto; }

/* 主题在 <1200px 给热搜 1164px 最小宽度，是手机端横向滚动主因 */
@media (max-width: 1199.98px) {
    .hot-search { min-width: 0 !important; }
}

/* 刘海 / 手势条 / 横屏圆角安全区 */
.content-site,
.sl-wrap,
.fl-wrap,
.submit-container,
.about-container {
    padding-left: max(15px, var(--xw-safe-l));
    padding-right: max(15px, var(--xw-safe-r));
}
body::after {
    content: '';
    display: block;
    height: var(--xw-safe-b);
}
#footer-tools {
    right: calc(10px + var(--xw-safe-r));
    bottom: calc(15px + var(--xw-safe-b));
}
.xw-ov,
.fl-overlay {
    padding-left: var(--xw-safe-l);
    padding-right: var(--xw-safe-r);
    padding-bottom: var(--xw-safe-b);
}
.xw-box,
.fl-dialog {
    max-height: 90vh;
    max-height: 90dvh;
}

/* 卡片右侧箭头显式绝对定位，动态卡片缺少 .default 时也不会错位 */
.url-card .url-body > a.togo { position: absolute; }
.xw-tip-pop { max-width: min(300px, calc(100vw - 24px)); }

/* 手机：两列卡片按参考样式显示，网站名称完整、副标题固定 7 字宽 */
@media (max-width: 767.98px) {
    .url-card .card-body { padding: 10px 34px 10px 10px; }
    .url-card .url-img {
        width: 38px;
        height: 38px;
        flex: 0 0 38px;
        margin-right: 9px !important;
        border-radius: 8px;
    }
    .url-card .url-img > img { border-radius: 8px; }
    .url-card .url-info { min-width: 0; }
    /* 名称按视觉宽度截断：中文约 5 字、英文约 10 字母，与 5 个汉字长度一致 */
    .url-card .url-info .text-sm strong {
        display: inline-block;
        max-width: 5em;
        font-size: 13px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        vertical-align: bottom;
    }
    /* 7em ≈ 7 个汉字（英文约 14 字符），超出省略；max-width 防止窄屏溢出 */
    .url-card .url-info p,
    .url-card .url-info p.xw-sub {
        width: 7em;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 11px !important;
        line-height: 1.4;
    }
    .url-card .url-body > a.togo {
        right: 8px;
        width: 21px;
        height: 21px;
        line-height: 19px;
    }
    .url-card .url-body > a.togo i { line-height: 19px; }
}

/* 极窄屏改单列，避免两列把文字挤没 */
@media (max-width: 374.98px) {
    .url-card[class*="col-"] {
        flex: 0 0 100%;
        width: 100%;
        max-width: 100%;
    }
}

/* 触屏无悬停：消除点按后粘滞的上浮与变红 */
@media (hover: none) {
    .url-card .url-body > a.card:hover { transform: none; }
    .url-card .url-body:hover .url-info .text-sm strong { color: inherit; }
    .url-card .url-body:hover > a.togo { border-color: rgba(136, 136, 136, .35); }
}

/* 平板：卡片内边距与桌面接近，同时留出安全区 */
@media (min-width: 768px) and (max-width: 1024px) {
    .url-card .card-body { padding: 12px 40px 12px 12px; }
}

/* 横屏矮屏：减少留白、缩小悬浮按钮，避免遮挡内容 */
@media (orientation: landscape) and (max-height: 520px) {
    #footer-tools {
        transform: scale(.85);
        transform-origin: bottom right;
        bottom: calc(8px + var(--xw-safe-b));
    }
    .xw-box, .fl-dialog { max-height: 82vh; max-height: 82dvh; }
    .sl-wrap, .fl-wrap, .submit-container { padding-top: 12px; padding-bottom: 12px; }
}

/* 独立提交页 / 404 页内联样式在窄屏的降级 */
@media (max-width: 575.98px) {
    .submit-container {
        margin: 20px auto !important;
        padding: 18px max(16px, var(--xw-safe-r)) 18px max(16px, var(--xw-safe-l)) !important;
    }
    .box { padding: 30px 18px !important; }
    .box h1 { font-size: 48px !important; }
}















