/* ========== Fly社区夜间模式 / 覆盖 custom.css + global.css + center.css ========== */
[data-theme="dark"]{
    --d-bg:#0d1117;--d-card:#161b22;--d-border:#30363d;
    --d-text:#c9d1d9;--d-title:#e6edf3;--d-muted:#8b949e;--d-primary:#636568;
}

/* 1. 根与页面 */
html[data-theme="dark"]{background:var(--d-bg)!important}
html[data-theme="dark"] body{background:var(--d-bg)!important;color:var(--d-text)!important}

/* 2. 通用标签透明化 */
[data-theme="dark"] div,[data-theme="dark"] section,[data-theme="dark"] article,[data-theme="dark"] aside,[data-theme="dark"] nav,[data-theme="dark"] main,[data-theme="dark"] header,[data-theme="dark"] footer,[data-theme="dark"] form,[data-theme="dark"] ul,[data-theme="dark"] ol,[data-theme="dark"] li,[data-theme="dark"] dl,[data-theme="dark"] dt,[data-theme="dark"] dd,[data-theme="dark"] table,[data-theme="dark"] tr,[data-theme="dark"] td,[data-theme="dark"] th,[data-theme="dark"] fieldset,[data-theme="dark"] legend,[data-theme="dark"] blockquote,[data-theme="dark"] pre,[data-theme="dark"] figure,[data-theme="dark"] figcaption,[data-theme="dark"] address,[data-theme="dark"] summary,[data-theme="dark"] details{background:transparent!important;border-color:var(--d-border)!important;color:inherit!important}

/* 3. 拦截内联白底 */
[data-theme="dark"] [style*="background-color: rgb(255, 255, 255)"],[data-theme="dark"] [style*="background-color: #fff"],[data-theme="dark"] [style*="background-color:#fff"],[data-theme="dark"] [style*="background: #fff"],[data-theme="dark"] [style*="background:#fff"],[data-theme="dark"] [style*="background-color: white"],[data-theme="dark"] [style*="background: white"],[data-theme="dark"] [style*="background-color: #ffffff"],[data-theme="dark"] [style*="background: #ffffff"]{background:var(--d-card)!important}

/* 4. 保护Layui箭头 */
[data-theme="dark"] .layui-layer-TipsG,[data-theme="dark"] .layui-nav-more,[data-theme="dark"] .layui-nav-mored{border-color:transparent!important}

