
/*!
 * NewVFX Dark Mode
 * Version: 1.0.0
 * Description: 独立深色主题模块，不修改原有 Red Horizon CSS。
 * Activation: html[data-theme="dark"]
 */

/* ============================================================
   1. 主题变量
   ============================================================ */

html[data-theme="dark"] {
    color-scheme: dark;
    --nvfx-dark-bg: #1c1c1e;
    --nvfx-dark-surface: #2c2c2e;
    --nvfx-dark-surface-2: #38383a;
    --nvfx-dark-input: #242426;
    --nvfx-dark-text: #f5f5f7;
    --nvfx-dark-muted: #a1a1a6;
    --nvfx-dark-border: #48484a;
    --nvfx-dark-link: #8ab4f8;
    --nvfx-dark-accent: #e96969;
    --nvfx-dark-accent-hover: #e85a5a;
    --nvfx-dark-shadow: 0 2px 8px rgba(0,0,0,.22);
    --nvfx-dark-code: #202022;
}

/* ============================================================
   2. 全局基础
   ============================================================ */

html[data-theme="dark"],
html[data-theme="dark"] body {
    background-color: var(--nvfx-dark-bg) !important;
    color: var(--nvfx-dark-text);
}

html[data-theme="dark"] body,
html[data-theme="dark"] p,
html[data-theme="dark"] li,
html[data-theme="dark"] label,
html[data-theme="dark"] legend,
html[data-theme="dark"] dt,
html[data-theme="dark"] dd,
html[data-theme="dark"] td,
html[data-theme="dark"] th {
    color: var(--nvfx-dark-text);
}

html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] h4,
html[data-theme="dark"] h5,
html[data-theme="dark"] h6,
html[data-theme="dark"] strong,
html[data-theme="dark"] b {
    color: var(--nvfx-dark-text);
}

html[data-theme="dark"] small,
html[data-theme="dark"] .sidebar,
html[data-theme="dark"] .gp-post-meta,
html[data-theme="dark"] .author-info .author-desc,
html[data-theme="dark"] .menu-subtitle {
    color: var(--nvfx-dark-muted);
}

/* ============================================================
   3. 链接
   ============================================================ */

html[data-theme="dark"] a,
html[data-theme="dark"] .ui-tabs .ui-tabs-nav li a {
    color: var(--nvfx-dark-link);
}

html[data-theme="dark"] a:hover {
    color: #b6d0ff;
}

html[data-theme="dark"] .menu li a,
html[data-theme="dark"] #mobile-nav .menu li a {
    color: var(--nvfx-dark-text) !important;
}

/* ============================================================
   4. 页头与导航
   ============================================================ */

html[data-theme="dark"] #header,
html[data-theme="dark"] #header_main {
    background-color: var(--nvfx-dark-surface) !important;
    color: var(--nvfx-dark-text);
    box-shadow: 0 2px 8px rgba(0,0,0,.3);
}

html[data-theme="dark"] #nav .menu .sub-menu,
html[data-theme="dark"] #header .sub-menu {
    background-color: var(--nvfx-dark-surface) !important;
    border: 1px solid var(--nvfx-dark-border);
    box-shadow: var(--nvfx-dark-shadow);
}

html[data-theme="dark"] .menu li:hover > a {
    background-color: var(--nvfx-dark-surface-2) !important;
    color: var(--nvfx-dark-accent) !important;
}

html[data-theme="dark"] .menu li:hover::before {
    color: var(--nvfx-dark-accent) !important;
}

html[data-theme="dark"] #mobile-nav {
    background-color: var(--nvfx-dark-surface);
}

html[data-theme="dark"] #mobile-nav .menu li > a:hover {
    background-color: var(--nvfx-dark-accent) !important;
    color: #fff !important;
}

html[data-theme="dark"] #menu-bbs li.fa::before {
    color: var(--nvfx-dark-text);
}

/* ============================================================
   5. 页面主体与内容容器
   ============================================================ */

html[data-theme="dark"] #content,
html[data-theme="dark"] #container,
html[data-theme="dark"] #content-wrapper,
html[data-theme="dark"] .padder,
html[data-theme="dark"] #container #content {
    background-color: var(--nvfx-dark-bg) !important;
    color: var(--nvfx-dark-text);
}

html[data-theme="dark"] .padder,
html[data-theme="dark"] #container #content {
    box-shadow: var(--nvfx-dark-shadow);
}

html[data-theme="dark"] .gp-blog-wrapper,
html[data-theme="dark"] .post,
html[data-theme="dark"] .page,
html[data-theme="dark"] .entry,
html[data-theme="dark"] .entry-content,
html[data-theme="dark"] .post-content,
html[data-theme="dark"] #post-content,
html[data-theme="dark"] .comment-content {
    color: var(--nvfx-dark-text);
}

/* ============================================================
   6. 侧边栏与小工具
   ============================================================ */

html[data-theme="dark"] .widget,
html[data-theme="dark"] .widget-area,
html[data-theme="dark"] .sidebar .widget {
    background-color: var(--nvfx-dark-surface) !important;
    color: var(--nvfx-dark-text);
    border-color: var(--nvfx-dark-border);
}

html[data-theme="dark"] .widget .widgettitle,
html[data-theme="dark"] .widget .widget-title,
html[data-theme="dark"] .widget .wp-block-search__label {
    color: var(--nvfx-dark-text);
}

/* ============================================================
   7. 按钮
   ============================================================ */

html[data-theme="dark"] input[type="button"],
html[data-theme="dark"] input[type="submit"],
html[data-theme="dark"] input[type="reset"],
html[data-theme="dark"] button,
html[data-theme="dark"] .button,
html[data-theme="dark"] #gp-profile-desktop-button,
html[data-theme="dark"] #gp-profile-mobile-button {
    background-color: var(--nvfx-dark-surface-2);
    border-color: var(--nvfx-dark-border);
    color: var(--nvfx-dark-text);
}

html[data-theme="dark"] input[type="button"]:hover,
html[data-theme="dark"] input[type="submit"]:hover,
html[data-theme="dark"] input[type="reset"]:hover,
html[data-theme="dark"] button:hover,
html[data-theme="dark"] .button:hover {
    background-color: #4a4a4d;
    border-color: #626267;
    color: #fff;
}

/* 品牌红色按钮 */

html[data-theme="dark"] .login-button,
html[data-theme="dark"] #mobile-nav-button,
html[data-theme="dark"] .gp-notification-counter,
html[data-theme="dark"] #searchform input[type="submit"],
html[data-theme="dark"] form.search-form input[type="submit"],
html[data-theme="dark"] #bbp_search + input[type="submit"],
html[data-theme="dark"] #commentform input[type="submit"],
html[data-theme="dark"] #bbp_reply_submit {
    background-color: var(--nvfx-dark-accent) !important;
    border-color: var(--nvfx-dark-accent) !important;
    color: #fff !important;
}

