/* ===== tlgy-night.css 自动夜间模式 =====
 * 触发：html[data-theme="dark"]
 * 由 index.php <head> 里的同步脚本根据本地时间 (20:00 - 07:59) 自动切换
 * CSS 选择器全部用 !important 以压过 tlgy-theme.css
 */

html[data-theme="dark"] body { background:#15171a !important; color:#e6e6e6 !important; }
html[data-theme="dark"] .indexBg { background:#15171a !important; }

/* 顶栏 */
html[data-theme="dark"] header,
html[data-theme="dark"] .headerTop { background:#1c1f23 !important; border-bottom:1px solid #2a2d31 !important; }
html[data-theme="dark"] .headerTop .logo img { filter:brightness(1.1) drop-shadow(0 1px 2px rgba(0,0,0,.4)) !important; }

/* 搜索图标 stroke 由 %23222 改为浅色 */
html[data-theme="dark"] .headerTop .search .indexICon {
    background:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23e6e6e6" stroke-width="2.2" stroke-linecap="round"><circle cx="10.5" cy="10.5" r="6.2"/><path d="M15.3 15.3 L20 20"/></svg>') no-repeat center !important;
    background-size:contain !important;
}
html[data-theme="dark"] .headerTop .naviGation {
    background:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23e6e6e6"><rect x="3" y="5" width="18" height="2.2" rx="1.1"/><rect x="3" y="11" width="18" height="2.2" rx="1.1"/><rect x="3" y="17" width="18" height="2.2" rx="1.1"/></svg>') no-repeat center !important;
    background-size:contain !important;
}

/* 分类导航 */
html[data-theme="dark"] .navBox { background:#1c1f23 !important; }
html[data-theme="dark"] .nav li a { color:#e6e6e6 !important; }
html[data-theme="dark"] .nav li.current a { background:#e6e6e6 !important; color:#15171a !important; }

/* 列表卡片 */
html[data-theme="dark"] .editList li { background:#1c1f23 !important; box-shadow:0 2px 10px rgba(0,0,0,.4) !important; }
html[data-theme="dark"] .editList .imgBox { background:#2a2d31 !important; }
html[data-theme="dark"] .editList .name { color:#e6e6e6 !important; }
html[data-theme="dark"] .editList .review { color:#888 !important; }

/* tab 筛选 */
html[data-theme="dark"] .tabBox { background:#1c1f23 !important; }
html[data-theme="dark"] .tabsMenu li a,
html[data-theme="dark"] .tabMenu span { background:#2a2d31 !important; color:#ccc !important; }
html[data-theme="dark"] .tabsMenu li.current a,
html[data-theme="dark"] .tabMenu span.current { background:#e6e6e6 !important; color:#15171a !important; }

/* apk 列表 (wdIapp) */
html[data-theme="dark"] .wdIapp ul li { background:#1c1f23 !important; box-shadow:0 2px 10px rgba(0,0,0,.4) !important; }
html[data-theme="dark"] .wdIapp ul li img { background:#2a2d31 !important; }
html[data-theme="dark"] .wdIapp ul li a p:first-of-type { color:#e6e6e6 !important; }
html[data-theme="dark"] .wdIapp ul li a p:nth-of-type(2) { color:#888 !important; }
html[data-theme="dark"] .wdIapp .wdTit h2 { color:#e6e6e6 !important; border-left-color:#e6e6e6 !important; }

/* 排行榜 */
html[data-theme="dark"] .rankingBox { background:#1c1f23 !important; }
html[data-theme="dark"] .rankingimg .mask { background:linear-gradient(0deg, rgba(0,0,0,.7) 0%, rgba(0,0,0,.15) 100%) !important; }
html[data-theme="dark"] .rankingimg h3,
html[data-theme="dark"] .rankingimg p { color:#fff !important; }

/* 站长QQ/微信卡片 */
html[data-theme="dark"] .bossCards .bossCard { background:#1c1f23 !important; color:#e6e6e6 !important; }
html[data-theme="dark"] .bossCard .ico { background:#2a2d31 !important; }
html[data-theme="dark"] .bossCard .txt { color:#e6e6e6 !important; }

/* 搜索/筛选条 */
html[data-theme="dark"] .searchBar,
html[data-theme="dark"] .searchBar input,
html[data-theme="dark"] .filterBar { background:#1c1f23 !important; color:#e6e6e6 !important; border-color:#2a2d31 !important; }

/* 标题 */
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 { color:#e6e6e6 !important; }

/* 链接 */
html[data-theme="dark"] a { color:#7ab8ff !important; }
html[data-theme="dark"] a:visited { color:#9d7ad9 !important; }

/* 通用文本/段落 */
html[data-theme="dark"] p, html[data-theme="dark"] span, html[data-theme="dark"] li,
html[data-theme="dark"] div { color:inherit; }

/* 通用 input / textarea */
html[data-theme="dark"] input, html[data-theme="dark"] textarea,
html[data-theme="dark"] select { background:#2a2d31 !important; color:#e6e6e6 !important; border-color:#3a3d41 !important; }

/* tabBar 底部 */
html[data-theme="dark"] .tabBar,
html[data-theme="dark"] .footerTab,
html[data-theme="dark"] footer { background:#1c1f23 !important; border-top:1px solid #2a2d31 !important; }
html[data-theme="dark"] .tabBar a, html[data-theme="dark"] .footerTab a { color:#999 !important; }
html[data-theme="dark"] .tabBar a.current, html[data-theme="dark"] .footerTab a.current { color:#7ab8ff !important; }

/* 弹窗 / 抽屉 (bulletFrame) */
html[data-theme="dark"] .bulletFrame,
html[data-theme="dark"] .bulletFrame ul { background:#1c1f23 !important; color:#e6e6e6 !important; }
html[data-theme="dark"] .bulletFrame a { color:#e6e6e6 !important; border-bottom-color:#2a2d31 !important; }

/* 通用容器/卡片 */
html[data-theme="dark"] .card,
html[data-theme="dark"] .panel,
html[data-theme="dark"] .box { background:#1c1f23 !important; color:#e6e6e6 !important; border-color:#2a2d31 !important; }

/* 分页 */
html[data-theme="dark"] .pageContont a { background:#1c1f23 !important; color:#e6e6e6 !important; border-color:#2a2d31 !important; }
html[data-theme="dark"] .pageContont a.current { background:#7ab8ff !important; color:#15171a !important; border-color:#7ab8ff !important; }

/* 滚动条美化 */
html[data-theme="dark"] ::-webkit-scrollbar { width:6px; height:6px; }
html[data-theme="dark"] ::-webkit-scrollbar-thumb { background:#3a3d41 !important; border-radius:3px; }
html[data-theme="dark"] ::-webkit-scrollbar-track { background:#15171a !important; }

/* 图片降低亮度防刺眼 */
html[data-theme="dark"] img { opacity:.92; }

/* 通知弹窗 (免责声明) */
html[data-theme="dark"] .notice-box { background:#1c1f23 !important; color:#e6e6e6 !important; }
html[data-theme="dark"] .notice-content { color:#e6e6e6 !important; }
html[data-theme="dark"] .notice-top { background:linear-gradient(135deg, #1f3a52, #0a2a44) !important; }
html[data-theme="dark"] .notice-close-x { color:#e6e6e6 !important; }