/* 5. 全站面板/卡片/容器统一深色 */
[data-theme="dark"] .fly-panel,[data-theme="dark"] .layui-panel,[data-theme="dark"] .layui-card,[data-theme="dark"] .layui-card-header,[data-theme="dark"] .layui-card-body,[data-theme="dark"] .layui-collapse,[data-theme="dark"] .layui-colla-item,[data-theme="dark"] .layui-colla-title,[data-theme="dark"] .layui-colla-content,[data-theme="dark"] .layui-form-pane .layui-form-label,[data-theme="dark"] .layui-input-block,[data-theme="dark"] .layui-input-inline,[data-theme="dark"] .layui-form-item,[data-theme="dark"] .layui-tab,[data-theme="dark"] .layui-tab-title,[data-theme="dark"] .layui-tab-content,[data-theme="dark"] .layui-tab-item,[data-theme="dark"] .layui-table-view,[data-theme="dark"] .layui-table-box,[data-theme="dark"] .layui-table-header,[data-theme="dark"] .layui-table-body,[data-theme="dark"] .layui-table-tool,[data-theme="dark"] .layui-table-total,[data-theme="dark"] .layui-table-page,[data-theme="dark"] .layui-table-cell,[data-theme="dark"] .layui-layer,[data-theme="dark"] .layui-layer-title,[data-theme="dark"] .layui-layer-content,[data-theme="dark"] .layui-layer-btn,[data-theme="dark"] .layui-laypage,[data-theme="dark"] .layui-laypage a,[data-theme="dark"] .layui-laypage span,[data-theme="dark"] .layui-laypage input,[data-theme="dark"] .layui-form-select dl,[data-theme="dark"] .layui-form-select dl dd,[data-theme="dark"] .layui-menu,[data-theme="dark"] .layui-menu-item,[data-theme="dark"] .layui-menu-body-title,[data-theme="dark"] .layui-dropdown,[data-theme="dark"] .layui-timeline,[data-theme="dark"] .layui-timeline-item,[data-theme="dark"] .layui-timeline-title,[data-theme="dark"] .layui-timeline-content,[data-theme="dark"] .layui-progress,[data-theme="dark"] .layui-rate,[data-theme="dark"] .layui-transfer,[data-theme="dark"] .layui-transfer-box,[data-theme="dark"] .layui-transfer-header,[data-theme="dark"] .layui-transfer-data,[data-theme="dark"] .layui-slider,[data-theme="dark"] .layui-carousel,[data-theme="dark"] .layui-fixbar,[data-theme="dark"] .layui-fixbar li,[data-theme="dark"] .layui-flow-more,[data-theme="dark"] .layui-flow-more a,[data-theme="dark"] .layui-elem-field,[data-theme="dark"] .layui-field-title,[data-theme="dark"] .layui-elem-quote,[data-theme="dark"] .layui-quote-nm,[data-theme="dark"] .layui-text,[data-theme="dark"] .layui-upload,[data-theme="dark"] .layui-upload-drag,[data-theme="dark"] .layui-upload-choose,[data-theme="dark"] .layui-btn-group,[data-theme="dark"] .layui-input-split,[data-theme="dark"] .layui-form-checked,[data-theme="dark"] .layui-form-checkbox,[data-theme="dark"] .layui-form-checkbox span,[data-theme="dark"] .layui-form-radio,[data-theme="dark"] .layui-form-radio i,[data-theme="dark"] .layui-form-switch,[data-theme="dark"] .layui-nav,[data-theme="dark"] .layui-nav-child,[data-theme="dark"] .layui-nav-item,[data-theme="dark"] .layui-nav-tree,[data-theme="dark"] .layui-side,[data-theme="dark"] .layui-side-scroll,[data-theme="dark"] .layui-body,[data-theme="dark"] .layui-layout-admin,[data-theme="dark"] .layui-header,[data-theme="dark"] .layui-footer,[data-theme="dark"] .layui-logo,[data-theme="dark"] .layui-table,[data-theme="dark"] .layui-table th,[data-theme="dark"] .layui-table td,[data-theme="dark"] .layui-table tr,[data-theme="dark"] .layui-table-view .layui-table[lay-skin="nob"] th,[data-theme="dark"] .layui-table-view .layui-table[lay-skin="nob"] td,[data-theme="dark"] .layui-table-tool-panel,[data-theme="dark"] .layui-table-col-special,[data-theme="dark"] .jieda,[data-theme="dark"] .jieda>li,[data-theme="dark"] .detail-about,[data-theme="dark"] .detail-box,[data-theme="dark"] .detail-hits,[data-theme="dark"] .fly-detail-info,[data-theme="dark"] .fly-filter-wrap,[data-theme="dark"] .fly-case-list,[data-theme="dark"] .fly-case-list>li,[data-theme="dark"] .fly-list,[data-theme="dark"] .fly-list>li,[data-theme="dark"] #forumlabel-box,[data-theme="dark"] .fly-panel-hot,[data-theme="dark"] .fly-panel-notice,[data-theme="dark"] .stats-grid,[data-theme="dark"] .stat-item,[data-theme="dark"] .mobile-sidebar,[data-theme="dark"] .sidebar-menu,[data-theme="dark"] .sidebar-user,[data-theme="dark"] .sidebar-header,[data-theme="dark"] .layui-laydate,[data-theme="dark"] .layui-laydate-header,[data-theme="dark"] .layui-laydate-content,[data-theme="dark"] .layui-laydate-content td,[data-theme="dark"] .layui-laydate-content th,[data-theme="dark"] .layui-laydate-footer,[data-theme="dark"] .layui-laydate-list,[data-theme="dark"] .layui-laydate-hint,[data-theme="dark"] .layui-laydate-main,[data-theme="dark"] .fly-msg,[data-theme="dark"] .fly-error,[data-theme="dark"] .fly-edit,[data-theme="dark"] .fly-list-one dd,[data-theme="dark"] .fly-list-static li,[data-theme="dark"] .fly-rank dl,[data-theme="dark"] .fly-rank dd,[data-theme="dark"] .fly-signin-list,[data-theme="dark"] .fly-signin-main,[data-theme="dark"] .fly-tab,[data-theme="dark"] .fly-tab-border span,[data-theme="dark"] .fly-tab-border span a,[data-theme="dark"] .fly-case-header,[data-theme="dark"] .fly-none,[data-theme="dark"] .fly-union,[data-theme="dark"] .fly-footer,[data-theme="dark"] .fly-column,[data-theme="dark"] .fly-ad,[data-theme="dark"] .fly-form-app,[data-theme="dark"] pre,[data-theme="dark"] code,[data-theme="dark"] kbd,[data-theme="dark"] .layui-code,[data-theme="dark"] .layui-editor,[data-theme="dark"] .wmd-panel,[data-theme="dark"] .editormd,[data-theme="dark"] .CodeMirror,[data-theme="dark"] .layui-edit-face .layui-layer-content,[data-theme="dark"] .layui-edit-face ul,[data-theme="dark"] .layui-edit-face ul li{background:var(--d-card)!important;color:var(--d-text)!important;border-color:var(--d-border)!important;box-shadow:none!important}