html[data-theme="dark"] .login-button:hover,
html[data-theme="dark"] #mobile-nav-button:hover,
html[data-theme="dark"] #searchform input[type="submit"]:hover,
html[data-theme="dark"] form.search-form input[type="submit"]:hover,
html[data-theme="dark"] #bbp_search + input[type="submit"]:hover,
html[data-theme="dark"] #commentform input[type="submit"]:hover,
html[data-theme="dark"] #bbp_reply_submit:hover {
    background-color: var(--nvfx-dark-accent-hover) !important;
    border-color: var(--nvfx-dark-accent-hover) !important;
    color: #fff !important;
}

/* ============================================================
   8. 表单与输入框
   ============================================================ */

html[data-theme="dark"] input:not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]),
html[data-theme="dark"] textarea,
html[data-theme="dark"] select {
    background-color: var(--nvfx-dark-input);
    color: var(--nvfx-dark-text);
    border-color: var(--nvfx-dark-border);
}

html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder {
    color: var(--nvfx-dark-muted);
    opacity: 1;
}

html[data-theme="dark"] input:focus,
html[data-theme="dark"] textarea:focus,
html[data-theme="dark"] select:focus {
    border-color: var(--nvfx-dark-accent);
    outline-color: var(--nvfx-dark-accent);
}

/* ============================================================
   9. 引用块与代码
   ============================================================ */

html[data-theme="dark"] blockquote {
    background-color: var(--nvfx-dark-surface) !important;
    color: var(--nvfx-dark-text) !important;
    border-left-color: #4caf50 !important;
    box-shadow: 0 2px 6px rgba(0,0,0,.2);
}

html[data-theme="dark"] blockquote p {
    color: var(--nvfx-dark-text);
}

html[data-theme="dark"] blockquote code,
html[data-theme="dark"] code {
    background-color: var(--nvfx-dark-code);
    color: #e6e6e8;
    border-color: var(--nvfx-dark-border) !important;
}

html[data-theme="dark"] pre {
    background-color: var(--nvfx-dark-code);
    color: #e6e6e8;
    border-color: var(--nvfx-dark-border);
}

/* ============================================================
   10. 表格、分割线与日历
   ============================================================ */

html[data-theme="dark"] table,
html[data-theme="dark"] th,
html[data-theme="dark"] td {
    border-color: var(--nvfx-dark-border);
}

html[data-theme="dark"] hr {
    border-color: var(--nvfx-dark-border);
}

html[data-theme="dark"] #wp-calendar #today {
    background-color: var(--nvfx-dark-surface-2);
    color: var(--nvfx-dark-text);
}

/* ============================================================
   11. 文档卡片
   ============================================================ */

html[data-theme="dark"] .grid-docs .docs-category-group,
html[data-theme="dark"] .pc-only-container {
    background-color: var(--nvfx-dark-surface) !important;
    color: var(--nvfx-dark-text);
    border-color: var(--nvfx-dark-border);
    box-shadow: var(--nvfx-dark-shadow);
}

html[data-theme="dark"] .grid-docs .docs-category-group h4 {
    color: var(--nvfx-dark-text);
    border-bottom-color: var(--nvfx-dark-border);
}

/* ============================================================
   12. 评论与 BuddyPress 公共区域
   ============================================================ */

html[data-theme="dark"] #comments,
html[data-theme="dark"] #respond,
html[data-theme="dark"] #buddypress,
html[data-theme="dark"] #bbpress,
html[data-theme="dark"] #bbpress-forums,
html[data-theme="dark"] #buddypress .activity,
html[data-theme="dark"] #buddypress .acomment-content {
    color: var(--nvfx-dark-text);
}

html[data-theme="dark"] #commentform textarea,
html[data-theme="dark"] #buddypress input:not([type="submit"]):not([type="button"]):not([type="checkbox"]):not([type="radio"]),
html[data-theme="dark"] #buddypress textarea,
html[data-theme="dark"] #buddypress select {
    background-color: var(--nvfx-dark-input);
    color: var(--nvfx-dark-text);
    border-color: var(--nvfx-dark-border);
}

/* ============================================================
   13. 版权区域与返回顶部
   ============================================================ */

html[data-theme="dark"] #copyright {
    background-color: var(--nvfx-dark-surface) !important;
    color: var(--nvfx-dark-muted) !important;
    border-color: var(--nvfx-dark-border);
}

html[data-theme="dark"] #gp-to-top {
    background-color: var(--nvfx-dark-surface-2) !important;
    color: var(--nvfx-dark-text) !important;
    box-shadow: var(--nvfx-dark-shadow) !important;
}

/* ============================================================
   14. 下载模块
   ============================================================ */

html[data-theme="dark"] body .erphpdown {
    background-color: var(--nvfx-dark-surface);
    color: var(--nvfx-dark-text);
    border-color: var(--nvfx-dark-border) !important;
}

html[data-theme="dark"] body .erphpdown .erphpdown-down,
html[data-theme="dark"] body .erphpdown .erphp-login-must,
html[data-theme="dark"] body .erphpdown .erphpdown-vip {
    color: #fff;
}

html[data-theme="dark"] body .hidden-content {
    color: #ffc107;
}

/* ============================================================
   15. 弹窗
   ============================================================ */

html[data-theme="dark"] body .layui-layer {
    background-color: var(--nvfx-dark-surface);
    color: var(--nvfx-dark-text);
    border-color: var(--nvfx-dark-border);
}

html[data-theme="dark"] body .layui-layer-content {
    color: var(--nvfx-dark-text);
}

/* ============================================================
   16. 第三方 AI 插件基础适配
   ============================================================ */

html[data-theme="dark"] .mwai-input {
    background-color: var(--nvfx-dark-input);
    color: var(--nvfx-dark-text);
}

html[data-theme="dark"] .mwai-timeless-theme .mwai-conversation .mwai-reply.mwai-user {
    color: var(--nvfx-dark-text) !important;
}

html[data-theme="dark"] .mwai-statistics-usage .mwai-statistics-bar-container {
    background-color: var(--nvfx-dark-surface-2) !important;
}

/* ============================================================
   17. 无障碍与系统控件
   ============================================================ */

html[data-theme="dark"] {
    scrollbar-color: #626267 var(--nvfx-dark-bg);
}

html[data-theme="dark"] ::selection {
    background-color: rgba(233,105,105,.35);
    color: #fff;
}

/* 图片、视频与品牌色不做反色处理 */

/* ============================================================
   End of NewVFX Dark Mode
   ============================================================ */

