/*
 Theme Name: OneNav 子主题
 Template: onenav
 Version: 1.0.0
*/

/* 强制分类页中的操作按钮一直显示 */
.style-sites-max .meta-ico,
.style-sites-max .sites-tags .actions,
.posts-item.style-sites-max .meta-ico {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

/* 覆盖可能的悬停隐藏效果 */
.sites-item .meta-ico,
.sites-item:hover .meta-ico {
    opacity: 1 !important;
    visibility: visible !important;
}

/* 强制隐藏所有绝对定位的收藏按钮 */
.posts-item.post-item .favorite-button-wrapper,
body.category .posts-item.post-item .favorite-button-wrapper,
body.archive .posts-item.post-item .favorite-button-wrapper {
    display: none !important;
    position: static !important;
    top: auto !important;
    right: auto !important;
    left: auto !important;
    bottom: auto !important;
}

/* 将收藏按钮整体向上微调1px */
.io-posts-like[data-type="favorite"] {
    position: relative !important;
    top: -1px !important;
    display: inline-flex !important;
    align-items: center !important;
    vertical-align: middle !important;
    gap: 1px !important;
    cursor: pointer !important;
    margin-right: 10px !important;
}

.io-posts-like[data-type="favorite"] .iconfont.mr-1 {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    vertical-align: middle !important;
    margin-right: 1px !important;
}

.io-posts-like[data-type="favorite"] .star-count.text-xs {
    display: inline-flex !important;
    align-items: center !important;
    line-height: 1 !important;
    vertical-align: middle !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* ==================== */
/* 收藏图标颜色设置 */
/* ==================== */

/* 未收藏状态 - 默认灰色 */
i.iconfont.icon-collection-line.mr-1::before {
    color: #8a8a8a !important;
    transition: color 0.3s ease;
}

/* 已收藏状态 - 明亮的金黄色系 */
i.iconfont.icon-collection.mr-1::before {
    color: #ffb300 !important;
    transition: color 0.3s ease;
}

/* 深色模式下的收藏图标颜色适配 */
.io-black-mode i.iconfont.icon-collection-line.mr-1::before {
    color: #a0a0a0 !important;
}

.io-black-mode i.iconfont.icon-collection.mr-1::before {
    color: #ffca28 !important;
}

/* 收藏按钮悬停时的图标颜色 */
.io-posts-like[data-type="favorite"]:hover i.iconfont.icon-collection-line.mr-1::before {
    color: #666666 !important;
}

.io-posts-like[data-type="favorite"]:hover i.iconfont.icon-collection.mr-1::before {
    color: #ffd54f !important;
}

/* 暗色模式下悬停时图标变亮 */
.io-black-mode .io-posts-like[data-type="favorite"]:hover i.iconfont.icon-collection-line.mr-1::before {
    color: #d0d0d0 !important;
}

.io-black-mode .io-posts-like[data-type="favorite"]:hover i.iconfont.icon-collection.mr-1::before {
    color: #ffeb3b !important; /* 深色模式下已收藏悬停时提亮为更亮的黄色 */
}

/* ==================== */
/* 收藏数字颜色 */
/* ==================== */

/* 未收藏状态的收藏数字 - 使用暖灰色 */
small.star-count.text-xs {
    color: #8d8d8d !important;
    transition: color 0.3s ease;
}

/* 深色模式下未收藏数字 */
.io-black-mode small.star-count.text-xs {
    color: #a8a8a8 !important;
}

/* 已收藏状态的收藏数字 - 使用金色系颜色 */
.io-posts-like[data-type="favorite"].active small.star-count.text-xs,
.io-posts-like[data-type="favorite"][data-active="true"] small.star-count.text-xs {
    color: #d17d00 !important;
    font-weight: 600 !important;
}

/* 深色模式下已收藏数字 */
.io-black-mode .io-posts-like[data-type="favorite"].active small.star-count.text-xs,
.io-black-mode .io-posts-like[data-type="favorite"][data-active="true"] small.star-count.text-xs {
    color: #ffa500 !important;
    font-weight: 600 !important;
}

/* 收藏按钮悬停时的数字颜色 */
.io-posts-like[data-type="favorite"]:hover small.star-count.text-xs {
    color: #757575 !important;
}

.io-posts-like[data-type="favorite"].active:hover small.star-count.text-xs,
.io-posts-like[data-type="favorite"][data-active="true"]:hover small.star-count.text-xs {
    color: #b36800 !important;
}

.io-black-mode .io-posts-like[data-type="favorite"].active:hover small.star-count.text-xs,
.io-black-mode .io-posts-like[data-type="favorite"][data-active="true"]:hover small.star-count.text-xs {
    color: #e69500 !important;
}

/* 手机端网址栏一行两列样式 */
@media (max-width: 768px), (max-width: 576px) { /* 当屏幕宽度小于等于576px时应用此样式 */
    div.row-a.ajax-posts-row.row-col-1a.row-col-md-5a[data-style="sites-max"] { /* 选择特定的容器元素 */
        display: flex !important; /* 使用flex布局 */
        flex-wrap: wrap !important; /* 允许flex项目换行 */
        margin: 0 !important; /* 移除容器外边距 */
    }
    
    div.row-a.ajax-posts-row.row-col-1a.row-col-md-5a[data-style="sites-max"] .posts-item { /* 选择特定的帖子项目元素 */
        flex: 0 0 47% !important; /* 设置flex项目的基准宽度为50%，不放大不缩小 */
        max-width: 47% !important; /* 设置最大宽度为50% */
        box-sizing: border-box; /* 确保内边距和边框包含在元素总宽度内 */
        padding: 0px !important; /* 使用内边距替代外边距来创建间距 */
    }
}

/* ONENAV首页添加序号样式 */
/* 为多个网址分类和单独网址分类添加序号 - 浅灰色圆形 */
.ajax-list-body, /* 选择多个网址分类的容器 */
.content-card > .row { /* 选择单独网址分类的容器 */
    counter-reset: site-counter; /* 初始化计数器 */
    position: relative; /* 设置相对定位，为子元素绝对定位提供参考 */
}

/* 针对多个网址分类的样式 */
.ajax-list-body > .posts-item.sites-item:nth-child(-n+10), /* 选择前10个网址项目 */
/* 针对单独网址分类的样式 */
.content-card > .row > .posts-item.sites-item:nth-child(-n+10) { /* 选择前10个网址项目 */
    position: relative; /* 设置相对定位，为伪元素绝对定位提供参考 */
    /* 内部填充为序号留出空间 - 还原原始边距 */
    padding-top: 0px; /* 顶部内边距设为0 */
    padding-left: 0px; /* 左侧内边距设为0 */
}

/* 多个网址分类的序号样式 */
.ajax-list-body > .posts-item.sites-item:nth-child(-n+10)::before, /* 为前10个网址项目添加伪元素 */
/* 单独网址分类的序号样式 */
.content-card > .row > .posts-item.sites-item:nth-child(-n+10)::before { /* 为前10个网址项目添加伪元素 */
    counter-increment: site-counter; /* 计数器递增 */
    content: counter(site-counter, decimal-leading-zero); /* 显示计数器值，两位数格式 */
    position: absolute; /* 绝对定位，相对于父元素 */
    top: -8px; /* 距离顶部-8px，使序号部分超出元素 */
    left: -8px; /* 距离左侧-8px，使序号部分超出元素 */
    background: #f5f6f7; /* 设置背景颜色为浅灰色 */
    color: #c6c6c6; /* 设置文字颜色为灰色 */
    font-size: 10px !important; /* 设置字体大小，使用!important确保优先级 */
    font-weight: bold; /* 设置字体粗细为粗体 */
    min-width: 16px; /* 设置最小宽度 */
    height: 16px; /* 设置高度 */
    border-radius: 9px; /* 设置圆角，创建圆形效果 */
    display: flex !important; /* 使用flex布局，使用!important确保优先级 */
    align-items: center; /* 垂直居中内容 */
    justify-content: center; /* 水平居中内容 */
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); /* 添加轻微阴影，增加立体感 */
    line-height: 1; /* 设置行高为1，避免文字垂直偏移 */
}

/* 确保序号在深色背景上可见 */
.io-black-mode .ajax-list-body > .posts-item.sites-item:nth-child(-n+10)::before, /* 深色模式下的多个网址分类序号 */
.io-black-mode .content-card > .row > .posts-item.sites-item:nth-child(-n+10)::before { /* 深色模式下的单独网址分类序号 */
    background: #4a4d52; /* 设置深色模式下的背景颜色 */
    color: #d5d5d5; /* 设置深色模式下的文字颜色 */
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4); /* 设置深色模式下的阴影效果 */
}

/* 调整特定样式下的位置 */
.style-sites-default .ajax-list-body > .posts-item.sites-item:nth-child(-n+10)::before, /* 默认样式下的多个网址分类序号 */
.style-sites-default .content-card > .row > .posts-item.sites-item:nth-child(-n+10)::before { /* 默认样式下的单独网址分类序号 */
    top: 6px; /* 调整顶部位置 */
    left: 6px; /* 调整左侧位置 */
}

.style-sites-min .ajax-list-body > .posts-item.sites-item:nth-child(-n+10), /* 简约样式下的多个网址分类 */
.style-sites-min .content-card > .row > .posts-item.sites-item:nth-child(-n+10) { /* 简约样式下的单独网址分类 */
    padding-top: 4px; /* 设置顶部内边距 */
    padding-left: 4px; /* 设置左侧内边距 */
}

.style-sites-min .ajax-list-body > .posts-item.sites-item:nth-child(-n+10)::before, /* 简约样式下的多个网址分类序号 */
.style-sites-min .content-card > .row > .posts-item.sites-item:nth-child(-n+10)::before { /* 简约样式下的单独网址分类序号 */
    top: 4px; /* 调整顶部位置 */
    left: 4px; /* 调整左侧位置 */
    font-size: 10px !important; /* 设置字体大小，使用!important确保优先级 */
    min-width: 14px; /* 设置最小宽度 */
    height: 14px; /* 设置高度 */
    border-radius: 7px; /* 设置圆角，创建圆形效果 */
}

/* 确保内容不会与序号重叠 */
.posts-item.sites-item .post-content, /* 网址项目的内容区域 */
.posts-item.sites-item .post-thumb { /* 网址项目的缩略图区域 */
    position: relative; /* 设置相对定位 */
    z-index: 20; /* 设置层级，确保内容显示在序号上方 */
}

/* 响应式调整 - 仅调整序号位置，不改变布局 */
@media (max-width: 768px) { /* 媒体查询，针对屏幕宽度小于768px的设备 */
    /* 完全还原原始边距设置 */
    .ajax-list-body > .posts-item.sites-item:nth-child(-n+10), /* 移动端下的多个网址分类 */
    .content-card > .row > .posts-item.sites-item:nth-child(-n+10) { /* 移动端下的单独网址分类 */
        /* 使用原始边距设置，不添加额外边距 */
        padding-top: 0; /* 顶部内边距设为0 */
        padding-left: 0; /* 左侧内边距设为0 */
    }
    
    .ajax-list-body > .posts-item.sites-item:nth-child(-n+10)::before, /* 移动端下的多个网址分类序号 */
    .content-card > .row > .posts-item.sites-item:nth-child(-n+10)::before { /* 移动端下的单独网址分类序号 */
        /* 调整序号位置，使其骑在框上 */
        top: -6px; /* 调整顶部位置 */
        left: -6px; /* 调整左侧位置 */
        min-width: 14px; /* 设置最小宽度 */
        height: 14px; /* 设置高度 */
        font-size: 9px !important; /* 设置字体大小，使用!important确保优先级 */
    }
    
    /* 简约样式在手机端的调整 */
    .style-sites-min .ajax-list-body > .posts-item.sites-item:nth-child(-n+10), /* 移动端简约样式下的多个网址分类 */
    .style-sites-min .content-card > .row > .posts-item.sites-item:nth-child(-n+10) { /* 移动端简约样式下的单独网址分类 */
        /* 简约样式的原始边距 */
        padding-top: 4px; /* 设置顶部内边距 */
        padding-left: 4px; /* 设置左侧内边距 */
    }
    
    .style-sites-min .ajax-list-body > .posts-item.sites-item:nth-child(-n+10)::before, /* 移动端简约样式下的多个网址分类序号 */
    .style-sites-min .content-card > .row > .posts-item.sites-item:nth-child(-n+10)::before { /* 移动端简约样式下的单独网址分类序号 */
        top: -5px; /* 调整顶部位置 */
        left: -5px; /* 调整左侧位置 */
        font-size: 8px !important; /* 设置字体大小，使用!important确保优先级 */
        min-width: 12px; /* 设置最小宽度 */
        height: 12px; /* 设置高度 */
        border-radius: 6px; /* 设置圆角，创建圆形效果 */
    }
}
div.big-title.text-center.mb-3.mb-md-4{margin-top:1.1rem !important;}

/* ONENAV分类页添加序号样式 */
/* 分类页序号样式 - 使用WordPress分类页类名 */
body.category .posts-item.sites-item.d-flex:nth-child(1)::before,
body.archive .posts-item.sites-item.d-flex:nth-child(1)::before { content: "01" !important; }