/* 6. 标题文字 */
[data-theme="dark"] h1,[data-theme="dark"] h2,[data-theme="dark"] h3,[data-theme="dark"] h4,[data-theme="dark"] h5,[data-theme="dark"] h6,[data-theme="dark"] .layui-card-header,[data-theme="dark"] .fly-panel-title,[data-theme="dark"] .fly-detail-user cite,[data-theme="dark"] .fly-list>li h2 a,[data-theme="dark"] .fly-case-list>li .forum-body h2,[data-theme="dark"] .hot-title,[data-theme="dark"] .stat-item strong,[data-theme="dark"] .user-info strong,[data-theme="dark"] .sidebar-title,[data-theme="dark"] .layui-timeline-title,[data-theme="dark"] .layui-field-title legend,[data-theme="dark"] .layui-colla-title,[data-theme="dark"] .detail h1,[data-theme="dark"] .fly-detail-user a,[data-theme="dark"] .fly-home h1,[data-theme="dark"] .fly-home h1 span,[data-theme="dark"] .user-about p,[data-theme="dark"] .fly-case-list li h2,[data-theme="dark"] .fly-list-one dd a,[data-theme="dark"] .fly-list-static li a,[data-theme="dark"] .fly-rank dd a i,[data-theme="dark"] .fly-signin-list span,[data-theme="dark"] .fly-signin-days,[data-theme="dark"] .fly-tab-border .tab-this,[data-theme="dark"] .fly-none p,[data-theme="dark"] .fly-footer a,[data-theme="dark"] .fly-column ul li a,[data-theme="dark"] .fly-union span a,[data-theme="dark"] #center-body-backbar>span,[data-theme="dark"] .userheadbar>div:nth-of-type(1) h2,[data-theme="dark"] .center-friends>li>p>a,[data-theme="dark"] .center-msgbox>li>h2>a{color:var(--d-title)!important}

/* 7. 正文与辅助文字 */
[data-theme="dark"] p,[data-theme="dark"] span:not(.layui-badge):not(.layui-badge-rim):not(.fly-badge-vip):not(.layui-btn),[data-theme="dark"] .fly-list-info,[data-theme="dark"] .fly-list-info a,[data-theme="dark"] .fly-detail-user span,[data-theme="dark"] .detail-hits,[data-theme="dark"] .detail-hits span,[data-theme="dark"] .sub-forums,[data-theme="dark"] .sub-forums a,[data-theme="dark"] .stat-item span,[data-theme="dark"] .hot-num,[data-theme="dark"] .replycontent,[data-theme="dark"] .layui-text p,[data-theme="dark"] .layui-text li,[data-theme="dark"] .layui-text em,[data-theme="dark"] .layui-timeline-content p,[data-theme="dark"] .fly-msg,[data-theme="dark"] .fly-grey,[data-theme="dark"] .fly-list-info,[data-theme="dark"] .fly-list-info a[link],[data-theme="dark"] .jie-row li i,[data-theme="dark"] .jie-row li em,[data-theme="dark"] .jie-row li cite,[data-theme="dark"] .jieda-body,[data-theme="dark"] .jieda-body p,[data-theme="dark"] .jieda-reply span,[data-theme="dark"] .home-jieda li p,[data-theme="dark"] .mine-msg li>p,[data-theme="dark"] .mine-msg li>p span,[data-theme="dark"] .fly-case-desc,[data-theme="dark"] .fly-case-info,[data-theme="dark"] .fly-list-one dd span,[data-theme="dark"] .fly-signin-list li span,[data-theme="dark"] .fly-home-sign,[data-theme="dark"] .fly-home-info span,[data-theme="dark"] .fly-home-info i,[data-theme="dark"] .user-about p span,[data-theme="dark"] .app-bind li,[data-theme="dark"] .fly-ad:before,[data-theme="dark"] .fly-none,[data-theme="dark"] .fly-none .iconfont,[data-theme="dark"] .center-msgbox>li>p,[data-theme="dark"] .center-friends>li>p>span,[data-theme="dark"] .center-heartbox>li>date,[data-theme="dark"] .center-mybox>li>p,[data-theme="dark"] .userheadbar p.user-fans,[data-theme="dark"] .userheadbar p.user-name,[data-theme="dark"] .userheadbar .user-balance{color:var(--d-muted)!important}