/* ============================================================
   18. NewVFX 深浅模式切换按钮
   ============================================================ */

html .nvfx-theme-toggle-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: visible !important;
}

html .nvfx-theme-toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin: 0 6px !important;
    padding: 0 !important;
    border: 1px solid #dedede !important;
    border-radius: 50% !important;
    background: #f5f5f7 !important;
    color: #383838 !important;
    box-shadow: none !important;
    cursor: pointer;
    transform: none !important;
    transition: background-color .2s ease,
                color .2s ease,
                border-color .2s ease;
}

html .nvfx-theme-toggle svg {
    display: block;
    width: 19px;
    height: 19px;
    pointer-events: none;
}

html .nvfx-theme-toggle:hover {
    background: #e8e8eb !important;
    color: #111 !important;
    border-color: #c8c8cc !important;
}

html[data-theme="dark"] .nvfx-theme-toggle {
    background: #38383a !important;
    color: #f5f5f7 !important;
    border-color: #555559 !important;
}

html[data-theme="dark"] .nvfx-theme-toggle:hover {
    background: #48484a !important;
    color: #fff !important;
    border-color: #707075 !important;
}

html[data-theme="dark"] .nvfx-theme-toggle-item {
    background: transparent !important;
}

/* 移动端菜单中保持按钮易于点击 */
@media screen and (max-width: 800px) {
    html .nvfx-theme-toggle-item {
        display: flex;
        width: 100%;
        justify-content: flex-start;
    }

    html .nvfx-theme-toggle {
        width: 42px;
        height: 42px;
        margin: 5px 10px !important;
    }
}

/* 尊重系统减少动态效果的偏好 */
@media (prefers-reduced-motion: reduce) {
    html .nvfx-theme-toggle {
        transition: none;
    }
}
/* ============================================================
   NewVFX · Dark Mode · Wallet & Logout
   ============================================================ */

html[data-theme="dark"] .nvfx-wallet-chip {
    background: #2c2c2e !important;
    border-color: #48484a !important;
    color: #f5f5f7 !important;
    box-shadow: none !important;
}

html[data-theme="dark"] .nvfx-wallet-chip:hover {
    background: #38383a !important;
    border-color: #636366 !important;
    color: #fff !important;
}

html[data-theme="dark"] .nvfx-wallet-chip .wallet-icon {
    color: #b0b0b5 !important;
}

html[data-theme="dark"] .nvfx-wallet-chip .wallet-balance {
    color: #f5f5f7 !important;
}

html[data-theme="dark"] .nvfx-wallet-chip .wallet-unit {
    background: #e96969 !important;
    color: #fff !important;
}

html[data-theme="dark"] .nvfx-wallet-chip:hover .wallet-unit {
    background: #ff5a2a !important;
}

html[data-theme="dark"] .nvfx-logout-link {
    background: transparent !important;
    color: #a1a1a6 !important;
}

html[data-theme="dark"] .nvfx-logout-link .nvfx-logout-icon {
    color: inherit !important;
}

html[data-theme="dark"] .nvfx-logout-link:hover {
    background: rgba(255, 105, 97, .12) !important;
    color: #ff6961 !important;
}



/* ============================================================
   NewVFX · bbPress Dark Mode
   仅覆盖论坛配色，不修改布局与交互
   ============================================================ */

/* 论坛主体文字 */
html[data-theme="dark"] #bbpress-forums,
html[data-theme="dark"] #bbpress-forums p,
html[data-theme="dark"] #bbpress-forums li,
html[data-theme="dark"] #bbpress-forums .bbp-forum-content,
html[data-theme="dark"] #bbpress-forums .bbp-topic-content,
html[data-theme="dark"] #bbpress-forums .bbp-reply-content,
html[data-theme="dark"] #bbpress-forums .bbp-topic-meta {
    color: #d1d1d6 !important;
}

/* 版块标题、主题列表头部、回复列表头部 */
html[data-theme="dark"] .gp-theme #bbpress-forums .bbp-forum-home.bbp-forums .bbp-has-subforums .bbp-forum-info > .bbp-forum-title,
html[data-theme="dark"] .gp-theme #bbpress-forums .gp-forum-home.bbp-forums .bbp-has-subforums .bbp-forum-info > .bbp-forum-title,
html[data-theme="dark"] .gp-theme #bbpress-forums .bbp-topics .bbp-header,
html[data-theme="dark"] .gp-theme #bbpress-forums .bbp-replies .bbp-header,
html[data-theme="dark"] .gp-theme #bbpress-forums .bbp-search-results .bbp-header,
html[data-theme="dark"] #bbpress-forums .bbp-header,
html[data-theme="dark"] #bbpress-forums .bbp-footer {
    background-color: #2c2c2e !important;
    color: #f5f5f7 !important;
    border-color: #48484a !important;
}

/* 论坛列表行：覆盖奇偶行背景 */
html[data-theme="dark"] #bbpress-forums div.odd,
html[data-theme="dark"] #bbpress-forums ul.odd,
html[data-theme="dark"] #bbpress-forums div.even,
html[data-theme="dark"] #bbpress-forums ul.even,
html[data-theme="dark"] #bbpress-forums .bbp-body,
html[data-theme="dark"] #bbpress-forums ul.bbp-forums,
html[data-theme="dark"] #bbpress-forums ul.bbp-topics,
html[data-theme="dark"] #bbpress-forums ul.bbp-replies,
html[data-theme="dark"] #bbpress-forums ul.bbp-search-results,
html[data-theme="dark"] #bbpress-forums ul.bbp-lead-topic {
    background-color: #1c1c1e !important;
    color: #d1d1d6 !important;
    border-color: #38383a !important;
}

/* 列表项目边框 */
html[data-theme="dark"] #bbpress-forums li.bbp-forum,
html[data-theme="dark"] #bbpress-forums li.bbp-topic,
html[data-theme="dark"] #bbpress-forums li.bbp-reply,
html[data-theme="dark"] #bbpress-forums .bbp-body > ul,
html[data-theme="dark"] #bbpress-forums li.bbp-header,
html[data-theme="dark"] #bbpress-forums li.bbp-footer {
    border-color: #38383a !important;
}

/* 论坛标题与链接 */
html[data-theme="dark"] #bbpress-forums a {
    color: #8ab4f8;
}

html[data-theme="dark"] #bbpress-forums a:hover {
    color: #b4d0ff;
}

/* 论坛标题文字 */
html[data-theme="dark"] #bbpress-forums .bbp-forum-title,
html[data-theme="dark"] #bbpress-forums .bbp-topic-permalink,
html[data-theme="dark"] #bbpress-forums .bbp-reply-to-link {
    color: #f5f5f7;
}

