/*!
 * JG-DARK-ASSETS v1.1.0 — 深色模式的品牌 logo 与 8 个独立页头图
 * 由 component/header.php 的 JG-THEME-BOOT 之后静态引入，首帧即生效。
 * 头图是模板输出的 inline style，必须用 !important 覆盖。
 */

/* 1. 主题原生 dark_logo：headnav.php 把 #navbar-brand-dark 默认写成 class="hide"，
      只有 core.min.js 的 dark_mode() 会摘掉它；但该逻辑只在「服务端按 cookie 渲染深色」时触发，
      EdgeOne 缓存 HTML 不认 cookie，而三态切换是直接加 html.theme-dark → 深色 logo 永远隐藏。 */
html.theme-dark #navbar-brand-dark{display:inline!important}
html.theme-dark #navbar-brand-day{display:none!important}

/* 2. 独立页头图（page.php / guestbook.php 读 fields.thumb，输出 .item-thumb 的 inline style） */
html.theme-dark .item-thumb[style*="page_about.png"]{background-image:url(https://cdn.jikegang.com/assets/banners/page_about_dark1.png)!important}
html.theme-dark .item-thumb[style*="page_links.png"]{background-image:url(https://cdn.jikegang.com/assets/banners/page_links_dark1.png)!important}
html.theme-dark .item-thumb[style*="page_github.png"]{background-image:url(https://cdn.jikegang.com/assets/banners/page_github_dark1.png)!important}
html.theme-dark .item-thumb[style*="page_album.png"]{background-image:url(https://cdn.jikegang.com/assets/banners/page_album_dark1.png)!important}
html.theme-dark .item-thumb[style*="page_guestbook.png"]{background-image:url(https://cdn.jikegang.com/assets/banners/page_guestbook_dark1.png)!important}
html.theme-dark .item-thumb[style*="page_friends.png"]{background-image:url(https://cdn.jikegang.com/assets/banners/page_friends_dark1.png)!important}
html.theme-dark .item-thumb[style*="page_archives.png"]{background-image:url(https://cdn.jikegang.com/assets/banners/page_archives_dark1.png)!important}

/* 3. 时光机：cross.php 读全局 timepic，输出 .time_cover 的 background shorthand */
html.theme-dark .time_cover{background-image:url(https://cdn.jikegang.com/assets/banners/page_time_machine_v2_dark1.webp)!important}


/* JG-ADSLOTS-DARK-1110W-START */
/* 4. 文章页脚广告位 —— 后台「文章页脚广告」adContentPost 输出的两张 <img>（600×400 PNG）
   这两张是“设计稿式”色块图，深色下整块发亮，必须换成深色版（文件早已在 /assets/ads/）。
   content:url() 只替换绘制内容、不改 src 属性 → 选择器不会自激；尺寸仍由
   <img width height> + inline style(height:auto) 决定，换图不改排版。
   ⚠️ 以后换成真广告图：要么同步出 *_dark1.png，要么把这层改成 filter:brightness()。 */
html.theme-dark .jg-ad-slots img[src*="ad_slot_01"]{content:url("/assets/ads/ad_slot_01_dark1.png")}
html.theme-dark .jg-ad-slots img[src*="ad_slot_02"]{content:url("/assets/ads/ad_slot_02_dark1.png")}
/* JG-ADSLOTS-DARK-1110W-END */
