/* =========================================================
   Nice 主题 · 深色配色（黑色/白色 双主题）· 全覆盖版
   ---------------------------------------------------------
   仅在 <html data-theme="dark"> 时生效；浅色外观由 default.css 控制。
   策略：把 default.css 里所有浅色表面/深色文字逐一反色，
   强调色组件（顶部导航、term-bar、主题主色按钮/徽章）保持不变。
   切换：template/.nav.php 按钮 + template/header.php 首帧脚本 +
        template/footer.php 处理逻辑
   ========================================================= */

/* ---------- 基础 ---------- */
html[data-theme="dark"] body{background-color:#14161a !important;color:#d5d9e0 !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,
html[data-theme="dark"] h6{color:#e8ecf1 !important;}
html[data-theme="dark"] a{color:#8ab8ff !important;}
html[data-theme="dark"] strong{color:#e8ecf1 !important;}

/* 滚动条 */
html[data-theme="dark"] ::-webkit-scrollbar{background-color:#1d2026;}
html[data-theme="dark"] ::-webkit-scrollbar-track{background-color:#1d2026;}
html[data-theme="dark"] ::-webkit-scrollbar-thumb{background-color:#3a4050;}

/* =========================================================
   一、卡片 / 浅色表面 → 深色卡片
   ========================================================= */
html[data-theme="dark"] .post-list,
html[data-theme="dark"] .post-grid,
html[data-theme="dark"] .widget-area .widget,
html[data-theme="dark"] .filter--content,
html[data-theme="dark"] .custom .site-main,
html[data-theme="dark"] .uposts,
html[data-theme="dark"] .bgcolor-fff,
html[data-theme="dark"] .entry-thumbnails-17codesign,
html[data-theme="dark"] .modal,
html[data-theme="dark"] .home-search-results,
html[data-theme="dark"] .dropdown,
html[data-theme="dark"] .dropdown div,
html[data-theme="dark"] .navbar li ul,
html[data-theme="dark"] .codecdk-panel,
html[data-theme="dark"] .entry-media .placeholder,
html[data-theme="dark"] table thead,
html[data-theme="dark"] .search-mini,
html[data-theme="dark"] .off-canvas,
html[data-theme="dark"] .slicknav_menu .slicknav_nav,
html[data-theme="dark"] .related-posts,
html[data-theme="dark"] .comments-area,
html[data-theme="dark"] .product-single,
html[data-theme="dark"] .product-info,
html[data-theme="dark"] .product_archive,
html[data-theme="dark"] .form-box,
html[data-theme="dark"] .entry-navigation,
html[data-theme="dark"] .author-card .author-infos .btn,
html[data-theme="dark"] .user-profile .edit--profile-area,
html[data-theme="dark"] .form_title_area,
html[data-theme="dark"] .vip-slogan,
html[data-theme="dark"] .home-vipbox,
html[data-theme="dark"] .alert-dark,
html[data-theme="dark"] .register-login-modal .tab-content,
html[data-theme="dark"] .register-login-modal .or-text span,
html[data-theme="dark"] .product-single .product-thumb .product-rating2{
    background-color:#1d2026 !important;
}

/* 次级表面（浅灰 → 深灰） */
html[data-theme="dark"] .custom .site-main .moreinfo > div,
html[data-theme="dark"] .agent--contact .list-paybody,
html[data-theme="dark"] .pay--content .info .vip_rate,
html[data-theme="dark"] .filter--content .filter-item span,
html[data-theme="dark"] .home-search-results li:hover,
html[data-theme="dark"] .modular-title-2 .section-title span,
html[data-theme="dark"] .codecdk-panel .jq22-flex,
html[data-theme="dark"] .comments-area .comment-author-avatar,
html[data-theme="dark"] .comments-area .must-log-in,
html[data-theme="dark"] .entry-tags a,
html[data-theme="dark"] .social-bar,
html[data-theme="dark"] .social-icons a,
html[data-theme="dark"] .article-content blockquote,
html[data-theme="dark"] .article-content .content-hide-tips,
html[data-theme="dark"] .article-content .content-hide-ok,
html[data-theme="dark"] .widget-comments small,
html[data-theme="dark"] .widget_magsy_category_widget .category-item>a,
html[data-theme="dark"] .charge .modules__title h4,
html[data-theme="dark"] .charge .well,
html[data-theme="dark"] .product-excerpt .product-facts li.price,
html[data-theme="dark"] .modal .modal-thumbnail,
html[data-theme="dark"] .filter--content .filter-tag.moretag{
    background-color:#242830 !important;
}
html[data-theme="dark"] .codecdk-panel .jq22-flex:before,
html[data-theme="dark"] .codecdk-panel .jq22-flex:after{background-color:#1d2026 !important;}

/* 正文文章区（单篇文章白底 → 深底） */
html[data-theme="dark"] .article-content{background-color:#1d2026 !important;color:#c9d1dd !important;}
html[data-theme="dark"] .article-content .post-album li p{background-color:#1d2026 !important;}
html[data-theme="dark"] .tags .tagslist li{background-color:#1d2026 !important;}
html[data-theme="dark"] .article-copyright{background-color:#1e232b !important;}
html[data-theme="dark"] .article-content .content-hide-tips .coin span{background-color:#242830 !important;}

/* 文章版权 / 转载说明条 */
html[data-theme="dark"] .article-copyright a{color:#8ab8ff !important;}

/* =========================================================
   二、表单 / 输入 / 下拉 / 文本域
   ========================================================= */
html[data-theme="dark"] input[type="text"],
html[data-theme="dark"] input[type="password"],
html[data-theme="dark"] input[type="email"],
html[data-theme="dark"] input[type="search"],
html[data-theme="dark"] input[type="number"],
html[data-theme="dark"] input[type="tel"],
html[data-theme="dark"] textarea,
html[data-theme="dark"] select,
html[data-theme="dark"] .form-control{
    background-color:#242830 !important;
    color:#d5d9e0 !important;
    border-color:#333844 !important;
}
html[data-theme="dark"] .form-control::-webkit-input-placeholder,
html[data-theme="dark"] input::-webkit-input-placeholder,
html[data-theme="dark"] textarea::-webkit-input-placeholder,
html[data-theme="dark"] .form-box .ref-link input{color:#7d8594 !important;}
html[data-theme="dark"] .form-control[disabled],
html[data-theme="dark"] .form-control[readonly],
html[data-theme="dark"] fieldset[disabled] .form-control{background-color:#2a2e37 !important;}
html[data-theme="dark"] .input-group .input-group-addon{background-color:#242830 !important;color:#a6aebc !important;border-color:#333844 !important;}

/* =========================================================
   三、文字 / 标题 / 元信息 / 次要文字
   ========================================================= */
html[data-theme="dark"] .entry-title,
html[data-theme="dark"] .entry-title a,
html[data-theme="dark"] .post-title,
html[data-theme="dark"] .post-title a,
html[data-theme="dark"] .post-grid .entry-title a,
html[data-theme="dark"] .post-list .entry-title a,
html[data-theme="dark"] .module-title,
html[data-theme="dark"] .section-title h2,
html[data-theme="dark"] .single .type-post .entry-title,
html[data-theme="dark"] .page .type-page .entry-title,
html[data-theme="dark"] .entry-title-17codesign,
html[data-theme="dark"] .article-focusbox,
html[data-theme="dark"] .modal .modal-title,
html[data-theme="dark"] .author-card .author-name{color:#e8ecf1 !important;}

/* 元信息 / 次要文字（灰 → 浅灰） */
html[data-theme="dark"] .entry-meta,
html[data-theme="dark"] .entry-meta a,
html[data-theme="dark"] .meta,
html[data-theme="dark"] .post-meta,
html[data-theme="dark"] .nice-tips,
html[data-theme="dark"] .uposts .meta,
html[data-theme="dark"] .home-search-results li .intro,
html[data-theme="dark"] .author-box .author-meta>a,
html[data-theme="dark"] .comments-area .comment-metadata,
html[data-theme="dark"] .widget-pay .pay--rateinfo .desc,
html[data-theme="dark"] .pay--content .info .price s,
html[data-theme="dark"] .agent--contact ul li,
html[data-theme="dark"] .jq22-flex-box h3,
html[data-theme="dark"] .description-17codesign,
html[data-theme="dark"] .modular-title-2 .section-title p,
html[data-theme="dark"] .service-single p,
html[data-theme="dark"] .package-single .package-body ul li,
html[data-theme="dark"] .package-single .package-header .amount,
html[data-theme="dark"] .product-info .cao_entry_subtitle,
html[data-theme="dark"] .theme-item-service h6,
html[data-theme="dark"] .article-nav a,
html[data-theme="dark"] .entry-tags a,
html[data-theme="dark"] .breadcrumbs,
html[data-theme="dark"] .breadcrumbs a,
html[data-theme="dark"] .widget-comments a,
html[data-theme="dark"] .widget_tag_cloud .tagcloud>a,
html[data-theme="dark"] .single_product .product__additional_info p,
html[data-theme="dark"] .single_product .license p,
html[data-theme="dark"] .register-login-modal .sub-text,
html[data-theme="dark"] .payvip-box .vip-info small,
html[data-theme="dark"] .footer-widget .widget--about p,
html[data-theme="dark"] .footer-widget .widget--links ul li a,
html[data-theme="dark"] .rollbar .rollbar-item,
html[data-theme="dark"] .entry-action .action-share>a,
html[data-theme="dark"] .entry-footer a,
html[data-theme="dark"] .numeric-pagination .page-numbers:not(ul).current,
html[data-theme="dark"] .infinite-scroll-request,
html[data-theme="dark"] .vip-slogan-text,
html[data-theme="dark"] .vip-slogan-text p:first-child,
html[data-theme="dark"] .module-line .text,
html[data-theme="dark"] .form-box .ref-link h3 font,
html[data-theme="dark"] .mypay-list .mypost-status-nav a,
html[data-theme="dark"] .single_product .product__price_download .item_price span,
html[data-theme="dark"] #respond .logged-in-as>a:first-child{color:#a6aebc !important;}

/* 卡片内正文链接 / 次级链接 */
html[data-theme="dark"] .navbar li ul li>a,
html[data-theme="dark"] .filter--content .filter-item span,
html[data-theme="dark"] .dropdown li,
html[data-theme="dark"] .footer-widget .widget--about ul li,
html[data-theme="dark"] .btn--none,
html[data-theme="dark"] .label-default,
html[data-theme="dark"] .badge,
html[data-theme="dark"] .tags .tagslist li .name,
html[data-theme="dark"] .tags .tagslist li .tit{color:#c9d1dd !important;}

/* =========================================================
   四、表格
   ========================================================= */
html[data-theme="dark"] table{background-color:#1d2026;}
html[data-theme="dark"] th,
html[data-theme="dark"] td{border-color:#2b2f37 !important;}
html[data-theme="dark"] table thead tr th{color:#e8ecf1;border-color:#2b2f37;}
html[data-theme="dark"] table tbody tr td{color:#a6aebc;}
html[data-theme="dark"] #divCalendar th{color:#c9d1dd !important;}

/* =========================================================
   五、边框 / 分隔线
   ========================================================= */
html[data-theme="dark"] .package-single,
html[data-theme="dark"] .services,
html[data-theme="dark"] .codecdk-panel .jq22-flex .jq22-flex-box,
html[data-theme="dark"] .author-box .author-image,
html[data-theme="dark"] .entry-thumbnails-17codesign,
html[data-theme="dark"] .home-search-results,
html[data-theme="dark"] .filter--content,
html[data-theme="dark"] .social-bar+.site-footer{border-color:#2b2f37 !important;}

/* =========================================================
   六、页脚 / 社交条
   ========================================================= */
html[data-theme="dark"] .site-footer{background-color:#1a1c21 !important;}
html[data-theme="dark"] .site-footer .links{background-color:#1a1c21 !important;}
html[data-theme="dark"] .site-footer .footer-widget .widget--newsletter .form-control{
    background-color:#242830 !important;
    border-color:#333844 !important;
    color:#d5d9e0 !important;
}

/* =========================================================
   七、中性按钮 / 支付密码框 / 细节
   ========================================================= */
html[data-theme="dark"] .btn--def{background-color:#383838 !important;color:#ffffff !important;}
html[data-theme="dark"] .btn--none{background-color:transparent !important;color:#c9d1dd !important;}
html[data-theme="dark"] .btn.avatarinfo a[class*=upload] i{color:#c9d1dd !important;}
html[data-theme="dark"] .widget-pay .pay-box .pwd{background-color:#3a3220 !important;border-color:#ffc12b !important;color:#ddd !important;}
html[data-theme="dark"] .widget-pay .pay-box .pwd .copypaw{background-color:#3a4050 !important;}
html[data-theme="dark"] .qrcon .title .price{color:#ff6a00 !important;}
html[data-theme="dark"] .entry-tags a{color:#a6aebc !important;}

/* 新版块深色适配：热门文章两列网格 / 图片内容 */
html[data-theme="dark"] .widget-posts-grid .posts .entry-media .placeholder{background-color:#22252b !important;}
html[data-theme="dark"] .widget-posts-grid .posts .left > a{color:#e6e6e6 !important;}
html[data-theme="dark"] .widget-posts-grid .posts .left:hover > a{color:#9d8cff !important;}
html[data-theme="dark"] .single .type-post .entry-content img{filter:brightness(.98);}

/* 强调色组件：保持主题主色（不覆盖）
   .site-header / .home-filter--content / .term-bar /
   .button,.btn--primary / .btn--danger / .btn--warning / 各彩色徽章 */

/* 新版块深色适配：上一篇/下一篇整块卡片 + 相关推荐图片网格 */
html[data-theme="dark"] .article-nav a{background-color:#22252b !important;border-color:#2b2f37 !important;}
html[data-theme="dark"] .article-nav .nav-dir{color:#8a92a0 !important;}
html[data-theme="dark"] .article-nav .nav-title{color:#e6e6e6 !important;}
html[data-theme="dark"] .related-posts .related-grid .left{background-color:#22252b !important;}
html[data-theme="dark"] .related-posts .related-grid .placeholder{background-color:#2b2f37 !important;}
html[data-theme="dark"] .related-posts .related-grid .left > a{color:#e6e6e6 !important;}
html[data-theme="dark"] .related-posts .related-grid .left:hover > a{color:#9d8cff !important;}
