html { scroll-behavior: smooth; }
/*
Theme Name: nab Child
Template:nab
Description: 我的子主题
Version: 1.0
*/
/* 下面写你自定义的CSS */

/* ============================== 网站特色内容区块样式 ============================== */
/* 整体内容外层容器 */
.child-site-features {
    margin: 20px 0 !important;
    padding: 0 !important;
}

/* 单个内容板块容器 - 使用主题变量 */
.child-feature-section {
    margin-bottom: 10px !important;
    padding: 15px !important;
    border-radius: 8px !important;
    background: var(--tb--bdbg) !important;
    border: 1px solid var(--tb--line) !important;
}

/* 板块标题样式 */
.child-feature-title {
    margin: 0 0 12px 0 !important;
    padding: 0 0 0 14px !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    color: var(--tb--base) !important;
    position: relative !important;
    display: flex !important;
    align-items: center !important;
}

.child-feature-title::before {
    content: '' !important;
    position: absolute !important;
    left: 0 !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 4px !important;
    height: 18px !important;
    background: var(--tb--main) !important;
    border-radius: 2px !important;
}

/* 统一网格布局 */
.child-unified-grid {
    display: block !important;
}

.child-unified-grid-2col .child-grid-item {
    break-inside: avoid;
}

/* 网格内单个项目样式 */
.child-grid-item {
    padding: 6px 0 0px 20px !important;
    border-radius: 0 !important;
    transition: none !important;
    font-size: 16px !important;
    line-height: 1.2 !important;
    background: transparent !important;
    border: none !important;
    margin-bottom: 0 !important;
    position: relative !important;
    color: var(--tb--content) !important;
}

.child-grid-item::before {
    content: '' !important;
    position: absolute !important;
    left: 0 !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 5px !important;
    height: 5px !important;
    background: var(--tb--main) !important;
    border-radius: 50% !important;
}


/* 目标用户区块样式 */
/*.child-target-users {*/
/*    padding: 8px 0 !important;*/
/*    border-radius: 8px !important;*/
/*    font-size: 16px !important;*/
/*    line-height: 1.4 !important;*/
/*}*/

/* 目标用户区块内加粗文本样式 - 使用主题主色 */
/*.child-target-users strong {*/
/*    color: var(--tb--main, #007bff) !important;*/
/*}*/

/* 响应式适配：屏幕宽度小于等于768px时生效（手机/平板） */
@media (max-width: 768px) {
    .child-unified-grid {
        grid-template-columns: 1fr; /* 网格改为单列展示 */
    }
}



/* ============================== 二级分类分组标题样式 ============================== */
/* 日间模式（默认） */
.child-category-title {
    font-size: 18px !important;
    font-weight: bold !important;
    color: #333 !important;
    margin: 24px 0 16px !important;
    padding-left: 12px !important;
    border-left: 4px solid #00a8ff !important;
    background: transparent !important;
}
.child-category-title a {
    color: inherit !important;
    text-decoration: none !important;
}
.child-category-title a:hover {
    color: #00a8ff !important;
}

/* 夜间模式（暗色模式） */
.darking .child-category-title {
    color: #fff !important;
    border-left-color: #00a8ff !important;
}
.darking .child-category-title a:hover {
    color: #00a8ff !important;
}

/* ============================== 导航菜单链接截断样式 ============================== */
.tb-nav li a,
.sub-menu li a {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

/* ============================== 二级分类标签换行样式 ============================== */
.sub-menu-tabs .-inner {
    flex-wrap: wrap !important;
    gap: 8px !important;
    white-space: normal !important;
    overflow-x: visible !important;
}
/* 一级分类页标题竖杠 */
.widget.tb-widget-sites .tb-card-title h3 {
    padding-left: 12px !important;
    border-left: 4px solid #00a8ff !important;
}
.darking .widget.tb-widget-sites .tb-card-title h3 {
    border-left-color: #00a8ff !important;
}


/* ===== 更多链接美化 ===== */
.more-bottom {
    margin-top: 20px !important;
    padding-bottom: 12px !important;
    border-bottom: 1px solid var(--tb--line) !important;
}
.more-bottom .-more,
.widget.tb-widget-sites .tb-card-title .-more {
    font-size: 14px !important;
    font-weight: 500 !important;
    color: var(--tb--main) !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 6px 0 !important;
    transition: all 0.2s !important;
}
.more-bottom .-more:hover,
.widget.tb-widget-sites .tb-card-title .-more:hover {
    opacity: 0.8 !important;
    gap: 10px !important;
}
.more-bottom .-more .tbfa,
.widget.tb-widget-sites .tb-card-title .-more .tbfa {
    font-size: 14px !important;
    transition: transform 0.2s !important;
}
.more-bottom .-more:hover .tbfa,
.widget.tb-widget-sites .tb-card-title .-more:hover .tbfa {
    transform: translateX(3px) !important;
}




/* 更多链接在post-list中 */
.post-list .more-item {
    width: 100% !important;
    padding: 0 !important;
    margin-top: 12px !important;
    padding-top: 12px !important;
    border-top: 1px solid var(--tb--line) !important;
    list-style: none !important;
}
.post-list .more-item .-more {
    display: block !important;
    color: var(--tb--main) !important;
    font-size: 14px !important;
    padding: 4px 0 !important;
}

/* 更多链接在widget底部 */
.widget.tb-widget-sites .more-outer {
    padding-top: 12px !important;
    margin-top: 12px !important;
    border-top: 1px solid var(--tb--line) !important;
    clear: both !important;
}
.widget.tb-widget-sites .more-outer .-more {
    display: block !important;
    color: var(--tb--main) !important;
    font-size: 14px !important;
    padding: 4px 0 !important;
    transition: opacity 0.2s !important;
}
.widget.tb-widget-sites .more-outer .-more:hover {
    opacity: 0.8 !important;
}

/* 分类页widget之间分割线 */
.tb-main > .widget.tb-widget-sites {
    border-top: 1px solid var(--tb--line) !important;
    padding-top: 20px !important;
    margin-top: 20px !important;
}
.tb-main > .widget.tb-widget-sites:first-child {
    border-top: none !important;
    padding-top: 0 !important;
    margin-top: 0 !important;
}

.widget.tb-widget-sites .-tab-more {
    margin-left: 16px !important;
    flex-shrink: 0 !important;
}

/* 搜索框搜索引擎选中状态突出显示 */
.tb-s-cur .active {
    background: var(--tb--main) !important;
    opacity: 1 !important;
    font-weight: bold !important;
}
.tb-s-cur .active::after {
    border-top-color: var(--tb--main) !important;
}
.tb-s-cur li:hover {
    opacity: 0.85 !important;
}
/* Hide Rank Math breadcrumb auto-injected inside widget listings */
/* Breadcrumb above category content */
.tb-breadcrumb { padding: 0 0 15px 0; font-size: 14px; color: #666; }
.tb-breadcrumb nav p { margin: 0; }
.tb-breadcrumb .separator { margin: 0 8px; }

/* Hide Rank Math auto-injected breadcrumb inside widgets (we add it manually above) */
/* Breadcrumb styling above category content */
.tb-breadcrumb { padding: 0 0 15px 0; font-size: 14px; color: #666; }
.tb-breadcrumb nav p { margin: 0; }
.tb-breadcrumb .separator { margin: 0 8px; }