html[data-theme="dark"] #bbpress-forums .bbp-forum-title:hover,
html[data-theme="dark"] #bbpress-forums .bbp-topic-permalink:hover,
html[data-theme="dark"] #bbpress-forums .bbp-reply-to-link:hover {
    color: #8ab4f8;
}

/* 论坛统计、作者、时间等辅助文字 */
html[data-theme="dark"] #bbpress-forums .bbp-forum-content,
html[data-theme="dark"] #bbpress-forums .bbp-topic-content,
html[data-theme="dark"] #bbpress-forums .bbp-reply-content,
html[data-theme="dark"] #bbpress-forums .bbp-topic-meta,
html[data-theme="dark"] #bbpress-forums .bbp-forum-freshness,
html[data-theme="dark"] #bbpress-forums .bbp-topic-freshness,
html[data-theme="dark"] #bbpress-forums .bbp-reply-post-date,
html[data-theme="dark"] #bbpress-forums .bbp-author-name {
    color: #b0b0b5 !important;
}

/* 论坛角色标签 */
html[data-theme="dark"] .gp-theme #bbpress-forums div.bbp-forum-author .bbp-author-role,
html[data-theme="dark"] .gp-theme #bbpress-forums div.bbp-topic-author .bbp-author-role,
html[data-theme="dark"] .gp-theme #bbpress-forums div.bbp-reply-author .bbp-author-role {
    background-color: #e96969 !important;
    color: #fff !important;
}

/* 论坛正文中的代码 */
html[data-theme="dark"] #bbpress-forums div.bbp-reply-content code,
html[data-theme="dark"] #bbpress-forums div.bbp-reply-content pre,
html[data-theme="dark"] #bbpress-forums div.bbp-topic-content code,
html[data-theme="dark"] #bbpress-forums div.bbp-topic-content pre {
    background-color: #2c2c2e !important;
    color: #e5e5ea !important;
    border-color: #48484a !important;
}

/* 私密回复 */
html[data-theme="dark"] #bbpress-forums .topic .bbp-private-reply,
html[data-theme="dark"] #bbpress-forums .bbp-private-reply {
    background-color: #3a3030 !important;
    color: #f2dede !important;
    border-color: #684747 !important;
}

/* 面包屑与主题标签 */
html[data-theme="dark"] #bbpress-forums .bbp-breadcrumb,
html[data-theme="dark"] #bbpress-forums .bbp-breadcrumb p,
html[data-theme="dark"] #bbpress-forums .bbp-topic-tags,
html[data-theme="dark"] #bbpress-forums .bbp-topic-tags p {
    color: #a1a1a6 !important;
}

html[data-theme="dark"] #bbpress-forums .bbp-topic-tags a {
    color: #8ab4f8;
}

/* 分页 */
html[data-theme="dark"] #bbpress-forums .bbp-pagination,
html[data-theme="dark"] #bbpress-forums .bbp-pagination-count {
    color: #a1a1a6 !important;
}

html[data-theme="dark"] #bbpress-forums .bbp-pagination-links a,
html[data-theme="dark"] #bbpress-forums .bbp-pagination-links span {
    background-color: #2c2c2e !important;
    border-color: #48484a !important;
    color: #d1d1d6 !important;
}

html[data-theme="dark"] #bbpress-forums .bbp-pagination-links a:hover,
html[data-theme="dark"] #bbpress-forums .bbp-pagination-links span.current {
    background-color: #e96969 !important;
    border-color: #e96969 !important;
    color: #fff !important;
}

/* 搜索框与论坛表单 */
html[data-theme="dark"] #bbp-search-form input,
html[data-theme="dark"] #bbpress-forums input[type="text"],
html[data-theme="dark"] #bbpress-forums input[type="email"],
html[data-theme="dark"] #bbpress-forums input[type="password"],
html[data-theme="dark"] #bbpress-forums input[type="search"],
html[data-theme="dark"] #bbpress-forums textarea,
html[data-theme="dark"] #bbpress-forums select {
    background-color: #2c2c2e !important;
    border-color: #48484a !important;
    color: #f5f5f7 !important;
}

html[data-theme="dark"] #bbp-search-form input::placeholder,
html[data-theme="dark"] #bbpress-forums input::placeholder,
html[data-theme="dark"] #bbpress-forums textarea::placeholder {
    color: #8e8e93 !important;
}

/* 表单按钮 */
html[data-theme="dark"] #bbp-search-form input[type="submit"],
html[data-theme="dark"] #bbpress-forums input[type="submit"],
html[data-theme="dark"] #bbpress-forums button {
    border-color: #48484a;
}

/* 分隔线与边框 */
html[data-theme="dark"] #bbpress-forums hr,
html[data-theme="dark"] #bbpress-forums fieldset,
html[data-theme="dark"] #bbpress-forums .bbp-forum-info,
html[data-theme="dark"] #bbpress-forums .bbp-forum-topic-count,
html[data-theme="dark"] #bbpress-forums .bbp-forum-reply-count,
html[data-theme="dark"] #bbpress-forums .bbp-topic-voice-count,
html[data-theme="dark"] #bbpress-forums .bbp-topic-reply-count,
html[data-theme="dark"] #bbpress-forums .bbp-topic-freshness {
    border-color: #38383a !important;
}

/* 收藏与订阅链接 */
html[data-theme="dark"] #bbpress-forums a.favorite-toggle,
html[data-theme="dark"] #bbpress-forums #subscription-toggle a {
    color: #ff8a80 !important;
}

/* 论坛引用块 */
html[data-theme="dark"] #bbpress-forums blockquote {
    background-color: #252527 !important;
    border-left-color: #68686d !important;
    color: #d1d1d6 !important;
}

/* 论坛图片说明文字 */
html[data-theme="dark"] #bbpress-forums figcaption {
    color: #a1a1a6 !important;
}


/* ============================================================
   NewVFX · BuddyPress Dark Mode
   仅覆盖颜色，保留原有布局、响应式与交互
   ============================================================ */

/* 1. BuddyPress 主体文字 */
html[data-theme="dark"] #buddypress,
html[data-theme="dark"] #buddypress p,
html[data-theme="dark"] #buddypress li,
html[data-theme="dark"] #buddypress label,
html[data-theme="dark"] #buddypress dt,
html[data-theme="dark"] #buddypress dd,
html[data-theme="dark"] #buddypress .activity-inner,
html[data-theme="dark"] #buddypress .activity-content,
html[data-theme="dark"] #buddypress .acomment-content {
    color: #d1d1d6;
}