body.category .posts-item.sites-item.d-flex:nth-child(2)::before,
body.archive .posts-item.sites-item.d-flex:nth-child(2)::before { content: "02" !important; }

body.category .posts-item.sites-item.d-flex:nth-child(3)::before,
body.archive .posts-item.sites-item.d-flex:nth-child(3)::before { content: "03" !important; }

body.category .posts-item.sites-item.d-flex:nth-child(4)::before,
body.archive .posts-item.sites-item.d-flex:nth-child(4)::before { content: "04" !important; }

body.category .posts-item.sites-item.d-flex:nth-child(5)::before,
body.archive .posts-item.sites-item.d-flex:nth-child(5)::before { content: "05" !important; }

body.category .posts-item.sites-item.d-flex:nth-child(6)::before,
body.archive .posts-item.sites-item.d-flex:nth-child(6)::before { content: "06" !important; }

body.category .posts-item.sites-item.d-flex:nth-child(7)::before,
body.archive .posts-item.sites-item.d-flex:nth-child(7)::before { content: "07" !important; }

body.category .posts-item.sites-item.d-flex:nth-child(8)::before,
body.archive .posts-item.sites-item.d-flex:nth-child(8)::before { content: "08" !important; }

body.category .posts-item.sites-item.d-flex:nth-child(9)::before,
body.archive .posts-item.sites-item.d-flex:nth-child(9)::before { content: "09" !important; }

body.category .posts-item.sites-item.d-flex:nth-child(10)::before,
body.archive .posts-item.sites-item.d-flex:nth-child(10)::before { content: "10" !important; }

body.category .posts-item.sites-item.d-flex::before,
body.archive .posts-item.sites-item.d-flex::before {
    position: absolute !important;
    top: 11px !important;
    left: 11px !important;
    background: #f5f6f7 !important;
    color: #c6c6c6 !important;
    font-size: 10px !important;
    font-weight: bold !important;
    width: 17px !important;
    height: 17px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2) !important;
    z-index: 10 !important;
}

/* 深色模式 */
.io-black-mode body.category .posts-item.sites-item.d-flex::before,
.io-black-mode body.archive .posts-item.sites-item.d-flex::before {
    background: #4a4d52 !important;
    color: #d5d5d5 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4) !important;
}

/* 平板横屏 */
@media (max-width: 1024px) {
    body.category .posts-item.sites-item.d-flex::before,
    body.archive .posts-item.sites-item.d-flex::before {
        top: 11px !important;
        left: 11px !important;
        width: 16px !important;
        height: 16px !important;
        font-size: 10px !important;
    }
}

/* 平板竖屏 */
@media (max-width: 768px) {
    body.category .posts-item.sites-item.d-flex::before,
    body.archive .posts-item.sites-item.d-flex::before {
        top: 11px !important;
        left: 11px !important;
        width: 16px !important;
        height: 16px !important;
        font-size: 10px !important;
    }
}

/* 大屏手机调整 */
@media (max-width: 576px) {
    body.category .posts-item.sites-item.d-flex::before,
    body.archive .posts-item.sites-item.d-flex::before {
        top: 11px !important;
        left: 11px !important;
        width: 16px !important;
        height: 16px !important;
        font-size: 10px !important;
    }
}

/* 小屏手机调整 */
@media (max-width: 375px) {
    body.category .posts-item.sites-item.d-flex::before,
    body.archive .posts-item.sites-item.d-flex::before {
        top: 11px !important;
        left: 11px !important;
        width: 16px !important;
        height: 16px !important;
        font-size: 10px !important;
    }
}

/* 搜索按钮居中修复 电脑端样式保持不变 */
.search-tools {
    display: flex;
    align-items: center;
}

.search-submit-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 40px; /* 确保有最小宽度 */
}

