/*
[name]Dark Neon[/name]
[iconbgcolor]#0B0E13[/iconbgcolor]
Dark neon theme for Discuz! X3.3 - overrides default light skin
*/

/* ---------- Global ---------- */
body, .wp {
    background-color: #0b0e13 !important;
    color: #c9d6e4 !important;
}
body {
    background-image:
        radial-gradient(1200px 420px at 50% -180px, rgba(31,111,235,.20), transparent 70%),
        radial-gradient(900px 360px at 88% 18%, rgba(124,58,237,.12), transparent 70%) !important;
    background-repeat: no-repeat !important;
    background-attachment: fixed !important;
    background-position: 0 0 !important;
}
a, a:visited { color: #5bc0ff !important; }
a:hover { color: #9adcff !important; }
strong, b { color: #e8f1fb !important; }

/* ---------- Top bar ---------- */
#toptb { background: #0a0d12 !important; border-bottom: 1px solid #171e27 !important; color: #8b9aab !important; }
#toptb a { color: #8b9aab !important; }
#toptb a:hover { color: #5bc0ff !important; }

/* ---------- Header ---------- */
#hd, #hd .wp, .hdc { background: transparent !important; border: none !important; }
#um .vwmy a, #um a, #um { color: #c9d6e4 !important; }
#um .avt img { border: 1px solid #24303d !important; }
#qmenu { background: #141a23 !important; border: 1px solid #24303d !important; color: #c9d6e4 !important; }
#qmenu a { color: #c9d6e4 !important; }
.fastlg { background: #0f141b !important; border: 1px solid #1d2530 !important; border-radius: 8px !important; }
.fastlg .px { background: #0a0e14 !important; border: 1px solid #26303d !important; color: #d7e3f0 !important; }

/* ---------- Main nav ---------- */
#nv, #nv_ph {
    background: #10161e !important;
    background-image: none !important;
    border: 1px solid #1d2530 !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 24px rgba(0,0,0,.55) !important;
}
#nv li, #nv_ph li { background: transparent !important; background-image: none !important; }
#nv a, #nv_ph a { color: #a9bacb !important; }
#nv a:hover, #nv_ph a:hover { color: #5bc0ff !important; background: #161e28 !important; }
#nv li.a, #nv_ph li.a {
    background: linear-gradient(180deg,#1f6feb,#1158c7) !important;
    background-image: linear-gradient(180deg,#1f6feb,#1158c7) !important;
    border-radius: 6px !important;
    box-shadow: 0 0 18px rgba(31,111,235,.5) !important;
}
#nv li.a a, #nv li.a a:hover { background: transparent !important; color: #fff !important; }
.nvhm { background: transparent !important; background-image: none !important; color: #8b9aab !important; }
.nvhm:hover { color: #5bc0ff !important; }

/* ---------- Search ---------- */
#scbar { background: #10161e !important; border: 1px solid #1d2530 !important; border-radius: 8px !important; }
#scbar_txt, #scbar .px { background: #0a0e14 !important; border: 1px solid #26303d !important; color: #d7e3f0 !important; border-radius: 6px !important; }
#scbar_hot a, #scbar_btn { color: #8b9aab !important; }

/* ---------- Blocks / cards ---------- */
.bm, .bm_h, .bm_c {
    background: #111821 !important;
    border-color: #1d2530 !important;
}
.bm { border: 1px solid #1d2530 !important; border-radius: 10px !important; box-shadow: 0 6px 28px rgba(0,0,0,.45) !important; }
.bm_h { border-bottom: 1px solid #1d2530 !important; }
.bm_h h2, .bm_h h2 a, .bm_h .o, .bm_h .o a { color: #dbe7f4 !important; }
.bm_c { background: #0f151d !important; }
.ct2_a, .ct3_a { background-color: #0f151d !important; }

/* ---------- Tables ---------- */
.tb { background: #0f151d !important; }
.tb th, .tb td, .th, .tl td, .tl th, tbody td, tbody th { border-color: #1a222c !important; }
.th { background: #131b24 !important; color: #93a4b6 !important; }
.th a { color: #93a4b6 !important; }
.tl tr:hover td, #threadlisttableid tbody tr:hover td { background: #141c26 !important; }
a.xst { color: #cfdcea !important; }
a.xst:hover { color: #5bc0ff !important; }
.s.x, .by cite, .by em, .num, .tps { color: #7c8c9e !important; }
.by cite a, .by a { color: #8fa2b6 !important; }

/* ---------- Forms ---------- */
.px, .txt, input[type=text], input[type=password], input[type=email], textarea, select {
    background: #0a0e14 !important;
    border: 1px solid #26303d !important;
    color: #d7e3f0 !important;
    border-radius: 6px !important;
}
.px:focus, input:focus, textarea:focus, select:focus {
    border-color: #1f6feb !important;
    box-shadow: 0 0 0 3px rgba(31,111,235,.2) !important;
    outline: none !important;
}
select option { background: #0f151d !important; color: #d7e3f0 !important; }

/* ---------- Buttons ---------- */
.pn, .pn_post, button, input[type=submit], input[type=button], .btn {
    background: linear-gradient(180deg,#1f6feb,#1158c7) !important;
    border: 1px solid #2a7ff5 !important;
    color: #fff !important;
    border-radius: 6px !important;
    text-shadow: none !important;
}
.pn:hover, .pn_post:hover, button:hover, input[type=submit]:hover {
    background: linear-gradient(180deg,#2f86ff,#1b6ade) !important;
    box-shadow: 0 0 18px rgba(31,111,235,.55) !important;
}

/* ---------- Alerts ---------- */
.alert_info, .alert_error, .alert_right, .poptip, .tip {
    background: #131b24 !important;
    border: 1px solid #26303d !important;
    color: #cfdcea !important;
    border-radius: 8px !important;
}
.alert_error { border-color: #7f2a33 !important; }
.alert_right { border-color: #1d6b45 !important; }

/* ---------- Footer ---------- */
#ft { background: #080b10 !important; border-top: 1px solid #171e27 !important; color: #6b7887 !important; }
#ft a { color: #7f8b99 !important; }
#ft a:hover { color: #5bc0ff !important; }

/* ---------- Post view ---------- */
.pi, .pbl, .pct, .pcb { background: #111821 !important; border-color: #1d2530 !important; }
.pls, .plc { background: #131b24 !important; border-color: #1d2530 !important; }
.t_f, .t_fsz { color: #c9d6e4 !important; }

/* ---------- Pagination ---------- */
.pg a, .pg label { background: #131b24 !important; border: 1px solid #26303d !important; color: #a9bacb !important; border-radius: 6px !important; }
.pg a:hover { border-color: #1f6feb !important; color: #5bc0ff !important; }
.pg strong { background: linear-gradient(180deg,#1f6feb,#1158c7) !important; color: #fff !important; border-color: #2a7ff5 !important; }

/* ---------- Misc ---------- */
.xg1, .xg1 a { color: #7c8c9e !important; }
.xg2, .xg2 a { color: #93a4b6 !important; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #0a0d12; }
::-webkit-scrollbar-thumb { background: #24303d; border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: #34435a; }

/* ============ Dark theme patch v2: secondary nav & ad blocks ============ */

/* secondary navigation bars (#mu / #snav / snav_mn_*) */
#mu, .a_mu, #snav, ul[id^="snav_mn_"], .snav, #snav_mn_1 {
    background-color: #0f151d !important;
    background-image: none !important;
    border-color: #1d2530 !important;
}
#mu a, #snav a, ul[id^="snav_mn_"] a, #mu li, #snav li {
    color: #a9bacb !important;
    background-image: none !important;
}
#mu a:hover, #snav a:hover, ul[id^="snav_mn_"] a:hover {
    color: #5bc0ff !important;
    background-color: #161e28 !important;
}
#mu .cl, #hd .cl { border-color: #1d2530 !important; }

/* ad container (light grey -> dark) */
.a_mu { background: #0f151d !important; }
.a_mu img { filter: brightness(.90) saturate(.85); border-radius: 6px; }

/* top ad images keep readable but dimmed */
#mu img, #hd img { filter: brightness(.95); }

/* quick nav button */
#nv .y, #nv_ph .y, .nvhm, .y { color: #8b9aab !important; }

/* member bar / login form area */
#um, #um a, .fastlg, .fastlg_fm { color: #c9d6e4 !important; }
.fastlg_l .y { color: #8b9aab !important; }

/* portal / article boxes */
#diytool, .diy-tip, .block, .bm_h_ico { background-color: transparent !important; }

/* keep highlight contrast readable on dark */
.mtn, .mfn, .xg1 { color: #7c8c9e !important; }
.pipe { color: #24303d !important; }

/* ---------- Typography tweak ---------- */
body, .px, .txt, th, td, li, p, div { -webkit-font-smoothing: antialiased; }
.bm_h h2 { letter-spacing: .3px; }

/* ---------- Subtle neon accent on card headers ---------- */
.bm_h {
    position: relative;
}
.bm_h:after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(31,111,235,.55), rgba(124,58,237,.35), transparent);
    pointer-events: none;
}

/* ---------- Thread list table rows ---------- */
#threadlisttableid, #threadlisttableid tbody, #threadlisttableid tr, #threadlisttableid td {
    background-color: transparent !important;
    background-image: none !important;
    border-color: #1a222c !important;
}
#threadlisttableid tr:hover td { background-color: #141c26 !important; }

/* ---------- Forum index table ---------- */
#forumlisttableid, #forumlisttableid td, #forumlisttableid tr, #forumlisttableid tbody {
    background-color: transparent !important;
    background-image: none !important;
    border-color: #1a222c !important;
}
.fl_g, .fl_g dt, .fl_g dd { color: #b6c6d6 !important; }
.fl_g a { color: #cfdcea !important; }
.fl_g a:hover { color: #5bc0ff !important; }

/* ============ Dark theme patch v3: ad dimming & contrast ============ */

/* 广告区整体压暗，融入深色背景 */
.a_mu { background: #0b0f14 !important; }
.a_mu img,
.a_mu a img {
    filter: brightness(.68) saturate(.60) !important;
    opacity: .92;
    border-radius: 8px;
    transition: filter .25s ease, opacity .25s ease;
}
.a_mu img:hover,
.a_mu a:hover img {
    filter: brightness(.95) saturate(.85) !important;
    opacity: 1;
}

/* 顶部 banner 图压暗 */
#mu img { filter: brightness(.78) saturate(.75) !important; }

/* 搜索栏布局修正 */
#scbar { padding: 6px 10px !important; }
#scbar_txt { width: 320px !important; }
#scbar_hot { color: #7c8c9e !important; }
#scbar_hot a { color: #7c8c9e !important; }
#scbar_hot a:hover { color: #5bc0ff !important; }

/* 顶部登录框增强对比 */
.fastlg { border-color: #24303d !important; box-shadow: 0 4px 18px rgba(0,0,0,.5) !important; }
.fastlg .px { background: #060a0f !important; }

/* 顶部导航未选中项 hover 更明显 */
#nv li:hover, #nv_ph li:hover { background: #161e28 !important; }

/* 帖子正文区域（阅读体验） */
.t_f, .t_fsz, .pcb { line-height: 1.75 !important; }
.plhin, .pls { background: #131b24 !important; }

/* 帖子页楼层头部 */
.pi { background: #131b24 !important; border-bottom: 1px solid #1a222c !important; }
.plc { border-color: #1a222c !important; }

/* 附件/图片区域 */
.pattl, .pattl_viewlink { color: #93a4b6 !important; }

/* 引用块 */
.quote, blockquote {
    background: #0d131a !important;
    border-left: 3px solid #1f6feb !important;
    color: #a9bacb !important;
}

/* 代码块 */
.code, pre {
    background: #060a0f !important;
    border: 1px solid #1a222c !important;
    color: #9adcff !important;
}

/* 表格斑马纹（深色版） */
.tb tbody tr:nth-child(even) td { background: rgba(255,255,255,.015) !important; }

/* 版块图标 */
.bm_h_ico img, .fl_icn_g img { opacity: .85; filter: brightness(1.1); }

/* 侧边会员信息/在线列表 */
.onlinelist, .lgmenu { background: #0f151d !important; border-color: #1a222c !important; }

/* 页脚广告与友情链接 */
#flk { background: #080b10 !important; }
#flk img { filter: brightness(.75) saturate(.7); }