/* 2. 动态流与列表 */
html[data-theme="dark"] #buddypress ul.item-list,
html[data-theme="dark"] #buddypress ul.activity-list,
html[data-theme="dark"] #buddypress .activity-list > li,
html[data-theme="dark"] #buddypress ul.item-list > li,
html[data-theme="dark"] #buddypress .activity-comments ul li {
    background-color: transparent;
    border-color: #38383a;
}

/* 动态正文与动态标题 */
html[data-theme="dark"] #buddypress .activity-header,
html[data-theme="dark"] #buddypress .activity-header a,
html[data-theme="dark"] #buddypress .activity-inner,
html[data-theme="dark"] #buddypress .activity-inner p,
html[data-theme="dark"] #buddypress .activity-comments .acomment-content,
html[data-theme="dark"] #buddypress .activity-comments .acomment-content * {
    color: #d1d1d6 !important;
}

/* 动态时间、辅助信息 */
html[data-theme="dark"] #buddypress .activity-time-since,
html[data-theme="dark"] #buddypress .activity-meta,
html[data-theme="dark"] #buddypress .activity-meta a,
html[data-theme="dark"] #buddypress .acomment-meta,
html[data-theme="dark"] #buddypress .acomment-meta a,
html[data-theme="dark"] #buddypress .activity-inreplyto,
html[data-theme="dark"] #buddypress .activity-inreplyto a {
    color: #a1a1a6 !important;
}

/* 3. 动态发布框 */
html[data-theme="dark"] #buddypress form#whats-new-form,
html[data-theme="dark"] #buddypress #whats-new-content {
    background-color: transparent;
    color: #d1d1d6;
}

html[data-theme="dark"] #buddypress #whats-new,
html[data-theme="dark"] #buddypress form#whats-new-form textarea {
    background-color: #2c2c2e !important;
    border-color: #48484a !important;
    color: #f5f5f7 !important;
    box-shadow: none;
}

html[data-theme="dark"] #buddypress #whats-new:focus,
html[data-theme="dark"] #buddypress form#whats-new-form textarea:focus {
    border-color: #e96969 !important;
    outline-color: #e96969;
    box-shadow: 0 0 0 2px rgba(233, 105, 105, .16);
}

html[data-theme="dark"] #buddypress #whats-new::placeholder,
html[data-theme="dark"] #buddypress form#whats-new-form textarea::placeholder {
    color: #8e8e93 !important;
}

/* 4. 动态评论输入框与通用表单 */
html[data-theme="dark"] #buddypress input[type="text"],
html[data-theme="dark"] #buddypress input[type="email"],
html[data-theme="dark"] #buddypress input[type="password"],
html[data-theme="dark"] #buddypress input[type="search"],
html[data-theme="dark"] #buddypress input[type="url"],
html[data-theme="dark"] #buddypress input[type="number"],
html[data-theme="dark"] #buddypress textarea,
html[data-theme="dark"] #buddypress select {
    background-color: #2c2c2e !important;
    border-color: #48484a !important;
    color: #f5f5f7 !important;
}

html[data-theme="dark"] #buddypress input::placeholder,
html[data-theme="dark"] #buddypress textarea::placeholder {
    color: #8e8e93 !important;
}

html[data-theme="dark"] #buddypress input:focus,
html[data-theme="dark"] #buddypress textarea:focus,
html[data-theme="dark"] #buddypress select:focus {
    border-color: #e96969 !important;
    outline-color: #e96969;
}

/* 5. 主导航、次级导航与动态筛选 Tab */
html[data-theme="dark"] .gp-theme #buddypress div.item-list-tabs,
html[data-theme="dark"] .gp-theme #buddypress div.item-list-tabs#subnav {
    border-color: #38383a;
}

html[data-theme="dark"] .gp-theme #buddypress div.item-list-tabs ul li a,
html[data-theme="dark"] .gp-theme #buddypress div.item-list-tabs ul li a span,
html[data-theme="dark"] .item-list-tabs.activity-type-tabs ul li a,
html[data-theme="dark"] .item-list-tabs#subnav ul li:not(.last) a,
html[data-theme="dark"] .item-list-tabs#object-nav ul li a {
    color: #c7c7cc !important;
}

html[data-theme="dark"] .gp-theme #buddypress div.item-list-tabs ul li.current a,
html[data-theme="dark"] .gp-theme #buddypress div.item-list-tabs ul li.selected a,
html[data-theme="dark"] .gp-theme #buddypress div.item-list-tabs ul li a:hover {
    background-color: #38383a;
    color: #fff !important;
}

html[data-theme="dark"] .gp-theme #buddypress div.item-list-tabs ul li.current a span,
html[data-theme="dark"] .gp-theme #buddypress div.item-list-tabs ul li.selected a span,
html[data-theme="dark"] .gp-theme #buddypress div.item-list-tabs ul li a:hover span {
    background-color: #e96969 !important;
    color: #fff !important;
}

html[data-theme="dark"] .item-list-tabs.activity-type-tabs ul li.selected a,
html[data-theme="dark"] .item-list-tabs#subnav ul li.current a,
html[data-theme="dark"] .item-list-tabs#subnav ul li.selected a,
html[data-theme="dark"] .item-list-tabs#object-nav ul li.current a,
html[data-theme="dark"] .item-list-tabs#object-nav ul li.selected a {
    background-color: #38383a;
    color: #ff8a80 !important;
}

/* 6. BuddyPress 按钮 */
html[data-theme="dark"] .gp-theme #buddypress .comment-reply-link,
html[data-theme="dark"] .gp-theme #buddypress a.button,
html[data-theme="dark"] .gp-theme #buddypress button,
html[data-theme="dark"] .gp-theme #buddypress div.generic-button a,
html[data-theme="dark"] .gp-theme #buddypress input[type="button"],
html[data-theme="dark"] .gp-theme #buddypress input[type="reset"],
html[data-theme="dark"] .gp-theme #buddypress input[type="submit"],
html[data-theme="dark"] .gp-theme #buddypress ul.button-nav li a,
html[data-theme="dark"] #buddypress a.bp-title-button {
    color: #fff !important;
}

html[data-theme="dark"] .gp-theme #buddypress div.activity-meta a.button,
html[data-theme="dark"] .gp-theme #buddypress input[type="submit"] {
    background-color: #e96969;
    color: #fff !important;
}

html[data-theme="dark"] #item-buttons .generic-button a:hover,
html[data-theme="dark"] #item-buttons .friendship-button a:hover {
    background-color: #ff5a52 !important;
    color: #fff !important;
}

/* 7. BuddyPress 小工具 */
html[data-theme="dark"] .gp-theme .widget.buddypress div.item-options a {
    background-color: #38383a;
    color: #d1d1d6;
}

html[data-theme="dark"] .gp-theme .widget.buddypress div.item-options a.selected {
    background-color: #e96969;
    color: #fff;
}