/* 8. 链接 */
[data-theme="dark"] a,[data-theme="dark"] .layui-nav a,[data-theme="dark"] .layui-breadcrumb a,[data-theme="dark"] .fly-list-info a,[data-theme="dark"] .hot-title,[data-theme="dark"] .fly-detail-info a,[data-theme="dark"] .layui-menu a,[data-theme="dark"] .layui-menu-body-title a,[data-theme="dark"] .detail-body a,[data-theme="dark"] .jieda-body a,[data-theme="dark"] .fly-list-static li a,[data-theme="dark"] .fly-msg a,[data-theme="dark"] .home-jieda li a,[data-theme="dark"] .mine-msg li cite,[data-theme="dark"] .mine-msg li i,[data-theme="dark"] .fly-case-btn a,[data-theme="dark"] .fly-link,[data-theme="dark"] .fly-search:hover,[data-theme="dark"] .fly-column ul li.layui-this a,[data-theme="dark"] .fly-filter a.layui-this,[data-theme="dark"] .fly-tab-border .tab-this,[data-theme="dark"] .fly-list-one dd a,[data-theme="dark"] .center-heartbox>li>a,[data-theme="dark"] .center-msgbox>li>h2>a,[data-theme="dark"] .center-msgbox>li>p a{color:var(--d-primary)!important}
[data-theme="dark"] a:hover,[data-theme="dark"] .fly-list-info a:hover,[data-theme="dark"] .hot-title:hover,[data-theme="dark"] .layui-nav a:hover,[data-theme="dark"] .layui-menu a:hover,[data-theme="dark"] .fly-link:hover,[data-theme="dark"] .fly-list-static li a:hover,[data-theme="dark"] .fly-footer a:hover,[data-theme="dark"] .fly-case-btn a:hover,[data-theme="dark"] .fly-search:hover{color:#79b8ff!important}

/* 9. 输入框 */
[data-theme="dark"] input,[data-theme="dark"] textarea,[data-theme="dark"] select,[data-theme="dark"] .layui-input,[data-theme="dark"] .layui-textarea,[data-theme="dark"] .layui-form-select dl,[data-theme="dark"] .layui-form-select dl dd:hover,[data-theme="dark"] .layui-layer input,[data-theme="dark"] .fly-layer-search input,[data-theme="dark"] .layui-upload-drag,[data-theme="dark"] .center-searchbox,[data-theme="dark"] .center-mybox>li>p>input,[data-theme="dark"] .center-mybox>li>p>select{background:var(--d-bg)!important;color:var(--d-text)!important;border-color:var(--d-border)!important}

/* 10. 按钮 */
[data-theme="dark"] .layui-btn,[data-theme="dark"] button,[data-theme="dark"] [type="submit"],[data-theme="dark"] [type="button"]{background:#238636!important;color:#fff!important;border-color:#238636!important}
[data-theme="dark"] .layui-btn-primary{background:var(--d-card)!important;color:var(--d-text)!important;border-color:var(--d-border)!important}
[data-theme="dark"] .layui-btn-danger{background:#da3633!important;border-color:#da3633!important}
[data-theme="dark"] .layui-btn-normal{background:#1f6feb!important;border-color:#1f6feb!important}
[data-theme="dark"] .layui-btn-warm{background:#9e6a03!important;border-color:#9e6a03!important}
[data-theme="dark"] .layui-btn-disabled{background:#555!important;color:var(--d-muted)!important;border-color:#555!important}
[data-theme="dark"] .detail-hits .layui-btn,[data-theme="dark"] .jieda>li .detail-hits .layui-btn{background:var(--d-card)!important;color:var(--d-text)!important;border-color:var(--d-border)!important}
[data-theme="dark"] .detail-hits .layui-btn:hover,[data-theme="dark"] .jieda>li .detail-hits .layui-btn:hover{background:var(--d-primary)!important;color:#fff!important;border-color:var(--d-primary)!important}
[data-theme="dark"] .fly-case-btn .layui-btn-primary{background:none!important;color:#fff!important;border-color:rgba(255,255,255,.4)!important}

/* 11. 复选框/单选框/开关 */
[data-theme="dark"] .layui-form-checkbox,[data-theme="dark"] .layui-form-checkbox i,[data-theme="dark"] .layui-form-radio i,[data-theme="dark"] .layui-form-switch{background:var(--d-card)!important;border-color:var(--d-border)!important}
[data-theme="dark"] .layui-form-checked,[data-theme="dark"] .layui-form-checked i,[data-theme="dark"] .layui-form-onswitch{background:#238636!important;border-color:#238636!important}

/* 12. Badge 降亮度 */
[data-theme="dark"] .layui-badge,[data-theme="dark"] .layui-badge-rim,[data-theme="dark"] .layui-bg-green,[data-theme="dark"] .layui-bg-red,[data-theme="dark"] .layui-bg-black,[data-theme="dark"] .layui-bg-blue,[data-theme="dark"] .layui-bg-orange,[data-theme="dark"] .layui-bg-cyan,[data-theme="dark"] .layui-bg-purple,[data-theme="dark"] .fly-badge-vip{filter:brightness(.85) saturate(.9)!important;color:#fff!important}
[data-theme="dark"] .fly-detail-user .fly-badge-vip{background:linear-gradient(135deg,#1c2d4a,#2a4366)!important;color:var(--d-primary)!important;border-color:#1f6feb!important}
[data-theme="dark"] .fly-detail-info .layui-badge[style*="999"]{background:var(--d-card)!important;color:var(--d-muted)!important}

/* 13. 图片/视频/头像保护 */
[data-theme="dark"] img,[data-theme="dark"] video,[data-theme="dark"] iframe,[data-theme="dark"] .fly-avatar img,[data-theme="dark"] .fly-case-img img,[data-theme="dark"] .moyu-img,[data-theme="dark"] .layui-upload-img,[data-theme="dark"] .layui-carousel img{filter:none!important;opacity:.92}

/* 14. 滚动条 */
[data-theme="dark"] ::-webkit-scrollbar{width:8px}[data-theme="dark"] ::-webkit-scrollbar-track{background:var(--d-bg)}[data-theme="dark"] ::-webkit-scrollbar-thumb{background:var(--d-border);border-radius:4px}[data-theme="dark"] ::-webkit-scrollbar-thumb:hover{background:#484f58}

/* 15. 顶栏与导航 */
[data-theme="dark"] .fly-header,[data-theme="dark"] .layui-header{background:#161b22!important;border-bottom:1px solid var(--d-border)!important}
[data-theme="dark"] .layui-nav{background:transparent!important}
[data-theme="dark"] .layui-nav .layui-nav-item a{color:var(--d-text)!important}
[data-theme="dark"] .layui-nav .layui-this:after{background:var(--d-primary)!important}
[data-theme="dark"] .fly-header .layui-nav .layui-this a{color:var(--d-primary)!important}
[data-theme="dark"] .fly-header .fly-nav-user a,[data-theme="dark"] .fly-header .fly-nav-avatar cite{color:var(--d-text)!important}
[data-theme="dark"] .layui-nav-child{background:var(--d-card)!important;border:1px solid var(--d-border)!important;box-shadow:0 4px 12px rgba(0,0,0,.5)!important}
[data-theme="dark"] .layui-nav-child dd a{color:var(--d-text)!important}
[data-theme="dark"] .layui-nav-child dd a:hover,[data-theme="dark"] .layui-nav-child dd.layui-this{background:rgba(255,255,255,.05)!important;color:#fff!important}
[data-theme="dark"] .fly-header .layui-nav-child a{color:var(--d-text)!important}
[data-theme="dark"] .fly-header .layui-nav-child a:hover{color:var(--d-primary)!important}

/* 16. 分页 */
[data-theme="dark"] .layui-laypage a,[data-theme="dark"] .layui-laypage span,[data-theme="dark"] .layui-laypage input{background:var(--d-card)!important;color:var(--d-text)!important;border-color:var(--d-border)!important}
[data-theme="dark"] .layui-laypage .layui-laypage-curr .layui-laypage-em{background:var(--d-primary)!important}
[data-theme="dark"] .laypage-main,[data-theme="dark"] .laypage-main *{border-color:var(--d-border)!important}
[data-theme="dark"] .laypage-main .laypage-curr{background-color:var(--d-primary)!important;color:#fff!important}

/* 17. 表格 */
[data-theme="dark"] .layui-table,[data-theme="dark"] .layui-table th,[data-theme="dark"] .layui-table td,[data-theme="dark"] .layui-table tr,[data-theme="dark"] .layui-table[lay-even] tr:nth-child(even){background:var(--d-card)!important;color:var(--d-text)!important;border-color:var(--d-border)!important}
[data-theme="dark"] .layui-table thead tr,[data-theme="dark"] .layui-table-header th,[data-theme="dark"] .layui-table-view .layui-table[lay-skin="line"] th,[data-theme="dark"] .layui-table-view .layui-table[lay-skin="line"] td{background:var(--d-bg)!important}
[data-theme="dark"] .detail-body table thead{background-color:var(--d-bg)!important}
[data-theme="dark"] .detail-body table th,[data-theme="dark"] .detail-body table td{border-color:var(--d-border)!important}

/* 18. 弹窗 */
[data-theme="dark"] .layui-layer{background:var(--d-card)!important;border:1px solid var(--d-border)!important;box-shadow:0 8px 24px rgba(0,0,0,.6)!important}
[data-theme="dark"] .layui-layer-title{background:var(--d-bg)!important;color:var(--d-title)!important;border-bottom:1px solid var(--d-border)!important}
[data-theme="dark"] .layui-layer-btn{background:var(--d-card)!important;border-top:1px solid var(--d-border)!important}

/* 19. 日期选择器 */
[data-theme="dark"] .layui-laydate,[data-theme="dark"] .layui-laydate-header,[data-theme="dark"] .layui-laydate-content,[data-theme="dark"] .layui-laydate-footer{background:var(--d-card)!important;color:var(--d-text)!important;border-color:var(--d-border)!important}
[data-theme="dark"] .layui-laydate-content td{color:var(--d-text)!important}
[data-theme="dark"] .layui-laydate-content td:hover,[data-theme="dark"] .layui-laydate-content td.layui-this{background:var(--d-primary)!important;color:#fff!important}

/* 20. 编辑器/代码块 */
[data-theme="dark"] .layui-editor,[data-theme="dark"] .wmd-panel,[data-theme="dark"] .editormd,[data-theme="dark"] .CodeMirror,[data-theme="dark"] pre,[data-theme="dark"] code,[data-theme="dark"] kbd,[data-theme="dark"] .layui-code{background:var(--d-bg)!important;color:var(--d-text)!important;border-color:var(--d-border)!important}
[data-theme="dark"] .fly-edit{background:var(--d-bg)!important;border-color:var(--d-border)!important}
[data-theme="dark"] .fly-edit span{color:var(--d-muted)!important}
[data-theme="dark"] .fly-edit span:hover{color:var(--d-primary)!important}

/* 21. 折叠面板 */
[data-theme="dark"] .layui-colla-title{background:var(--d-bg)!important}
[data-theme="dark"] .layui-colla-content{background:var(--d-card)!important;color:var(--d-text)!important}

/* 22. 引用块 */
[data-theme="dark"] .layui-elem-quote,[data-theme="dark"] .layui-quote-nm{background:var(--d-bg)!important;border-left-color:var(--d-primary)!important}

/* 23. 选中高亮 */
[data-theme="dark"] ::selection{background:rgba(88,166,255,.3)!important;color:var(--d-title)!important}

/* 24. 细节修复 */
[data-theme="dark"] .fly-column ul li.layui-this:after{border-color:var(--d-primary)!important}
[data-theme="dark"] .fly-tab-border .tab-this:after{background-color:var(--d-primary)!important}
[data-theme="dark"] .detail-hits span[style*="FF7200"]{color:#ff9f43!important;background:rgba(255,159,67,.15)!important;padding:2px 8px!important;border-radius:4px!important}
[data-theme="dark"] .fly-home .icon-renzheng{background-color:#d4a017!important}
[data-theme="dark"] .layui-edit-face ul li:hover{background:var(--d-bg)!important}

/* ========== 25. 个人中心专项（center.css） ========== */
[data-theme="dark"] #center-main{background:var(--d-bg)!important}
[data-theme="dark"] .userheadbar{background-color:var(--d-card)!important;box-shadow:0 2px 8px rgba(0,0,0,0.2)!important}
[data-theme="dark"] .userheadbar .user-balance{color:#ff9f43!important}
[data-theme="dark"] .userheadbar p.user-fans::before,[data-theme="dark"] .userheadbar p.user-name::before{background-color:var(--d-muted)!important}
[data-theme="dark"] .userheadbar>div:nth-of-type(2) a{box-shadow:0 2px 6px rgba(0,0,0,0.2)!important}
[data-theme="dark"] #center_nav{background:var(--d-card)!important;box-shadow:0 1px 4px rgba(0,0,0,0.1)!important}
[data-theme="dark"] #center_nav li{color:var(--d-text)!important;border-color:transparent!important;background-image:none!important}
[data-theme="dark"] #center_nav li:hover{background-color:rgba(255,255,255,0.05)!important;color:var(--d-title)!important;border-color:transparent!important}
[data-theme="dark"] #center_nav li.pk-active{background-color:rgba(25,202,173,0.15)!important;color:#19CAAD!important;box-shadow:none!important}
[data-theme="dark"] #center_nav li.pk-active>i{filter:none!important;color:#19CAAD!important}
[data-theme="dark"] #center_nav li::before{background-color:var(--d-muted)!important}
[data-theme="dark"] #center_nav li.pk-active::before{background-color:#19CAAD!important}
[data-theme="dark"] #center-body{background:var(--d-card)!important;border-color:var(--d-border)!important;box-shadow:0 1px 4px rgba(0,0,0,0.1)!important}
[data-theme="dark"] #center-body-backbar{background-color:var(--d-card)!important;border-bottom-color:var(--d-border)!important;box-shadow:0 1px 4px rgba(0,0,0,0.1)!important}
[data-theme="dark"] .center-msgbox>li{background:var(--d-card)!important;border-color:var(--d-border)!important;box-shadow:0 1px 4px rgba(0,0,0,0.1)!important}
[data-theme="dark"] .center-msgbox>li>h2{border-bottom-color:var(--d-border)!important;background:transparent!important}
[data-theme="dark"] .center-msgbox>li>h2>i{color:var(--d-muted)!important}
[data-theme="dark"] .center-msgbox>li>a{color:var(--d-muted)!important}
[data-theme="dark"] .center-msgbox>li>a:hover{background-color:var(--d-bg)!important}
[data-theme="dark"] .center-friends>li{border-bottom-color:var(--d-border)!important}
[data-theme="dark"] .center-friends>li:nth-of-type(1){border-top-color:var(--d-border)!important}
[data-theme="dark"] .center-heartbox>li{border-bottom-color:var(--d-border)!important}
[data-theme="dark"] .center-heartbox>li:nth-of-type(1){border-top-color:var(--d-border)!important}
[data-theme="dark"] .center-mybox>li._title>span{background-color:var(--d-card)!important;color:var(--d-title)!important;border:1px solid var(--d-border)!important}
[data-theme="dark"] .center-mybox>li>p:nth-of-type(1){color:var(--d-muted)!important}
[data-theme="dark"] .center-mybox>li>p>._savebtn{opacity:.9}
[data-theme="dark"] ._Interactive_btn.disabled{background-color:#555!important;color:var(--d-muted)!important}

/* 26. global用户中心 */
[data-theme="dark"] .fly-user-main>.layui-nav{background:var(--d-card)!important;border-right:1px solid var(--d-border)!important}
[data-theme="dark"] .fly-user-main>.fly-panel{min-height:575px;background:var(--d-card)!important}
[data-theme="dark"] .fly-panel-user[pad20]{background:var(--d-card)!important}
[data-theme="dark"] .fly-home{background:transparent!important}
[data-theme="dark"] .fly-home h1 span{color:var(--d-muted)!important}
[data-theme="dark"] .avatar-add{background:var(--d-card)!important}
[data-theme="dark"] .avatar-add p{color:var(--d-muted)!important}
[data-theme="dark"] .home-dacontent{background-color:var(--d-bg)!important;color:var(--d-text)!important}
[data-theme="dark"] .home-dacontent pre{background-color:var(--d-bg)!important}
[data-theme="dark"] .mine-msg li{border-bottom-color:var(--d-border)!important}
[data-theme="dark"] .app-bind li{color:var(--d-muted)!important}
[data-theme="dark"] .app-bind .app-havebind{color:var(--d-text)!important}

/* 27. 移动端个人中心 */
@media only screen and (max-width:1000px){
[data-theme="dark"] body{background:var(--d-bg)!important}
[data-theme="dark"] #center-maindivbox{background:var(--d-bg)!important}
[data-theme="dark"] #center-main{background:var(--d-card)!important;box-shadow:0 8px 32px rgba(0,0,0,0.2)!important}
[data-theme="dark"] .userheadbar{background:var(--d-card)!important;border-bottom-color:var(--d-border)!important}
[data-theme="dark"] .userheadbar #logoutbtn{color:#ff6b6b!important}
[data-theme="dark"] .userheadbar>img:nth-of-type(1){border-color:var(--d-border)!important}
[data-theme="dark"] #center_nav li{color:var(--d-text)!important}
[data-theme="dark"] #center_nav li:hover{background-color:rgba(255,255,255,0.05)!important;color:var(--d-title)!important}
[data-theme="dark"] #center_nav li.pk-active{background-color:rgba(25,202,173,0.15)!important;color:#19CAAD!important}
[data-theme="dark"] #center-body{background:var(--d-card)!important}
[data-theme="dark"] #center-body-backbar{background:var(--d-card)!important;border-bottom-color:var(--d-border)!important}
[data-theme="dark"] .center-msgbox>li>h2{background:var(--d-bg)!important}
[data-theme="dark"] .center-mybox>li._title>span{background:#19CAAD!important;color:#fff!important;border:none!important}
[data-theme="dark"] .center-mybox>li>p:nth-of-type(1){color:var(--d-muted)!important}
[data-theme="dark"] .center-mybox>li>p>input,[data-theme="dark"] .center-mybox>li>p>select{background:var(--d-bg)!important;border-color:var(--d-border)!important}
[data-theme="dark"] .center-mybox>li>p>input:focus,[data-theme="dark"] .center-mybox>li>p>select:focus{border-color:#19CAAD!important;background:var(--d-bg)!important}
}

/* 28. 切换按钮样式 */
.theme-toggle{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:50%;color:inherit;cursor:pointer;transition:background .2s}
.theme-toggle:hover{background:rgba(128,128,128,.15)}
.theme-toggle svg{width:18px;height:18px}
.theme-toggle .icon-moon{display:none}
[data-theme="dark"] .theme-toggle .icon-sun{display:none}
[data-theme="dark"] .theme-toggle .icon-moon{display:block}
/* ========== 夜间模式修补：筛选栏 + 文章标签 ========== */

/* 1. 修复列表页顶部筛选栏白底（最新/推荐/版块） */
[data-theme="dark"] .fly-filter-wrap,
[data-theme="dark"] .fly-filter-wrap .fly-panel-title,
[data-theme="dark"] .fly-filter-wrap .filter-group,
[data-theme="dark"] .fly-filter-wrap .fly-filter-right {
    background: var(--d-card) !important;
    border-color: var(--d-border) !important;
}

/* 筛选栏内当前选中项保持蓝色，但文字可读 */
[data-theme="dark"] .fly-filter-wrap .filter-group a.layui-this {
    background: var(--d-primary) !important;
    color: #fff !important;
    box-shadow: 0 2px 6px rgba(13,110,253,0.2) !important;
}
[data-theme="dark"] .fly-filter-wrap .filter-group a {
    color: var(--d-muted) !important;
}
[data-theme="dark"] .fly-filter-wrap .fly-filter-right a {
    color: var(--d-muted) !important;
}
[data-theme="dark"] .fly-filter-wrap .fly-filter-right a.layui-this {
    color: var(--d-primary) !important;
    background: rgba(88,166,255,0.15) !important;
}

/* 2. 修复文章页标签（badge）在深色背景上看不见 */
[data-theme="dark"] .fly-detail-info .layui-badge,
[data-theme="dark"] .fly-detail-info .layui-badge-rim {
    filter: none !important;
    border: 1px solid var(--d-border) !important;
}

/* 各颜色标签强制深色版，确保文字清晰 */
[data-theme="dark"] .fly-detail-info .layui-bg-green {
    background: #1b4332 !important;
    color: #aff5b4 !important;
}
[data-theme="dark"] .fly-detail-info .layui-bg-red {
    background: #3a0f0f !important;
    color: #ffdcd7 !important;
}
[data-theme="dark"] .fly-detail-info .layui-bg-black,
[data-theme="dark"] .fly-detail-info .layui-badge[style*="999"] {
    background: #2d333b !important;
    color: #adbac7 !important;
}
[data-theme="dark"] .fly-detail-info .layui-bg-blue {
    background: #0c2d6b !important;
    color: #cae1ff !important;
}
[data-theme="dark"] .fly-detail-info .layui-bg-orange {
    background: #4a2000 !important;
    color: #ffddb0 !important;
}
[data-theme="dark"] .fly-detail-info .layui-bg-cyan {
    background: #002d3d !important;
    color: #b0f0ff !important;
}
[data-theme="dark"] .fly-detail-info .layui-bg-purple {
    background: #2a0f3a !important;
    color: #e8c4ff !important;
}

/* 3. 列表页 .fly-list>li 边框在夜间模式下降低刺眼感 */
[data-theme="dark"] .fly-list>li {
    border-color: var(--d-border) !important;
    background: var(--d-card) !important;
}
