html {
    background-color: #171717 !important;
}
html {
    filter: invert(100%) hue-rotate(180deg) brightness(105%) contrast(85%);
    -webkit-filter: invert(100%) hue-rotate(180deg) brightness(105%) contrast(85%);
}
body {
    background-color: #FFF !important;
}
img,
video,
body * [style*="background-image"] {
    filter: hue-rotate(180deg) contrast(100%) invert(100%);
    -webkit-filter: hue-rotate(180deg) contrast(100%) invert(100%);
}

/* 品牌图完全抵消反色（2026-08-26 修正）：banner/logo/印章/玮陀等品牌资产在夜间保持与日间完全一致。
   注意：必须用 invert(100%) hue-rotate(180deg) 抵消 html 反色（子filter先于父filter，invert(0) 无法抵消 html 反色），
   并额外用 brightness(95.2%) contrast(117.6%) 抵消 html 的 brightness(105%) contrast(85%)，
   否则半透明阴影区域会被提亮变灰（用户反馈：夜间模式匾额阴影奇怪、玮陀被反色） */
img[src*="logo-seal"],
img[src*="logo"],
img[src*="seal"],
img[src*="weituo"],
img[src*="favicon"],
img.brand-seal {
    filter: invert(100%) hue-rotate(180deg) brightness(95.2%) contrast(117.6%) !important;
    -webkit-filter: invert(100%) hue-rotate(180deg) brightness(95.2%) contrast(117.6%) !important;
}

/* banner 匾额单独处理（2026-08-26 v4）：
   日间 = 原样简洁（不加投影立体感，用户确认不需要）
   夜间 = 抵消反色 + 金色发光（仿玮陀发光风格 drop-shadow 暖金光晕，匾额深色配暗背景）
   原理：容器抵消 html 反色（含 brightness/contrast 补偿），img 自身保持原样，发光用 drop-shadow 主动设计 */
.banner-wrap img[src*="banner"] {
    filter: none !important;
    -webkit-filter: none !important;
}
.banner-wrap {
    filter: invert(100%) hue-rotate(180deg) brightness(95.2%) contrast(117.6%) drop-shadow(0 0 55px rgba(230,190,120,0.9)) !important;
    -webkit-filter: invert(100%) hue-rotate(180deg) brightness(95.2%) contrast(117.6%) drop-shadow(0 0 55px rgba(230,190,120,0.9)) !important;
}