/* 8. 个人主页标题与用户名称 */
html[data-theme="dark"] #buddypress div#item-header h2 {
    background-color: #2c2c2e !important;
    color: #f5f5f7 !important;
}

html[data-theme="dark"] #buddypress div#item-header-cover-image .user-nicename a,
html[data-theme="dark"] #buddypress div#item-header-cover-image .user-nicename {
    color: #f5f5f7 !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .7);
}

/* 9. 个人资料标题与字段 */
html[data-theme="dark"] #buddypress div.profile h2,
html[data-theme="dark"] #buddypress div.profile h3,
html[data-theme="dark"] #buddypress .bp-widget h2,
html[data-theme="dark"] #buddypress .bp-widget h3,
html[data-theme="dark"] #buddypress .profile-fields,
html[data-theme="dark"] #buddypress .profile-fields td,
html[data-theme="dark"] #buddypress .profile-fields th {
    color: #d1d1d6;
    border-color: #38383a;
}

/* 10. 头像列表与成员目录 */
html[data-theme="dark"] #buddypress ul.item-list li,
html[data-theme="dark"] #buddypress .members-list li,
html[data-theme="dark"] #buddypress .groups-list li {
    border-color: #38383a;
}

html[data-theme="dark"] #buddypress .item-list .item-title a,
html[data-theme="dark"] #buddypress .item-list .item-meta,
html[data-theme="dark"] #buddypress .item-list .activity {
    color: #d1d1d6;
}

/* 11. 消息收件箱与通知 */
html[data-theme="dark"] #buddypress #message-threads,
html[data-theme="dark"] #buddypress #message-threads tr,
html[data-theme="dark"] #buddypress #message-threads td,
html[data-theme="dark"] #buddypress #message-threads th,
html[data-theme="dark"] #buddypress .notifications,
html[data-theme="dark"] #buddypress .notifications tr,
html[data-theme="dark"] #buddypress .notifications td,
html[data-theme="dark"] #buddypress .notifications th {
    background-color: transparent;
    color: #d1d1d6;
    border-color: #38383a;
}

html[data-theme="dark"] #buddypress #message-threads tr.unread,
html[data-theme="dark"] #buddypress .notifications tr.unread {
    background-color: #302b2b;
}

html[data-theme="dark"] .gp-notification-counter {
    background-color: #e96969;
    color: #fff;
}

/* 12. 喜欢按钮 */
html[data-theme="dark"] .wpulike-default .wp_ulike_btn {
    background-color: #38383a;
    color: #d1d1d6;
    border-color: #48484a;
}

html[data-theme="dark"] .wpulike-default .wp_ulike_btn:hover {
    background-color: #48484a;
    color: #fff;
}

/* 13. 媒体容器与播放器 */
html[data-theme="dark"] .rtmedia-activity-container,
html[data-theme="dark"] .rtmedia-activity-container * {
    border-color: #38383a;
}

html[data-theme="dark"] .mejs-container,
html[data-theme="dark"] .mejs-container .mejs-controls,
html[data-theme="dark"] .mejs-embed,
html[data-theme="dark"] .mejs-embed body {
    background-color: #1c1c1e;
}

html[data-theme="dark"] .mejs-controls .mejs-time-rail .mejs-time-loaded {
    background-color: #e96969;
}

/* 14. 自定义上传按钮：保留原有渐变 */
html[data-theme="dark"] .artistic-button {
    color: #fff !important;
    border-color: transparent;
}

/* 15. 上传媒体网格 */
html[data-theme="dark"] .bp-media-grid {
    background-color: transparent;
}

html[data-theme="dark"] .bp-media-grid img {
    border-color: #38383a;
}

/* 16. 动态评论与表单分隔线 */
html[data-theme="dark"] #buddypress .activity-comments,
html[data-theme="dark"] #buddypress .activity-comments form,
html[data-theme="dark"] #buddypress .activity-comments ul li,
html[data-theme="dark"] #buddypress form.ac-form {
    border-color: #38383a;
}

/* 17. BuddyPress 通用链接 */
html[data-theme="dark"] #buddypress a {
    color: #8ab4f8;
}

html[data-theme="dark"] #buddypress a:hover {
    color: #b4d0ff;
}

/* 保留按钮原有强调色，不让通用链接规则覆盖 */
html[data-theme="dark"] .gp-theme #buddypress a.button,
html[data-theme="dark"] .gp-theme #buddypress div.generic-button a,
html[data-theme="dark"] .gp-theme #buddypress ul.button-nav li a,
html[data-theme="dark"] #buddypress a.bp-title-button {
    color: #fff !important;
}

/* 18. 减少动态效果偏好 */
@media (prefers-reduced-motion: reduce) {
    html[data-theme="dark"] .artistic-button {
        transition: none;
    }
}


/* ============================================================
   NewVFX · Dark Mode · Global Border & Divider Normalization
   统一全站边框、左侧线、标题下划线与框架分隔线
   ============================================================ */

html[data-theme="dark"] {
    --nvfx-dark-border: #38383a;
    --nvfx-dark-border-soft: #303032;
    --nvfx-dark-divider: #303032;
}

/* 1. 所有独立横线 */
html[data-theme="dark"] hr {
    border-color: var(--nvfx-dark-divider) !important;
    background-color: transparent !important;
    box-shadow: none !important;
}

/* 2. 常见框架与内容区边框 */
html[data-theme="dark"] #content,
html[data-theme="dark"] #content-wrapper,
html[data-theme="dark"] #left-content-wrapper,
html[data-theme="dark"] #sidebar,
html[data-theme="dark"] #left-sidebar,
html[data-theme="dark"] #right-sidebar,
html[data-theme="dark"] .widget,
html[data-theme="dark"] .widget-area,
html[data-theme="dark"] .content-box,
html[data-theme="dark"] .entry,
html[data-theme="dark"] .entry-content,
html[data-theme="dark"] .post,
html[data-theme="dark"] .page,
html[data-theme="dark"] .bbp-body,
html[data-theme="dark"] #bbpress-forums,
html[data-theme="dark"] #buddypress {
    border-color: var(--nvfx-dark-border) !important;
}

/* 3. 统一常见左侧边线 */
html[data-theme="dark"] blockquote,
html[data-theme="dark"] .wp-block-quote,
html[data-theme="dark"] .wp-block-pullquote,
html[data-theme="dark"] .wp-block-verse,
html[data-theme="dark"] .wp-block-table,
html[data-theme="dark"] .wp-block-group,
html[data-theme="dark"] .wp-block-columns,
html[data-theme="dark"] .wp-block-column,
html[data-theme="dark"] .wp-block-media-text,
html[data-theme="dark"] .wp-block-separator,
html[data-theme="dark"] .bbp-reply-content blockquote,
html[data-theme="dark"] .bbp-topic-content blockquote {
    border-color: var(--nvfx-dark-border) !important;
}

