/**
 * 工具链最后加载（见 _tool_layout_unify_css.php）：压过 skin 重复稿与内联页里的蓝紫强调，
 * 与比例 3:4 选中 pill 一致（#e4e4e7 / #52525b / #0a0a0a），主 CTA 炭黑实心。
 * 不覆盖红/绿等业务状态条（如失败、成功）。
 */

/* —— 工具子页顶栏：隐藏「灵涵速推合伙人商学院」角标（菜单页公众号/小红书/AI 保留）—— */
html:not([data-h5-skin]) body.detail-page.page-detail-image-tool:not(.page-auth):not(.page-tab-create):not(.page-tab-agent):not(.page-tab-mine):not(.page-tab-template) .nav-brand-mark,
html:not([data-h5-skin]) body.ecom-page.page-ecom-env-image-tool:not(.page-auth):not(.page-tab-create):not(.page-tab-agent):not(.page-tab-mine):not(.page-tab-template) .nav-brand-mark,
html:not([data-h5-skin]) body.linghui-page:not(.page-agent-center):not(.page-tab-create):not(.page-tab-agent):not(.page-tab-mine):not(.page-tab-template):not(.page-tab-assistant) .nav-brand-mark,
html:not([data-h5-skin]) body.vrp-page .nav-brand-mark,
html:not([data-h5-skin]) body.page-nova-video .nav-brand-mark,
html:not([data-h5-skin]) body.page-nova-outfit-studio .nav-brand-mark,
html body.detail-page:not(.gzh-viral-page):not(.xhs-viral-page):not(.page-tab-gzh-master):not(.page-tab-xhs-master) .nav-brand-mark,
html body.ecom-page .nav-brand-mark,
html body.linghui-page:not(.page-agent-center) .nav-brand-mark,
html body.vrp-page .nav-brand-mark,
html body.page-nova-video .nav-brand-mark,
html body.page-nova-outfit-studio .nav-brand-mark,
html body.product-max-page .nav-brand-mark,
html body.ps-page .nav-brand-mark,
html body.asp-page .nav-brand-mark,
html body.page-creator-studio .nav-brand-mark,
html body.page-i2v .nav-brand-mark,
html body.page-piv .nav-brand-mark,
html body.watermark-tool-page .nav-brand-mark,
html body.tool-page .nav-brand-mark {
    display: none !important;
}

/* —— 创作 / 历史 Tab —— */
html body.detail-page .detail-tabs .detail-tab.active,
html body.linghui-page .detail-tabs .detail-tab.active,
html body.ecom-page .tab-nav .tab-nav-item.active {
    color: #0a0a0a !important;
    background: #e4e4e7 !important;
    border: 1px solid #52525b !important;
    font-weight: 700 !important;
    box-shadow: none !important;
}

html body.detail-page .detail-tabs .detail-tab.active::before,
html body.linghui-page .detail-tabs .detail-tab.active::before,
html body.ecom-page .tab-nav .tab-nav-item.active::before {
    content: none !important;
    display: none !important;
    opacity: 0 !important;
}

html body.detail-page .detail-tabs .detail-tab.active .h5-ico-tab,
html body.linghui-page .detail-tabs .detail-tab.active .h5-ico-tab,
html body.ecom-page .tab-nav .tab-nav-item.active .h5-ico-tab {
    color: #0a0a0a !important;
    opacity: 1 !important;
}

/* —— AI 视频快创 —— */
html body.page-nova-video .nova-back-create,
html body.page-nova-video .nova-cta {
    background: #18181b !important;
    color: #fff !important;
    border: none !important;
    box-shadow: none !important;
}

html body.page-nova-video .nova-btn--assist {
    background: #fff !important;
    color: #334155 !important;
    border: 1px solid rgba(15, 23, 42, 0.12) !important;
    box-shadow: none !important;
}

html body.page-nova-video .nova-card-title .nova-card-ico,
html body.page-nova-video .nova-card-title .nova-card-ico--slate,
html body.page-nova-video .nova-card-title .nova-card-ico--ratio {
    background: #18181b !important;
    box-shadow: none !important;
}

html body.page-nova-video .nova-link-history,
html body.page-nova-video .nova-ref-badge,
html body.page-nova-video .nova-ratio-btn.is-on {
    background: #e4e4e7 !important;
    color: #0a0a0a !important;
    border: 1px solid #52525b !important;
    box-shadow: none !important;
}

html body.page-nova-video .nova-tag-tab.is-active {
    background: transparent !important;
    color: #0a0a0a !important;
    border: none !important;
    box-shadow: none !important;
}