.iconfont.icon-search {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

/* 手机端特定修复（v200：固定 44×44 正方形 + 大圆角 = 视觉圆形——不被容器 flex 拉伸成椭圆） */
@media (max-width: 768px) {
    .search-submit-btn {
        width: 44px !important;
        height: 44px;
        flex: 0 0 44px;
        border-radius: var(--theme-border-radius-lg, 22px);
    }
}

/* ============================================================
   首页"自定义我的导航 + 最近访问"模块样式
   移植自旧版 OneNav 4.1810 css/style.css（.url-card 系列）
   ============================================================ */
.url-card {
    position: relative;
}

.io-customize-card .io-mx-n2 .url-card {
    padding-left: .25rem !important;   /* 水平间距减半（移动端） */
    padding-right: .25rem !important;
}

@media (min-width: 768px) {
    .io-customize-card .io-mx-n2 {
        margin-left: -.4rem !important;  /* 负边距同步减半 */
        margin-right: -.4rem !important;
    }

    .io-customize-card .io-mx-n2 .url-card {
        padding-left: .4rem !important;  /* 0.825rem→0.4rem：间距约减半 */
        padding-right: .4rem !important;
    }
}

.url-card .url-body {
    transform: translateY(0px);
    -webkit-transform: translateY(0px);
    -moz-transform: translateY(0px);
    will-change: transform;
    -webkit-transition: all .3s ease;
    -moz-transition: all .3s ease;
    -o-transition: all .3s ease;
    transition: all .3s ease;
}

.url-card .url-body:hover {
    transform: translateY(-6px);
    -webkit-transform: translateY(-6px);
    -moz-transform: translateY(-6px);
    box-shadow: 0 26px 40px -24px rgba(0, 36, 100, .3);
    -webkit-box-shadow: 0 26px 40px -24px rgba(0, 36, 100, .3);
    -moz-box-shadow: 0 26px 40px -24px rgba(0, 36, 100, .3);
}

.url-card .url-like {
    position: absolute;
    top: 5px;
    right: 10px;
    opacity: 0;
    transition: opacity .3s;
}

.url-card .url-body:hover .url-like {
    opacity: 1;
}

.url-card .url-info {
    overflow: hidden;
    padding-right: 5px;
}

.url-card .url-goto-after {
    height: 24px;
    border-top: 1px solid rgba(136, 136, 136, .2);
}

.url-card .url-goto {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

.url-card .card-body {
    position: relative;
    padding: .938rem;
}

.url-card .url-img {
    width: 40px;
    height: 40px;
    -webkit-box-flex: 0;
    -ms-flex: none;
    flex: none;
    background: rgba(128, 128, 128, .1);
    overflow: hidden;
}

.url-card .url-img > img {
    max-height: 100%;
    vertical-align: unset;
}

.url-card .max .url-img {
    width: 60px;
    height: 60px;
}

.url-card .mini .url-img {
    width: 25px;
    height: 25px;
}

.url-card .post-min .url-img {
    width: 20px;
    height: 20px;
}

.url-card .post-min .url-img > img {
    vertical-align: unset;
}

.url-card a.card {
    justify-content: center;
}

/* mini 卡片紧凑内边距 */
.url-card .url-body.mini a.card .card-body,
.url-card .mini .card-body {
    padding: 8.5px .5rem 8.5px !important;   /* v372：上下内边距一样（手机 42px 卡片——内容垂直居中——覆盖内联） */
}
@media (min-width: 768px) {
.url-card .url-body.mini a.card .card-body,
.url-card .mini .card-body {
    padding: 6.5px .5rem 6.5px !important;   /* v372：电脑 38px 卡片——内容垂直居中 */
}
}

/* 编辑模式下删除按钮 */
.url-card .remove-site,
.url-card .remove-cm-site {
    position: absolute;
    top: -8px;                   /* 历史重叠位置再向下2px（-10 → -8） */
    right: -1px;                   /* 向左5px（-6 → -1） */
    font-size: 20px;
    color: #f1404b;
    line-height: 20px;
    z-index: 9;
    -webkit-transition: transform .3s ease;
    transition: transform .3s ease;    /* 联动与网址块同步（网址块上浮为0.3s） */
}
/* 红叉与网址块联动：网址块上浮时红叉同步上浮（transform 一致） */
.io-customize-card .url-card:hover .remove-site,
.io-customize-card .url-card:hover .remove-cm-site {
    transform: translateY(-6px);
}
/* 红叉自身悬停：缓慢增大15%作为交互提示，不上浮 */
.io-customize-card .remove-site:hover,
.io-customize-card .remove-cm-site:hover {
    -webkit-transition: transform .15s ease !important;  /* 悬停增大用快速过渡（速度200%） */
    transition: transform .15s ease !important;
    transform: scale(1.05) !important;
}

/* 编辑按钮 */
.customize-menu .btn-edit,
.io-customize-card .btn-edit {
    color: #ddd;
    font-size: 12px !important;    /* 减小字号（通用：覆盖登录版——登录版按钮不在 customize-menu 容器内） */
    line-height: 24px;
    background: #f1404b;
    padding: 0 10px;
    margin: 5px 0;
    border-radius: 50px;
    white-space: nowrap;
    -webkit-transition: none !important;   /* v346：禁用过渡（点击确定收起瞬时——无动画延迟感） */
    transition: none !important;
}

.customize-menu .btn-edit:hover {
    color: #fff;
}

/* v204：分类下十字加号高度与网址卡片一致（实测 42 vs 38——调 38） */
.io-customize-card #add-site a.btn {
    /*
     * v388（2026-09-13 用户反馈：十字按钮样式写死、不跟随字号 ✗）
     *   原 v204 写死 height/line-height: 38px ✗ → 浏览器字号放大后按钮仍是 38px、与同行卡片不一致 ✗
     *   改为 2.04rem：默认根字号 16px 下 = 32.6px、特大 24px 下 = 49px
     *   = **与同行的网址卡片实测同高** ✓（卡片 @24px 根字号实测 49px ✓）
     *   注：卡片高度本身随字号增长 ✓ 所以按钮改用 rem 后两者始终一致 ✓
     */
    height: 2.04rem !important;
    line-height: 2.04rem !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* v199：CSS 首字（favicon 无效时的兜底——任何浏览器显示文字，不破图） */
.io-customize-card .url-img .io-css-letter {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    display: -webkit-box;
    display: flex;
    -webkit-box-align: center;
    align-items: center;
    -webkit-box-pack: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    border-radius: 50%;
    z-index: 2;
    overflow: hidden;
}
/* v201：装饰圆（恢复原版 canvas 首字的花色样式——伪元素模拟两个装饰圆） */
.io-customize-card .url-img .io-css-letter::before,
.io-customize-card .url-img .io-css-letter::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}
.io-customize-card .url-img .io-css-letter::before {
    width: var(--r1, 40%);
    height: var(--r1, 40%);
    left: var(--x1, 20%);
    top: var(--y1, 10%);
    background: var(--dt, #fff);
    opacity: .6;                        /* v203：主题花色——色板彩色圆 h[t]（alpha 0.6） */
}
.io-customize-card .url-img .io-css-letter::after {
    width: var(--r2, 30%);
    height: var(--r2, 30%);
    left: var(--x2, 40%);
    top: var(--y2, 40%);
    background: var(--dm, #fff);
    opacity: .4;                        /* v203：主题花色——色板彩色圆 h[m]（alpha 0.4） */
}

/* 卡片内文字省略 */
.overflowClip_1 {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
}

/* ============================================================
   Tab 滑块栏样式（移植自旧版 style.css .slider_menu 系列）
   新版 main.css 已无此样式，不移植则 Tab 栏无旧版胶囊外观
   ============================================================ */
.io-customize-card .slider_menu[sliderTab] {
    position: relative;
    background: rgba(0, 0, 0, .1);
    border-radius: 50px;
    border: 3px solid transparent;
    border-bottom-width: 3px !important; /* 下边框2→3px：底边再增大1px */
    overflow: hidden;
    height: 34px !important;      /* 28px内容 + 上边框3px + 下边框3px */
    align-self: flex-start !important;  /* 防止 flex 拉伸导致底部超出 */
}

.io-customize-card .slider_menu[sliderTab] > .menu {
    position: relative;
    white-space: nowrap;
    flex-wrap: initial;
}

/* v249 正确分类点击方法：滑块（anchor）隐藏——激活用 active 红底（点击哪个分类红底就在哪——不受滚动/多行影响） */
.io-customize-card .slider_menu[sliderTab] .anchor {
    display: none;
}

.io-customize-card .slider_menu[sliderTab] > .menu > li {
    cursor: pointer;
    width: auto;
    height: auto;
}

.io-customize-card .slider_menu[sliderTab] > .menu > li.next,
.io-customize-card .slider_menu[sliderTab] > .menu > li.prev,
.io-customize-card .slider_menu[sliderTab] > .menu > li > .sub-menu {
    display: none;
}

.io-customize-card .slider_menu[sliderTab] > .menu > li > a {
    display: block;
    text-decoration: none;
    position: relative;
    color: #888;
    /*
     * v374（2026-09-12）：整块改为「随浏览器字号自适应」——修复"字号调大后红底/悬停背景错位"。
     *
     * 根因：下面三行原本全部写死 px —— height:28px / line-height:28px / font-size:16px。
     *      Chrome 的「字号大小」设置只影响相对单位（rem/em/默认字号），**不会覆盖显式 px**，
     *      所以页面其它元素被等比放大时，这个 Tab 却纹丝不动 → 一个变一个不变 → 垂直对齐崩掉
     *      （用户实测：悬停浅色背景偏下 3px、激活红底偏上 3px —— 两个方向都错）。
     *
     * 改法：高度/行高/字号全部相对化，默认字号下与改动前**逐像素一致**（16px × 1.75 = 28px），
     *      字号调大时整块同步变大，不再错位。
     */
    height: auto;
    line-height: 1.75;
    text-align: center;
    font-size: 1rem;               /* v374：原 16px（写死）→ 随根字号缩放 */
    padding: 0 12px;
    -webkit-transition: .25s;
    transition: .25s;
}

.io-customize-card .slider_menu[sliderTab] > .menu > li > a:hover {
    color: #fff;
}

.io-customize-card .slider_menu[sliderTab] > .menu > li > a.active {
    color: #fff;
    background: #f1404b !important;
    border-radius: 50px;
}



/* ============================================================
   v17 模块区域重定义（参考旧版布局）：
   内容区撑起合理面积、添加按钮默认可见且大尺寸
   ============================================================ */
/* 1. 内容区最小高度 = 一行卡片的高度（添加网址后自动换行撑高，无需手动增大） */
.io-customize-card .tab-content {
    min-height: 60px;
}

/* 2. 面板内容留白 */
.io-customize-card .tab-pane .row {
    padding: 4px 0;
}

/* 两个 Tab 区块统一高度（96-20=76px），切换不跳动且下边距美观 */
.io-customize-card .tab-pane {
    min-height: 76px;
}

/* 多行网址时底部留白修复：有网址卡片时底部 padding 30px（参照单行默认下边距），
   空态（只有添加按钮）不受影响；2行及以上全部适用 */
.io-customize-card .tab-pane:has(.url-card:not(#add-site):not(.add-custom-site)) {
    padding-bottom: 5px;   /* 亲自测试：5px前台间距均匀 */
}
/* "没有数据！等待你的参与哦"（最近使用空态）向上移动 10px（2026-08-28 用户指挥） */
.io-customize-card .customize_nothing_click .nothing {
    margin-bottom: 4px !important;  /* 覆盖 Bootstrap mb-4 的 !important */
    margin-top: 8px !important;     /* 与上方（最近使用标题区）的间距 */
    -webkit-transform: translateY(-7px);   /* v287：与分类空态样式对齐（-10 → -7） */
    transform: translateY(-7px);
    font-size: 14px !important;    /* v288：与分类空态一致（16 → 14px） */
    color: #777 !important;        /* v288：与分类空态一致（深灰 → #777） */
    -webkit-box-pack: start !important;   /* v291：保持左对齐（用户要求——不是居中） */
    justify-content: flex-start !important;
    text-align: left !important;
    padding-left: 0 !important;            /* v290：与分类空态一致（10 → 0） */
    margin-left: 14px !important;          /* v292：模仿分类空态的左边距（margin-left 14px） */
}

/* 网址区块与上方 Tab 栏间距：桌面——未登录与登录独立控制（v270——改一处不影响另一处） */
body:not(.logged-in) .io-customize-card .tab-content {
    margin-top: 16px !important;   /* 未登录桌面（v176——与登录一致） */
}
body.logged-in .io-customize-card .tab-content {
    margin-top: 16px !important;   /* 登录桌面（独立——当前 16px——可单独调） */
}

/* 网址区块与下方内容间距：mb-4 24px → 8px（减16px） */
.io-customize-card {
    margin-bottom: 8px !important;
}

/* 3. 添加网址卡片：默认可见、大尺寸虚线样式 */
/* 外层区块固定高度：42px按钮 + 8px间距 = 50px（跨平台一致，Windows字体/字号差异不外溢） */
.io-customize-card #add-site,
.io-customize-card .add-custom-site {
    height: 50px !important;   /* Mac(v38参数)：42按钮 + 8间距 */
    overflow: hidden;
}
/* Windows 字体渲染差异适配：按钮 38px + 4px 间距 */
html.os-windows .io-customize-card #add-site,
html.os-windows .io-customize-card .add-custom-site {
    height: 46px !important;   /* v206：38按钮 + 8间距 */
}
.io-customize-card #add-site a.btn,
.io-customize-card .add-custom-site a.btn {
    min-height: 0 !important;
    height: 42px !important;        /* v369：手机端与网址卡片一致（卡片 minHeight 42） */
    display: flex !important;
    align-items: center;
    justify-content: center;
    overflow: hidden;               /* 裁掉跨平台字体渲染差异（Mac苹方/Windows雅黑行高不同） */
    margin-bottom: 8px !important;  /* Mac(v38参数)：8px */
    border: 2px dashed rgba(136, 136, 136, .45) !important;
    border-radius: var(--main-radius, 12px);
    background: rgba(136, 136, 136, .06);
    -webkit-transition: all .25s;
    transition: all .25s;
}
/* 电脑端：按钮 38px（与网址卡片一致——卡片 minHeight 38） */
@media (min-width: 768px) {
.io-customize-card #add-site a.btn,
.io-customize-card .add-custom-site a.btn {
    height: 38px !important;
    margin-bottom: 4px !important;
}
}
/* Windows 适配：间距 4px（v42 参数） */
html.os-windows .io-customize-card #add-site a.btn,
html.os-windows .io-customize-card .add-custom-site a.btn {
    margin-bottom: 4px !important;
}

.io-customize-card #add-site a.btn:hover,
.io-customize-card .add-custom-site a.btn:hover {
    background: rgba(136, 136, 136, .14);
    border-color: rgba(241, 64, 75, .6) !important;
}

.io-customize-card #add-site .text-lg,
.io-customize-card .add-custom-site .text-lg {
    font-size: 20px;
    line-height: 1;
    height: 20px !important;       /* 固定内容高度：跨平台字体行高差异不再影响 */
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 0 !important;         /* 覆盖模板内联 padding（跨平台差异源） */
    color: #888;
    font-weight: 300;
    position: relative;
    top: -2px;                       /* 十字符号Mac(v38参数)：上移2px */
}


/* Windows 适配：十字 top 0 */
html.os-windows .io-customize-card #add-site .text-lg,
html.os-windows .io-customize-card .add-custom-site .text-lg {
    top: 0;
}

/* 拖拽排序中的卡片样式 */
.io-customize-card .url-card.io-dragging {
    opacity: .6;
    transform: scale(.98);
    box-shadow: 0 10px 25px rgba(0, 0, 0, .15);
}
.io-customize-card .url-card[draggable="true"] {
    cursor: grab;
}

/* 内容上移(post-top)最简方案：检测到开启（左边栏上移）→ 模块负 margin-top 跟随上移，
   模块保持原位（样式不变），内容区随之一起上移，无重叠 */
body.io-post-top .io-customize-card {
    margin-top: -80px !important;
}

/* 收藏图标统一 25px（原图可能 48px+ 撑高卡片） */
.io-customize-card .my-star-list .url-img img {
    max-width: 25px !important;
    max-height: 25px !important;
    width: auto !important;
    height: auto !important;
}
/* 收藏卡片 card-body padding 与我的导航卡片内联样式完全一致（0.4rem 0.5rem）——
   根因：收藏卡片无内联 padding，落到 Bootstrap 默认 15px，上下 padding 差 ~17px 导致"明显高" */
.io-customize-card .my-star-list .url-body.mini a.card .card-body {
    padding: 8.5px .5rem 8.5px !important;   /* v373：收藏卡片上下内边距一样（与分类一致——内容垂直居中） */
}
/* 收藏卡片 url-info 去掉 2px 内联 padding（与导航一致） */
.io-customize-card .my-star-list .url-info {
    padding-top: 0 !important;
}
@media (min-width: 768px) {
.io-customize-card .my-star-list .url-body.mini a.card .card-body {
    padding: 6.5px .5rem 6.5px !important;   /* v373：电脑 38px 卡片——内容垂直居中 */
}
}

/* 主题栏目 Tab 红色滑块（anchor）：与激活 Tab 白色文字区域对齐——高度 28px=文字行高、宽度=文字宽(JS)
   v359：top 7px → 4px（移除"目测下移 3px"补偿——2026-08-30 用户确认：该偏移导致所有新访问低 3px——回到主题默认位置） */
/*
 * v374（2026-09-12）：改用「垂直居中」定位 —— 修复 Chrome 下"浏览器字号调大后红底/悬停背景错位"。
 *
 * 根因：原来写死 top: 4px（针对 36px 容器目测调出来的固定值），
 *      字号调大后容器变高、这个固定值就不居中了 → 悬停浅色背景偏下 3px、激活红底偏上 3px ✗
 *      （同一文件里 Safari 分支早已用"top:50% + translateY(-50%)"解决同一问题，
 *        注释原话："任何容器高度下都稳定" —— 现在 Chrome 也用这一套 ✓）
 *
 * 兼容性：当前容器高 36px 时，(36-28)/2 = 4px —— 与原来的 top:4px **完全等价** ✓
 *        容器高度变化（字号放大）时自动保持居中 ✓
 */
.slider-tab .anchor {
    top: 50% !important;
    -webkit-transform: translateY(-50%) !important;
    transform: translateY(-50%) !important;
}

/*
 * v374（2026-09-12）：栏目名文字 + 滑块尺寸改为「随浏览器字号自适应」。
 *
 * 实测（Chrome 字号=最大，根字号 24px）：
 *   ul.slider-tab 自身已随根字号放大到 24px ✓
 *   但 LI.slider-li（栏目名文字）被主题写死 font-size:14px ✗ 不放大
 *   且 LI.anchor（滑块=红底/悬停背景）的 height 是 **JS 写死的行内样式 28px** ✗ 不放大
 *   → 容器变大、子元素不变 → 文字与两种背景都错位（用户实测"偏下"）
 *
 * 单位换算（默认 16px 字号下与改动前逐像素一致）：
 *   0.875rem = 14px ✓ ｜ line-height: 2 → 14×2 = 28px ✓ ｜ 1.75em = 28px ✓
 * 字号放大时（如根 24px）：文字 21px、行高/滑块 42px —— 同步放大 ✓
 */
/*
 * v377（2026-09-13 用户微调）：文字 0.875rem → 0.85em（略小）；滑块改为与文字**等比例**。
 *   文字行高盒 = 0.85em × 2 = 1.70em  →  滑块高度也用 1.70em（与文字行高盒逐像素相等 ✓）
 *   （v376 的 1.75em 比文字盒大 2px，视觉上背景会略微"胖"一点）
 */
ul.slider-tab > li.slider-li {
    font-size: 0.85em !important;
    line-height: 2 !important;
    height: auto !important;
}
ul.slider-tab > li.anchor {
    height: 1.7em !important;    /* JS 行内 height 必须 !important 覆盖；与文字行高盒等比例 */
}

/*
 * v378（2026-09-13 用户反馈）：红色激活背景的上下边距与浅色悬停背景不一致 ✗
 *
 * 根因：两者是不同元素 ——
 *   浅色/悬停背景 = li.slider-li 自己的背景（盒子正确 ✓ 用户认可"上下边距正好"）
 *   红色激活背景 = li.anchor 滑块（JS 定位 ✗ 缩放下边距对不齐 ✗）
 *
 * 改法（= 知识库 v263 定稿方案：滑块废弃、active 红底通用）：
 *   把红色也交给「激活的那个 LI」自带背景 → 与悬停背景**同一元素、同一盒模型**
 *   → 上下边距必然一致 ✓ 且不再受 JS 滑块定位/缩放影响 ✓
 */
ul.slider-tab > li.anchor {
    display: none !important;              /* 滑块弃用（保留元素，主题 JS 照常操作，不影响） */
}
ul.slider-tab > li.slider-li.active {
    background: #f1404b !important;         /* 与悬停背景同元素 → 几何完全一致 */
    color: #fff !important;
    border-radius: 6px !important;          /* 与悬停背景实测圆角一致（6px） */
}
/* Safari 适配：Safari 容器高度与 Chrome 不同（固定 top 导致滑块偏下贴底），
   改为垂直居中——任何容器高度下都稳定 */
html.os-safari .slider-tab .anchor {
    top: 50% !important;
    -webkit-transform: translateY(-50%) !important;
    transform: translateY(-50%) !important;
}
/* Safari 适配：Safari 容器高度与 Chrome 不同（固定 top 导致滑块偏下贴底），
   改为垂直居中——任何容器高度下都稳定 */
html.os-safari .slider-tab .anchor {
    top: 50% !important;
    -webkit-transform: translateY(-50%) !important;
    transform: translateY(-50%) !important;
}

/* 每日推荐独立区域（位于我的导航下方，固定展示不随 Tab 切换） */
.io-customize-card .daily-recommend {
    margin-top: -3px !important;      /* 上方 -3px */
    margin-bottom: 10px !important;   /* 下方 +3px（7→10） */
    min-height: 50px;                 /* 防塌陷：至少一行卡片高度（切换/关闭提示条后不被下方内容覆盖） */
    position: relative;
    z-index: 2;                       /* 层级：不被下方内容模块覆盖 */
    /* 取消横线分隔符（border-top 移除）；padding-top 归零帮助整体上移 */
}
/* 每日推荐卡片不设任何专属样式——完全走 .url-card/.url-body.mini 通用规则（与我的导航同一套 CSS） */
.io-customize-card .daily-recommend .url-info {
    padding-top: 0 !important;
}

.io-customize-card .daily-recommend-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--main-color, #333);
    margin: 0 0 12px;
    display: flex;
    align-items: center;
}
.io-customize-card .daily-recommend-title::before {
    content: '';
    width: 4px;
    height: 14px;
    border-radius: 2px;
    background: #f1404b;
    margin-right: 8px;
}

/* ============ 用户中心"我的网址"管理界面 ============ */
.manage-sites .sites-nav .sites-li {
    position: relative;
}
.manage-sites .sites-nav .sites-li .sites-setting {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    display: none;
    gap: 8px;
    color: #999;
}
.manage-sites .sites-nav .sites-li:hover .sites-setting {
    display: flex;
}
.manage-sites .sites-card {
    background: var(--main-bg-color, #fff);
    border: 1px solid rgba(136, 136, 136, .15);
    padding: 10px 12px;
    display: flex;
    align-items: center;
    min-height: 44px;
    -webkit-transition: box-shadow .25s;
    transition: box-shadow .25s;
}
.manage-sites .sites-card:hover {
    box-shadow: 0 4px 14px rgba(0, 0, 0, .08);
}
.manage-sites .sites-card .sites-name {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.manage-sites .sites-card .sites-setting {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    display: none;
    gap: 10px;
    color: #999;
}
.manage-sites .sites-card:hover .sites-setting {
    display: flex;
}
.manage-sites .sites-card.add {
    justify-content: center;
    font-size: 20px;
    color: #999;
}
.manage-sites .sites-card.add:hover {
    color: #f1404b;
    border-color: rgba(241, 64, 75, .4);
}

/* ============ 登录版分类管理（编辑模式：删除/新建分类） ============ */
.io-customize-card .slider_menu .nav-item {
    position: relative;
}
.io-customize-card .slider_menu .nav-item .cm-term-del {
    display: inline-block;      /* 编辑模式下内联显示（分类名称旁的红色圆底 ×） */
    margin-left: 4px;
    color: #fff;
    font-size: 12px;
    line-height: 1;
    vertical-align: middle;
    text-decoration: none;
    border-radius: 50%;
    background: #f1404b;
    padding: 2px 5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
}
.io-customize-card .slider_menu .nav-item .cm-term-del:hover {
    background: #d6303f;
}
/* 鼠标悬停分类名称时自动显示删除 ×（不依赖编辑模式——任何状态下 hover 即见） */
.io-customize-card .slider_menu .nav-item:hover .cm-term-del {
    display: inline-block !important;
}
.io-customize-card .customize-term-add,
.io-customize-card .customize-term-del-all,
.io-customize-card .customize-term-edit-all,
.io-customize-card .customize-term-clear-all,
.io-customize-card .customize-url-clear-all,
.io-customize-card .customize-url-dup-clean {
    padding: 2px 6px !important;   /* v283：基础 padding 与悬停左右一致——悬停不放大（不挤动布局） */
}
.io-customize-card .customize-term-add .nav-link,
.io-customize-card .customize-term-del-all .nav-link,
.io-customize-card .customize-term-edit-all .nav-link {
    color: #f1404b;
    font-weight: 600;   /* 都带加粗（保持统一） */
}

/* "- 删除分类"按钮（编辑模式显示，位于新建分类右侧） */
.io-customize-card .customize-term-del-all .nav-link:hover {
    color: #fff;
    background: rgba(241, 64, 75, .85);
    border-radius: .3rem;
}

/* 分类 Tab 删除红叉（编辑模式显示；z-index 顶层可点击） */
.io-customize-card .slider_menu .nav-item {
    position: relative;
}
.io-customize-card .slider_menu .nav-item .cm-term-del {
    position: absolute;
    right: 0;
    top: 0;
    z-index: 9999;              /* 顶层——不被任何元素遮挡，可点击 */
    color: #fff;
    font-size: 12px;
    line-height: 1;
    text-decoration: none;
    border-radius: 50%;
    background: #f1404b;
    padding: 2px 5px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .3);
}
.io-customize-card .slider_menu .nav-item .cm-term-del:hover {
    background: #d6303f;
}

/* ============ 分类 Tab 溢出横向滚动条（分类多时细横条可滑动查看全部——加在 ul.menu 上） ============ */
.io-customize-card .slider_menu[sliderTab] > .menu {
    overflow-x: auto !important;
    overflow-y: hidden;
    scrollbar-width: thin;            /* Firefox 细滚动条 */
    scrollbar-color: rgba(136, 136, 136, .4) transparent;
}
.io-customize-card .slider_menu[sliderTab] > .menu::-webkit-scrollbar {
    -webkit-appearance: none;         /* 强制常显（macOS overlay 滚动条默认自动隐藏） */
    height: 6px;                      /* 细滚动条 */
}
.io-customize-card .slider_menu[sliderTab] > .menu::-webkit-scrollbar-thumb {
    background: rgba(136, 136, 136, .45);
    border-radius: 3px;
}
.io-customize-card .slider_menu[sliderTab] > .menu::-webkit-scrollbar-track {
    background: rgba(136, 136, 136, .1);
}
.io-customize-card .slider_menu[sliderTab] > .menu::-webkit-scrollbar-thumb:hover {
    background: rgba(136, 136, 136, .7);
}

/* ============ 分类 Tab 溢出左右箭头（溢出时显示，点击滚动查看全部） ============ */
.io-customize-card .slider_menu[sliderTab] {
    position: relative;
}
.io-customize-card .slider_menu[sliderTab] .cm-tab-arrow {
    position: absolute;
    top: 50%;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
    z-index: 20;
    width: 22px;
    height: 22px;
    line-height: 20px;
    text-align: center;
    font-size: 16px;
    color: #666;
    background: rgba(255, 255, 255, .9);
    border: 1px solid rgba(136, 136, 136, .25);
    border-radius: 50%;
    text-decoration: none;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .15);
    opacity: .6;                        /* 60% 透明度 */
}
.io-customize-card .slider_menu[sliderTab] .cm-tab-arrow:hover {
    color: #fff;
    background: #f1404b;
    border-color: #f1404b;
    opacity: 1;                         /* hover 恢复不透明 */
}
.io-customize-card .slider_menu[sliderTab] .cm-tab-prev {
    left: 2px;
}
.io-customize-card .slider_menu[sliderTab] .cm-tab-next {
    right: 2px;
}

/* 空态提示压缩（主题 .nothing 上下 padding 20px 是撑高元凶——压缩后由 tab-pane min-height 统一高度，
   我的导航与最近使用初始高度一致，切换 Tab 下方不跳动）——游客版/登录版两端覆盖 */
.io-customize-card .customize_nothing .nothing,
.io-customize-card .customize_nothing_click .nothing {
    padding-top: 4px !important;
    padding-bottom: 4px !important;
    margin-bottom: 0 !important;
}
/* "添加个人常用网址"（游客版我的导航空态）向上移动 8px（2026-08-28 用户指挥） */
.io-customize-card .customize_nothing .nothing {
    -webkit-transform: translateY(-7px);   /* v190：向下移动 1px（-8 → -7） */
    transform: translateY(-7px);
}
/* 空态文字垂直居中（padding 压缩后文字靠上——flex 居中恢复视觉居中；不改高度——保持高度一致） */
.io-customize-card .customize_nothing .nothing,
.io-customize-card .customize_nothing_click .nothing {
    display: -webkit-box;
    display: flex;
    -webkit-box-align: center;
    align-items: center;
    -webkit-box-pack: center;
    justify-content: center;
    min-height: 40px;
    margin-top: 8px !important;      /* v206 历史定稿：垂直居中 + 向下 8px（important 防覆盖） */
}

/* 自定义网址搜索框 + 分类管理按钮（同行） */
.io-customize-card .cm-search-bar {
    display: -webkit-box;
    display: flex;
    -webkit-box-align: center;
    align-items: center;
    -webkit-box-pack: justify;
    justify-content: space-between;
    gap: 10px;
    margin-top: 8px;            /* 上边距（与上方 Tab 栏间距） */
    margin-bottom: 10px;
    flex-wrap: wrap;            /* v293：行宽不足时允许换行（编辑按钮组换下一行） */
    -webkit-box-align: start !important;
    align-items: flex-start !important;   /* v340：第一行顶部对齐——按钮组换行时搜索框/三个按钮不浮（只有内容下沉） */
}
/* v325：电脑端搜索框 = 下方 1 个网址区块宽度（实测卡片 238px ≈ 20% - 11px） */
.io-customize-card .cm-search-wrap {
    -webkit-box-flex: 0;
    flex: 0 1 238px;             /* v326：实测卡片宽 238px（20% 基准不同不匹配——固定值） */
    min-width: 60px;
    margin-left: 3px !important; /* v329：搜索框左对齐"我的全部网址"红色背景左（实测差 3px） */
}
/* v361：手机端搜索框增大（高度 31 → 40px——内部文字/按钮同比增大） */
@media (max-width: 767px) {
    .io-customize-card .cm-search-wrap input,
    .io-customize-card .cm-search-wrap .form-control {
        height: 40px !important;
        font-size: 16px !important;
        line-height: 40px !important;
    }
    .io-customize-card .cm-search-wrap .cm-search-btn,
    .io-customize-card .cm-search-wrap button {
        height: 40px !important;
        font-size: 16px !important;
    }
    .io-customize-card .cm-search-wrap .cm-search-btn i,
    .io-customize-card .cm-search-wrap button i {
        font-size: 18px !important;
    }
}

/* v328：搜索框圆角 8px（窄框视觉与导航搜索框一致——12px 在窄框显圆） */
.io-customize-card .cm-search-wrap input,
.io-customize-card .cm-search-wrap .form-control {
    border-radius: 8px !important;
}
/* v293：右侧按钮不缩小（保持一行——搜索框让位） */
.io-customize-card .cm-guest-add,
.io-customize-card .cm-search-showall,
.io-customize-card .cm-search-showterms,
.io-customize-card .btn-edit {
    -webkit-box-flex: 0;
    flex: 0 0 auto;
}
/* v293：编辑模式按钮组——排最后（行宽不足自动换到下一行，复制手机端样式） */
.io-customize-card .cm-term-btns {
    -webkit-box-ordinal-group: 50;
    order: 50;
    -webkit-box-pack: start;
    justify-content: flex-start;
    margin-bottom: 5px;             /* v319：与下方网址块拉开距离 */
}
/* v239：游客版电脑端按钮组保持换行（v335 用户要求）；已登录不换行（提示条位置稳定） */
@media (min-width: 768px) {
    body:not(.logged-in) .io-customize-card .cm-term-btns {
        -webkit-flex-wrap: wrap !important;
        flex-wrap: wrap !important;
    }
    /* v240：已登录搜索条也不换行（否则按钮组被搜索条 wrap 挤到第二行——提示条仍被推） */
    body.logged-in .io-customize-card .cm-search-bar {
        -webkit-flex-wrap: nowrap !important;
        flex-wrap: nowrap !important;
    }
}

/* v347：组内按钮禁用过渡（transition 0.3s 导致 visibility 收起延迟 0.3s 才消失——瞬时切换） */
.io-customize-card .cm-term-btns a {
    -webkit-transition: none !important;
    transition: none !important;
}
/* v321：电脑端按钮组与三个按钮文字同一水平线 */
@media (min-width: 768px) {
    .io-customize-card .cm-term-btns {
        margin-top: 4px;   /* v343：与三个按钮（mt 4）对齐（6 → 4——实测低 2px） */
    }
    /* v335：搜索条允许换行（按钮组行宽不足时换行）；三个按钮容器永不拆行 */
    .io-customize-card .cm-search-bar {
        -webkit-flex-wrap: wrap !important;
        flex-wrap: wrap !important;
    }
    .io-customize-card .io-g-btns {
        display: -webkit-box !important;
        display: flex !important;       /* v336：容器 flex（电脑端也）——三个按钮同行 + 间距统一 */
        -webkit-box-align: center;
        align-items: center;
        -webkit-flex-wrap: nowrap !important;
        flex-wrap: nowrap !important;   /* 添加我的网址/显示所有网址/显示所有分类：永不拆行——一直同一行 */
        gap: 10px;                      /* v336：与搜索条同一间距命令（电脑端 10px） */
        margin-top: 4px;                /* v342：恢复与搜索框/编辑按钮同一水平线（v340 flex-start 上移 4px——补回） */
    }
    .io-customize-card .cm-term-btns {
        display: -webkit-box !important;
        display: flex !important;
        position: static !important;      /* 去掉 v332 绝对定位/外框（恢复流式） */
        background: transparent !important;
        border: none !important;
        -webkit-box-shadow: none !important;
        box-shadow: none !important;
        width: auto !important;
        min-height: 0 !important;
        padding: 0 !important;
        visibility: hidden;              /* 编辑前占位（同行——高度保留——不推页面） */
    }
    .io-customize-card .cm-term-btns a {
        display: inline-block !important;   /* v334：按钮始终占位（防 JS display none 导致组塌陷——高度保留） */
        visibility: hidden;
    }
    .io-customize-card.io-editing .cm-term-btns,
    .io-customize-card.io-editing .cm-term-btns a {
        visibility: visible;             /* 编辑后同行显示 */
    }
}
/* v324：两组按钮高度统一（24px）——视觉一致 */
.io-customize-card .cm-guest-add,
.io-customize-card .cm-search-showall,
.io-customize-card .cm-search-showterms,
.io-customize-card .cm-term-add,
.io-customize-card .cm-term-del-all,
.io-customize-card .cm-term-edit-all,
.io-customize-card .cm-term-clear-all,
.io-customize-card .cm-url-clear-all,
.io-customize-card .cm-url-dup-clean {
    height: 24px !important;
    line-height: 24px;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    display: inline-block;
    vertical-align: middle;
}
/* v295：电脑端编辑按钮——绝对定位靠右（右对齐）+ 永不换行 */
@media (min-width: 768px) {
    /* v320：电脑端搜索条左对齐（space-between 会把按钮容器推到中间）——编辑按钮绝对定位不受影响 */
    .io-customize-card .cm-search-bar {
        -webkit-box-pack: start !important;
        justify-content: flex-start !important;
    }
    .io-customize-card .cm-search-bar {
        position: relative;
        padding-right: 80px;      /* 右侧让位（编辑按钮）——其它元素不与其重叠 */
    }
    .io-customize-card .btn-edit {
        position: absolute !important;
        right: 0;
        top: -1px;              /* v345：电脑端上移 1px（0 → -1——确定按钮文字与三个按钮中心差 0） */
        white-space: nowrap;
    }
}
.io-customize-card .cm-search-wrap {
    position: relative;
    -webkit-align-self: flex-start !important;   /* v341：顶部对齐（原 center——按钮组换行时搜索条变高——居中位置浮动） */
    align-self: flex-start !important;
    width: calc(20% - 13px);      /* 1 个网址块宽（20%）再减 13px（肉眼修正） */
    min-width: 120px;
}
.io-customize-card .cm-search-wrap .form-control {
    width: 100%;
    max-width: none;
    margin-top: 0;
    border-radius: .3rem;
    font-size: 14px;
    padding: 5px 30px 5px 12px;   /* 右侧留出放大镜空间 */
}
.io-customize-card .cm-search-btn {
    position: absolute;
    right: 4px;
    top: 50%;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
    color: #999;
    font-size: 15px;
    line-height: 1;
    text-decoration: none;
    padding: 2px 4px;
    z-index: 2;
}
.io-customize-card .cm-search-btn:hover {
    color: #f1404b;
}
.io-customize-card .cm-guest-add {
    color: #f1404b;
    font-size: 13px;
    font-weight: 600;
    padding: 3px 6px 2px 6px !important;   /* v338：文字中心完全对齐（上 2 → 3px——实测差 1px） */
    white-space: nowrap;
    -webkit-align-self: center;
    align-self: center;
    display: -webkit-inline-box;
    display: inline-flex;          /* v337：icon 与文字垂直居中（文字不被 icon 挤低——与其它按钮文字同一水平线） */
    -webkit-box-align: center;
    align-items: center;
    line-height: 1;
    vertical-align: middle;
}
.io-customize-card .cm-guest-add i {
    line-height: 1;
    margin-right: 2px;
}
.io-customize-card .cm-guest-add:hover {
    color: #fff;
    background: rgba(241, 64, 75, .85);
    border-radius: .3rem;
}

/* "显示所有"按钮（清空搜索框 → 展示全部网址） */
.io-customize-card .cm-search-showall {
    -webkit-align-self: center;
    align-self: center;
    color: #f1404b;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    padding: 2px 6px;
}
.io-customize-card .cm-search-showall:hover,
.io-customize-card .cm-search-showterms:hover {
    color: #fff;
    background: rgba(241, 64, 75, .85);
    border-radius: .3rem;
}
.io-customize-card .cm-search-showterms {
    -webkit-align-self: center;
    align-self: center;
    margin-right: auto;           /* 左对齐（与搜索框/显示所有网址一组紧挨）——管理按钮组推至右侧 */
    color: #f1404b;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    padding: 2px 6px;
}
/* 展开态：滑块隐藏（多行排列 anchor 定位失效——红色背景不下来）+ 激活用红底贴合当前行 */
.io-customize-card .slider_menu[sliderTab].cm-terms-expanded .anchor {
    display: none;
}
/* v220：展开态隐藏滚动箭头（全宽多行排列——无溢出内容——不需要箭头） */
.io-customize-card .slider_menu[sliderTab].cm-terms-expanded .cm-tab-arrow {
    display: none !important;
}
.io-customize-card .slider_menu[sliderTab].cm-terms-expanded > .menu > li > a.nav-link.active {
    background: #f1404b !important;
    color: #fff !important;
    border-radius: 50px;
}
/* v363：通用覆盖——Tab 激活统一红色（防加载早期主题主色（蓝）闪现——打开瞬间只显示红色） */
.io-customize-card .slider_menu ul.nav li > a.nav-link.active,
.io-customize-card .slider_menu .nav-pills .nav-link.active {
    background: #f1404b !important;
    color: #fff !important;
    border-radius: 50px;
}

/* 分类展开态：正常撑开（占布局——把下方内容推下去；收起恢复原样） */
.io-customize-card .slider_menu[sliderTab].cm-terms-expanded {
    position: relative;
    overflow: visible;
    -webkit-align-self: stretch;   /* 撑满父容器宽度（分类全宽按行排列） */
    align-self: stretch;
    width: 100%;
    -webkit-box-flex: 1;
    flex: 1 1 auto;
    height: auto !important;       /* 强制高度自适应（随多行分类撑开——推下下方内容） */
    min-height: 0 !important;
    max-height: none !important;
}
.io-customize-card .slider_menu[sliderTab].cm-terms-expanded > .menu {
    position: static;               /* 正常布局（非悬浮）——占高度推下内容 */
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
    overflow: visible;
    height: auto;
    padding: 0;                     /* v207：展开态不加 padding（单行不换行时高度不变——页面不动） */
    row-gap: 4px;                   /* v207：换行时的行间距（不影响单行高度） */
    border: none;
    background: transparent;
    box-shadow: none;
    max-height: none;
}
.io-customize-card .slider_menu[sliderTab].cm-terms-expanded > .menu > li {
    margin-bottom: 0;               /* v207：不加 margin（单行时高度不变） */
}

/* 展开态：恢复胶囊背景 + 小圆角（不突兀——四角文字不漏出） */
.io-customize-card .slider_menu[sliderTab].cm-terms-expanded {
    background: rgba(0, 0, 0, .1);
    border-radius: 12px;
}
/* 展开态内 Tab：a 占满 li（激活背景位置正确） */
.io-customize-card .slider_menu[sliderTab].cm-terms-expanded > .menu > li > a {
    display: block;
}
/* 编辑按钮（搜索条内靠最右——恢复历史样式：红底白字、紧凑高度——见版本备份-v361 样式归档） */
.io-customize-card .cm-search-bar .btn-edit {
    -webkit-box-ordinal-group: 99;
    order: 99;                     /* 排到最右（管理按钮组右侧） */
    -webkit-flex-shrink: 0;
    flex-shrink: 0;                /* 防 flex 压缩（文字常显） */
    margin-left: 12px;             /* 与左侧按钮组间距 */
    -webkit-align-self: center;
    align-self: center;
    color: #ddd;                   /* 历史：浅白字（红底上常显） */
    font-size: 12px !important;    /* 历史字号 */
    line-height: 24px;             /* 历史高度（紧凑——不超高） */
    background: #f1404b;           /* 历史：红色背景 */
    padding: 0 10px;
    border-radius: .3rem;
    text-decoration: none;
    white-space: nowrap;
}
.io-customize-card .cm-search-bar .btn-edit:hover {
    color: #fff;
}

/* 分类管理按钮组（编辑模式显示——搜索条右侧） */
.io-customize-card .cm-term-btns {
    display: -webkit-box;
    display: flex;
    -webkit-box-align: center;
    align-items: center;
    -webkit-box-pack: end;
    -webkit-box-pack: start;
    justify-content: flex-start;    /* v339：左对齐（原 flex-end 右对齐——780px 内容溢出时第一个按钮被推出左缘贴左） */
    -webkit-box-ordinal-group: 50;
    order: 50;
    -webkit-flex-wrap: nowrap;
    flex-wrap: nowrap;              /* v239：已登录不换行（不推高搜索条——同步提示条位置稳定）；游客版下方 body:not 恢复 wrap */
    gap: 4px 12px;
    min-width: 0;
    overflow: hidden;               /* v339：外框约束——内容绝不溢出组框（跑不出去） */
}
/* 手机端：搜索框占满一行（按钮组换到下一行右对齐） */
@media (max-width: 767px) {
    /* 手机端：我的导航分页（io-sites-pager——下一页）独立下边距（v276——
       专属类只影响我的导航分页——不影响最近使用/我的导航按钮组/其它区块） */
    .io-sites-pager {
        margin-top: 5px !important;      /* 上边距（v429：3→5px——2026-10-11 用户要求再增加——仅手机端） */
        margin-bottom: 4px !important;   /* 下边距减 2px（6→4——2026-08-28 用户定稿） */
    }
    /* 手机端：我的导航分页按钮外框高度减 2px（v278——专属——电脑端/其他 pager 不受影响） */
    .io-sites-pager a {
        padding-top: 0 !important;
        padding-bottom: 0 !important;  /* 再减 2px（1px→0——共减 4px——2026-08-28） */
    }
    /* 手机端：未登录网址块上边距 -4px（v284：加 body:not(.logged-in) 前缀——特异性压过桌面 16px 规则） */
    body:not(.logged-in) .io-customize-card .tab-content {
        margin-top: -4px !important;
    }
    /* 手机端：未登录+编辑模式 7px（v176——与登录一致） */
    body:not(.logged-in) .io-customize-card.io-editing .tab-content {
        margin-top: 7px !important;
    }
    /* 手机端：登录版保持历史定稿（非编辑 -4 / 编辑 7） */
    body.logged-in .io-customize-card .tab-content {
        margin-top: -4px !important;
    }
    /* 手机端：登录+编辑模式——特异性必须压过 body.logged-in 规则（(0,4,1)>(0,3,1)），
       否则编辑态 7px 被登录态 -4px 覆盖（2026-08-28 修复特异性回归）——知识库定稿：7px */
    body.logged-in .io-customize-card.io-editing .tab-content {
        margin-top: 7px !important;
    }
    /* 手机端箭头：默认 40% 透明度——滑动时方向那边 60%（JS 控制）、另一边消失；停止恢复 40% */
    .io-customize-card .slider_menu[sliderTab] .cm-tab-arrow {
        opacity: .4 !important;
        background: rgba(255, 255, 255, .5) !important;
        color: #666;
    }


    .io-customize-card .slider_menu[sliderTab] .cm-tab-arrow:hover {
        color: #666;
        background: rgba(255, 255, 255, .5);
        border-color: rgba(136, 136, 136, .25);
    }
    .io-customize-card .cm-search-bar {
        margin-bottom: 0 !important;
        min-height: 34px;   /* v176：游客版搜索条高度与登录一致 */
    }
    /* 手机端：编辑态双边距方案（用户定稿 2026-08-28）——
       编辑按钮区块下边距 7px + 网址块上边距 7px = 总间距 14px
       选择器按线上实际 DOM 结构（.customize-menu 旧结构 + .cm-search-bar 新结构双覆盖） */
    .io-customize-card.io-editing .customize-menu,
    .io-customize-card.io-editing .cm-search-bar {
        margin-bottom: 7px !important;
    }
    /* v299：手机端搜索框占满第一行（添加自定义网址换到第二行） */
    .io-customize-card .cm-search-wrap {
        -webkit-box-flex: 1 !important;
        flex: 1 1 100% !important;
        max-width: 100% !important;
    }
    /* v313：搜索条无全局预留（搜索框全宽——不需要让位）；编辑按钮绝对定位右端 */
    .io-customize-card .cm-search-bar {
        -webkit-box-pack: start !important;
        justify-content: flex-start !important;
        gap: 8px;                  /* v316：三个按钮间距 10 → 8px（用户要求减 2px） */
        position: relative;
    }
    /* v317：三个按钮容器——max-width 预留 60px（给编辑按钮——margin 会计入换行计算导致换行，容器 max-width 不会） */
    .io-customize-card .io-g-btns {
        display: -webkit-box;
        display: flex;
        -webkit-box-align: center;
        align-items: center;
        gap: 8px;
        max-width: calc(100% - 60px);
        -webkit-box-ordinal-group: 1;
        order: 1;               /* 搜索框后（第二行） */
    }
    .io-customize-card .cm-search-bar .btn-edit {
        position: absolute !important;
        right: 0;
        top: 43px;               /* v362：搜索框 40px 后按钮行下移——编辑按钮 34 → 43（中心与按钮行对齐） */
    }
    .io-customize-card .cm-guest-add,
    .io-customize-card .cm-search-showall,
    .io-customize-card .cm-search-showterms,
    .io-customize-card .btn-edit {
        padding-left: 6px !important;
        padding-right: 6px !important;
        font-size: 13px !important;   /* v315：与编辑展开内容字号一致（12 → 13px——用户要求） */
    }
    /* v298：手机端"添加自定义网址"在搜索框下面（第二行开头）——显示所有网址前 */
    .io-customize-card .cm-guest-add {
        -webkit-box-ordinal-group: 1;
        order: 1;
    }
    .io-customize-card .cm-search-showall,
    .io-customize-card .cm-search-showterms {
        -webkit-box-ordinal-group: 3;
        order: 3;                 /* 添加自定义网址后（第二行） */
    }
    /* 手机端：编辑按钮排最后（右端右对齐）——与"添加自定义网址/显示所有网址/显示所有分类"同行 */
    /* v310：编辑按钮绝对定位右端（上面统一规则）——此处不再单独设置 */
    .io-customize-card .cm-term-btns {
        -webkit-box-ordinal-group: 50;
        order: 50;                /* 管理按钮组换到下一行 */
        -webkit-flex-wrap: wrap;
        flex-wrap: wrap;
        width: auto;
        -webkit-box-pack: start !important;   /* v314：展开内容强制左对齐（用户要求） */
        justify-content: flex-start !important;
    }
    .io-customize-card .cm-search-bar {
        -webkit-flex-wrap: wrap;
        flex-wrap: wrap;
    }
    .io-customize-card .cm-search-wrap {
        width: 100%;
    }
    .io-customize-card .cm-search-wrap .form-control {
        width: 100%;
    }
    .io-customize-card .cm-term-btns {
        width: 100%;
    }
}
.io-customize-card .cm-term-btns a {
    color: #f1404b;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    white-space: nowrap;
}
.io-customize-card .cm-term-btns a:hover {
    color: #fff;
    background: rgba(241, 64, 75, .85);
    border-radius: .3rem;
    padding: 2px 6px;
}
/* 搜索结果面板 */
.io-customize-card .cm-search-results {
    margin-bottom: 10px;
}
.io-customize-card .cm-search-item {
    display: -webkit-box;
    display: flex;
    -webkit-box-align: center;
    align-items: center;
    -webkit-box-pack: justify;
    justify-content: space-between;
    padding: 6px 10px;
    border-bottom: 1px dashed rgba(136, 136, 136, .2);
    font-size: 14px;
}
.io-customize-card .cm-search-item a {
    color: var(--main-color, #333);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.io-customize-card .cm-search-item a:hover {
    color: #f1404b;
}
.io-customize-card .cm-search-term {
    font-size: 12px;
    color: #999;
    margin-left: 10px;
    -webkit-flex-shrink: 0;
    flex-shrink: 0;
}

/* 同步提示条（静态文本，不遮挡内容，SEO 友好） */
.io-sync-bar {
    display: flex;
    align-items: center;
    justify-content: flex-start;      /* 按钮左对齐 */
    gap: 12px;
    background: var(--main-bg-color, #fff);
    border: 1px solid rgba(136, 136, 136, .25);
    border-radius: 10px;
    padding: 10px 14px;
    margin-top: 8px;                  /* 上边距 +8px */
    margin-bottom: 12px;
    font-size: 13px;
    color: #666;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .05);
}
/* v358：手机端（<760）提示条上边距归零（用户反馈侧边栏隐藏后上边距变大） */
@media (max-width: 767px) {
    .io-sync-bar {
        margin-top: 0 !important;
    }
}

.io-sync-bar .io-sync-link {
    flex: 0 0 auto;
    color: #fff;
    background: #f1404b;
    border-radius: 50px;
    padding: 5px 16px;
    font-size: 13px;
    text-decoration: none;
    white-space: nowrap;
    -webkit-transition: opacity .2s;
    transition: opacity .2s;
}
.io-sync-bar .io-sync-link:hover { opacity: .85; }
.io-sync-bar .io-sync-text {
    text-align: left;                  /* 文字开头、左对齐 */
}
.io-sync-bar .io-sync-close {
    display: inline-block;
    color: #999;
    font-size: 12px;
    text-decoration: none;
    margin-left: 1px;                 /* 右移4px（-3→1） */
    padding: 1px 8px;                 /* 外框缩小 */
    border: 1px solid rgba(136, 136, 136, .25);   /* 边框颜色减淡 */
    border-radius: 5px;
    flex: 0 0 auto;
    -webkit-transform: translateY(1px);   /* 关闭区块上移1px（2→1） */
    transform: translateY(1px);
    -webkit-transition: all .2s;
    transition: all .2s;
}
.io-sync-bar .io-sync-close:hover {
    color: #fff;
    background: #f1404b;
    border-color: #f1404b;
}
.io-sync-bar .io-sync-text b {
    color: #f1404b;
}

/* 最近使用分页控件样式 */
.io-recent-pager,
.io-mynav-pager,
.io-sites-pager {
    font-size: 13px;
    color: #888;
    margin-top: 3px;
    line-height: 1.8;
}
.io-recent-pager a,
.io-mynav-pager a,
.io-sites-pager a {
    display: inline-block;
    color: #666;
    padding: 2px 10px;
    border: 1px solid rgba(136, 136, 136, .35);
    border-radius: 20px;
    margin: 0 6px;
    text-decoration: none;
    -webkit-transition: all .2s;
    transition: all .2s;
}
.io-recent-pager a:hover,
.io-mynav-pager a:hover,
.io-sites-pager a:hover {
    color: #fff;
    background: #f1404b;
    border-color: #f1404b;
}
.io-recent-pager .io-pg-info,
.io-mynav-pager .io-pg-info,
.io-sites-pager .io-pg-info {
    display: inline-block;
    padding: 0 4px;
    color: #999;
}

/* 4. 空状态布局：加号左对齐，提示文字在加号右侧（有网址时此规则自然失效） */
.io-customize-card .customize_nothing {
    flex: 0 0 auto !important;
    width: fit-content !important;   /* 宽度跟随内容（Bootstrap col 类会让 flex-basis 解析为 100%） */
    max-width: none !important;
    margin-bottom: 0;
    margin-left: 14px;             /* 与左侧加号的间距 */
    display: flex;
    align-items: center;
    align-self: flex-start;        /* 顶部对齐：文字中心与十字中心几乎重合（文字44≈按钮42） */
    order: 2;                      /* 排在加号后面 */
}
.io-customize-card #add-site {
    order: 1;                      /* 加号排最左 */
}
.io-customize-card .customize_nothing .nothing {
    padding: 4px 0;                /* 历史定稿 4px（10px 会撑高影响垂直居中） */
    margin-bottom: 0 !important;   /* 覆盖 Bootstrap mb-4 的 !important */
    font-size: 14px;               /* 用户确认：14px 合适 */
    color: #777;                   /* 纯黑改灰黑，更柔和 */
}

/* ============================================================
   修复"内容上移(post-top)"遮挡问题：
   搜索头图 post-top 模式有 margin-bottom:-80px + 深色遮罩，
   模块容器被上拉进头图区域时会被 ::before/canvas 遮罩盖住。
   这里给容器独立堆叠层级 + 卡片背景，确保始终可见。
   ============================================================ */
.io-customize-card {
    position: relative;
    z-index: 0 !important;  /* 0即可盖过头图遮罩（同层DOM顺序优势）；导航栏(109)/返回按钮(DOM在后)自然在其上 */
    margin-bottom: 8px !important;
    /* 透明背景，保持主题观感（样式同时以内联形式随 HTML 输出） */
}

/* 编辑模式下给模块加明显边框，让"编辑"状态一目了然 */
.io-customize-card .customize-sites.edit,
.io-customize-card .customize-sites.edit .site-list {
    outline: 1px dashed rgba(241, 64, 75, .5);
    outline-offset: 4px;
    border-radius: 8px;
}

/* ============================================================
   防御性修复：mini 卡片布局强制横向排列（修复个别卡片文字纵向排列）
   ============================================================ */
.url-card .url-content {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
}

.url-card .url-content .url-img {
    flex: 0 0 auto !important;
    width: 25px;
    height: 25px;
}

.url-card .url-content .url-info {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    overflow: hidden;
}

.url-card .url-content .url-info .text-sm {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.url-card .url-content img {
    max-width: 100%;
    max-height: 100%;
    vertical-align: middle;
}

/* ============================================================
   网址卡片融入主题风格：背景/圆角/hover阴影与首页内容模块卡片一致（全端深浅色自动适配）
   ============================================================ */
.io-customize-card .url-body.mini a.card {
    background-color: var(--main-bg-color);        /* 白色底 */
    box-shadow: inset 0 0 16px 0 rgba(116, 116, 116, .05), 0 2px 8px 0 rgba(0, 0, 0, .06);  /* 内框淡灰渐变 + 轻微外阴影 */
    border-radius: var(--main-radius);
    -webkit-transition: box-shadow .3s, background-color .3s;
    transition: box-shadow .3s, background-color .3s;
}
/* 深色模式：略亮于主题底色的灰 */
html.io-black-mode .io-customize-card .url-body.mini a.card {
    background-color: #3a3b3e;
}
.io-customize-card .url-card:hover .url-body.mini a.card {
    background-color: var(--main-bg-color);
    box-shadow: inset 0 0 2px 0 var(--muted-shadow), 0 28px 38px -12px var(--main-shadow);  /* hover：浓阴影，内框灰转淡 */
}
/* 图标韵色扩散层（hover 时图标周围模糊色晕扩散） */
.io-customize-card .url-body.mini .url-img {
    position: relative;
    overflow: visible;             /* 关键：不裁剪，光晕可向外扩散（像太阳发光） */
}
.io-customize-card .io-blur-bg {
    position: absolute;
    width: 126%;
    height: 126%;   /* 范围减30%（180% × 0.7） */
    left: 50%;
    top: 50%;
    background-size: cover;
    background-position: center;
    border-radius: 100%;
    filter: blur(8px);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0);   /* 从中心 0 开始 */
    -webkit-transition: transform .35s ease, opacity .35s ease;
    transition: transform .35s ease, opacity .35s ease;
    z-index: 0;
    pointer-events: none;
}
.io-customize-card .url-card:hover .io-blur-bg {
    opacity: .35;                                /* 颜色强度+20%：.293 × 1.2 */
    transform: translate(-50%, -50%) scale(1);
}
/* 图标微缩放（与主题 item-media img 一致：常态1.05，hover回1） */
.io-customize-card .url-body.mini .url-img img {
    display: block;
    position: relative;
    z-index: 1;
    border-radius: 50%;          /* img 自身圆形（容器 overflow 已放开给光晕，不再依赖容器裁剪） */
    object-fit: cover;
}

/* 移除旧版上浮效果（与主页卡片一致：hover 只显示阴影） */
.io-customize-card .url-card .url-body:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* 每日推荐网址块高度由 JS 实测同步（ioSyncCardHeight）——精确跟随我的导航，不固定数值 */

/* 直达按钮 hover 效果（仿主题默认网址卡片：hover 时按钮从右侧滑入） */
.io-customize-card .url-body.mini a.card {
    position: relative;
}
.io-customize-card .url-body.mini .togo {
    position: absolute;
    right: 6px;          /* v360：8 → 6（右移 2px——2026-08-30 用户反馈悬停右箭头位置） */
    top: 50%;
    opacity: 0;
    -webkit-transition: opacity .3s, -webkit-transform .3s ease;
    transition: opacity .3s, transform .3s ease;
    transform: translate(2px, -50%);
    z-index: 3;
    font-size: 18px;     /* 16 → 18（图标增大） */
    color: #999;
}
.io-customize-card .url-card:hover .url-body.mini .togo {
    opacity: .8;
    transform: translate(12px, -50%);
}
/* 红叉不再联动上浮（卡片本身不上浮了） */
.io-customize-card .url-card:hover .remove-site,
.io-customize-card .url-card:hover .remove-cm-site {
    transform: none !important;
}

/* ============================================================
   v21 样式：卡片宽度按"一行 N 个"自适应
   —— 修改下方 --io-cards-per-row 数字即可调整每行数量（默认 5）
   ============================================================ */
.io-customize-card {
    --io-cards-per-row: 5; /* ★ 一行显示几个网址卡片，改这个数字 */
}

.io-customize-card .url-card {
    flex: 0 0 20% !important;   /* 硬值20%（默认5个/行），消除变量继承隐患 */
    max-width: 20% !important;
    width: auto !important;
    margin: 0 !important;
}

/* 登录版三栏目（我的导航分类/我的收藏/最近使用）：间距与游客版完全一致 */
.io-customize-card .site-list,
.io-customize-card .my-star-list,
.io-customize-card .my-click-list,
.io-customize-card .daily-recommend .row {
    row-gap: 6px;                        /* 纵向行间距（游客版同款） */
    margin-left: -0.4rem !important;     /* 水平负边距（游客版 .io-mx-n2 同款） */
    margin-right: -0.4rem !important;
}
.io-customize-card .site-list .url-card,
.io-customize-card .my-star-list .url-card,
.io-customize-card .daily-recommend .url-card,
.io-customize-card .my-click-list .url-card {
    flex: 0 0 20% !important;            /* 一行5个 */
    max-width: 20% !important;
    width: auto !important;
    padding-left: 0.4rem !important;     /* 水平 padding（游客版同款） */
    padding-right: 0.4rem !important;
    margin: 0 !important;                /* 去掉父主题栅格自带 margin */
}
/* 手机端：与游客版一致 */
@media (max-width: 767px) {
    .io-customize-card .site-list,
    .io-customize-card .my-star-list,
    .io-customize-card .my-click-list,
    .io-customize-card .daily-recommend .row {
        margin-left: -0.25rem !important;
        margin-right: -0.25rem !important;
    }
    .io-customize-card .site-list .url-card,
    .io-customize-card .my-star-list .url-card,
    .io-customize-card .my-click-list .url-card,
    .io-customize-card .daily-recommend .url-card {
        padding-left: 0.25rem !important;
        padding-right: 0.25rem !important;
    }
}

/* 手机端适配：小屏一行 2 个 */
@media (max-width: 767px) {
    .io-customize-card {
        --io-cards-per-row: 2;
    }

    /* 手机端一行 2 个：宽度硬值覆盖（v103 起桌面用硬值 20%，手机端必须单独设 50%） */
    .io-customize-card .url-card,
    .io-customize-card .site-list .url-card,
    .io-customize-card .my-star-list .url-card,
    .io-customize-card .my-click-list .url-card,
    .io-customize-card .daily-recommend .url-card {
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }
    /* 每日推荐手机端只显示前 4 个（2 行完整——避免 5 个时最后一行空缺；电脑端不受影响显示全部） */
    .io-customize-card .daily-recommend .url-card:nth-child(n+5) {
        display: none !important;
    }
    /* 手机端红叉单独定位（电脑端 right -1 / top -8 基础上：右移3px、上移1px） */
    .url-card .remove-site,
    .url-card .remove-cm-site {
        right: -4px;
        top: -7px;    /* 下移2px（-9 → -7） */
    }
    /* 手机端每日推荐与上方区块间距：桌面 -3px 基础上 +16px（= 13px） */
    .io-customize-card .daily-recommend {
        margin-top: 13px !important;
    }
    /* 手机端内容区最小高度 = 一行卡片高度（桌面 76px 留白大——网址少时（1-2个）每日推荐被推下间距大） */
    .io-customize-card .tab-pane {
        min-height: 58px !important;
    }

    /* 手机端网址块高度与添加按钮一致（42px——iOS Safari 按钮高42，卡片38显得矮） */
    .io-customize-card .url-body.mini a.card {
        height: 42px !important;
        min-height: 42px !important;
    }
    /* 外层高度同步（a 42 + mb 8 = 50） */
    .io-customize-card .url-card:not(#add-site):not(.add-custom-site) {
        height: 50px !important;
    }

    /* 手机端取消 .row 负 margin（-10px 会抵消容器 padding，导致加号贴左） */
    .io-customize-card .io-mx-n2 {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

/* 上下边距减半：卡片底部 margin 16px → 8px（含跨行间距） */
.io-customize-card .url-body.mini a.card.mb-3 {
    margin-bottom: 8px !important;
}

/* 行与行之间增加 6px 间距（row-gap 只作用于行间隙：
   不影响首行上边距，也不影响末行下边距） */
.io-customize-card .io-mx-n2 {
    row-gap: 6px;
}

/* v408：收起按钮——点击/悬停时白字（红底——与"下一页"一致——内联 #666 被覆盖） */
.io-customize-card .io-pg-collapse:hover,
.io-customize-card .io-pg-collapse:active {
    color: #fff !important;
}

/* v413：翻页按钮点击后红色反馈（与 hover 一致） */
.io-customize-card .io-sites-pager .io-pg-prev.io-nav-on,
.io-customize-card .io-sites-pager .io-pg-next.io-nav-on {
    color: #fff !important;
    background: #f1404b;
    border-radius: 50px;
    padding: 2px 8px;
}

/*
 * v379（2026-09-13 用户要求）：
 *  ① 网址卡片「网站名」改为随字号缩放：font-size: 1em（= 继承父级字号，不再被固定值锁死）
 *  ② 「我的全部网址」内容区块高度不再固定 —— 原来高度写死，浏览器字号放大后
 *     文字变大而区块不跟随 → 内容被压住。改为 height:auto + 保留原最小高度 76px。
 */
/* v380（2026-09-13）：v379 的 `font-size: 1em` 是**无效改动**（1em = 继承父级，它本来就在继承 ✗）
   用户实测"卡片网站名没有变大" ✗ → 改为 1rem（真正的基准字号：默认 16px / 字号最大 24px） */
.content-card strong,
.posts-item strong,
.io-customize-card .text-sm strong {
    font-size: 1rem !important;
}
.io-customize-card .tab-pane,
.io-customize-card .tab-content {
    height: auto !important;
    min-height: 76px !important;   /* 保留主题原本的最小高度，字号大时由内容自然撑开 */
}

/*
 * v380（2026-09-13 用户反馈）：字号放大后卡片文字"被区块盖住" ✗
 * 实测卡片链（字号=最大）：
 *   STRONG 网站名 高25 ｜ DIV.text-sm 高31.5 overflow:**hidden** ✗ ｜ DIV.url-info 高31.5 overflow:**hidden** ✗ ｜ DIV.card-body 高45
 * → 容器高度被锁住 + overflow:hidden ✗ → 文字一变高就被裁掉/盖住 ✗
 * 改为高度自动 + 解除裁剪，让卡片随文字内容自然增高 ✓
 */
.content-card .text-sm,
.content-card .url-info,
.content-card .card-body,
.posts-item .text-sm,
.posts-item .url-info,
.posts-item .card-body {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
}

/*
 * v381（2026-09-13 用户实测定位）：
 *  ① 热点榜卡片标题（「今日热点」等）字号被主题写死 14px ✗
 *     实测链：B(14px) → H3.item-title.line1(**14px** ✗) → DIV.item-body(24px ✓ 已跟随放大)
 *     → 父级放大了、标题不动 → 必须改成相对单位 ✓
 *  ② 首页内容区下边被下方区块遮盖 → 让内容区高度跟随内容（去掉固定高度/裁剪）
 */
.item-title,
.item-title a,
.item-title b,
.item-title .title {
    font-size: 0.88em !important;    /* v382 按用户微调：1em 略大 → 0.88em（相对父级，跟随浏览器字号缩放 ✓） */
}

.home-content,
.home-content > .container {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
}

/*
 * v382（2026-09-13 用户反馈）：浏览器字号"特大"时，「我的全部网址」这一行文字的**下边被遮挡** ✗
 *
 * 实测定位：分类栏最外层 UL.slider-tab 是 **overflow: auto** ✗
 *   → 它是为横向滚动（slider-ul）设的，但同时会把纵向超出部分**裁掉/遮住** ✗
 *   → 字号放大、文字变高后，底部就被这个容器的边界遮住 ✓
 * 修复：解除高度锁定与裁剪，让这一行使内容自然撑开 ✓
 */
ul.slider-tab,
ul.slider-tab.slider-ul {
    height: auto !important;
    /*
     * v394（2026-09-13 用户反馈）：默认字号下 UL 太高、子元素靠上、下方多空白 ✗
     *   根因：v382 的 min-height: 49px 是按"字号=特大"时的行高量的 ✗
     *        默认字号下内容仅 ~28px 却硬撑 49px → 多 ~21px 空白 + 子元素贴顶 ✗
     *   改法：去掉最小高度（auto 在任何字号下都刚好等于内容 ✓）+ 子元素竖直居中 ✓
     */
    min-height: 0 !important;
    max-height: none !important;
    align-items: center !important;
}
.content-card > .d-flex.flex-column {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
}

/*
 * v384（2026-09-13 用户反馈修正）：v383 把 overflow 改成 visible ✗ 导致
 *   ① 左右滚动箭头消失 ✗ ② 分类栏右侧冲出屏幕 ✗
 *
 * 正确做法（用户指位：调整内层两处）：
 *   只**解除高度锁定**（height:auto），让容器随内容自然变高 ✓
 *   → 内容正好装下 → 即使 overflow 仍是主题原样（hidden/auto）也**不会被裁** ✓
 *   → 横向滚动与左右箭头完全保持不变 ✓
 */
.customize-menu,
.customize-menu .slider_menu,
.customize-menu .slider_menu.mini_tab,
.customize-menu ul.menu.ajax-cm-home {
    height: auto !important;
    min-height: 34px !important;
    max-height: none !important;
}

/*
 * v385（2026-09-13 用户要求 4 项微调，实测数据均来自页面量测）：
 *  ① 左右箭头跟随浏览器字号放大（原写死 22x22 ✗）→ 改相对单位 1.375em（默认 16px 字号下 = 22px，与现状一致 ✓）
 *  ② 左右箭头竖直居中（容器已长到 59px，箭头需要 align-self: center）
 *  ③ 分类栏外框圆角 50px → 12px（与网址卡片一致 ✓ 卡片实测 border-radius: 12px）
 *  ④ 横向滚动条改细（原来占位 11px ✗ → 4px）
 */
.cm-tab-arrow {
    font-size: 1rem !important;
    width: 1.375em !important;
    height: 1.375em !important;
    min-width: 0 !important;
    flex: 0 0 auto !important;            /* 防 flex 拉伸（项目通用教训） */
    align-self: center !important;        /* 竖直居中 */
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    /*
     * v386（2026-09-13）：圆框位置已正中 ✓ 但里面的字符"‹"**墨迹偏上** ✗
     *   原因：‹ 这类标点的墨迹画在 x-height 高度、不在行框正中
     *        （canvas 精测：24px 字号下墨迹中心比行框中心高 **5.33px**）
     *   补正：padding-top 0.444em（效果 = 一半 = 下移 5.33px ✓，改用相对单位可随字号缩放 ✓）
     *   同时锁 box-sizing，保证圆框尺寸不变（仍是 1.375em 正圆 ✓）
     */
    box-sizing: border-box !important;
    /*
     * v389（2026-09-13）：**撤销 v386-v388 的所有 padding 补正** ✗
     *   像素级检测证实：padding-bottom 0.42em（10px）把字符挤出了 33px 的容器
     *   → 8 倍放大截图里圆内**一个字符像素都没有** ✗（原来"偏"至少还能看见 ✓）
     *   结论：这个 33px 的圆里**不做任何 padding 补正**，就用 flex 居中 ✓
     *   （字符框居中 = 最接近正确的状态 ✓ 用户若仍觉得偏，请告知"偏上/偏下几px" ✓）
     */
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}
.customize-menu .slider_menu.mini_tab {
    border-radius: 12px !important;       /* 与网址卡片一致 */
}
.customize-menu ul.menu::-webkit-scrollbar {
    height: 4px !important;
}
.customize-menu ul.menu::-webkit-scrollbar-thumb {
    border-radius: 2px !important;
    background: rgba(0,0,0,.25) !important;
}
.customize-menu ul.menu::-webkit-scrollbar-track {
    background: transparent !important;
}

/*
 * v390（2026-09-13 用户精确指令 —— 按用户眼睛给的像素值，不再自己算 ✗）：
 *   电脑端：小方向符号 **上移 1px**  → padding-bottom: 2px（flex 居中下，内容上移 = padding 的一半 ✓）
 *   移动端：小方向符号 **上移 3px**  → padding-bottom: 6px
 * 注：
 *   ① 不能用 transform ✗（会把整个圆框一起移走）
 *   ② 断点沿用本文件惯例 @media (max-width: 767px) ✓
 *   ③ 必须放在 v389 的 padding-0 之后（同权重下后者生效 ✓）
 */
.cm-tab-arrow {
    padding-top: 0 !important;
    padding-bottom: 2px !important;      /* 电脑端：上移 1px */
}
@media (max-width: 767px) {
    .cm-tab-arrow {
        /*
         * v392：手机端 = 上移 2px（净位移 = (pt−pb)÷2 = (0−4)÷2 = −2px ✓）
         * ⚠️ 为什么换文件名：v391 被 CDN 按路径缓存了旧内容 ✗（实测浏览器拿到的是 pt2/pb0 的旧版 ✗）
         *    → 换新路径 v392 强制回源 ✓（本项目 CDN 规则：改内容必须换文件名 ✓）
         */
        padding-top: 0 !important;
        padding-bottom: 3px !important;   /* v396：再向下 0.5px → 上移2px 变 上移1.5px ✓ */
    }
}

/*
 * v397（2026-09-13 用户反馈）：
 *   ① Mac 电脑端箭头已调好 ✗ **不要再动** ✓（基类保持 padding-bottom: 2px ✓）
 *   ② **Windows 电脑端**箭头比 Mac 高 → Win 的 padding-bottom 减 1px（2px → 1px，= 下移 0.5px ✓）
 *   平台类由主题 JS 添加：html.os-windows / html.os-mac ✓（sub-app JS 第 16-20 行）
 */
html.os-windows .cm-tab-arrow {
    padding-bottom: 1px !important;   /* Win：比基类少 1px → 箭头下移 0.5px ✓（Mac 不受影响 ✓） */
}

/*
 * v398（2026-09-13 用户要求）：手机端改用「自绘可拖拽滚动条」（JS 生成 .io-mtab-sb）
 *   原因：iOS 15 箭头滚动时无原生滚动条 ✗、iOS 26 会冒出原生条 ✗（WebKit 版本差异，CSS 无法统一）
 *   → 手机端隐藏原生条 ✓ 用 JS 自绘的细条统一两机表现 ✓
 *   桌面端**不动**（保持原生细滚动条 ✓ 见 v385 的 ::-webkit-scrollbar 规则 ✓）
 */
@media (max-width: 767px) {
    .io-customize-card .slider_menu[sliderTab] > .menu {
        scrollbar-width: none;          /* Firefox / 新版标准 */
        -ms-overflow-style: none;       /* 旧 IE/Edge */
    }
    .io-customize-card .slider_menu[sliderTab] > .menu::-webkit-scrollbar {
        display: none !important;       /* WebKit 系（含 iOS 26 冒出来的那条）统统不显示 ✓ */
    }
    /*
     * v399（2026-09-13 用户反馈）：原来离文字底部太远 ✗ → 改成「仿原生」
     *   原生滚动条 = 紧贴内容底部 + 无轨道底 + 很细（2-4px）✓
     *   做法：绝对定位贴在列表底部（bottom:1px ✓）+ 去掉轨道背景 ✓ + 滑块 4px ✓
     *   触摸热区仍保留 10px（视觉只有 4px ✓ 但手指按得住 ✓）
     */
    .io-customize-card .slider_menu[sliderTab] {
        position: relative;
        /* v405：撤销 v401 加的 padding-bottom:4px ✗（它让整条下移 4px → 用户反馈"距离红底越来越远"✓ 是我的错 ✗） */
    }
    .io-mtab-sb {
        display: none;                  /* 默认隐藏；JS 检测到需要滚动才设为 block ✓ */
        position: absolute;
        left: 6px;
        right: 6px;
        bottom: 0;                      /* v400：贴到容器最底 ✓ */
        height: 10px;                   /* 触摸热区 */
        margin: 0;
        background: transparent;        /* ★ 无轨道底（仿原生 ✓） */
        z-index: 3;
    }
    .io-mtab-sb-thumb {
        position: absolute;
        top: 6px;                       /* v406：用户"2px基本成功"→ 试 3px（5px → 6px，仅 +1px）*/
                                           1.8px = 容器底往上 1.8px → 滑块顶 = 红底底 + 1.2px = **0.05em** ✓（用户指定间距）
                                           v400：用户要求「与红色背景间距 0.05em」
                                           → 红底底≈容器底-7px、滑块厚 4px
                                           → 滑块底设 0.075em(≈1.8px) 时，滑块顶与红底间距 = 0.05em(1.2px) ✓ */
        left: 0;
        height: 4px;                    /* ★ 更细（原生约 2-4px ✓） */
        width: 30px;                    /* JS 会按可见比例改写 ✓ */
        border-radius: 2px;
        background: rgba(0, 0, 0, .35); /* ★ 半透明黑，原生风格 ✓ */
        will-change: transform;
    }
}

/*
 * ★★★ v420（2026-09-13 用户方案 ✓）：解开「十字加号」与「网址卡片」的**全部写死高度** ✗
 *
 *   背景：本文件更早处有一整套固定高度（42/38/50/46/20px ✗）
 *        → 加号无论内容多大都被压在这些固定值里 ✗ 无法随浏览器字号变化 ✗
 *   方案（用户提出 ✓）：让「内容」决定高度 ✓
 *        —— 加号里放入「添加」「网址」两段**颜色与按钮背景一致的隐形文字** ✓
 *           （模板 tools-customizeforuser.php ×4 + JS v455 ×1 ✓）
 *        —— 再解开下面 6 处写死高度 → 高度自然由文字撑出、并随字号增长 ✓
 */
.io-customize-card .add-custom-site {
    height: auto !important;                 /* 原 50px(Mac)/46px(Win) ✗ → 由内容决定 ✓ */
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;            /* 原 hidden ✗（会裁掉变高的内容）*/
}
html.os-windows .io-customize-card .add-custom-site {
    height: auto !important;
}
.io-customize-card .add-custom-site a.btn {
    height: auto !important;                 /* 原 42px / 38px ✗ */
    min-height: 0 !important;
    max-height: none !important;
    margin-bottom: 0 !important;             /* 原 4px ✗ */
    overflow: visible !important;
    line-height: 1.4 !important;             /* 让行高参与高度、随字号增长 ✓ */
    display: block !important;               /* 不用 flex 固定，交给正常文档流 ✓ */
}
.io-customize-card .add-custom-site .text-lg {
    height: auto !important;                 /* 原固定 20px ✗ */
    line-height: 1.4 !important;
    font-size: 1.25rem !important;           /* 原 20px 写死 ✗ → 1.25rem（默认 16px 下同为 20px ✓ 且随字号 ✓）*/
}
/* 网址卡片本身同样放开（否则两者无法一起变 ✓）*/
.io-customize-card .url-card:not(#add-site):not(.add-custom-site) {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
}

/*
 * ★★★ v421（2026-09-13 用户方案的最后一步 ✓）：把加号的"高度配方"精确对齐卡片
 *
 *   实测卡片（@24px 根字号）：
 *     总高 49px = 内容 36px + 上下内边距 6.5px × 2 = 13px
 *     内容 36px ← strong(1rem) × line-height 1.5 ✓
 *     内边距 6.5px ← .card-body 实测值（= 0.27rem ✓）
 *
 *   加号原先的配方 ✗：.text-lg 行高 1.4 ✗ + 内边距 0.22rem ✗ → 对不上卡片 ✓
 *
 *   本版：内边距 0.27rem（= 6.5px）+ 行高 1.2（1.25rem × 1.2 = 1.5rem = 36px @24 ✓）
 *        → 总高 = 36 + 13 = **49px = 卡片** ✓✓ 且全部随字号等比缩放 ✓
 *   注：内层 div 的**行内 padding 0.22rem** 必须清零 ✗（否则多出 5.3×2 ≠ 卡片 ✗）
 */
.io-customize-card .add-custom-site a.btn {
    padding: 0.27rem 0.5rem !important;      /* = 6.5px @24px ✓ 与 .card-body 相同 ✓ */
    line-height: 1.2 !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin-bottom: 0 !important;
    display: block !important;
    overflow: visible !important;
}
.io-customize-card .add-custom-site .text-lg {
    font-size: 1.25rem !important;
    line-height: 1.2 !important;            /* 1.25 × 1.2 = 1.5rem = 卡片的 strong 块高 ✓ */
    padding: 0 !important;                  /* ★ 清零模板行内 padding 0.22rem ✗ */
    height: auto !important;
    margin: 0 !important;
}

/*
 * ★★★ v422（2026-09-13 最后 4px ✓）：
 *   实测 加号 53px vs 卡片 49px，差 **+4px**
 *   原因：模板/JS 的行内 `border: 2px dashed` ✗ 上下各占 2px = 4px ✗
 *   修法：把 border 换成 **outline**（轮廓不占布局空间 ✓✓）
 *        → 高度 = 内容 36 + 内边距 12.96 = 48.96 ≈ **49px = 卡片** ✓✓
 *        外观完全不变（2px 虚线、同样的灰色 ✓，只是不再占高度 ✓）
 */
.io-customize-card .add-custom-site a.btn {
    border: 0 !important;
    outline: 2px dashed rgba(136, 136, 136, .5) !important;
    outline-offset: -2px !important;        /* 画在里侧，观感与原来的 border 一致 ✓ */
}

/*
 * ★★★ v423（2026-09-13 收官 ✓）：padding 改为与卡片一致的**固定值**
 *
 *   实测三档（模拟）：
 *     特大24: 加号 49 ｜ 卡片 49 ✓（差 0）
 *     大20  : 加号 41 ｜ 卡片 43 ✗（差 -2）
 *     中16  : 加号 33 ｜ 卡片 38 ✗（差 -5）
 *   根因：加号的 padding 用 rem（会随字号缩放 ✗ 6.48→5.4→4.32）
 *        而卡片的 padding 是**固定 6.5px**（三档都不变 ✓）
 *   → 两者在非"特大"档必然错位 ✓
 *
 *   修法：padding 改成与卡片相同的固定 6.5px ✓
 *   （内容部分两边都是 1.5rem 等比缩放 ✓ 只有 padding 需要固定 ✓）
 */
.io-customize-card .add-custom-site a.btn {
    padding: 6.5px 0.5rem !important;   /* ★ 与卡片 .card-body 实测值一致（固定 6.5px ✓）*/
}

/*
 * ★★★ v424（2026-09-13 用户三项小修饰 ✓）
 *
 *  ① 圆角与网址卡片一致：实测卡片 = 12px ✓（原按钮是 Bootstrap .rounded ≈ 6px ✗）
 *  ② 恢复鼠标悬停效果：原来靠 border-color 变色 ✓ 但 v422 把 border 换成 outline ✗
 *     → 悬停描边变色失效 ✓ 本版补 outline-color ✓ + 底色加深 ✓
 *  ③ **页面默认打开时（最小档）底边少 1px** ✓（用户指正：不是"中档"，是默认/最小那档 ✓）
 *     原因：卡片的内容高度 = **max(图标固定 25px, 文字 1.5rem)** ✓
 *           （实测三档全吻合：25+13=38 ｜ 30+13=43 ｜ 36+13=49 ✓）
 *           而加号只有文字（1.5rem ✗）→ 最小档文字 24px < 图标 25px ✗ → 少 1px ✓
 *     修法：给加号内容加 min-height: 25px ✓
 *           （大/特大档文字更大 → 不受影响 ✓ 用户明确要求那两档不动 ✓）
 */
.io-customize-card .add-custom-site a.btn {
    border-radius: 12px !important;        /* ① 与卡片一致 ✓ */
}
.io-customize-card .add-custom-site a.btn:hover {
    background: rgba(136, 136, 136, .14) !important;      /* ② 悬停底色略深 ✓ */
    outline-color: rgba(241, 64, 75, .65) !important;     /* ② 悬停虚线变主题红 ✓ */
}
.io-customize-card .add-custom-site .text-lg {
    min-height: 25px !important;           /* ③ 补上"图标下限 25px" ✓ 只影响最小档 ✓ */
}

/*
 * ★★★ v425（2026-09-13 用户需求）：图标加载前不再闪"无图" ✗ → 显示站点 logo 占位 ✓
 *
 *   原因：卡片图标是 `<img>` 初始**没有 src** ✗（等 JS 异步填 favicon ✓）
 *        → 浏览器在这期间显示"无图/破图"图标 ✓（点下一页重渲染时最明显 ✓）
 *   修法（纯 CSS ✓ 不动 JS ✓）：给图标 img 加背景图 = 站点 logo ✓
 *        → 无 src / 加载中 / 加载失败 三种情况都显示 logo 占位 ✓
 *        → 真图标加载出来后自然覆盖背景 ✓（用户指定图片 ✓ 已实测存在：HTTP 200 ✓ 1156 字节 ✓）
 */
.io-customize-card .url-img img {
    background-image: url('https://mcn123.com/wp-content/themes/onenav/assets/images/favicon.png');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain;
}
/* 首字图标（JS 回退生成的文字）不受影响 ✓ —— 它们不是 img ✓ */

/*
 * ★★★ v426（2026-09-13 用户反馈）：十字「＋」视觉偏下 ✗ → 微调垂直居中
 *
 *   实测（@24px 根字号）：
 *     按钮中心 907.5 ｜ ＋ 字符框中心 905（框比中心高 2.5px）
 *     但 ＋ 的**墨迹**在字符框内偏下约 1px（"+" 这类符号的墨迹在数学轴上 ✓）
 *     → 净效果 ≈ 视觉中心比按钮中心低 1px ✓（与用户观察一致 ✓）
 *
 *   修法：整体上移 0.04em（= 1.2px @30px 字号 ✓ 随字号等比 ✓）
 *        用 em 而非 px ✓ —— 此元素的 font-size 已显式设为 1.25rem ✓ em 基准可靠 ✓
 *   调整旋钮：想再上移/下移就改 -0.04em 这一个数（-0.08em = 上移 2px 档 ✓）
 */
.io-customize-card .add-custom-site .text-lg {
    transform: translateY(-0.04em) !important;
}

/* ============================================================
   v427：搜索我的网址框——加主题色边框
   需求：给"搜索我的网址..."输入框加边框颜色，适配整体美观
   方案：主题红 #f1404b 的淡化版做默认边框（呼应页面主色、不刺眼），
        聚焦时变实色 + 柔和光晕（有交互反馈）
   （如想调深/调浅：改 .30 这个透明度即可，0.15 更淡 / 0.5 更明显）
   ============================================================ */
.io-customize-card .cm-search-wrap .form-control {
    border: 1px solid rgba(241, 64, 75, .30) !important;
    -webkit-transition: border-color .2s, box-shadow .2s;
    transition: border-color .2s, box-shadow .2s;
}
.io-customize-card .cm-search-wrap .form-control:focus {
    border-color: #f1404b !important;
    box-shadow: 0 0 0 2px rgba(241, 64, 75, .12) !important;
    outline: none;
}