/* 4. 标题下方的分隔线 */
html[data-theme="dark"] .widget-title,
html[data-theme="dark"] .widgettitle,
html[data-theme="dark"] .sidebar .widget h2,
html[data-theme="dark"] .sidebar .widget h3,
html[data-theme="dark"] .widget-area .widget h2,
html[data-theme="dark"] .widget-area .widget h3,
html[data-theme="dark"] .gp-theme .widget-title,
html[data-theme="dark"] .gp-theme .widgettitle {
    border-bottom-color: var(--nvfx-dark-divider) !important;
    box-shadow: none !important;
}

/* 5. 常见列表项、卡片和框架分隔线 */
html[data-theme="dark"] article,
html[data-theme="dark"] .hentry,
html[data-theme="dark"] .entry-header,
html[data-theme="dark"] .entry-footer,
html[data-theme="dark"] .comment-list li,
html[data-theme="dark"] .comment-body,
html[data-theme="dark"] .wp-block-latest-posts li,
html[data-theme="dark"] .wp-block-rss li,
html[data-theme="dark"] .wp-block-archives li,
html[data-theme="dark"] .wp-block-categories li,
html[data-theme="dark"] .wp-block-page-list li,
html[data-theme="dark"] #bbpress-forums li.bbp-forum,
html[data-theme="dark"] #bbpress-forums li.bbp-topic,
html[data-theme="dark"] #bbpress-forums li.bbp-reply,
html[data-theme="dark"] #buddypress ul.item-list > li,
html[data-theme="dark"] #buddypress .activity-list > li {
    border-color: var(--nvfx-dark-divider) !important;
}

/* 6. 统一表格横线与竖线 */
html[data-theme="dark"] table,
html[data-theme="dark"] th,
html[data-theme="dark"] td,
html[data-theme="dark"] .wp-block-table table {
    border-color: var(--nvfx-dark-border) !important;
}

/* 7. 常见伪元素分隔线与装饰线 */
html[data-theme="dark"] .widget-title::before,
html[data-theme="dark"] .widget-title::after,
html[data-theme="dark"] .widgettitle::before,
html[data-theme="dark"] .widgettitle::after,
html[data-theme="dark"] .sidebar h2::before,
html[data-theme="dark"] .sidebar h2::after,
html[data-theme="dark"] .sidebar h3::before,
html[data-theme="dark"] .sidebar h3::after {
    border-color: var(--nvfx-dark-divider) !important;
    background-color: var(--nvfx-dark-divider) !important;
    box-shadow: none !important;
}

/* 8. 降低框架与卡片的亮边阴影 */
html[data-theme="dark"] .widget,
html[data-theme="dark"] .content-box,
html[data-theme="dark"] .post,
html[data-theme="dark"] .page,
html[data-theme="dark"] article,
html[data-theme="dark"] .hentry {
    box-shadow: none;
}

/* 9. 兼容内联样式定义的常见浅色边框 */
html[data-theme="dark"] [style*="border-top"],
html[data-theme="dark"] [style*="border-bottom"],
html[data-theme="dark"] [style*="border-left"],
html[data-theme="dark"] [style*="border-right"] {
    border-color: var(--nvfx-dark-border) !important;
}
/* bbPress：深色模式下弱化回复框架分隔线 */
html[data-theme="dark"] #bbpress-forums .bbp-reply-header,
html[data-theme="dark"] #bbpress-forums .bbp-meta,
html[data-theme="dark"] #bbpress-forums .bbp-header,
html[data-theme="dark"] #bbpress-forums .bbp-footer,
html[data-theme="dark"] #bbpress-forums .bbp-body,
html[data-theme="dark"] #bbpress-forums .bbp-replies-list > li,
html[data-theme="dark"] #bbpress-forums .bbp-reply-author,
html[data-theme="dark"] #bbpress-forums .bbp-reply-content {
    border-color: #303032 !important;
    box-shadow: none !important;
}

/* 修正由伪元素绘制的分隔线 */
html[data-theme="dark"] #bbpress-forums .bbp-reply-header::before,
html[data-theme="dark"] #bbpress-forums .bbp-reply-header::after,
html[data-theme="dark"] #bbpress-forums .bbp-meta::before,
html[data-theme="dark"] #bbpress-forums .bbp-meta::after {
    border-color: #303032 !important;
    box-shadow: none !important;
}

/* 帖子元信息栏：避免日期、帖子编号、管理链接周围出现亮线 */
html[data-theme="dark"] #bbpress-forums .bbp-reply-header,
html[data-theme="dark"] #bbpress-forums .bbp-meta {
    outline-color: #303032 !important;
}
/* BuddyPress：深色模式下弱化动态与评论分隔线 */
html[data-theme="dark"] #buddypress .activity-list > li.activity-item,
html[data-theme="dark"] #buddypress li.activity-item,
html[data-theme="dark"] #buddypress .activity-comments,
html[data-theme="dark"] #buddypress .activity-comments > ul > li,
html[data-theme="dark"] #buddypress .activity-comments ul li[id^="acomment-"],
html[data-theme="dark"] #buddypress .acomment-meta,
html[data-theme="dark"] #buddypress .acomment-content,
html[data-theme="dark"] #buddypress .acomment-options,
html[data-theme="dark"] #buddypress .activity-header,
html[data-theme="dark"] #buddypress .activity-inner,
html[data-theme="dark"] #buddypress .activity-meta {
    border-color: #303032 !important;
    box-shadow: none !important;
    outline-color: #303032 !important;
}

/* 嵌套评论列表：弱化由伪元素绘制的线条 */
html[data-theme="dark"] #buddypress .activity-comments li[id^="acomment-"]::before,
html[data-theme="dark"] #buddypress .activity-comments li[id^="acomment-"]::after,
html[data-theme="dark"] #buddypress .activity-item::before,
html[data-theme="dark"] #buddypress .activity-item::after {
    border-color: #303032 !important;
    box-shadow: none !important;
}

/* 动态与评论框架：清除模拟边线的背景渐变 */
html[data-theme="dark"] #buddypress .activity-list > li.activity-item,
html[data-theme="dark"] #buddypress .activity-comments > ul > li {
    background-image: none !important;
}