html body.page-nova-video .nova-tag-chip.is-selected {
    background: #18181b !important;
    color: #fff !important;
    border-color: #18181b !important;
    box-shadow: none !important;
}

html body.page-nova-video .avm-model-btn.is-on,
html body.page-nova-video .nova-model-btn.is-on {
    background: #e4e4e7 !important;
    color: #0a0a0a !important;
    border: 1px solid #52525b !important;
    box-shadow: none !important;
}

html body.page-nova-video .avm-model-opt.is-on,
html body.page-nova-video .nova-model-opt.is-on {
    background: #18181b !important;
    color: #fff !important;
    border-color: #18181b !important;
}

html body.page-nova-video .nova-tag-tabs {
    background: transparent !important;
    border-color: rgba(15, 23, 42, 0.08) !important;
}

html body.page-nova-video .nova-drop.has-file {
    border-color: #52525b !important;
    background: #fafafa !important;
}

/* —— AI 穿搭展示视频 —— */
html body.page-nova-outfit-studio .ofs-view-switch__btn.is-on {
    background: #e4e4e7 !important;
    color: #0a0a0a !important;
    border: 1px solid #52525b !important;
    box-shadow: none !important;
}

html body.page-nova-outfit-studio .ofs-view-switch__btn.is-on .ofs-view-switch__badge {
    background: #ef4444 !important;
    color: #fff !important;
}

html body.page-nova-outfit-studio .i2v-back-create,
html body.page-nova-outfit-studio .i2v-cta,
html body.page-nova-outfit-studio .nova-hist-act-btn--primary,
html body.page-nova-outfit-studio .ofs-hist-cell__mini--lead {
    background: #18181b !important;
    color: #fff !important;
    border-color: transparent !important;
    box-shadow: none !important;
}

html body.page-nova-outfit-studio .i2v-card-title .i2v-ico {
    background: #18181b !important;
    box-shadow: none !important;
}

html body.page-nova-outfit-studio .i2v-badge,
html body.page-nova-outfit-studio .i2v-link-hist {
    background: #f4f4f5 !important;
    color: #27272a !important;
    border: 1px solid #e4e4e7 !important;
}

html body.page-nova-outfit-studio .ofs-seg.is-on,
html body.page-nova-outfit-studio .ofs-chip.is-on,
html body.page-nova-outfit-studio .i2v-effect-btn.is-on,
html body.page-nova-outfit-studio .i2v-ratio-btn.is-on {
    background: #e4e4e7 !important;
    color: #0a0a0a !important;
    border: 1px solid #52525b !important;
    box-shadow: none !important;
}

/* —— 视频反推提示 —— */
html body.vrp-page .vrp-primary,
html body.vrp-page .vrp-quota-btn {
    background: #18181b !important;
    color: #fff !important;
    box-shadow: none !important;
}

html body.vrp-page .vrp-icon-btn {
    background: #18181b !important;
    box-shadow: none !important;
}

html body.vrp-page .vrp-chip.active {
    border-color: #52525b !important;
    background: #e4e4e7 !important;
    color: #0a0a0a !important;
    font-weight: 700 !important;
    box-shadow: none !important;
}

html body.vrp-page .vrp-lang-row .vrp-chip.active::after {
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='M1 5.2l3 3L11 1.2'/%3E%3C/svg%3E") center / 9px 9px no-repeat,
        #18181b !important;
    box-shadow: none !important;
}

html body.vrp-page .vrp-card__head i {
    color: #52525b !important;
}

html body.vrp-page .vrp-surface::before {
    background: #d4d4d8 !important;
    opacity: 1 !important;
}

html body.vrp-page .vrp-prog-pct,
html body.vrp-page .vrp-out__tag {
    color: #52525b !important;
}

html body.vrp-page .vrp-bar > i {
    background: #52525b !important;
}

html body.vrp-page .vrp-step.active {
    color: #0a0a0a !important;
    font-weight: 600 !important;
}

html body.vrp-page .vrp-step.active i {
    color: #52525b !important;
}

/* —— 爆款详情图：平台说明条内强调词 —— */
html body.detail-page.page-detail-image-tool .detail-bench-hint {
    background: #fafafa !important;
    border: 1px solid #e4e4e7 !important;
}

html body.detail-page.page-detail-image-tool .detail-bench-hint .detail-bench-key,
html body.detail-page.page-detail-image-tool .detail-bench-key {
    color: #3f3f46 !important;
}
