版本比较
stylus修改-洛谷
正文
增加 1827 行删除 164 行
12343456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010616106210631064106510661067106810691070107116171072107310741075107610772223107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111723 行未改动117611771178117943118011811182118311845 行未改动11901191119211935758596061119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613278 行未改动13361337133813391340134113421343134469 行未改动1414141514161417157141814191420142114221423142414251426166142714281429143014311432143314341741751435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146665 行未改动1532153315341535251252153615371538153915401541154215431544154515461547262154815491550155115524 行未改动155715581559156015611562156327727827915641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598286159916001601160216033 行未改动1607160816091610298299161116121613161430116151616303304305161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640308309310311164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216634 行未改动16681669167016711672167316743253261675167616771678167916801681168216831684335336337168516861687168816891690169116921693169416951696169716981699345170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172732 行未改动17601761176217633861764176517661767176817691770393177117721773177417751776177740040140240340440540640740817781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518264114124134144154164171827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851422423424425426427428429430185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319044334341905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220634384394402064206520662067206820692070207120724422073444445446207420752076207720784524534544554564574582079208046046120812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127472212821292130213121324774782133213421352136213721382139214021412142487214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219114 行未改动2206220722082209512221022112212221314 行未改动2228222922302231535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566223256856957057157257357457557657757857958058122332234223522362 行未改动223922402241224259259359459559622432244224522466002247224860260360422496066076086096106116126136146156166176186192250225122522253225422556262256225722586296306316322259226022612262226318 行未改动22822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322```cpp/* ==UserStyle==@name 乐正绫&洛天依-白石溪(最终修复版)@version 2026.9.10.22.00@name 洛谷 · 乐正绫主题 · 浓彩版@namespace userstyles.world/user/ylj-yylc@version 2026.10.18.3@description 乐正绫配色 + 毛玻璃 + 颗粒噪点 + 红蓝光晕;侧栏重绘、首页逐卡配图、无图卡片渐变。适合性能较好的电脑。@author ylj_yylc@license CC BY-NC-SA==/UserStyle== */
/* ============================================================ 安装:Stylus → 新建样式 → Applies to 填 https://www.luogu.com.cn/* 改色:只动 :root 变量 改图:替换 --img-* 变量 想更轻:换「轻量版」,或把 --blur 调到 10px、删掉 body::after ============================================================ */
:root { --ling-red: #e4002b; --ling-red-soft: #ff5677; --ling-cyan: #66ccff; --ling-cyan-deep: #1f8fc4;
--ink: #23272e; --ink-2: #434a55; --ink-3: #6d7683;
--glass-top: rgba(255, 255, 255, 0.94); --glass-bottom: rgba(255, 255, 255, 0.82); --glass-thin: rgba(255, 255, 255, 0.42); --stroke: rgba(255, 255, 255, 0.66); --radius: 16px; --blur: 16px;
--glow-red: rgba(228, 0, 43, 0.11); --glow-cyan: rgba(102, 204, 255, 0.09); --shadow: 0 8px 24px rgba(31, 45, 61, 0.15);
--font: "HarmonyOS Sans SC", "MiSans", "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif; --font-title: "LXGW WenKai", "LXGW WenKai Screen", "霞鹜文楷", KaiTi, "Kaiti SC", STKaiti, "楷体", "Songti SC", "Noto Serif SC", serif; --mono: "JetBrains Mono", "Cascadia Code", Consolas, "Courier New", monospace;
/* 渐变卡片:没有配图的卡片用这几套 */ --grad-rose: linear-gradient(150deg, rgba(255, 243, 246, 0.94), rgba(255, 216, 227, 0.86)); --grad-sky: linear-gradient(150deg, rgba(240, 249, 255, 0.94), rgba(209, 236, 255, 0.86)); --grad-mint: linear-gradient(150deg, rgba(240, 255, 250, 0.94), rgba(206, 244, 232, 0.86)); --grad-lilac: linear-gradient(150deg, rgba(248, 244, 255, 0.94), rgba(226, 216, 255, 0.86)); --grad-sand: linear-gradient(150deg, rgba(255, 252, 244, 0.94), rgba(255, 236, 203, 0.86)); --grad-plain: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.88));
/* 背景图 */ --img-home: url("https://yylc-1509676996.cos.ap-guangzhou.myqcloud.com/images/bg-home.webp"); --img-article: url("https://yylc-1509676996.cos.ap-guangzhou.myqcloud.com/images/bg-article.webp"); --img-problem: url("https://yylc-1509676996.cos.ap-guangzhou.myqcloud.com/images/bg-problem.webp"); --img-discuss: url("https://yylc-1509676996.cos.ap-guangzhou.myqcloud.com/images/bg-discuss.webp"); --img-record: url("https://yylc-1509676996.cos.ap-guangzhou.myqcloud.com/images/bg-record.webp"); --img-user: url("https://yylc-1509676996.cos.ap-guangzhou.myqcloud.com/images/bg-welcome.webp"); --img-list: url("https://yylc-1509676996.cos.ap-guangzhou.myqcloud.com/images/bg-list.webp"); --img-banner: url("https://yylc-1509676996.cos.ap-guangzhou.myqcloud.com/images/banner.webp");
/* 卡片插画 */ --img-card-guitar: url("https://yylc-1509676996.cos.ap-guangzhou.myqcloud.com/images/card-guitar.webp"); --img-card-city: url("https://yylc-1509676996.cos.ap-guangzhou.myqcloud.com/images/card-city.webp");
--img-art-sunset: url("https://yylc-1509676996.cos.ap-guangzhou.myqcloud.com/images/art-sunset.webp"); --img-art-breakout: url("https://yylc-1509676996.cos.ap-guangzhou.myqcloud.com/images/art-breakout.webp"); --img-art-stage: url("https://yylc-1509676996.cos.ap-guangzhou.myqcloud.com/images/art-stage.webp"); --img-art-wide: url("https://yylc-1509676996.cos.ap-guangzhou.myqcloud.com/images/art-wide.webp"); --img-art-bili: url("https://yylc-1509676996.cos.ap-guangzhou.myqcloud.com/images/art-bili.webp"); --img-art-sky: url("https://yylc-1509676996.cos.ap-guangzhou.myqcloud.com/images/art-sky.webp"); --img-fortune: var(--img-problem); --img-title: url("https://yylc-1509676996.cos.ap-guangzhou.myqcloud.com/images/title-anim.webp"); --img-art-4: url("https://yylc-1509676996.cos.ap-guangzhou.myqcloud.com/images/art-4.webp"); --img-art-5: url("https://yylc-1509676996.cos.ap-guangzhou.myqcloud.com/images/art-5.webp"); --img-art-6: url("https://yylc-1509676996.cos.ap-guangzhou.myqcloud.com/images/art-6.webp");
--vignette: radial-gradient(130% 100% at 50% 0%, rgba(255, 255, 255, 0) 36%, rgba(22, 32, 46, 0.24) 100%);}
/* ---------------- 背景:逐页换图 ---------------- */
html { background-color: #e6eef7 !important; background-image: var(--vignette), var(--img-home) !important; background-position: center, center !important; background-size: cover, cover !important; background-repeat: no-repeat, no-repeat !important; background-attachment: fixed, fixed !important;}
html:has(#article-title) { background-image: var(--vignette), var(--img-welcome) !important;}
html:has(.ide-container),html:has(.problem-content) { background-image: var(--vignette), var(--img-problem) !important;}
html:has(.lg-content-table-left) { background-image: var(--vignette), var(--img-discuss) !important;}
html:has(.user-header-top),html:has(.user-header-container) { background-image: var(--vignette), var(--img-article) !important;}
html:has(.filter-tags) { background-image: var(--vignette), var(--img-list) !important;}
html:has(.contest-card) { background-image: var(--vignette), var(--img-article) !important;}
@-moz-document url-prefix("https://www.luogu.com.cn/record/") { html { background-image: var(--vignette), var(--img-record) !important; }}
@-moz-document url-prefix("https://www.luogu.com.cn/problem/list") { html { background-image: var(--vignette), var(--img-list) !important; }}
@-moz-document url-prefix("https://www.luogu.com.cn/paste/") { html { background-image: var(--vignette), var(--img-discuss) !important; }}
/* ---------------- 背景层让位 ---------------- */
body,.main-container,.main-container > main,.main-container > .lfe-body,#app,#app > .lfe-body,.lfe-body,.background,.columba-content-wrap,.container,.row { background-color: transparent !important; background-image: none !important;}
.main-container > .header-layout .background,.lfe-body > .background { display: none !important;}
/* 洛谷的整站底色挂在 .theme-page 的变量上,必须一起按掉 */.theme-page { --theme-body-back: transparent !important; --theme-body-image: none !important; --theme-body-color: none !important; --theme-body-mid-mask: none !important; --theme-body-color-filter: none !important; --theme-card-background: transparent !important; background-color: transparent !important; --theme-card-backdrop-filter: none !important; background: transparent !important; background-image: none !important;}
.theme-page::before,.theme-page::after { display: none !important; background: transparent !important; background-image: none !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; -webkit-mask-image: none !important; mask-image: none !important; box-shadow: none !important; border: 0 !important;}
body { color: var(--ink); font-family: var(--font); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;}
h1, h2, h3, h4, h5, h6,#article-title,.lg-article h1, .lg-article h2, .lg-article h3,.l-card h1, .l-card h2, .l-card h3,.user-header-container .name,.article-banner .title { font-family: var(--font-title); font-weight: 600; letter-spacing: 0.02em;}
body .lfe-marked h1,body .lfe-marked h2,body .lfe-marked h3 { font-family: var(--font-title); letter-spacing: 0.02em;}
/* ---------------- 颗粒噪点(调淡,省一点合成) ---------------- */
body::after { content: ""; position: fixed; inset: 0; z-index: 2147483000; pointer-events: none; opacity: 0.045; mix-blend-mode: soft-light; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E"); background-size: 180px 180px;}
/* ---------------- 顶栏 ---------------- */
.wrapper.wrapped.lfe-body.header-layout,top-bar,.top-bar { background: linear-gradient(180deg, rgba(255, 255, 255, 0.64), rgba(255, 255, 255, 0.44)) !important; -webkit-backdrop-filter: blur(20px) saturate(150%); backdrop-filter: blur(20px) saturate(150%); border-bottom: 1px solid var(--stroke) !important; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.75) inset, 0 6px 20px rgba(31, 45, 61, 0.10), 0 0 24px var(--glow-red);}
.top-bar::after,top-bar::after { display: none !important;}
/* ---------------- 侧边栏:重绘 ---------------- */
nav.sidebar.lside.bar,.sidebar.lside.bar { --theme-navi-back: transparent; --theme-navi-fore: var(--ink); background: linear-gradient(165deg, rgba(255, 255, 255, 0.60), rgba(255, 236, 242, 0.42) 55%, rgba(228, 245, 255, 0.46)) !important; -webkit-backdrop-filter: blur(22px) saturate(150%); backdrop-filter: blur(22px) saturate(150%); border: 1px solid rgba(255, 255, 255, 0.62) !important; border-left: 0 !important; border-radius: 0 22px 22px 0 !important; box-shadow: 0 10px 30px rgba(31, 45, 61, 0.16), 0 0 26px var(--glow-cyan) !important; padding: 10px 0 14px !important; overflow: hidden;}
.nav-group { margin: 2px 8px 10px !important; padding-bottom: 8px; border-bottom: 1px solid rgba(255, 255, 255, 0.5);}
.nav-group:last-child { border-bottom: 0; padding-bottom: 0;}
.nav-group > ul { margin: 0 !important; padding: 0 !important; list-style: none !important;}
.nav-group li { margin: 2px 0 !important;}
.nav-group li > a { display: flex !important; align-items: center; gap: 10px; padding: 8px 12px !important; border-radius: 10px !important; color: var(--ink-2) !important; font-weight: 500; line-height: 1.2; position: relative; transition: background-color .18s ease, color .18s ease, transform .18s ease;}
.nav-group li > a .icon { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; color: rgba(228, 0, 43, 0.72); transition: color .18s ease, transform .18s ease;}
.nav-group li > a .icon svg { width: 15px; height: 15px; filter: drop-shadow(0 0 4px rgba(228, 0, 43, 0.25));}
.nav-group li > a .title { font-size: 14px; letter-spacing: .01em;}
.nav-group li > a:hover { background: rgba(255, 255, 255, 0.55) !important; color: var(--ling-red) !important; transform: translateX(2px);}
.nav-group li > a:hover .icon { color: var(--ling-red); transform: scale(1.06);}
.nav-group li > a.selected,.nav-group li > a.on,.nav-group li > a.active { background-image: linear-gradient(135deg, rgba(228, 0, 43, 0.14), rgba(102, 204, 255, 0.16)) !important; color: var(--ling-red) !important; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6), 0 4px 14px rgba(228, 0, 43, 0.12);}
.nav-group li > a.selected::before,.nav-group li > a.on::before,.nav-group li > a.active::before { content: ""; position: absolute; left: 0; top: 22%; width: 3px; height: 56%; border-radius: 0 3px 3px 0; background: linear-gradient(180deg, var(--ling-red), var(--ling-cyan));}
/* 右侧头像展开栏 */.user-nav.rside,.user-nav.rside.show,.user-nav.rside.nav-scrollbar,.dropdown.hown { background-image: linear-gradient(165deg, rgba(255, 255, 255, 0.62), rgba(255, 236, 242, 0.44) 55%, rgba(228, 245, 255, 0.48)) !important; -webkit-backdrop-filter: blur(22px) saturate(150%) !important; backdrop-filter: blur(22px) saturate(150%) !important; border: 1px solid rgba(255, 255, 255, 0.62) !important; border-radius: 18px !important; box-shadow: 0 10px 30px rgba(31, 45, 61, 0.16), 0 0 26px var(--glow-cyan) !important; overflow: hidden;}
.user-nav.rside,.user-nav.rside.show,.user-nav.rside.nav-scrollbar,.dropdown.hown { background-image: linear-gradient(165deg, rgba(255, 255, 255, 0.62), rgba(255, 236, 242, 0.44) 55%, rgba(228, 245, 255, 0.48)) !important; -webkit-backdrop-filter: blur(22px) saturate(150%) !important; backdrop-filter: blur(22px) saturate(150%) !important; border: 1px solid rgba(255, 255, 255, 0.62) !important; border-radius: 18px !important; box-shadow: 0 10px 30px rgba(31, 45, 61, 0.16), 0 0 26px var(--glow-cyan) !important; overflow: hidden;}
.user-nav.rside,.user-nav.rside.show,.user-nav.rside.nav-scrollbar,.dropdown.hown { background-image: linear-gradient(165deg, rgba(255, 255, 255, 0.62), rgba(255, 236, 242, 0.44) 55%, rgba(228, 245, 255, 0.48)) !important; -webkit-backdrop-filter: blur(22px) saturate(150%) !important; backdrop-filter: blur(22px) saturate(150%) !important; border: 1px solid rgba(255, 255, 255, 0.62) !important; border-radius: 18px !important; box-shadow: 0 10px 30px rgba(31, 45, 61, 0.16), 0 0 26px var(--glow-cyan) !important; overflow: hidden;}
/* 侧栏顶部头像区 */#app > .lfe-body > div:first-of-type { background-image: linear-gradient(rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.40)), var(--img-banner) !important; background-size: cover !important; background-position: center !important; border-radius: 18px !important;}
/* ---------------- 卡片基座:渐变而不是死白 ---------------- */
.l-card,.card,.am-panel,.lg-article { background-image: var(--grad-plain) !important; -webkit-backdrop-filter: blur(var(--blur)) saturate(145%); backdrop-filter: blur(var(--blur)) saturate(145%); border: 1px solid var(--stroke) !important; border-radius: var(--radius) !important; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.85) inset, 0 8px 24px rgba(31, 45, 61, 0.15), 0 0 24px var(--glow-red) !important; color: var(--ink); transition: box-shadow .22s ease;}
.lg-article:hover,.side > .l-card:hover { box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 14px 36px rgba(31, 45, 61, 0.20), 0 0 34px rgba(228, 0, 43, 0.20), 0 0 56px rgba(102, 204, 255, 0.16) !important;}
/* ---------------- 首页卡片:一张一个图 ---------------- */
#lg-slider,.am-slider,.am-slides,.am-viewport { background: transparent !important; background-color: transparent !important;}
.lg-article:has(.am-slider),.lg-article:has(.am-slides) { background: transparent !important; background-image: none !important; box-shadow: none !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; border: 0 !important;}
.lg-article:nth-child(1) { background-image: linear-gradient(160deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.34)), var(--img-art-4) !important;}
.lg-article:nth-child(2) { background-image: linear-gradient(160deg, rgba(255, 255, 255, 0.60), rgba(255, 255, 255, 0.32)), var(--img-art-sunset) !important;}
.lg-article:nth-child(3) { background-image: linear-gradient(160deg, rgba(255, 255, 255, 0.60), rgba(255, 255, 255, 0.32)), var(--img-art-breakout) !important;}
.lg-article:nth-child(4) { background-image: linear-gradient(160deg, rgba(255, 255, 255, 0.60), rgba(255, 255, 255, 0.32)), var(--img-card-city) !important;}
.lg-article:nth-child(5) { background-image: linear-gradient(160deg, rgba(255, 255, 255, 0.60), rgba(255, 255, 255, 0.32)), var(--img-art-bili) !important;}
.lg-article:nth-child(6) { background-image: linear-gradient(160deg, rgba(255, 255, 255, 0.60), rgba(255, 255, 255, 0.32)), var(--img-art-sky) !important;}
.lg-article:nth-child(7) { background-image: linear-gradient(160deg, rgba(255, 255, 255, 0.60), rgba(255, 255, 255, 0.32)), var(--img-art-stage) !important;}
.lg-article:nth-child(8) { background-image: linear-gradient(160deg, rgba(255, 255, 255, 0.60), rgba(255, 255, 255, 0.32)), var(--img-art-wide) !important;}
.lg-article { background-size: cover !important; background-position: center !important; background-repeat: no-repeat !important;}
/* 首页统计卡 / 比赛面板:渐变,不配图 */.lg-article.lg-index-stat,.am-panel.lg-index-contest { background-image: linear-gradient(135deg, rgba(228, 0, 43, 0.74), rgba(102, 204, 255, 0.72)) !important; background-size: cover; background-position: center; border: 0 !important; color: #fff !important; box-shadow: 0 10px 30px rgba(228, 0, 43, 0.20), 0 0 36px rgba(102, 204, 255, 0.22) !important;}
.am-panel.lg-index-contest:hover { background-image: linear-gradient(135deg, rgba(102, 204, 255, 0.78), rgba(228, 0, 43, 0.78)) !important;}
.lg-index-stat *,.lg-index-contest * { color: #fff !important; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.28);}
/* 运势 / 工具卡:人物动图 */.lg-index-calendar,.lg-index-tool { background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.10)), var(--img-fortune) !important; background-size: cover !important; background-position: center top !important; color: var(--ink) !important; min-height: 150px;}
.lg-index-calendar .title,.lg-index-tool .title,.lg-index-calendar h1,.lg-index-tool h1 { color: #fff !important; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);}
/* 讨论区动态卡 */.lg-index-benben { background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.64)), var(--img-art-wide) !important; background-size: cover !important; background-position: center !important;}
/* ---------------- 侧栏卡片:一张一个图 ---------------- */
.side > .l-card:nth-child(1) { background-image: linear-gradient(rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0.52)), var(--img-card-guitar) !important;}
.side > .l-card:nth-child(2) { background-image: linear-gradient(rgba(255, 255, 255, 0.40), rgba(255, 255, 255, 0.54)), var(--img-art-sunset) !important;}
.side > .l-card:nth-child(3) { background-image: linear-gradient(rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0.52)), var(--img-art-breakout) !important;}
.side > .l-card:nth-child(4) { background-image: linear-gradient(rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0.52)), var(--img-art-stage) !important;}
.side > .l-card,.sidebar-container > .main > .l-card { background-size: cover !important; background-position: center !important;}
.sidebar-container > .main > .l-card:nth-child(1) { background-image: linear-gradient(rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0.54)), var(--img-card-city) !important;}
.sidebar-container > .main > .l-card:nth-child(2) { background-image: linear-gradient(rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0.54)), var(--img-art-wide) !important;}
.sidebar-container > .main > .l-card:nth-child(3) { background-image: linear-gradient(rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0.54)), var(--img-art-bili) !important;}
/* 用户页头部 */.l-card.header-card,.card.user-header-container > .user-header-top { background-image: linear-gradient(rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.30)), var(--img-title) !important; background-size: cover !important; background-position: center !important; border-radius: var(--radius) !important;}
.l-card.burger { background-image: linear-gradient(rgba(255, 255, 255, 0.36), rgba(255, 255, 255, 0.50)), var(--img-card-guitar) !important; background-size: cover !important; background-position: center !important;}
/* ---------------- 无图卡片:渐变着色 ---------------- */
.l-card.filter-card,.card.filter-card { background-image: var(--grad-sky) !important;}
.l-card.main,.main > .l-card { background-image: var(--grad-plain) !important;}
.main > .l-card.main { background-image: var(--grad-plain) !important; background-size: auto !important; background-position: center !important;}
.problem-card,.card.problem-card { background-image: var(--grad-rose) !important;}
.am-panel { background-image: var(--grad-lilac) !important;}
.card.padding-default,.l-card.padding-default { background-image: var(--grad-sand) !important;}
.card.user-header-container { background-image: var(--grad-rose) !important; overflow: hidden; border-radius: var(--radius) !important;}
.header-block,.header-layout,.columba-content-wrap.header-layout { background: transparent !important; background-color: transparent !important;}
/* ---------------- 题目页 ---------------- */
.side > .l-card,.main > .l-card,.panel-layout .l-card,.ide-container,.panel.panel-a { border-radius: var(--radius) !important;}
.panel.panel-a > .problem { background-image: var(--grad-rose) !important; background-size: auto !important; color: var(--ink) !important; text-shadow: none !important; border-radius: 12px !important;}
.ide-container { background-image: linear-gradient(rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.92)), var(--img-art-wide) !important; background-size: cover !important; background-position: center !important;}
/* ---------------- 文章页 ---------------- */
body:has(#article-title) .article-banner { background-image: linear-gradient(160deg, rgba(255, 255, 255, 0.50), rgba(255, 255, 255, 0.26)), var(--img-card-city) !important; background-size: cover !important; background-position: center !important; border: 1px solid var(--stroke) !important; border-radius: var(--radius) !important; box-shadow: var(--shadow), 0 0 26px var(--glow-cyan) !important; -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);}
body:has(#article-title) #article-title { color: var(--ink) !important; text-shadow: 0 0 24px rgba(102, 204, 255, 0.32) !important;}
body:has(#article-title) .article-content > .lfe-marked-wrap { background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(255, 255, 255, 0.93)) !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; border: 1px solid var(--stroke) !important; border-radius: var(--radius) !important; box-shadow: var(--shadow) !important;}
body:has(#article-title) .article-content > .update-info { background: var(--glass-thin) !important; border-radius: 0 0 var(--radius) var(--radius) !important; color: var(--ink-2) !important;}
body:has(#article-title) .lfe-marked,body:has(#article-title) .lfe-marked p,body:has(#article-title) .lfe-marked li { color: var(--ink) !important;}
body:has(#article-title) .lfe-marked a { border-bottom: 1px solid rgba(31, 143, 196, 0.35);}
body:has(#article-title) .article-content > .toc-wrapper > .toc.with-top { background: rgba(255, 255, 255, 0.62) !important; -webkit-backdrop-filter: blur(14px) saturate(130%); backdrop-filter: blur(14px) saturate(130%); border: 1px solid var(--stroke) !important; border-radius: 12px !important; box-shadow: 0 6px 20px rgba(31, 45, 61, 0.10), 0 0 18px var(--glow-red) !important;}
body:has(#article-title) .article-content > .actions.left-mode { background: rgba(255, 255, 255, 0.78) !important; -webkit-backdrop-filter: blur(12px) saturate(130%); backdrop-filter: blur(12px) saturate(130%); border: 1px solid var(--stroke) !important; border-radius: 12px !important; box-shadow: 0 6px 18px rgba(31, 45, 61, 0.12), 0 0 16px var(--glow-cyan) !important;}
body:has(#article-title) .lfe-marked pre,body:has(#article-title) .lfe-marked code { font-family: var(--mono);}
body:has(#article-title) .lfe-marked pre { background: #1d232e !important; color: #e7eef8 !important; border-radius: 12px !important; border: 1px solid rgba(255, 255, 255, 0.12) !important; box-shadow: 0 8px 22px rgba(15, 22, 33, 0.26) !important;}
body:has(#article-title) .lfe-marked pre code { background: transparent !important; color: inherit !important;}
body:has(#article-title) .lfe-marked blockquote { background: rgba(102, 204, 255, 0.14) !important; border-left: 3px solid var(--ling-cyan) !important; border-radius: 0 10px 10px 0; color: var(--ink-2) !important;}
/* ---------------- 讨论区 ---------------- */
.lg-content-table-left,.am-comment-main,.benben-container { background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(255, 255, 255, 0.93)) !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; border: 1px solid rgba(255, 255, 255, 0.7) !important; border-radius: var(--radius) !important; color: var(--ink) !important; box-shadow: 0 6px 22px rgba(31, 45, 61, 0.10) !important;}
.lg-content-table-left *,.am-comment-main *,.benben-container * { text-shadow: none !important;}
/* ---------------- 用户主页 ---------------- */
.user-header-bottom { background: rgba(255, 255, 255, 0.60) !important; -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%); box-shadow: 0 0 26px var(--glow-cyan);}
/* ---------------- 运势卡:洛谷放在 .am-u-md-12 列里 ---------------- */
.am-u-md-12 { background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.06)), var(--img-fortune) !important; background-size: cover, cover !important; background-position: center, center !important; background-repeat: no-repeat, no-repeat !important; border-radius: var(--radius) !important; overflow: hidden !important; min-height: 170px; box-shadow: 0 8px 24px rgba(31, 45, 61, 0.15), 0 0 24px var(--glow-red) !important;}
.am-u-md-12 > .lg-article { background: transparent !important; background-image: none !important; border: 0 !important; box-shadow: none !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important;}
/* ---------------- 干掉卡片外那层“空白窗口” ---------------- */
main,main[style],.am-center,.am-g,.lg-index-content,.main-content { background-color: transparent !important; background-image: none !important;}
/* 卡片套卡片时,内层不再铺底,避免出现没有圆角的白色外框 */.card > .l-card,.l-card > .l-card,.card > .card,.lg-article > .l-card { background: transparent !important; background-image: none !important; border: 0 !important; box-shadow: none !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important;}
/* ---------------- 私信 / 通知 ---------------- */
.l-card.wrapper { background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.86)), var(--img-art-wide) !important; background-size: cover !important; background-position: center !important; border: 1px solid var(--stroke) !important; border-radius: var(--radius) !important; box-shadow: var(--shadow), 0 0 24px var(--glow-red) !important;}
.item[data-v-4d6dca7a]:hover { background: rgba(122, 10, 217, 0.18) !important; border-radius: 10px;}
/* ---------------- 文字 / 链接 / 控件 ---------------- */
a { color: var(--ling-cyan-deep); text-decoration: none; transition: color .16s ease;}
a:hover { color: var(--ling-red);}
h1, h2, h3, h4, h5, h6 { color: var(--ink); letter-spacing: .01em;}
.lfe-caption,.tag { border-radius: 999px !important;}
.selected,.nav-item.active { background-image: linear-gradient(135deg, var(--ling-red) 8%, var(--ling-cyan) 100%) !important; color: #fff !important; border-radius: 10px !important; box-shadow: 0 0 18px rgba(228, 0, 43, 0.30) !important;}
.selected > span { color: #fff !important;}
.am-btn,.lfe-form-sz-small,button { border-radius: 10px !important; font-family: var(--font); transition: filter .16s ease;}
.am-btn:hover,button:hover { filter: brightness(1.06);}
.am-btn.am-btn-danger { background: linear-gradient(120deg, #ff416c, #ff4b2b) !important; border: 0 !important; color: #fff !important;}
.am-btn.am-btn-primary { background: linear-gradient(120deg, #7f7fd5, #86a8e7) !important; border: 0 !important; color: #fff !important;}
.am-btn.am-btn-success { background: linear-gradient(120deg, #b993d6, #8ca6db) !important; border: 0 !important; color: #fff !important;}
/* 输入框:半透明,能看到背后的图 */input,textarea,select,.refined-input,.search-text,.input-group input,.lfe-form-sel,.select-button,.combo-wrapper .combo { background: rgba(255, 255, 255, 0.30) !important; -webkit-backdrop-filter: blur(8px) saturate(135%); backdrop-filter: blur(8px) saturate(135%); border: 1px solid rgba(255, 255, 255, 0.55) !important; border-radius: 10px !important; color: var(--ink) !important; font-family: var(--font); transition: background-color .16s ease, border-color .16s ease, box-shadow .16s ease;}
input:hover,textarea:hover,select:hover,.refined-input:hover,.search-text:hover { background: rgba(255, 255, 255, 0.40) !important;}
input:focus,textarea:focus,select:focus,.refined-input:focus-within,.search-text:focus-within { background: rgba(255, 255, 255, 0.48) !important; border-color: rgba(102, 204, 255, 0.85) !important; box-shadow: 0 0 0 3px rgba(102, 204, 255, 0.20) !important; outline: none !important;}
input::placeholder,textarea::placeholder { color: rgba(67, 74, 85, 0.55) !important;}
.combo-wrapper .combo .combo-menu,.select-button .menu,.lfe-form .menu { background: rgba(255, 255, 255, 0.62) !important; -webkit-backdrop-filter: blur(12px) saturate(140%); backdrop-filter: blur(12px) saturate(140%); border: 1px solid rgba(255, 255, 255, 0.6) !important; border-radius: 10px !important; box-shadow: 0 8px 24px rgba(31, 45, 61, 0.16) !important;}
::selection { background: rgba(228, 0, 43, 0.16); color: var(--ink);}
/* ---------------- 杂项 ---------------- */
.am-slides > *,.am-direction-nav > *,.am-control-nav > * { display: none !important;}
::-webkit-scrollbar { width: 10px; height: 10px;}
::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.32);}
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, rgba(228, 0, 43, 0.52), rgba(102, 204, 255, 0.52)); border-radius: 999px; border: 2px solid transparent; background-clip: content-box;}
img.avatar:hover { box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85), 0 0 16px rgba(228, 0, 43, 0.40);}
/* ---------------- 动效(只留必要的) ---------------- */
@keyframes ling-fade-up { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); }}
.lg-article,.side > .l-card { animation: ling-fade-up .4s ease-out both;}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; }}
@media (max-width: 900px) { :root { --blur: 10px; }
body::after { opacity: 0.03; }}
/* ---------------- 首页轮播卡:不要背景图(提高优先级,压过 nth-child 规则) ---------------- */
html body .lg-article:has(.am-slider),html body .lg-article:has(.am-slides) { background: transparent !important; background-image: none !important; border: 0 !important; box-shadow: none !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important;}
/* ---------------- 防窥 ---------------- */
html > body { transition: opacity .32s ease !important;}
html:not(:hover) > body { opacity: 0 !important;}
/* ============================================================ 兜底:给卡片垫一层实体底色 背景图只在卡片外面出现,正文卡一律实体白,杜绝“背景透出来像被拉伸” ============================================================ */
.l-card,.card,.am-panel,.lg-article { background-color: rgba(255, 255, 255, 0.95) !important;}
.lg-content-table-left,.am-comment-main,.benben-container,.main > .l-card.main,body:has(#article-title) .article-content > .lfe-marked-wrap,body:has(#article-title) .article-content > .update-info { background-color: #ffffff !important; background-image: none !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important;}```
普通版
```cpp/* ==UserStyle==@name 乐正绫主题洛谷@version 2026.9.24.1559756867371511099@namespace userstyles.world/user/acerkaio@description 洛谷美化。恢复所有背景图与广告,字体加粗防模糊,鼠标悬停卡片时该卡片单独显示。@author ylj_yylc(御绫军_阴雨鎏尘)@license CC BY-NC-SA==/UserStyle== */
/* ============================================================ 主站(首页/讨论区等) ============================================================ */
@-moz-document regexp("https://www.luogu(.org|.com.cn)/(?!blog).*") {/* --- 背景图(保持你原设定) --- */html > body { background-image: url(https://cdn.luogu.com.cn/upload/image_hosting/dnr6trms.png);html > body{ background-image: url(https://cdn.luogu.com.cn/upload/image_hosting/9e782u62.webp)!important; background-repeat: no-repeat; background-size: cover; background-position: center; background-attachment: fixed; opacity: .8; /* 保持你原来的透明度设定 */ color: #fff !important; text-shadow: 0 1px 1px rgba(238, 0, 0, 0.6); opacity:.4!important;}
.main-container.lside-nav{ background-image: url(https://cdn.luogu.com.cn/upload/image_hosting/9e782u62.webp)!important; background-repeat: no-repeat; background-size: cover; background-position: center; background-attachment: fixed; text-shadow: 0 1px 1px rgba(238, 0, 0, 0.6); }
html,
.theme-page { background: transparent !important;}
.theme-page::before { position: fixed !important; inset: 0 !important; width: 100vw !important; height: 100vh !important; background-position: center center !important; background-size: cover !important; background-repeat: no-repeat !important; -webkit-mask-image: none !important; mask-image: none !important; pointer-events: none !important;}
.sidebar,.lside.bar { background: var(--nav-glass) !important; -webkit-backdrop-filter: var(--blur-nav) !important; backdrop-filter: var(--blur-nav) !important; border: none !important; box-shadow: none !important; transform: translate3d(0, 0, 0);}.user-nav.rside.show.nav-scrollbar{ display:none;}top-bar,.top-bar { background: linear-gradient( to bottom, rgba(20, 35, 56, 0.24) 0%, rgba(20, 35, 56, 0.20) 55%, rgba(20, 35, 56, 0.12) 82%, rgba(20, 35, 56, 0.06) 100% ) !important; -webkit-backdrop-filter: var(--blur-nav) !important; backdrop-filter: var(--blur-nav) !important; border: none !important; box-shadow: none !important;}
top-bar::after,.top-bar::after { content: ""; position: absolute; left: 0; right: 0; bottom: -16px; height: 16px; background: linear-gradient( to bottom, rgba(20, 35, 56, 0.06), transparent ); pointer-events: none;}/* --- 字体防模糊:加粗 + 无发光阴影 --- */html > body, p, div, span, li, td, th, h1, h2, h3, h4, h5, h6 { font-weight: 600 !important; text-shadow: none !important;} .row>*.l-card { background-image: linear-gradient(135deg, rgba(51, 204, 255, .8), rgba(255, 0, 0, 0.8)); background-repeat: no-repeat; background-size: cover; background-position: center; border-radius: 16px !important; color: #FFFFFF !important; text-shadow: none !important;
} .sidebar-container.layout>*.side>*.l-card{ background-image: linear-gradient(135deg, rgba(51, 204, 255, .8), rgba(255, 0, 0, 0.8)); background-repeat: no-repeat; background-size: cover; background-position: center; border-radius: 16px !important; color: #FFFFFF !important; text-shadow: none !important; } /* --- 修复 benben 讨论区字体隐身问题(针对浅色背景强制深色字) --- */.lg-content-table-left,.lg-content-table-left *,.am-comment-main,3 行未改动.benben-container * { color: #3E2723 !important; /* 深褐色,与浅色背景对比清晰 */ text-shadow: none !important;}
/* 确保里面超链接的颜色和悬停效果不受影响 */.lg-content-table-left a,.am-comment-main a { color: #005C97 !important;5 行未改动
/* 补全评论区域原本的白字边缘设定(若原意是想在深色底显示) *//* 如果实际背景是白色,则上面那行已经生效;若是深色,请忽略此条 *//* 卡片内白字加粗无阴影 */.lg-article, .card, .popup[data-v-1d675dd8], .user-nav[data-v-2dfcfd35],.am-panel.lg-index-contest, .lg-content-table-left, .am-comment-main { color: #FFFFFF !important; text-shadow: none !important; font-weight: 600 !important;
body:has(:where(main > .full-container.columba-content-wrap > .l-card) > .user-header-top) .user-header-bottom { background: rgba(238, 243, 248, 0.20) !important; -webkit-backdrop-filter: blur(18px) saturate(120%) !important; backdrop-filter: blur(18px) saturate(120%) !important; border: none !important; box-shadow: none !important;} body:has(:is(.md-blog, .markdown-body, .blog-content)) main,body:has(article) main,body:has(:is(.md-blog, .markdown-body, .blog-content)) .columba-content-wrap,body:has(article) .columba-content-wrap,body:has(:is(.md-blog, .markdown-body, .blog-content)) .l-container,body:has(article) .l-container,body:has(:is(.md-blog, .markdown-body, .blog-content)) .container,body:has(article) .container,body:has(:is(.md-blog, .markdown-body, .blog-content)) .row,body:has(article) .row { background: transparent !important; box-shadow: none !important; border: none !important;}
/* 去掉文章页底部可能残留的深色/模糊块 */
body:has(:is(.md-blog, .markdown-body, .blog-content)) footer,body:has(article) footer,body:has(:is(.md-blog, .markdown-body, .blog-content)) .l-footer,body:has(article) .l-footer,body:has(:is(.md-blog, .markdown-body, .blog-content)) .l-footer-bg-background,body:has(article) .l-footer-bg-background { background: transparent !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; filter: none !important; box-shadow: none !important; border: none !important;}
/* 专栏正文主卡片:大气泡 */
body:has(.md-blog) .l-card:has(.md-blog),body:has(.markdown-body) .l-card:has(.markdown-body),body:has(.blog-content) .l-card:has(.blog-content),body:has(article) .l-card:has(article),body:has(.md-blog) article,body:has(.markdown-body) article,body:has(.blog-content) .blog-content { background: rgba(248, 251, 255, 0.92) !important; -webkit-backdrop-filter: blur(18px) saturate(120%) !important; backdrop-filter: blur(18px) saturate(120%) !important; border: none !important; border-radius: 12px !important; box-shadow: 0 8px 28px rgba(0, 0, 0, 0.10) !important; overflow: hidden !important;}
/* 正文内部不要再自己铺底 */
body:has(.md-blog) .l-card:has(.md-blog) > *,body:has(.markdown-body) .l-card:has(.markdown-body) > *,body:has(.blog-content) .l-card:has(.blog-content) > *,body:has(article) .l-card:has(article) > *,body:has(.md-blog) .md-blog,body:has(.markdown-body) .markdown-body,body:has(.blog-content) .blog-content { background: transparent !important;}
/* 正文文字颜色加深,保证可读性 */
body:has(.md-blog) .md-blog,body:has(.markdown-body) .markdown-body,body:has(.blog-content) .blog-content,body:has(article) article { color: rgba(32, 36, 42, 0.96) !important;}
/* 标题和元信息也不要太淡 */
body:has(:is(.md-blog, .markdown-body, .blog-content)) h1,body:has(article) h1,body:has(:is(.md-blog, .markdown-body, .blog-content)) h2,body:has(article) h2,body:has(:is(.md-blog, .markdown-body, .blog-content)) .header { color: rgba(28, 32, 38, 0.96) !important;}
/* 代码块、引用块单独浅底,否则正文会发飘 */
/* 左侧点赞/收藏这一列,也改成小玻璃 */
body:has(:is(.md-blog, .markdown-body, .blog-content)) .side,body:has(article) .side { background: rgba(246, 249, 253, 0.78) !important; -webkit-backdrop-filter: blur(14px) saturate(120%) !important; backdrop-filter: blur(14px) saturate(120%) !important; border: none !important; border-radius: 12px !important; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08) !important;}
/* 右侧栏保持玻璃,但不要比正文更重 */
body:has(:is(.md-blog, .markdown-body, .blog-content)) aside .l-card,body:has(article) aside .l-card,body:has(:is(.md-blog, .markdown-body, .blog-content)) .right-wrap .l-card,body:has(article) .right-wrap .l-card { background: rgba(244, 248, 252, 0.82) !important; -webkit-backdrop-filter: blur(14px) saturate(118%) !important; backdrop-filter: blur(14px) saturate(118%) !important; border: none !important; border-radius: 12px !important; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08) !important;}body:has(:where(main > .full-container.columba-content-wrap > .l-card) > .user-header-top) #rating-chart + .tooltip { z-index: 2147483647 !important; pointer-events: none !important;}
/* 避免上层容器裁剪 tooltip */
/* 避免正文区域下方再出现额外深色叠层 */
/* --- 卡片背景(完全复原你的设定) --- */.wrapper.wrapped.lfe-body.header-layout.tiny { height: 60px; z-index: 999;8 行未改动 .am-slides> * { display: none !important;}
.am-direction-nav> * { display: none !important;} .am-control-nav.am-control-paging>* {69 行未改动
/* --- 侧栏图片与下拉菜单 --- */#app > .lfe-body > div:first-of-type { opacity: 1 !important; background-image: url(https://cdn.luogu.com.cn/upload/image_hosting/qexud63o.png) !important; background-image: url(https://cdn.luogu.com.cn/upload/image_hosting/dnr6trms.png) !important; background-repeat: no-repeat; background-size: cover; background-position: center; border-radius: 30px !important; background-attachment: revert;}.dropdown.hown { opacity: 1 !important; background-image: url(https://cdn.luogu.com.cn/upload/image_hosting/qexud63o.png) !important; background-image: url(https://cdn.luogu.com.cn/upload/image_hosting/dnr6trms.png) !important; background-repeat: no-repeat; background-size: cover; background-position: center; border-radius: 30px !important;}
/* --- 移除主体白底遮挡(关键修复) --- */.main-container > main.lfe-body { background: transparent !important; }.background[data-v-7958fe72] { background: transparent !important; }.main-container { background-image: url(https://cdn.luogu.com.cn/upload/image_hosting/dnr6trms.png) !important; background-repeat: no-repeat !important; background-size: cover !important; background-position: center !important; background-attachment: fixed !important; background-color: transparent !important;}.main-container > main.lfe-body,.main-container > .lfe-body,.main-container > main,#app,#app > .lfe-body,.lfe-body,.background,.background[data-v-7958fe72] { background: transparent !important; background-color: transparent !important;}.main-container > .header-layout .background { display: none !important; }
/* 针对洛谷主页更新后新增的白色背景层,强制隐藏 */.main-container > .lfe-body > .background,.main-container > .background,.lfe-body > .background { background: transparent !important; display: none !important;}/* --- 统计图颜色(原封不动保留) --- */path.highcharts-area { color: white; background: white; fill: #33ccff; }path.highcharts-point.highcharts-color-0 { fill: #ee0000; stroke: #ffffff; opacity: .45; }rect.highcharts-point.highcharts-color-1 { fill: #ee0000; stroke: #ffffff; opacity: .65; }65 行未改动/* ============================================================ 私信页 ============================================================ */@-moz-document url-prefix("https://www.luogu.com.cn/chat") {.card.wrapper.padding-none { background-image: url(https://cdn.luogu.com.cn/upload/image_hosting/wjt2jcwz.png) !important;.l-card.wrapper{ background-image: url(https://cdn.luogu.com.cn/upload/image_hosting/53e5czbf.webp) !important; border-radius: 10px !important; -webkit-backdrop-filter: blur(20px) !important; backdrop-filter: blur(20px) !important; box-shadow: 0px 0px 30px #000;} /*.message-block.right > .message[data-v-5c0627c6] { background-color: #33ccff !important; color: #fff !important; text-align: center;}}*/html > body { background-repeat: no-repeat; background-size: cover; background-position: center;4 行未改动 transition: all .3s ease; background-color: #7a0ad9a6 !important; color: #fff;}
}
/* ============================================================ 题目页(l-card 背景完整复原) ============================================================ */@-moz-document url-prefix("https://www.luogu.com.cn/user/notification") {.l-card.wrapper{ background-image: url(https://cdn.luogu.com.cn/upload/image_hosting/vjxsagwn.webp) !important; border-radius: 10px !important; -webkit-backdrop-filter: blur(20px) !important; backdrop-filter: blur(20px) !important; box-shadow: 0px 0px 30px #000; } /*.message-block.right > .message[data-v-5c0627c6] { background-color: #33ccff !important; color: #fff !important; text-align: center;}*/html > body { background-repeat: no-repeat; background-size: cover; background-position: center; background-attachment: fixed; opacity:0.7;}.item[data-v-4d6dca7a]:hover { border-radius: 10px; transition: all .3s ease; background-color: #7a0ad9a6 !important; color: #fff;}}@-moz-document regexp("https://www.luogu(.org|.com.cn)/problem/.*") {/*luogu题目*//*--------------------------用户自设部分--------------------------*//*图片背景*/html > body { background-image: url(https://cdn.luogu.com.cn/upload/image_hosting/dnr6trms.png); url(https://cdn.luogu.com.cn/upload/image_hosting/vjxsagwn.webp); background-repeat: no-repeat, no-repeat; background-size: cover, cover; background-position: center, center; background-attachment: fixed, fixed;3 行未改动 .theme-page.theme-mid-full{ opacity:1; background-image: url(https://cdn.luogu.com.cn/upload/image_hosting/dnr6trms.png); opacity:.0.7; url(https://cdn.luogu.com.cn/upload/image_hosting/6s0hd10r.webp); opacity:.0.7; } .main>* .l-card.main{ .panel-layout.layout-horizontal.ide-container{ background-image: linear-gradient(135deg, rgba(255, 0, 0, 0.8), rgba(51, 204, 255, .8)); /* 红 -> 蓝 */ background-repeat: no-repeat; background-size: cover; background-position: center; background-repeat: no-repeat; background-size: cover; background-position: center; } .main>* .l-card.main{ background-image: url(https://cdn.luogu.com.cn/upload/image_hosting/53e5czbf.webp);/* 红 -> 蓝 */ background-repeat: no-repeat; background-size: cover; background-position: center; } .sidebar-container.reverse.layout>*.main>*.l-card.problem{ background-image: linear-gradient(135deg, rgba(51, 204, 255, .8), rgba(255, 0, 0, 0.8)); background-repeat: no-repeat; background-size: cover; background-position: center; border-radius: 16px !important; color: #FFF; } .main>*.l-card{ background-image: linear-gradient(135deg, rgba(255, 0, 0, 0.8), rgba(51, 204, 255, .8)); /* 红 -> 蓝 */ background-repeat: no-repeat; background-size: cover; background-position: center; background-image: url(https://cdn.luogu.com.cn/upload/image_hosting/53e5czbf.webp); background-repeat: no-repeat; background-size: cover; background-position: center; border-radius: 16px !important;
} .panel.panel-a>*.problem{ background-image: url(https://cdn.luogu.com.cn/upload/image_hosting/dnr6trms.png); background-repeat: no-repeat; background-size: cover; background-position: center; border-radius: 16px !important; color:#5D0E0E!important; text-shadow: 0 1px 1px #6CF!important; font-weight: 400 !important; } .l-card.header-card{ background-image: url(https://cdn.luogu.com.cn/upload/image_hosting/7nqwae4e.png) !important; background-repeat: no-repeat;4 行未改动 min-height: 150px; margin: 5px; opacity:1 !important; }
/* 第1个卡片 */ .side>*.l-card{ background-image: url(https://cdn.luogu.com.cn/upload/image_hosting/qexud63o.png) !important;.side>*.l-card:nth-child(1) { background-image: url(https://cdn.luogu.com.cn/upload/image_hosting/r4dojdwm.webp) !important; background-repeat: no-repeat; background-size: cover; background-position: center; border-radius: 20px !important; overflow: hidden; min-height: 150px; margin: 5px; opacity:1 !important; } .panel.panel-a{ background-image: url(https://cdn.luogu.com.cn/upload/image_hosting/qexud63o.png) !important; color: #E00!important; text-shadow: 0 1px 1px #6CF; font-weight: 400 !important;}
/* 第2个卡片 */.side>*.l-card:nth-child(2) { background-image: url(https://cdn.luogu.com.cn/upload/image_hosting/i2sflnfw.webp) !important; background-repeat: no-repeat; background-size: cover; background-position: center; border-radius: 20px !important; overflow: hidden; min-height: 150px; margin: 5px; opacity:1 !important;
}
/* 第3个卡片 */.side>*.l-card:nth-child(3) { background-image: url(https://cdn.luogu.com.cn/upload/image_hosting/9ypxmgf0.webp) !important; background-repeat: no-repeat; background-size: cover; background-position: center; border-radius: 20px !important; overflow: hidden; min-height: 150px; margin: 5px;
} .side>*.l-card:nth-child(4) { background-image: url(https://cdn.luogu.com.cn/upload/image_hosting/hdbpj35y.webp) !important; background-repeat: no-repeat; background-size: cover; background-position: center; border-radius: 20px !important; overflow: hidden; min-height: 150px; margin: 5px; }} /* ============================================================ 题目页专属:取消卡片级防窥屏,鼠标触碰即全部显示32 行未改动 .main>* .l-card.main{ background-image: url(https://cdn.luogu.com.cn/upload/image_hosting/qf69dlj3.png);/* 红 -> 蓝 */ url(https://cdn.luogu.com.cn/upload/image_hosting/53e5czbf.webp);/* 红 -> 蓝 */ background-repeat: no-repeat; background-size: cover; background-position: center; } .main>*.l-card{ background-image: url(https://cdn.luogu.com.cn/upload/image_hosting/qexud63o.png); url(https://cdn.luogu.com.cn/upload/image_hosting/53e5czbf.webp); background-repeat: no-repeat; background-size: cover; background-position: center; border-radius: 16px !important; }}@-moz-document regexp("https://www.luogu.com.cn/article*") {html > body { background-image: url(https://cdn.luogu.com.cn/upload/image_hosting/dnr6trms.png); background-repeat: no-repeat; background-size: cover; background-position: center; background-attachment: fixed; opacity: .6; font-weight: 600 !important;@-moz-document regexp("https://www.luogu(.org|.com.cn)/problem/solution/.*") { .sidebar-container.reverse>*.main>*.l-card.burger.solution-list{ background-image: linear-gradient(135deg, rgba(51, 204, 255, .8), rgba(51, 204, 255, .8))!important; background-repeat: no-repeat; background-size: cover; background-position: center; border-radius: 20px !important; overflow: hidden; min-height: 150px; margin: 5px; opacity:1 !important; color: #E00!important; text-shadow: 0 1px 4px #6CF; font-weight: 400 !important;}} @-moz-document regexp("https://www.luogu.com.cn/article/.*") {/*luogu文章*//*--------------------------用户自设部分--------------------------*//*图片背景*//* 清除正文外层白底 */body:has(#article-title) main.lcolor-bg-background.main > div[style*="background-color: rgb(255, 255, 255)"] { background: transparent !important;}
/* 标题玻璃:上方 16px,下方 20px */body:has(#article-title) .article-banner.columba-content-wrap.wrapper { background: rgba(238, 244, 250, 0.32) !important; -webkit-backdrop-filter: blur(16px) saturate(120%) !important; backdrop-filter: blur(16px) saturate(120%) !important; border: none !important; border-radius: 13px !important; box-shadow: 0 8px 26px rgba(0, 0, 0, 0.10) !important; overflow: visible !important; margin-bottom: 20px !important; margin-top: 16px !important;}
/* 标题内部透明 */body:has(#article-title) .article-banner .banner-content { background: transparent !important;}
/* 标题文字 */body:has(#article-title) #article-title { color: rgb(25, 28, 33) !important; opacity: 1 !important; text-shadow: none !important;}.l-card { background-image: linear-gradient(135deg, rgba(255, 0, 0, 0.8), rgba(51, 204, 255, .8)) !important; background-repeat: no-repeat; background-size: cover; background-position: center; border-radius: 16px !important; color: #FFFFFF !important;
/* 作者、发布时间与分类 */body:has(#article-title) .article-banner .meta,body:has(#article-title) .article-banner .meta span,body:has(#article-title) .article-banner .meta time { color: rgb(50, 54, 61) !important; opacity: 1 !important; text-shadow: none !important;}
/* 正文外层:清除顶部和左右留白 */body:has(#article-title) .article-content.columba-content-wrap.wrapper { background: transparent !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; border: none !important; box-shadow: none !important; overflow: visible !important; box-sizing: border-box !important; padding-left: 0 !important; padding-right: 0 !important; margin-top: 0 !important; padding-top: 0 !important;}
@-moz-document regexp("https://www.luogu.com.cn/article/.*") {html > body { background-image: url(https://cdn.luogu.com.cn/upload/image_hosting/dnr6trms.png); background-repeat: no-repeat; background-size: cover; background-position: center; background-attachment: fixed; opacity: .6; font-weight: 600 !important;/* 清除正文外壳伪元素 */body:has(#article-title) .article-content.columba-content-wrap.wrapper::before,body:has(#article-title) .article-content.columba-content-wrap.wrapper::after { content: none !important; display: none !important;}
/* 正文玻璃:左右内边距 24px */body:has(#article-title) .article-content > .lfe-marked-wrap { box-sizing: border-box !important; padding: 28px 24px !important; background: rgba(242, 247, 252, 0.55) !important; -webkit-backdrop-filter: blur(18px) saturate(115%) !important; backdrop-filter: blur(18px) saturate(115%) !important; border: none !important; border-radius: 13px 13px 0 0 !important; box-shadow: 0 8px 28px rgba(0, 0, 0, 0.09) !important; overflow: visible !important; width: 100% !important; max-width: none !important; min-width: 0 !important; margin-left: 0 !important; margin-right: 0 !important; margin-top: 0 !important;}
/* 正文内容 */body:has(#article-title) .article-content > .lfe-marked-wrap > .lfe-marked { background: transparent !important; margin: 0 !important; width: auto !important; max-width: none !important; min-width: 0 !important;}
/* 下方信息:与正文玻璃衔接 */body:has(#article-title) .article-content > .update-info { box-sizing: border-box !important; padding: 12px 24px 24px !important; background: rgba(242, 247, 252, 0.55) !important; -webkit-backdrop-filter: blur(18px) saturate(115%) !important; backdrop-filter: blur(18px) saturate(115%) !important; border: none !important; border-radius: 0 0 13px 13px !important; margin-top: -1px !important; box-shadow: 0 8px 28px rgba(0, 0, 0, 0.09) !important; color: rgb(70, 74, 81) !important; text-shadow: none !important; width: 100% !important; max-width: none !important; margin-left: 0 !important; margin-right: 0 !important;}.l-card { background-image: linear-gradient(135deg, rgba(255, 0, 0, 0.8), rgba(51, 204, 255, .8)) !important;
/* 正文文字 */body:has(#article-title) .article-content .lfe-marked,body:has(#article-title) .article-content .lfe-marked p,body:has(#article-title) .article-content .lfe-marked li { color: rgb(25, 29, 35) !important; opacity: 1 !important; text-shadow: none !important;}
/* 正文各级标题 */body:has(#article-title) .article-content .lfe-marked h1,body:has(#article-title) .article-content .lfe-marked h2,body:has(#article-title) .article-content .lfe-marked h3,body:has(#article-title) .article-content .lfe-marked h4,body:has(#article-title) .article-content .lfe-marked h5,body:has(#article-title) .article-content .lfe-marked h6 { color: rgb(20, 23, 28) !important; opacity: 1 !important; text-shadow: none !important;}
/* 收藏与点赞:向左偏移 28px */body:has(#article-title) .article-content > .actions.left-mode { z-index: 50 !important; translate: -28px 0 !important; background: rgba(248, 250, 253, 0.86) !important; -webkit-backdrop-filter: blur(12px) saturate(115%) !important; backdrop-filter: blur(12px) saturate(115%) !important; border: none !important; border-radius: 10px !important; box-shadow: 0 5px 16px rgba(0, 0, 0, 0.10) !important;}
/* 操作按钮内部透明 */body:has(#article-title) .article-content > .actions.left-mode .button-2line { background: transparent !important; border: none !important; box-shadow: none !important;}
/* 隐藏底部重复操作按钮 */body:has(#article-title) .article-content > .actions:not(.left-mode) { display: none !important;}
/* 目录外壳:向右偏移 16px */body:has(#article-title) .article-content > .toc-wrapper { background: transparent !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; border: none !important; border-radius: 0 !important; box-shadow: none !important; overflow: visible !important; translate: 16px 0 !important;}
/* 清除目录外壳伪元素 */body:has(#article-title) .article-content > .toc-wrapper::before,body:has(#article-title) .article-content > .toc-wrapper::after { content: none !important; display: none !important;}
/* 目录玻璃:加宽 8px,透明度 0.7 */body:has(#article-title) .article-content > .toc-wrapper > .toc.with-top { box-sizing: border-box !important; padding: 18px 20px !important; background: rgba(241, 246, 251, 0.7) !important; -webkit-backdrop-filter: blur(14px) saturate(112%) !important; backdrop-filter: blur(14px) saturate(112%) !important; border: none !important; border-radius: 10px !important; box-shadow: 0 5px 18px rgba(0, 0, 0, 0.08) !important; color: rgb(45, 49, 56) !important; text-shadow: none !important; width: calc(100% + 8px) !important; max-width: none !important;}
/* 清除目录玻璃伪元素 */body:has(#article-title) .article-content > .toc-wrapper > .toc.with-top::before,body:has(#article-title) .article-content > .toc-wrapper > .toc.with-top::after { content: none !important; display: none !important; box-shadow: none !important;}
/* 目录列表 */body:has(#article-title) .article-content > .toc-wrapper > .toc.with-top > ul { background: transparent !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; border: none !important; box-shadow: none !important; margin: 0 !important; padding: 0 !important;}
/* 目录项目 */body:has(#article-title) .article-content > .toc-wrapper > .toc.with-top li { background: transparent !important; border: none !important; box-shadow: none !important; color: rgb(49, 53, 60) !important; text-shadow: none !important;}
/* 目录链接与文字 */body:has(#article-title) .article-content > .toc-wrapper > .toc.with-top li span,body:has(#article-title) .article-content > .toc-wrapper > .toc.with-top li a { color: rgb(49, 53, 60) !important; opacity: 1 !important; text-shadow: none !important;}
/* 评论区 */body:has(#article-title) .article-comment.columba-content-wrap.wrapper { background: rgba(242, 247, 252, 0.55) !important; -webkit-backdrop-filter: blur(16px) saturate(115%) !important; backdrop-filter: blur(16px) saturate(115%) !important; border: none !important; border-radius: 13px !important; box-shadow: 0 8px 28px rgba(0, 0, 0, 0.09) !important; margin-top: 20px !important;}
/* 页脚 */body:has(#article-title) footer { background: transparent !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; filter: none !important; border: none !important; box-shadow: none !important;}
/* 清除页脚伪元素 */body:has(#article-title) footer::before,body:has(#article-title) footer::after { content: none !important;}
/* 页脚内容透明 */body:has(#article-title) footer > * { background: transparent !important;}
/* 窄窗口允许横向滚动 */body:has(#article-title) { overflow-x: auto !important;}}.l-card.header-card{ background-image: url(https://cdn.luogu.com.cn/upload/image_hosting/9ypxmgf0.webp) !important; background-repeat: no-repeat; background-size: cover; background-position: center; border-radius: 16px !important; color: #FFFFFF !important; text-shadow: none !important; border-radius: 20px !important; overflow: hidden; min-height: 150px; margin: 5px; opacity:1 !important; color: #E00!important; text-shadow: 0 1px 1px #6CF; font-weight: 400 !important;}}
/* ============================================================ 用户主页(l-card 背景完整复原) ============================================================ */@-moz-document regexp("https://www.luogu.com.cn/user/.*") {/*luogu用户主页*//*--------------------------用户自设部分--------------------------*//*图片背景*/html > body { background-image: url(https://cdn.luogu.com.cn/upload/image_hosting/dnr6trms.png); background-repeat: no-repeat, no-repeat; background-size: cover, cover; background-position: center, center; background-attachment: fixed, fixed; opacity:.95; /* 如果 GIF 是黑色背景,可加上 mix-blend-mode: screen; 但需谨慎 */ .side>*.l-card{ background-image: url(https://cdn.luogu.com.cn/upload/image_hosting/mi2706j0.png) !important; .side>*.l-card:nth-child(1) { background-image: url(https://cdn.luogu.com.cn/upload/image_hosting/mi2706j0.png) !important; background-repeat: no-repeat; background-size: cover; background-position: center; border-radius: 20px !important; overflow: hidden; min-height: 150px; margin: 5px; opacity:1 !important; color: #E00!important; text-shadow: 0 1px 1px #6CF; font-weight: 400 !important;}.side>*.l-card:nth-child(3) { background-image: url(https://cdn.luogu.com.cn/upload/image_hosting/9ypxmgf0.webp) !important; background-repeat: no-repeat; background-size: cover; background-position: center; border-radius: 20px !important; overflow: hidden; min-height: 150px; margin: 5px; color: #E00!important; text-shadow: 0 1px 1px #6CF; font-weight: 400 !important;} .side>*.l-card:nth-child(2 ){ background-image: url(https://cdn.luogu.com.cn/upload/image_hosting/r4dojdwm.webp) !important; background-repeat: no-repeat; background-size: cover; background-position: center; border-radius: 20px !important; overflow: hidden; min-height: 150px; margin: 5px; } color: #6CF!important; text-shadow: 0 1px 1px #6CF; font-weight: 400 !important;} .l-flex-info-row{ color: #6CF!important; text-shadow: 0 1px 1px #E00; font-weight: 400 !important; } .user-header-bottom{ background-image: linear-gradient(135deg, rgba(255, 0, 0, 0.8), rgba(51, 204, 255, .8)); /* 红 -> 蓝 */ background-image: url(https://cdn.luogu.com.cn/upload/image_hosting/6s0hd10r.webp) !important; background-repeat: no-repeat; background-size: cover; background-position: center;} .sidebar-container>*.main>*.l-card{ background-image: url(https://cdn.luogu.com.cn/upload/image_hosting/qexud63o.png) !important; .sidebar-container>*.main>*.l-card:nth-child(1) { background-image: url(https://cdn.luogu.com.cn/upload/image_hosting/7nqwae4e.png) !important; background-repeat: no-repeat; background-size: cover; background-position: center; border-radius: 20px !important; overflow: hidden; min-height: 150px; margin: 5px; opacity:1 !important; }}.sidebar-container>*.main>*.l-card:nth-child(2) { background-image: url(https://cdn.luogu.com.cn/upload/image_hosting/um17b89i.webp) !important; background-repeat: no-repeat; background-size: cover; background-position: center; border-radius: 20px !important; overflow: hidden; min-height: 150px; margin: 5px; opacity:1 !important;} .sidebar-container>*.main>*.l-card:nth-child(3) { background-image: url(https://cdn.luogu.com.cn/upload/image_hosting/53e5czbf.webp) !important; background-repeat: no-repeat; background-size: cover; background-position: center; border-radius: 20px !important; overflow: hidden; min-height: 150px; margin: 5px; opacity:1 !important;}} .l-card.burger { background-image: url(https://cdn.luogu.com.cn/upload/image_hosting/r4dojdwm.webp) !important; background-repeat: no-repeat; background-size: cover; background-position: center; border-radius: 20px !important; overflow: hidden; min-height: 150px; margin: 5px; opacity:1 !important; } body .l-card:has(> .user-header-top) { background: var(--profile-frame-glass) !important; -webkit-backdrop-filter: blur(18px) saturate(135%) !important; backdrop-filter: blur(18px) saturate(135%) !important; border: 1px solid rgba(255, 255, 255, 0.32) !important; border-radius: 14px !important; box-shadow: 0 10px 32px rgba(0, 0, 0, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.24) !important; overflow: hidden !important;}
@-moz-document regexp("https://www.luogu.com.cn/discuss/.*") {html > body { background-image: url(https://cdn.luogu.com.cn/upload/image_hosting/dnr6trms.png);14 行未改动 color: #FFFFFF !important; text-shadow: none !important;}}
@-moz-document regexp("https://www.luogu.com.cn/discuss*") {html > body { background-image: url(https://cdn.luogu.com.cn/upload/image_hosting/dnr6trms.png); background-repeat: no-repeat;14 行未改动 text-shadow: none !important;}}
/* ============================================================ 鼠标悬停以【卡片为单位】显示(防窥屏) ============================================================ */@-moz-document regexp("https://www.luogu(.org|.com.cn)/.*") { .lg-article, .card, .popup[data-v-1d675dd8], .user-nav[data-v-2dfcfd35], .am-panel.lg-index-contest, .lg-content-table-left, .am-comment-main, .dropdown.hown, #app > .lfe-body, .l-card, .side>*.l-card, .panel.panel-a, .user-header-bottom, .wrapper > .test-case, .card.wrapper.padding-none, .message-block, .item[data-v-4d6dca7a] { opacity: 0.2 !important; transition: opacity 0.35s ease !important; } .lg-article:hover, .card:hover, .popup[data-v-1d675dd8]:hover, .user-nav[data-v-2dfcfd35]:hover, .am-panel.lg-index-contest:hover, .lg-content-table-left:hover, .am-comment-main:hover, .dropdown.hown:hover, #app > .lfe-body:hover, .l-card:hover, .side>*.l-card:hover, .panel.panel-a:hover, .user-header-bottom:hover, .wrapper > .test-case:hover, .card.wrapper.padding-none:hover, .message-block:hover, .item[data-v-4d6dca7a]:hover { opacity: 1 !important; } }/* ============================================================ 1. 修复用户主页背景变白的问题 作用:强制清除用户主页中白色/不透明背景,让底层背景图透出来。 ============================================================ */@-moz-document regexp("https://www.luogu(.org|.com.cn)/problem/list") { /* 提升 .l-card 整体不透明度,使背景图更清晰 */ .l-card, .l-card.main, .side > .l-card { opacity: 0.95 !important; /* 原为可能存在的低透明度,调整为0.95 */ }
/* 确保卡片背景图本身不被其他颜色覆盖,并保持居中覆盖 */ .main > .l-card.main, .main > .l-card, .side > .l-card { background-repeat: no-repeat !important; background-size: cover !important; background-position: center !important; }}
/* ============================================================ 3. 加大 "近期比赛" 面板圆角 作用:美化主站比赛面板,增加圆角半径。 ============================================================ */@-moz-document regexp("https://www.luogu(.org|.com.cn)/(?!blog).*") { /* 对比赛相关面板应用更大的圆角 */ .am-panel.lg-index-contest.am-panel-primary, .am-panel.lg-index-contest.am-panel-danger,2 行未改动 overflow: hidden !important; }}
/* ============================================================ 4. 为全站字体添加阿绫红 (#ee0000) 光渲染 作用:在原有字体颜色基础上,增加微弱的红色外发光。 注意:使用较小的模糊半径和低透明度,避免过度渲染导致文字模糊[reference:2]。 ============================================================ */
@-moz-document regexp("https://www.luogu(.org|.com.cn)/.*") { /* 对全局字体应用红色光晕 */ body, p, div, span, li, td, th, h1, h2, h3, h4, h5, h6, a, .lfe-h1 { text-shadow: 0 0 1px #ee0000, 0 0 2px rgba(238, 0, 0, 0.3) !important; text-shadow: 0 0 1px #ee0000, 0 0 1px rgba(238, 0, 0, 0.3) !important; }
/* 如果某些元素的背景色与红色光晕冲突,可以单独关闭它们的光晕 */ /* .selector { text-shadow: none !important; } */}
/* ============================================================ 5. 调整讨论区悬停显示逻辑 作用:在讨论区及相关子页面,鼠标悬停时让整个讨论帖预览区域或列表项显示。 注意:原设定“鼠标离开页面整体透明”可能影响浏览体验。 ============================================================ */
/* 如果希望鼠标在讨论区任何地方悬停都显示,可以使用父容器控制 */ /* 例如:.discuss-container:hover .lg-content-table-left { opacity: 1 !important; } */
/* 注意:如果希望在所有页面都取消 "鼠标离开页面整体透明" 效果,可删除原代码末尾的以下部分: html:not(:hover) > body { opacity: 0 !important; } 或者将其改为 opacity: 0.2 !important; 以保留防窥功能但维持可读性。*/@-moz-document regexp("https://www.luogu(.org|.com.cn)/.*") { html > body { transition: opacity .35s ease !important; }
html:not(:hover) > body { opacity: 0 !important; /* 透明度:0 全透明,1 不透明,可自己调 */ opacity: 0!important; /* 透明度:0 全透明,1 不透明,可自己调 */ }}/* ============================================================ 题目页专属:鼠标在页面任意处悬停时,整个界面完全显示 必须放在样式表最末尾,以覆盖前面的全局卡片防窥屏规则 ============================================================ */
@-moz-document regexp("https://www.luogu(.org|.com.cn)/problem/.*") { /* 1. 强制题目页所有卡片和容器完全显示,取消卡片级防窥屏 */ .lg-article, .card, .popup[data-v-1d675dd8], .user-nav[data-v-2dfcfd35], .am-panel.lg-index-contest, .lg-content-table-left, .am-comment-main,18 行未改动 html:not(:hover) > body { opacity: 0 !important; }}
@-moz-document regexp("https://www.luogu.com.cn/record/.*") { html>body{ .main>*.l-card{ background-image: url(https://cdn.luogu.com.cn/upload/image_hosting/r4dojdwm.webp); background-repeat: no-repeat; background-position: center; background-size: cover; background-attachment: fixed; opacity: .6; text-shadow: none !important; } .side>*.l-card{ background-image: url(https://cdn.luogu.com.cn/upload/image_hosting/r4dojdwm.webp); background-repeat: no-repeat; background-position: center; background-size: cover; background-attachment: fixed; opacity: .6; text-shadow: none !important; } .columba-content-wrap.main-content>*.l-card{ background-image: url(https://cdn.luogu.com.cn/upload/image_hosting/um17b89i.webp); background-repeat: no-repeat; background-position: center; background-size: cover; background-attachment: fixed; opacity: .6; text-shadow: none !important; }
}}
```