/* 文章页：相关内容与评论区域的分隔线 */
html[data-theme="dark"] .gp-related-posts-wrapper,
html[data-theme="dark"] .gp-related-posts-wrapper .post-header,
html[data-theme="dark"] .gp-related-posts-wrapper .post-loop,
html[data-theme="dark"] #comments,
html[data-theme="dark"] #respond,
html[data-theme="dark"] #reply-title,
html[data-theme="dark"] #commentform > p,
html[data-theme="dark"] #comments .comment-list > li,
html[data-theme="dark"] #comments .comment-body {
    border-color: #303032 !important;
    box-shadow: none !important;
    outline-color: #303032 !important;
}

/* 标题伪元素分隔线 */
html[data-theme="dark"] .gp-related-posts-wrapper .post-header::before,
html[data-theme="dark"] .gp-related-posts-wrapper .post-header::after,
html[data-theme="dark"] #reply-title::before,
html[data-theme="dark"] #reply-title::after {
    border-color: #303032 !important;
    box-shadow: none !important;
}

/* 评论标题及相关内容标题：取消渐变模拟的亮线 */
html[data-theme="dark"] .gp-related-posts-wrapper .post-header,
html[data-theme="dark"] #reply-title {
    background-image: none !important;
}
/* 相关文章：深色模式下修复标题文字与顶部亮线 */
html[data-theme="dark"] .gp-blog-wrapper.related-posts {
    border-top-color: #303032 !important;
    box-shadow: none !important;
}

html[data-theme="dark"] .gp-blog-wrapper.related-posts .post-header {
    color: #e5e5e7 !important;
    border-color: #303032 !important;
    box-shadow: none !important;
    outline-color: #303032 !important;
}

html[data-theme="dark"] .gp-blog-wrapper.related-posts .post-header::before,
html[data-theme="dark"] .gp-blog-wrapper.related-posts .post-header::after,
html[data-theme="dark"] .gp-blog-wrapper.related-posts::before,
html[data-theme="dark"] .gp-blog-wrapper.related-posts::after {
    border-color: #303032 !important;
    background-color: #303032 !important;
    box-shadow: none !important;
}

/* 相关文章列表标题：覆盖 PHP 内联的 color:#333 */
html[data-theme="dark"] .gp-blog-wrapper.related-posts .post-text h2 a {
    color: #e5e5e7 !important;
}

html[data-theme="dark"] .gp-blog-wrapper.related-posts .post-text h2 a:hover {
    color: #ff7a59 !important;
}

/* erphpdown：深色模式下统一购买信息框 */
html[data-theme="dark"] fieldset.erphpdown,
html[data-theme="dark"] fieldset.erphpdown fieldset.erphpdown-child {
    color: #d2d2d7 !important;
    border-color: #38383b !important;
    box-shadow: none !important;
    background-color: transparent !important;
}

/* 主框及子框标题 */
html[data-theme="dark"] fieldset.erphpdown > legend,
html[data-theme="dark"] fieldset.erphpdown fieldset.erphpdown-child > legend {
    color: #e5e5e7 !important;
    border-color: #38383b !important;
    background-color: #1d1d1f !important;
}

/* 服务信息正文 */
html[data-theme="dark"] fieldset.erphpdown p,
html[data-theme="dark"] fieldset.erphpdown .erphpdown-tips,
html[data-theme="dark"] fieldset.erphpdown .erphpdown-tips span {
    color: #c8c8cc !important;
}

/* 服务价格 */
html[data-theme="dark"] fieldset.erphpdown .erphpdown-price {
    color: #ff9f0a !important;
    font-weight: 600;
}

/* 购买按钮：保留插件原有功能，统一深色模式下的视觉 */
html[data-theme="dark"] fieldset.erphpdown a.erphpdown-buy {
    color: #ffffff !important;
}

/* 联系我们按钮保留原有绿色，不覆盖其背景 */
html[data-theme="dark"] fieldset.erphpdown .erphpdown-tips a {
    color: #ffffff !important;
}

/* 兼容主题为 fieldset 添加的高亮伪元素 */
html[data-theme="dark"] fieldset.erphpdown::before,
html[data-theme="dark"] fieldset.erphpdown::after,
html[data-theme="dark"] fieldset.erphpdown fieldset.erphpdown-child::before,
html[data-theme="dark"] fieldset.erphpdown fieldset.erphpdown-child::after {
    border-color: #38383b !important;
    box-shadow: none !important;
}

/* 深色模式：erphpdown 音源子框 */
html[data-theme="dark"] .erphpdown .erphpdown-child {
    border: 1px solid #38383b !important;
    box-shadow: none !important;
}

/* 深色模式：音源名称 */
@media screen {
    html[data-theme="dark"] .erphpdown .erphpdown-child > legend {
        color: #e5e5e7 !important;
        background-color: #1d1d1f !important;
        border: none !important;
    }
}


/* 页脚：深色模式品牌入口、备案与版权信息 */
html[data-theme="dark"] footer a,
html[data-theme="dark"] .site-footer a {
    color: #b8b8bd !important;
    text-decoration: none !important;
    transition: color .2s ease;
}

html[data-theme="dark"] footer a:hover,
html[data-theme="dark"] .site-footer a:hover {
    color: #e5e5e7 !important;
}

/* 品牌与合作入口 */
html[data-theme="dark"] footer div a,
html[data-theme="dark"] .site-footer div a {
    color: #c5c5ca !important;
}

/* 备案名称：覆盖内联黑色文字 */
html[data-theme="dark"] footer strong,
html[data-theme="dark"] .site-footer strong {
    color: #b8b8bd !important;
}

/* 版权、公司名称与品牌理念 */
html[data-theme="dark"] footer span,
html[data-theme="dark"] .site-footer span {
    color: #86868b !important;
}

/* 备案图标保持原图，不调整图片颜色 */
html[data-theme="dark"] footer img,
html[data-theme="dark"] .site-footer img {
    opacity: .85;
}
html[data-theme="dark"] strong[style*="color:#000"],
html[data-theme="dark"] strong[style*="color: #000"] {
    color: #b8b8bd !important;
}

/* 深色模式：修复公安与工信部备案名称的纯黑文字 */
html[data-theme="dark"] footer strong[style*="color:#000"],
html[data-theme="dark"] footer strong[style*="color: #000"],
html[data-theme="dark"] .site-footer strong[style*="color:#000"],
html[data-theme="dark"] .site-footer strong[style*="color: #000"] {
    color: #b8b8bd !important;
}


/* 深色模式：Logo 适配 */
html[data-theme="dark"] #logo img {
    opacity: 0.92;
    filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.12));
    transition: opacity .2s ease, filter .2s ease;
}

html[data-theme="dark"] #logo img:hover {
    opacity: 1;
}

/* NewVFX Logo：深色模式临时白色版本 */
html[data-theme="dark"] #logo img {
    filter: brightness(0) invert(1);
    opacity: .92;
}
