/* v27 黑夜模式：切换按钮（两种模式都要）+ 深色变量 + 手工修正；下面「自动生成」部分由 scripts/v27.mjs 产出 */
.thm{flex:none;display:inline-grid;place-items:center;width:34px;height:34px;margin:0 8px 0 12px;border-radius:50%;border:1px solid var(--line);background:transparent;color:var(--fg2);cursor:pointer;transition:color .15s,border-color .15s,background .15s}
.thm:hover{color:var(--accent);border-color:var(--accent)}
.thm svg{display:block}
@media(max-width:760px){.thm{width:34px;height:34px;margin:0 2px 0 4px}}
html[data-theme=dark]{background:#0f141b;color-scheme:dark}
:root[data-theme=dark]{--bg:#0f141b;--bg2:#161d28;--fg:#e8ecf3;--fg2:#a2adc0;--fg3:#74829a;--line:#232c3a;--accent:#4d80ff;--accent2:#40a0ff;--accent-bg:#172540;--warn-bg:#33270f;--warn:#e9a640;--up:#f0565a;--down:#2fc088;--v24-line:#232c3a;--kline:#222b39;--ai-bg:#14233f;--ai-line:#26406f;--v24-sh:0 4px 18px rgba(0,0,0,.4)}
:root[data-theme=dark][data-updown=green-up]{--up:#2fc088;--down:#f0565a}
html[data-theme=dark] body{background:var(--bg);color:var(--fg)}
html[data-theme=dark] ::selection{background:#2d4a8f;color:#fff}
html[data-theme=dark] input,html[data-theme=dark] select,html[data-theme=dark] textarea{color-scheme:dark}
html[data-theme=dark] input::placeholder{color:var(--fg3)}
/* 公司 / 代币 logo 多是透明底的深色图案：保留一块浅色底，免得看不见 */
html[data-theme=dark] .ava img,html[data-theme=dark] .ava,html[data-theme=dark] img.lg,html[data-theme=dark] .logo-img{background:#eef1f6}
/* 平台彩色徽标本身是浅底深字，暗色下降一点亮度，不那么刺眼 */
html[data-theme=dark] .iss:not(.plus){filter:brightness(.88) saturate(.95)}
html[data-theme=dark] .mburger i{background:var(--fg)}
html[data-theme=dark] .dm{background:#1c2535}
html[data-theme=dark] .dm i{background:linear-gradient(90deg,#2b4f9e,#3f70d9)}
html[data-theme=dark] .dm b{color:#f1f4fa}

/* ===== 自动生成：浅色 → 深色映射 ===== */
/* detail-page.css */html[data-theme=dark] .dp .card{background:#13181e}html[data-theme=dark] .dp-tag.cr{background:#51390e;color:#ffb13d}html[data-theme=dark] .dp-btn{background:#13181e}html[data-theme=dark] .dp-btn.ai{border-color:var(--ai-line,#162d58);background:var(--ai-bg,#0b1f3c)}html[data-theme=dark] .kpi.hl{border-color:var(--ai-line,#162d58)}html[data-theme=dark] .fx-ser button,html[data-theme=dark] .fx-seg button,html[data-theme=dark] .fx-tg button{background:#13181e}html[data-theme=dark] .fx-msg{background:rgba(19,24,30,0.702)}html[data-theme=dark] .fx-foot .warn{color:#ffb13d}html[data-theme=dark] .flag.div{background:#55420f;color:#ffc33d}html[data-theme=dark] .flag.px{background:#214232;color:#56e6b2}html[data-theme=dark] .flag.tbd{background:#262b34;color:#9297a0}html[data-theme=dark] .lq.low{background:#55420f;color:#ffc33d}html[data-theme=dark] .lq.poor{background:#5d3410;color:#f48f48}html[data-theme=dark] .lq.dead{background:#4d0e0e;color:#e05d5d}html[data-theme=dark] .dp-t tr.sub>td{background:#151b26}html[data-theme=dark] .dp-t2 .go{background:#13181e}html[data-theme=dark] .mbtn{background:#13181e}html[data-theme=dark] .cmp td:first-child{background:#13181e}html[data-theme=dark] .tabs2 button{background:#13181e}@media(max-width:760px){html[data-theme=dark] .dp-t th:first-child,html[data-theme=dark] .dp-t td:first-child{background:#13181e}}html[data-theme=dark] .dp-back{background:#13181e;box-shadow:0 1px 2px rgba(0,0,0,0.12)}html[data-theme=dark] .dp-id .ava img{background:#13181e}html[data-theme=dark] .st.hl{background:linear-gradient(180deg,var(--accent-bg),#13181e)}html[data-theme=dark] .dp-t tr.irow>td{background:#13181e}html[data-theme=dark] .dp-t tr.irow:hover>td{background:#161e2b}html[data-theme=dark] .dp-t tr.crow>td{background:#151b26}html[data-theme=dark] .dp-t tr.crow+tr.irow>td{border-top:1px solid #303742}html[data-theme=dark] .dp-t tr.resid>td{background:#181820}html[data-theme=dark] .cpill{background:#13181e}html[data-theme=dark] .dp-t .go{background:#13181e}@media(max-width:760px){html[data-theme=dark] .dp-t tr.crow>td:first-child{background:#151b26}}html[data-theme=dark] .dp-btn.ai{background:linear-gradient(135deg,#0b233f,#1a0b3f);border:1px solid #172e5b}html[data-theme=dark] .fc{background:#13181e}html[data-theme=dark] .ik{border-left:3px solid #18315f;background:#151b26}html[data-theme=dark] .ik-h .go{background:#13181e}html[data-theme=dark] .xc{background:#13181e}html[data-theme=dark] .sk{background:linear-gradient(90deg,#222935 25%,#19202b 37%,#222935 63%)}html[data-theme=dark] .dp-t .go,html[data-theme=dark] .ik-h .go,html[data-theme=dark] .dp-t2 .go{border-color:var(--ai-line,#18315f)}html[data-theme=dark] .dp-stock .kpi:hover{background:#13181e}html[data-theme=dark] .rb{background:#293244}html[data-theme=dark] .rb u{background:#13181e;box-shadow:0 1px 4px rgba(0,0,0,0.8)}html[data-theme=dark] .dp-ic{background:var(--bg2,#1f2431);color:var(--fg2,#a3abb9)}html[data-theme=dark] .dp-ic.st.on{color:#f7b446;background:#4a350d}html[data-theme=dark] #dp-toast{background:rgba(48,55,69,0.902)}
/* list-side.css */@media(max-width:760px){html[data-theme=dark] .ads .ad{box-shadow:0 2px 8px rgba(0,0,0,0.192)}html[data-theme=dark] .stats{background:#13181e;box-shadow:0 1px 4px rgba(0,0,0,0.12)}}
/* mobile.css */@media(max-width:760px){html[data-theme=dark] .m .sub3 i.fxb{background:#232e3e}html[data-theme=dark] .fx-tw{background:linear-gradient(90deg,#13181e 30%,#fff0),linear-gradient(270deg,#13181e 30%,#fff0) 100% 0,radial-gradient(farthest-side at 0 50%,rgba(26,26,26,0.133),rgba(26,26,26,0)),radial-gradient(farthest-side at 100% 50%,rgba(26,26,26,0.133),rgba(26,26,26,0)) 100% 0}}
/* site.css */html[data-theme=dark] .bar-top{background:rgba(19,24,30,0.941)}html[data-theme=dark] .nav a,html[data-theme=dark] .nav .navbtn{color:#bdc2cc}html[data-theme=dark] .ddm{background:#13181e;box-shadow:0 8px 24px rgba(0,0,0,0.292)}html[data-theme=dark] .demo-bar{background:#4f400e;color:#ffcc3d}html[data-theme=dark] .hero{background:linear-gradient(180deg,#0b203f,#13181e)}html[data-theme=dark] .mkt.open{background:#1f4332;color:#4feead}html[data-theme=dark] .mkt.pre,html[data-theme=dark] .mkt.post{background:#4a350d;color:#ffc43d}html[data-theme=dark] .mkt.demo{background:#3c0e0b;color:#ef4d5a}html[data-theme=dark] .ad{box-shadow:0 2px 10px rgba(0,0,0,0.245)}html[data-theme=dark] .viewsw button.on{background:#13181e;box-shadow:0 1px 3px rgba(0,0,0,0.188)}html[data-theme=dark] .sticky2{box-shadow:6px 0 8px -6px rgba(0,0,0,0.188)}html[data-theme=dark] .star:hover,html[data-theme=dark] .star.on{color:#feca3e}html[data-theme=dark] .ex.cn{background:#3c0e0b;color:#ef4d5a}html[data-theme=dark] .pin{background:#3c0b1f;color:#df5dab}html[data-theme=dark] .iss.plus{background:#1f2631;color:#b1b1b1}html[data-theme=dark] tr.sk i{background:linear-gradient(90deg,var(--bg2),#222a3c,var(--bg2))}html[data-theme=dark] .cta .btn{background:#13181e}html[data-theme=dark] .dr-mask{background:rgba(28,46,83,0.349)}html[data-theme=dark] .drawer{background:#13181e;box-shadow:-8px 0 30px rgba(0,0,0,0.358)}html[data-theme=dark] .socbtn{background:#13181e}html[data-theme=dark] #totop{background:#13181e;box-shadow:0 2px 10px rgba(0,0,0,0.245)}html[data-theme=dark] #toast{background:rgba(36,50,80,0.922)}html[data-theme=dark] .cmp-in{background:#13181e;box-shadow:0 8px 28px rgba(0,0,0,0.433)}html[data-theme=dark] .cmpt th{background:#13181e}html[data-theme=dark] .ai-strip{background:linear-gradient(90deg,var(--ai-bg),#13181e 70%)}html[data-theme=dark] .ai-ht b{color:#5d81df}html[data-theme=dark] .ai-chip{background:#13181e;color:#6181db}html[data-theme=dark] .aib-a:hover{background:#0e2452}html[data-theme=dark] .dr-ai{background:linear-gradient(135deg,var(--ai-bg),#13181e)}html[data-theme=dark] .dr-ai-h b{color:#5d81df}html[data-theme=dark] .ai-btn:hover{background:#0e2452}html[data-theme=dark] .card.aicard{background:linear-gradient(160deg,var(--ai-bg),#13181e 60%)}html[data-theme=dark] .aicard h3{color:#5d81df}html[data-theme=dark] .ai-mini:hover{background:#0e2452}html[data-theme=dark] .dr-x{background:#13181e;box-shadow:0 2px 12px rgba(0,0,0,0.48)}html[data-theme=dark] .dr-act .star.on{color:#feca3e;background:#4f400e}html[data-theme=dark] .dr-act .star.on{color:#feca3e;background:#4f400e}html[data-theme=dark] .fx-prof a{color:#4d80ef}html[data-theme=dark] .fx-intro{color:#a6aeb8}html[data-theme=dark] .ava.logo{background:#13181e!important;border:1px solid #36393f}
/* ui.css */@media(max-width:760px){html[data-theme=dark] .fx-cta{background:#13181e;box-shadow:0 -6px 18px rgba(0,0,0,0.188)}}html[data-theme=dark] .fx-mkt{color:var(--fg2,#9297a0)}html[data-theme=dark] #hero-text:empty,html[data-theme=dark] #stats:empty,html[data-theme=dark] #tabs:empty,html[data-theme=dark] #filters:empty,html[data-theme=dark] #mc:empty{background:#1e2633}html[data-theme=dark] #mc:empty{background:repeating-linear-gradient(180deg,#1e2633 0 78px,transparent 78px 90px)}html[data-theme=dark] .tablewrap:has(#tb:empty){background:repeating-linear-gradient(180deg,#1e2633 0 40px,transparent 40px 52px)}
/* v24-detail.css */html[data-theme=dark] .tk-h em{background:#1c2637;color:#9da9bd}html[data-theme=dark] .tkc{background:#181f2f;border:1px solid #263141}html[data-theme=dark] .tkc small{background:#13181e}html[data-theme=dark] .tkc:hover{background:#0b1a3f}html[data-theme=dark] .v24-asset{background:#0b1a3f;border:1px solid #162d58}html[data-theme=dark] .dm{background:#1e2738}html[data-theme=dark] .dm i{background:linear-gradient(90deg,#16397f,#8db3ff)}html[data-theme=dark] .dm b{color:#7a91c2}html[data-theme=dark] .geo{color:#9da9bd}html[data-theme=dark] .tr-pan>td{background:#0f162a}html[data-theme=dark] .und{background:#1f2431}html[data-theme=dark] .srcs a{background:#0c1e47}html[data-theme=dark] .tr-reg i{background:#3c0e0b;color:#dc6c61}html[data-theme=dark] .tr-inc{background:#41300c;border:1px solid #77612b;color:#e0bc5c}html[data-theme=dark] .sm-chip{background:#13181e}html[data-theme=dark] .sm-chip.off em{background:#262b34}html[data-theme=dark] .sm-tag.smart{background:#0c1e47}html[data-theme=dark] .sm-tag.kol{background:#563a0f;color:#ffad3d}html[data-theme=dark] .ser-lab.st{background:#1f2431;color:#9da9bd}html[data-theme=dark] .ser-lab.agg{background:linear-gradient(90deg,#0e244d,#1c0c45);color:#5f70de}html[data-theme=dark] .iss-more .lnk{background:#13181e}html[data-theme=dark] .tk-scope{background:#151f31;border:1px solid #263142}html[data-theme=dark] .tk-scope button{background:#13181e;border:1px solid #25375c}html[data-theme=dark] .tk-scope.on{background:#0b1a3f;border-color:#203463}html[data-theme=dark] .sc-tag{background:#1f2431;color:#8c98aa}html[data-theme=dark] .sc-tag.st{background:#4a300d;color:#ffb13d}html[data-theme=dark] #s-chart.v24-aggwait::after{background:#13181e}html[data-theme=dark] #s-head .dp-px{border-top:1px solid #252c38;border-bottom:1px solid #252c38}html[data-theme=dark] #s-head .dp-px>div+div{border-left:1px solid #252c38}html[data-theme=dark] #s-chart .fx-msg.ld,html[data-theme=dark] #s-chart.v24-aggwait::after{background-color:rgba(19,24,30,0.92)}html[data-theme=dark] #s-chart .fx-msg.ld::before,html[data-theme=dark] #s-chart.v24-aggwait::before{border:3px solid #1c2d51}html[data-theme=dark] #s-chart .fx-msg.ld::after{background:linear-gradient(90deg,#1c2637 0,#121b2d 40%,#1c2637 80%) 0 0/240px 100%}html[data-theme=dark] #s-head .dp-sub .dp-tag.cr{background:#5d4710;color:#ffb73d}html[data-theme=dark] #s-flow .dn dl .tl{background:#161d2d}
/* v24-gl.css */html[data-theme=dark] .gl:hover{color:var(--accent,#3d75ff)}html[data-theme=dark] .gl-pop{background:#13181e;border:1px solid #293344;box-shadow:0 12px 36px rgba(0,0,0,0.384),0 2px 6px rgba(0,0,0,0.144);color:#9da9bd}html[data-theme=dark] .gl-pop b{color:#7892c5}html[data-theme=dark] .gl-ask{color:var(--accent,#3d75ff)}@media(prefers-color-scheme:dark){html[data-theme=dark]:not(.light) .gl-pop{background:#2d3a54}}
/* v24.css */html[data-theme=dark] .vm{background:#13181e}html[data-theme=dark] .vm1{background:linear-gradient(135deg,#0c2444 0%,#13181e 62%)}html[data-theme=dark] .vm-art em{box-shadow:0 2px 6px rgba(0,0,0,0.72)}html[data-theme=dark] .vm .live{box-shadow:0 0 0 0 rgba(0,0,0,0.8)}html[data-theme=dark] .vm-meter{background:#1e2837}html[data-theme=dark] .aiflow{background:linear-gradient(100deg,#0b1f3c,#13181e 65%)}html[data-theme=dark] .af-steps .st{background:#13181e}html[data-theme=dark] .st-i{background:#1c2432;color:#8c98aa}html[data-theme=dark] .tk{background:#1c2637;color:#9da9bd}html[data-theme=dark] .av-bar select{border:1px solid #313a47;background:#13181e}html[data-theme=dark] .av-q input{border:1px solid #313a47;background:#13181e url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239aa1ad' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 14px 50%}html[data-theme=dark] .avtab tbody tr:hover{background:#121b2d}html[data-theme=dark] .vm-k{background:var(--accent-bg,#0c1f44);color:var(--accent,#4677f6)}html[data-theme=dark] .af-list .ai-chip:hover{background:#13181e}html[data-theme=dark] .vm:hover{border-color:#243f73;box-shadow:0 10px 26px rgba(0,0,0,0.336)}html[data-theme=dark] .vm1:hover .vm-v b{color:#46a8f7}html[data-theme=dark] .vm3:hover .vm-s b{color:#4677f6}html[data-theme=dark] .vm4 .vm-chips .iss:hover{box-shadow:0 5px 12px rgba(0,0,0,0.432)}html[data-theme=dark] .af-steps .st.hot{background:#13181e}html[data-theme=dark] .af-steps .st.hot .st-i{background:#1c2432;color:#8c98aa}html[data-theme=dark] .vm-chips .iss.plus{background:#1c2637;color:#9da9bd}html[data-theme=dark] .vm-pop{background:#13181e;border:1px solid #25344e;box-shadow:0 18px 44px rgba(0,0,0,0.528)}html[data-theme=dark] .vm-pop .pr{border-top:1px solid #202736}html[data-theme=dark] .vm-pop .pr i{background:#1e2837}html[data-theme=dark] .vm-pop .x:hover{color:#4677f6}
/* v25.css */html[data-theme=dark].v25 .hero .wrap:not(:has(#v24-mods-box))::before{background:#1e2633}html[data-theme=dark] .vm-ad.img{background:#13181e}html[data-theme=dark] .vm4 .iss.tg{background:#0c1f44;color:#4677f6}
/* v28-fxh.css */html[data-theme=dark] .tm-bar:before{background:#485365}html[data-theme=dark] .rg2{background:linear-gradient(90deg,#16b97a 0,#16b97a 30%,#374052 30%,#374052 70%,#f0524f 70%,#f0524f 100%)}html[data-theme=dark] .pr-t tbody tr:hover td{background:#161e2b}html[data-theme=dark] .co2 .ava{background:#13181e}@media(max-width:760px){html[data-theme=dark] .pr-t .l{background:#13181e}}
/* chrome.js inline */@media(max-width:760px){html[data-theme=dark] .mburger{background:#13181e}html[data-theme=dark] .mnav{background:#13181e}html[data-theme=dark] .mnav a{background:#13181e;color:var(--fg,#d5d9e0)}html[data-theme=dark] .mnav a.on{background:var(--accent-bg,#0b1f3c)}}@media(min-width:761px){html[data-theme=dark] .nav .more{color:#bdc2cc}}
/* chrome.js inline */html[data-theme=dark] .site-foot .soc .flang{background:#13181e;border:1px solid var(--line,#2e333f);color:var(--fg2,#a3abb9)}html[data-theme=dark] .site-foot .soc .flang:hover{background:var(--accent-bg,#0b1f3c);color:var(--accent,#3d7aff)}@media(min-width:761px){html[data-theme=dark] #totop{background:conic-gradient(var(--accent,#1a62ff) calc(var(--pg,0)*1%),#2d3644 0);color:var(--accent,#3d7aff)}html[data-theme=dark] #totop:before{background:#13181e}}
/* go.js inline */html[data-theme=dark] .fx-soon{background:#303745;box-shadow:0 6px 24px rgba(0,0,0,0.48)}
/* onchain.js inline */html[data-theme=dark] .fx-all .fx-tt .up{color:#e7555a}html[data-theme=dark] .fx-all .fx-tt .down{color:#51ec94}
html[data-theme=dark] [style*="background:#fff"]{background:#13181e!important}
html[data-theme=dark] [style*="color:#333a46"]{color:#bdc2cc!important}
html[data-theme=dark] [style*="background:rgba(255,255,255,.7)"]{background:rgba(19,24,30,0.7)!important}
html[data-theme=dark] [style*="color:#c77700"]{color:#ffb13d!important}
html[data-theme=dark] [style*="background:#eef3ff"]{background:#0b1a3f!important}
html[data-theme=dark] [style*="background:#e9f7f0"]{background:#1f3e2f!important}
html[data-theme=dark] [style*="color:#12805a"]{color:#55e7b5!important}
html[data-theme=dark] [style*="color:#0a80df"]{color:#46a8f7!important}
html[data-theme=dark] [style*="background:#1b1f27"]{background:#303745!important}
html[data-theme=dark] [style*="color:#e5484d"]{color:#e7555a!important}
html[data-theme=dark] [style*="color:#12a150"]{color:#51ec94!important}
html[data-theme=dark] [style*="background:#cfd6e3"]{background:#424d60!important}
