/*
Theme Name: OneNav 子主题（自定义功能）
Theme URI: https://www.iotheme.cn/
Description: OneNav 子主题，保留失效网址角标/灰化样式 + 数据评估美化 + 放宽失效判定。升级父主题不会丢失这些功能。
Author: 自定义
Template: onenav
Version: 1.0.0
*/

/* ================================================
   一、失效网址卡片样式（右上角红色角标 + 灰化）
   ================================================ */

/* 卡片右上角红色角标 */
.dead-badge {
    position: absolute;
    top: 0;
    right: 0;
    font-size: 10px;
    line-height: 1;
    padding: 4px 8px;
    background: #ff4757;
    color: #fff;
    font-weight: normal;
    letter-spacing: 0.5px;
    border-radius: 0 10px 0 8px;
    box-shadow: 0 2px 4px rgba(255, 71, 87, 0.3);
    z-index: 2;
}

/* 失效卡片整体灰化半透明 */
.sites-item.is-dead-site {
    position: relative;   /* 角标 absolute 定位基准 */
    opacity: 0.38;
    filter: grayscale(85%);
    transition: opacity 0.3s, filter 0.3s;
}

/* 鼠标悬停时恢复清晰度 */
.sites-item.is-dead-site:hover {
    opacity: 0.7;
    filter: grayscale(40%);
}

/* 暗色模式下角标颜色微调 */
.io-black-mode .dead-badge {
    background: #ff6b81;
}

/* ================================================
   二、数据评估模块样式（美化版自带，保留备份）
   说明：数据评估美化样式随函数输出，无需在此重复
   ================================================ */

/* ================================================
   三、数据统计 + 数据评估 合并 Tab 卡片
   ================================================ */
.io-stat-tabs {
    overflow: hidden;
    padding: 0;
    margin-top: 20px;
}

/* Tab 导航条 */
.stat-tabs-nav {
    display: flex;
    gap: 4px;
    padding: 14px 20px 0;
    border-bottom: 1px solid var(--border-color, #eef0f4);
    background: linear-gradient(180deg, var(--bg-color, #fafbfc) 0%, transparent 60%);
}

.stat-tab {
    border: none;
    background: transparent;
    padding: 9px 18px;
    font-size: 14px;
    color: var(--text-muted, #6b7280);
    cursor: pointer;
    border-radius: 10px 10px 0 0;
    display: flex;
    align-items: center;
    gap: 7px;
    font-weight: 500;
    transition: all 0.2s;
    position: relative;
}

.stat-tab.active {
    color: var(--theme-color, #409eff);
    font-weight: 600;
}

.stat-tab.active::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: var(--theme-color, #409eff);
    border-radius: 2px;
}

.stat-tab:not(.active):hover {
    color: var(--text-color, #374151);
}

/* 面板 */
.stat-tab-pane {
    display: none;
}

.stat-tab-pane.active {
    display: block;
}

/* 暗色模式适配 */
.io-black-mode .stat-tabs-nav {
    background: linear-gradient(180deg, #161d2c 0%, transparent 60%);
}

.io-black-mode .stat-tab.active {
    color: #7aa7ff;
}

.io-black-mode .stat-tab.active::after {
    background: #7aa7ff;
}

/* ================================================
   四、数据统计图表美化（chart-beautify.js 注入的信息条）
   ================================================ */
.chart-info-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    padding: 14px 20px 4px;
}

.chart-info-total {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.chart-info-total b {
    font-size: 22px;
    font-weight: 700;
    color: var(--theme-color, #409eff);
    line-height: 1;
}

.chart-info-total span {
    font-size: 12px;
    color: var(--text-muted, #9ca3af);
}

.chart-info-legend {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 12px;
    color: var(--text-muted, #6b7280);
}

.chart-info-legend .ci-legend {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.chart-info-legend .ci-legend b {
    color: var(--text-color, #374151);
    font-weight: 600;
}

.ci-dot {
    width: 10px;
    height: 10px;
    border-radius: 3px;
    display: inline-block;
}

.ci-dot.pc {
    background: linear-gradient(180deg, #4f8ff7, #8ab6ff);
}

.ci-dot.mobile {
    background: linear-gradient(180deg, #22c58e, #6fe3b8);
}

.ci-line {
    width: 18px;
    height: 3px;
    border-radius: 2px;
    background: linear-gradient(90deg, #ff9f43, #ffc078);
    display: inline-block;
}

/* 暗色适配 */
.io-black-mode .chart-info-total b {
    color: #7aa7ff;
}

.io-black-mode .chart-info-legend .ci-legend b {
    color: #e5e7eb;
}

/* ================================================
   五、评论区界面美化
   ================================================ */

/* ---- 5.1 标题行：图标圆角块 + 数量徽章 ---- */
#comments .comments-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-color, #1f2937);
}
#comments .comments-title > i.iconfont {
    width: 30px;
    height: 30px;
    line-height: 1;
    border-radius: 9px;
    background: linear-gradient(135deg, #4f8ff7, #7c5cf0);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    box-shadow: 0 3px 8px rgba(79, 143, 247, .3);
    flex-shrink: 0;
}
#comments .comments-title .noticom {
    display: inline-flex;
    align-items: center;
    line-height: 1;
}
#comments .comments-title .noticom a {
    color: var(--text-color, #1f2937);
    line-height: 1;
}

/* ---- 5.2 评论表单 ---- */
#respond {
    background: linear-gradient(180deg, var(--bg-color, #f8fafc) 0%, transparent 70%);
    border: 1px solid var(--border-color, #eef0f4);
    border-radius: 14px;
    padding: 16px 18px 12px;
    margin-bottom: 18px;
    transition: border-color .3s, box-shadow .3s;
}
#respond:focus-within {
    border-color: rgba(79, 143, 247, .45);
    box-shadow: 0 0 0 4px rgba(79, 143, 247, .08);
}
#respond .avatar-box {
    gap: 10px;
    margin-bottom: 12px;
}
#respond .avatar-img img {
    border: 2px solid var(--card-bg, #fff);
    box-shadow: 0 0 0 2px var(--border-color, #e5ebf5);
}
#respond .loginby {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-color, #374151);
}
#respond textarea.form-control {
    border-radius: 10px;
    border-color: var(--border-color, #e5e7eb);
    background: var(--card-bg, #fff);
    transition: border-color .2s;
}
#respond textarea.form-control:focus {
    border-color: rgba(79, 143, 247, .6);
    box-shadow: none;
}
#respond #comment-author-info input.form-control {
    border-radius: 10px;
    border-color: var(--border-color, #e5e7eb);
    background: var(--card-bg, #fff);
}
#respond #comment-author-info input.form-control:focus {
    border-color: rgba(79, 143, 247, .6);
    box-shadow: none;
}
#respond .com-footer #submit {
    border: none;
    border-radius: 20px;
    padding: 9px 26px;
    font-weight: 600;
    background: linear-gradient(135deg, #4f8ff7, #6ea5ff) !important;
    box-shadow: 0 3px 10px rgba(79, 143, 247, .3);
    transition: transform .2s, box-shadow .2s;
}
#respond .com-footer #submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 14px rgba(79, 143, 247, .4);
}
#respond .com-footer #cancel-comment-reply-link {
    border-radius: 20px;
}

/* ---- 5.3 评论条目 ---- */
.comment-list .comment {
    padding-top: 16px;
    margin-top: 16px;
    border-top: 1px solid var(--border-color, #f1f3f7);
}
.comment-list .comment:first-child {
    padding-top: 0;
    margin-top: 0;
    border-top: none;
}
.comment-list .comment_body {
    gap: 12px;
}
.comment-list .avatar-img.profile {
    flex-shrink: 0;
}
.comment-list .avatar-img.profile img {
    border: 2px solid var(--card-bg, #fff);
    box-shadow: 0 0 0 2px var(--border-color, #e5ebf5);
}
/* 站长金色光圈（is-author 在作者名区域，选择其所在评论条目的头像） */
.comment-list .comment:has(.is-author) .avatar-img.profile img {
    box-shadow: 0 0 0 2px #f59e0b;
}

/* 作者行 */
.comment-list .comment-author {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-color, #374151);
}
/* 站长徽章（金色圆标） */
.comment-list .comment-author .is-author {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    color: #fff;
    font-size: 10px;
    margin-left: 6px;
    box-shadow: 0 2px 6px rgba(245, 158, 11, .35);
}
/* 等级徽章 */
.comment-list .comment-author .rank {
    display: inline-flex;
    align-items: center;
    font-size: 10px;
    font-weight: 600;
    color: #4f8ff7;
    background: rgba(79, 143, 247, .1);
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 6px;
}

/* 内容气泡 */
.comment-list .comment-content {
    background: var(--muted-bg-color, #f5f7fa);
    border-radius: 12px 12px 12px 4px;
    padding: 11px 14px;
    font-size: 13px;
    line-height: 1.8;
    color: var(--text-color, #4b5563);
    word-break: break-word;
}
.comment-list .comment-content a {
    color: var(--theme-color, #4f8ff7);
}

/* meta 行：时间 / IP / 回复 */
.comment-list .comment-meta .info,
.comment-list .comment-meta .info-location {
    font-size: 11px;
    color: var(--text-muted, #b6bfcc);
}
.comment-list .comment-meta .info-at {
    font-size: 10px;
    font-weight: 600;
    background: rgba(79, 143, 247, .1);
    color: var(--theme-color, #4f8ff7);
    border: none;
    border-radius: 10px;
}
.comment-list a.comment-reply-link {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    font-size: 12px;
    color: var(--text-muted, #9ca3af);
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 14px;
    transition: all .2s;
}
.comment-list a.comment-reply-link:hover {
    color: var(--theme-color, #4f8ff7);
    border-color: rgba(79, 143, 247, .4);
    background: rgba(79, 143, 247, .05);
    text-decoration: none;
}

/* ---- 5.4 楼中楼（子评论） ---- */
.comment-list > .comment > .children {
    margin-left: 56px;
    padding: 12px 14px;
    background: var(--bg-color, #f8fafc);
    border-radius: 12px;
}
.comment-list .children .comment {
    padding-top: 12px;
    margin-top: 12px;
}
.comment-list .children .avatar-img.profile img {
    width: 34px;
    height: 34px;
}
.comment-list .children .comment-content {
    background: var(--card-bg, #fff);
    box-shadow: 0 1px 3px rgba(15, 23, 42, .04);
}

/* ---- 5.5 空状态 ---- */
#comments .nothing-box {
    padding: 24px 0 8px;
}
#comments .nothing-box .nothing-msg {
    font-size: 13px;
    color: var(--text-muted, #b6bfcc);
}

/* ---- 5.6 暗色模式适配 ---- */
.io-black-mode #respond {
    background: linear-gradient(180deg, #161d2c 0%, transparent 70%);
    border-color: #2a3346;
}
.io-black-mode #respond textarea.form-control,
.io-black-mode #respond #comment-author-info input.form-control {
    background: #1b2333;
    border-color: #2a3346;
    color: #e5e7eb;
}
.io-black-mode .comment-list .comment {
    border-top-color: #222b3d;
}
.io-black-mode .comment-list .comment-content {
    background: #161d2c;
    color: #9ca3af;
}
.io-black-mode .comment-list .comment-author {
    color: #e5e7eb;
}
.io-black-mode .comment-list .avatar-img.profile img,
.io-black-mode #respond .avatar-img img {
    border-color: #1b2333;
    box-shadow: 0 0 0 2px #2a3346;
}
.io-black-mode .comment-list .comment:has(.is-author) .avatar-img.profile img {
    box-shadow: 0 0 0 2px #f59e0b;
}
.io-black-mode .comment-list > .comment > .children {
    background: #161d2c;
}
.io-black-mode .comment-list .children .comment-content {
    background: #1b2333;
}
.io-black-mode .comment-list .comment-meta .info,
.io-black-mode .comment-list .comment-meta .info-location {
    color: #6b7280;
}
.io-black-mode .comment-list a.comment-reply-link {
    border-color: #2a3346;
    color: #8b93a7;
}
.io-black-mode .comment-list a.comment-reply-link:hover {
    color: #7aa7ff;
    border-color: rgba(122, 167, 255, .4);
    background: rgba(122, 167, 255, .06);
}

/* ================================================
   六、顶部快捷导航菜单（传文件/工具/邮箱/网盘/翻译/地图/识图）
   ================================================ */
.topgj_r {
    margin-right: 15px;
    display: flex;
    align-items: center;
    height: 100%;
}
.topgj_r .menu-item {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}
.topgj_r .menu-item a {
    padding: 8px 6px;
    color: #282a2d;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    transition: all 0.3s ease;
    text-decoration: none;
}
.topgj_r .menu-item a .menu-ico {
    font-size: 14px;
    opacity: .85;
    display: inline-flex;
    align-items: center;
}
.topgj_r .menu-item a .menu-arrow {
    font-size: 10px;
    opacity: .45;
    display: inline-flex;
    align-items: center;
    transition: transform .25s ease, opacity .25s ease;
    margin-left: 1px;
}
.topgj_r .menu-item:hover a .menu-arrow {
    transform: rotate(180deg);
    opacity: .9;
}
.topgj_r .menu-item:hover a {
    color: #4f8ff7;
}
.io-black-mode .topgj_r .menu-item a {
    color: #c6c9cf;
}
.io-black-mode .topgj_r .menu-item:hover a {
    color: #7aa7ff;
}
.topgj_r .sub-menu-z {
    position: absolute;
    top: 100%;
    right: 50%;
    transform: translateX(50%);
    min-width: 90px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    transform-origin: top center;
    transition: all 0.25s cubic-bezier(0.3, 0, 0.3, 1);
    z-index: 1000;
    padding: 8px 0;
    margin: 0;
    list-style-type: none;
}
.io-black-mode .topgj_r .sub-menu-z {
    background: #2c2e2f;
}
.topgj_r .menu-item:hover .sub-menu-z {
    opacity: 1;
    visibility: visible;
    transform: translateX(50%) translateY(0);
}
.sub-menu-z .menu-item-z {
    list-style: none;
    margin: 0;
    padding: 0;
    white-space: nowrap;
    text-align: center;
}
.sub-menu-z .menu-item-z a {
    padding: 8px 16px;
    color: #666 !important;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    text-decoration: none;
    width: 100%;
}
.sub-menu-z .menu-item-z span {
    display: inline-block;
    text-align: center;
    width: 100%;
}
.io-black-mode .sub-menu-z .menu-item-z a {
    color: #c6c9cf !important;
}
.sub-menu-z .menu-item-z a:hover {
    background: rgba(0, 0, 0, 0.04);
    color: #333 !important;
}
.io-black-mode .sub-menu-z .menu-item-z a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff !important;
}
@media (max-width: 992px) {
    .topgj_r {
        display: none;
    }
}

/* ================================================
   七、头部最近访问下拉面板
   ================================================ */
.nav-recent {
    position: relative;
    display: flex;
    align-items: center;
}
.nav-recent > a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    color: #4b5563;
    font-size: 17px;
    cursor: pointer;
    transition: all .2s;
    text-decoration: none;
}
.nav-recent > a:hover {
    background: #f3f4f6;
    color: #4f8ff7;
}
.io-black-mode .nav-recent > a {
    color: #9ca3af;
}
.io-black-mode .nav-recent > a:hover {
    background: #2a2f3a;
    color: #7aa7ff;
}
.nav-recent .recent-badge {
    position: absolute;
    top: 0;
    right: 0;
    min-width: 16px;
    height: 16px;
    background: #f1404b;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    line-height: 1;
    border: 2px solid #fff;
}
.io-black-mode .nav-recent .recent-badge {
    border-color: #22262f;
}
/* 下拉面板 */
.nav-recent .recent-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    width: 300px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, .14);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: all .2s cubic-bezier(.3, 0, .3, 1);
    z-index: 300;
    overflow: hidden;
}
.nav-recent:hover .recent-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.io-black-mode .nav-recent .recent-dropdown {
    background: #2a2f3a;
    box-shadow: 0 8px 32px rgba(0, 0, 0, .4);
}
.nav-recent .recent-header {
    padding: 12px 16px;
    border-bottom: 1px solid #f1f3f7;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.io-black-mode .nav-recent .recent-header {
    border-bottom-color: #333a4a;
}
.nav-recent .recent-title {
    font-size: 13px;
    font-weight: 600;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 6px;
}
.nav-recent .recent-title i {
    color: #4f8ff7;
    font-size: 14px;
}
.io-black-mode .nav-recent .recent-title {
    color: #e5e7eb;
}
.nav-recent .recent-clear {
    font-size: 12px;
    color: #9ca3af;
    cursor: pointer;
    transition: color .2s;
}
.nav-recent .recent-clear:hover {
    color: #f1404b;
}
/* 标题栏右侧容器（清空+本地存储提示） */
.nav-recent .recent-header-right {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1px;
}
.nav-recent .recent-storage-tip {
    font-size: 10px;
    color: #c0c4cc;
    line-height: 1;
    margin-top: 3px;
    white-space: nowrap;
}
.io-black-mode .nav-recent .recent-storage-tip {
    color: #4a5160;
}
/* 分类筛选标签 */
.nav-recent .recent-filters {
    display: flex;
    gap: 6px;
    padding: 10px 16px;
    overflow-x: auto;
    scrollbar-width: none;
}
.nav-recent .recent-filters::-webkit-scrollbar { display: none; }
.nav-recent .filter-tag {
    flex-shrink: 0;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    color: #6b7280;
    background: #f3f4f6;
    cursor: pointer;
    transition: all .2s;
    border: 1px solid transparent;
    white-space: nowrap;
}
.nav-recent .filter-tag:hover {
    background: #e5e7eb;
}
.nav-recent .filter-tag.active {
    background: #fff;
    color: #f1404b;
    border-color: #f1404b;
    font-weight: 500;
}
.io-black-mode .nav-recent .filter-tag {
    background: #2a2f3a;
    color: #9ca3af;
}
.io-black-mode .nav-recent .filter-tag:hover {
    background: #333a47;
}
.io-black-mode .nav-recent .filter-tag.active {
    background: #262c3a;
}
/* 列表项分类标签 */
.nav-recent .recent-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 2px;
}
.nav-recent .recent-type-tag {
    font-size: 10px;
    color: #9ca3af;
    background: #f3f4f6;
    padding: 1px 6px;
    border-radius: 4px;
    flex-shrink: 0;
}
.io-black-mode .nav-recent .recent-type-tag {
    background: #2a2f3a;
    color: #6b7280;
}
/* 单独删除按钮 */
.nav-recent .recent-delete {
    width: 24px;
    height: 24px;
    border: none;
    background: transparent;
    color: #d1d5db;
    font-size: 16px;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s;
    flex-shrink: 0;
    opacity: 0;
    line-height: 1;
}
.nav-recent .recent-item:hover .recent-delete {
    opacity: 1;
}
.nav-recent .recent-delete:hover {
    background: #fee2e2;
    color: #ef4444;
}
.io-black-mode .nav-recent .recent-delete {
    color: #4a5160;
}
.io-black-mode .nav-recent .recent-delete:hover {
    background: #3a2a2a;
    color: #ef4444;
}
/* 删除动画 */
.nav-recent .recent-item.removing {
    opacity: 0;
    transform: translateX(20px);
    height: 0;
    padding-top: 0;
    padding-bottom: 0;
    overflow: hidden;
}
/* 列表项改为可点击 div */
.nav-recent .recent-item {
    cursor: pointer;
}
/* 底部"查看更多" */
.nav-recent .recent-view-more {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    font-size: 12px;
    color: #9ca3af;
    cursor: pointer;
    transition: all .2s;
    border-top: 1px solid #f5f6f8;
    gap: 4px;
}
.nav-recent .recent-view-more:hover {
    color: #4f8ff7;
    background: #f8f9fb;
}
.nav-recent .recent-view-more i {
    font-size: 14px;
    font-style: normal;
    transition: transform .2s;
    font-weight: 700;
}
.nav-recent .recent-view-more:hover i {
    transform: translateX(2px);
}
.io-black-mode .nav-recent .recent-view-more {
    border-top-color: #2d3340;
    color: #6b7280;
}
.io-black-mode .nav-recent .recent-view-more:hover {
    color: #4f8ff7;
    background: #262c3a;
}
.nav-recent .recent-list {
    max-height: 340px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 4px 0;
    position: relative;
    scrollbar-width: thin;
    scrollbar-color: #e53935 #f5f5f5;
}
.nav-recent .recent-list::-webkit-scrollbar {
    width: 8px;
}
.nav-recent .recent-list::-webkit-scrollbar-track {
    background: #f8f8f8;
    border-radius: 4px;
    margin: 4px 0;
}
.nav-recent .recent-list::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #ef5350, #e53935);
    border-radius: 4px;
    border: 2px solid #f8f8f8;
    min-height: 32px;
}
.nav-recent .recent-list::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #e53935, #c62828);
}
.io-black-mode .nav-recent .recent-list {
    scrollbar-color: #e53935 #2a2f3a;
}
.io-black-mode .nav-recent .recent-list::-webkit-scrollbar-track {
    background: #2a2f3a;
}
.io-black-mode .nav-recent .recent-list::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #ef5350, #e53935);
    border-color: #2a2f3a;
}

/* 底部"还有更多"渐变箭头提示 */
.nav-recent .recent-more-hint {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 44px;
    background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.92) 45%, #fff 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 8px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}
.nav-recent .recent-more-hint.visible {
    opacity: 1;
}
.nav-recent .recent-more-hint .arrow-down {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 10px rgba(229,57,53,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e53935;
    font-size: 12px;
    animation: recent-arrow-bounce 1.5s ease-in-out infinite;
}
.io-black-mode .nav-recent .recent-more-hint {
    background: linear-gradient(180deg, rgba(33,37,46,0) 0%, rgba(33,37,46,0.92) 45%, #21252e 100%);
}
.io-black-mode .nav-recent .recent-more-hint .arrow-down {
    background: #2a2f3a;
    box-shadow: 0 2px 10px rgba(229,57,53,0.4);
}
@keyframes recent-arrow-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(3px); }
}
.nav-recent .recent-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    cursor: pointer;
    transition: background .15s;
    text-decoration: none;
}
.nav-recent .recent-item:hover {
    background: #f8f9fb;
}
.io-black-mode .nav-recent .recent-item:hover {
    background: #333a4a;
}
.nav-recent .recent-favicon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    flex-shrink: 0;
    overflow: hidden;
}
.io-black-mode .nav-recent .recent-favicon {
    background: #333a4a;
    color: #9ca3af;
}
.nav-recent .recent-favicon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.nav-recent .recent-info {
    flex: 1;
    min-width: 0;
}
.nav-recent .recent-name {
    font-size: 13px;
    color: #1f2937;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
}
.io-black-mode .nav-recent .recent-name {
    color: #e5e7eb;
}
.nav-recent .recent-time {
    font-size: 11px;
    color: #9ca3af;
    margin-top: 2px;
}
.nav-recent .recent-empty {
    padding: 32px 16px;
    text-align: center;
    color: #9ca3af;
    font-size: 13px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.nav-recent .recent-empty i {
    font-size: 32px;
    color: #d1d5db;
}
.io-black-mode .nav-recent .recent-empty i {
    color: #3a4152;
}
.nav-recent .recent-loading {
    padding: 24px 16px;
    text-align: center;
    color: #9ca3af;
    font-size: 13px;
}
/* 移动端隐藏最近访问 */
@media (max-width: 992px) {
    .nav-recent {
        display: none;
    }
}

/* ================================================
   替换"暂无内容"默认插图
   ================================================ */
.nothing-svg {
    content: url('assets/images/nothing.svg');
    max-width: 280px;
    margin: 0 auto;
}

/* ================================================
   PWA 安装提示框
   ================================================ */
.pwa-install-bar {
    position: fixed;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%) translateY(140%);
    width: calc(100% - 32px);
    max-width: 560px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    padding: 14px 14px 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 9999;
    transition: transform .4s cubic-bezier(.22,1,.36,1);
}
.pwa-install-bar.show {
    transform: translateX(-50%) translateY(0);
}
.pwa-install-bar .pwa-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}
.pwa-install-bar .pwa-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.pwa-install-bar .pwa-text {
    flex: 1;
    min-width: 0;
}
.pwa-install-bar .pwa-title {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 3px;
}
.pwa-install-bar .pwa-desc {
    font-size: 12px;
    color: #9ca3af;
    line-height: 1.4;
}
.pwa-install-bar .pwa-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}
.pwa-install-bar .pwa-install-btn {
    padding: 9px 20px;
    background: #f1404b;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
    white-space: nowrap;
}
.pwa-install-bar .pwa-install-btn:hover {
    background: #d6303a;
}
.pwa-install-bar .pwa-install-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
.pwa-install-bar .pwa-close {
    width: 30px;
    height: 30px;
    border: none;
    background: transparent;
    color: #c0c4cc;
    font-size: 20px;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s;
    line-height: 1;
}
.pwa-install-bar .pwa-close:hover {
    background: #f5f6f8;
    color: #909399;
}
/* 暗色模式 */
.io-black-mode .pwa-install-bar {
    background: #262c3a;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}
.io-black-mode .pwa-install-bar .pwa-title {
    color: #e5e7eb;
}
.io-black-mode .pwa-install-bar .pwa-desc {
    color: #6b7280;
}
.io-black-mode .pwa-install-bar .pwa-close {
    color: #4a5160;
}
.io-black-mode .pwa-install-bar .pwa-close:hover {
    background: #333a4a;
    color: #8a90a0;
}
/* 移动端适配 */
@media (max-width: 480px) {
    .pwa-install-bar {
        display: none !important;
    }
}
/* 移动端（≤768px）完全隐藏 */
@media (max-width: 768px) {
    .pwa-install-bar {
        display: none !important;
    }
}

/* ===== 网址详情页美化（卡片式左右分栏） ===== */
.site-detail-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    overflow: hidden;
    margin-bottom: 24px;
}
.site-detail-body {
    display: flex;
    gap: 28px;
    padding: 28px;
}
/* 左侧信息区 */
.site-detail-info {
    flex: 1;
    min-width: 0;
}
/* 标题行 */
.site-detail-title-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 14px;
}
.site-detail-favicon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: linear-gradient(135deg, #f1404b, #ff6b6b);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(241,64,75,0.25);
    overflow: hidden;
}
.site-detail-favicon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}
.site-detail-title-group {
    flex: 1;
    min-width: 0;
}
.site-detail-title {
    font-size: 22px;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.3;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.site-detail-translate {
    font-size: 11px;
    color: #9ca3af;
    text-decoration: none;
    border: 1px solid #e5e7eb;
    padding: 2px 8px;
    border-radius: 4px;
}
.site-detail-translate:hover {
    color: #f1404b;
    border-color: #f1404b;
}
.site-detail-title .post-edit-link {
    font-size: 12px;
    color: #9ca3af;
    font-weight: 400;
}
.site-detail-fav-wrap {
    flex-shrink: 0;
}
.site-detail-fav-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 5px;
    padding: 6px 14px !important;
    border: 1px solid #fecaca !important;
    background: #fef2f2 !important;
    color: #f1404b !important;
    border-radius: 20px !important;
    font-size: 12px !important;
    cursor: pointer;
    transition: all .2s;
    text-decoration: none;
}
.site-detail-fav-btn:hover {
    background: #f1404b !important;
    color: #fff !important;
    border-color: #f1404b !important;
}
.site-detail-fav-btn .star-count {
    font-weight: 600;
    min-width: 14px;
    text-align: center;
}
/* 元信息行 */
.site-detail-meta {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.site-detail-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #6b7280;
}
.site-detail-meta .meta-item i {
    font-size: 14px;
    color: #9ca3af;
}
.site-detail-meta .meta-item .num {
    font-weight: 600;
    color: #4b5563;
}
/* 描述 */
.site-detail-desc {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.7;
    background: #f9fafb;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 14px;
    border-left: 3px solid #f1404b;
}
/* 收录信息+权重 */
.site-detail-extra {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}
.site-detail-extra .extra-item {
    font-size: 12px;
    color: #9ca3af;
    display: flex;
    align-items: center;
    gap: 5px;
}
.site-detail-extra .extra-item .label {
    color: #d1d5db;
}
.site-detail-extra .sites-seo-load {
    display: flex;
    gap: 6px;
}
/* 失效提示 */
.site-detail-dead-tip {
    font-size: 12px;
    color: #ef4444;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
}
/* 备用链接（其他站点） */
.site-detail-spare {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.site-detail-spare .spare-label {
    color: #9ca3af;
    flex-shrink: 0;
}
.site-detail-spare .spare-link {
    color: #4f8ff7;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 8px;
    background: #eff6ff;
    border-radius: 4px;
    transition: all .2s;
}
.site-detail-spare .spare-link:hover {
    background: #dbeafe;
}
.io-black-mode .site-detail-spare .spare-link {
    background: rgba(79,143,247,0.1);
    color: #60a5fa;
}
.io-black-mode .site-detail-spare .spare-link:hover {
    background: rgba(79,143,247,0.2);
}
/* 按钮组 */
.site-detail-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
    align-items: center;
}
.site-detail-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 11px 28px;
    background: linear-gradient(135deg, #f1404b, #e53935);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
    box-shadow: 0 4px 12px rgba(241,64,75,0.3);
    text-decoration: none;
}
.site-detail-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(241,64,75,0.4);
    color: #fff;
}
.site-detail-btn-primary.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}
.site-detail-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 11px 20px;
    background: #fff;
    color: #4b5563;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    cursor: pointer;
    transition: all .2s;
    text-decoration: none;
}
.site-detail-btn-secondary:hover {
    border-color: #f1404b;
    color: #f1404b;
}
.site-detail-btn-report {
    display: inline-flex !important;
    align-items: center;
    gap: 5px;
    padding: 11px 16px !important;
    background: #fff !important;
    color: #ef4444 !important;
    border: 1px solid #fecaca !important;
    border-radius: 10px !important;
    font-size: 13px !important;
    cursor: pointer;
    transition: all .2s;
    text-decoration: none;
    box-shadow: none !important;
}
.site-detail-btn-report:hover {
    background: #fef2f2 !important;
}
/* 标题行右侧操作区（点赞+收藏） */
.site-detail-title-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
/* 标签 */
.site-detail-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.site-detail-tags .badge {
    padding: 5px 14px !important;
    border-radius: 20px !important;
    font-size: 12px !important;
    cursor: pointer;
    transition: all .2s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
}
.site-detail-tags .vc-l-theme {
    background: #fef2f2 !important;
    color: #f1404b !important;
    border: 1px solid #fecaca !important;
}
.site-detail-tags .vc-l-theme:hover {
    background: #f1404b !important;
    color: #fff !important;
}
.site-detail-tags .badge:not(.vc-l-theme) {
    background: #f3f4f6;
    color: #6b7280;
    border: 1px solid transparent;
}
.site-detail-tags .badge:not(.vc-l-theme):hover {
    background: #e5e7eb;
    color: #374151;
}
/* 右侧预览图 */
.site-detail-preview {
    width: 340px;
    flex-shrink: 0;
}
.preview-frame {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.preview-bar {
    height: 32px;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    padding: 0 10px;
    gap: 5px;
    border-bottom: 1px solid #e5e7eb;
}
.preview-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.preview-dot.r { background: #ef4444; }
.preview-dot.y { background: #f59e0b; }
.preview-dot.g { background: #10b981; }
.preview-url {
    flex: 1;
    height: 20px;
    background: #fff;
    border-radius: 4px;
    margin-left: 8px;
    font-size: 10px;
    color: #9ca3af;
    display: flex;
    align-items: center;
    padding: 0 8px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.preview-img {
    width: 100%;
    aspect-ratio: 4/3;
    background: #f9fafb;
    position: relative;
    overflow: hidden;
}
.preview-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.preview-open-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #f1404b, #e53935);
    color: #fff;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
    text-decoration: none;
}
.preview-open-btn:hover {
    opacity: 0.9;
    color: #fff;
}
/* 预览图下方点赞收藏按钮区 */
.preview-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 12px;
}
.preview-actions .site-detail-fav-btn {
    padding: 7px 18px !important;
    font-size: 13px !important;
}
/* 收藏按钮星星取消：先隐藏所有 fav-btn 的图标，再恢复点赞按钮的图标 */
.site-detail-fav-btn i {
    display: none;
}
.site-detail-fav-btn.io-posts-like i {
    display: inline-block;
}
/* 暗色模式适配 */
.io-black-mode .site-detail-card {
    background: #1f2430;
    box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.io-black-mode .site-detail-title {
    color: #e5e7eb;
}
.io-black-mode .site-detail-desc {
    background: #262c3a;
    color: #9ca3af;
}
.io-black-mode .site-detail-meta .meta-item {
    color: #9ca3af;
}
.io-black-mode .site-detail-meta .meta-item .num {
    color: #d1d5db;
}
.io-black-mode .site-detail-btn-secondary {
    background: #262c3a;
    color: #d1d5db;
    border-color: #374151;
}
.io-black-mode .site-detail-btn-report {
    background: #262c3a !important;
}
.io-black-mode .site-detail-tags .badge:not(.vc-l-theme) {
    background: #2a2f3a;
    color: #9ca3af;
}
.io-black-mode .preview-frame {
    border-color: #374151;
}
.io-black-mode .preview-bar {
    background: #2a2f3a;
    border-color: #374151;
}
.io-black-mode .preview-url {
    background: #1f2430;
}
.io-black-mode .preview-img {
    background: #1a1f2a;
}
.io-black-mode .site-detail-extra .extra-item .label {
    color: #4a5160;
}
/* 移动端适配 */
@media (max-width: 768px) {
    .site-detail-body {
        flex-direction: column;
        padding: 20px;
    }
    .site-detail-preview {
        width: 100%;
    }
    .site-detail-title {
        font-size: 18px;
    }
    .site-detail-favicon {
        width: 44px;
        height: 44px;
        font-size: 20px;
    }
    .site-detail-btn-primary {
        padding: 10px 20px;
    }
    .site-detail-meta {
        gap: 12px;
    }
}

/* ===== 公告列表小工具（适配 OneNav 主题结构） ===== */
/* 标题：红色竖条装饰 */
.widget_announcements .widget-header h3 {
    display: flex;
    align-items: center;
    gap: 8px;
}
.widget_announcements .widget-header h3::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 16px;
    background: #f1404b;
    border-radius: 2px;
    flex-shrink: 0;
}
/* 内容区域 padding */
.widget_announcements .announcement-list,
.widget_announcements .announcement-more,
.widget_announcements .announcement-empty {
    padding-left: 20px;
    padding-right: 20px;
}
.widget_announcements .announcement-more {
    padding-bottom: 20px;
}
/* 列表 */
.widget_announcements .announcement-list {
    list-style: none;
    margin: 0;
    padding-top: 4px;
}
.widget_announcements .announcement-list li {
    padding: 10px 0;
    border-bottom: 1px dashed #e5e7eb !important;
    transition: all .2s;
}
.widget_announcements .announcement-list li:last-child {
    border-bottom: none !important;
}
.widget_announcements .announcement-list li:hover {
    background: #fafafa;
    padding-left: 8px;
    padding-right: 8px;
    margin-left: -8px;
    margin-right: -8px;
    border-radius: 6px;
}
.widget_announcements .announcement-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    text-decoration: none;
    color: #4b5563;
    font-size: 14px;
    line-height: 1.5;
}
.widget_announcements .announcement-list a:hover {
    color: #f1404b;
}
.widget_announcements .ann-title {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.widget_announcements .ann-date {
    flex-shrink: 0;
    font-size: 12px;
    color: #9ca3af;
}
.widget_announcements .announcement-list li:hover .ann-date {
    color: #f1404b;
}
/* 更多链接 */
.widget_announcements .announcement-more {
    display: block;
    text-align: center;
    margin-top: 0;
    padding-top: 12px;
    border-top: 1px solid #e5e7eb !important;
    font-size: 13px;
    color: #9ca3af;
    text-decoration: none;
    transition: color .2s;
}
.widget_announcements .announcement-more:hover {
    color: #f1404b;
}
/* 无公告 */
.widget_announcements .announcement-empty {
    text-align: center;
    padding: 24px 20px;
    color: #c0c4cc;
    font-size: 13px;
}
/* 暗色模式 */
.io-black-mode .widget_announcements .announcement-list li {
    border-bottom-color: #374151;
}
.io-black-mode .widget_announcements .announcement-list li:hover {
    background: rgba(255,255,255,0.03);
}
.io-black-mode .widget_announcements .announcement-list a {
    color: #d1d5db;
}
.io-black-mode .widget_announcements .ann-date {
    color: #6b7280;
}
.io-black-mode .widget_announcements .announcement-more {
    border-top-color: #374151;
    color: #6b7280;
}
