MediaWiki:Common.css:修订间差异

来自Age Of History 2 Chinese Wiki
跳转至:导航、​搜索
已还原Obtusecat讨论)的编辑至最后由Comvan修订的版本
标签回退
无编辑摘要
第1行: 第1行:
/* 这里放置的CSS将应用于所有皮肤 */
/* MediaWiki扫描线效果主题CSS - 基于Backrooms数据库风格 */


@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@100;300;400;500;700;900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=VT323&display=swap");
@import url("https://fastly.jsdelivr.net/gh/hoah2333/Fonts@main/Typeface-VonwaonBitmap-16px.css");
/* ==== 基础变量 ==== */
:root {
:root {
--link-color: #0645ad;
    /* ==== 字体设置 ==== */
--link-color-active: #faa700;
    --body-font: "VonwaonBitmap 16px", "Noto Sans SC", "Microsoft YaHei", "微软雅黑", VT323, monospace;
--custom-background-blue: #ccf;
    --UI-font: "VonwaonBitmap 16px", "Noto Sans SC", "方体", "PingFang SC", VT323, monospace;
--custom-background-cyan: #cef;
    --title-font: "VonwaonBitmap 16px", "Noto Sans SC", VT323, monospace;
--custom-background-green: #cfc;
    --mono-font: "VonwaonBitmap 16px", VT323, monospace;
--custom-background-gray: #d2d2d2;
    --base-font-size: 1.2rem;
--custom-background-grey: var(--custom-background-gray);
   
--custom-background-magenta: #fdf;
    /* ==== 颜色方案 - 保留原MediaWiki颜色 ==== */
--custom-background-orange: #fdb;
    --link-color: #0645ad;
--custom-background-purple: #ecf;
    --link-color-active: #faa700;
--custom-background-red: #fcc;
    --custom-background-blue: #ccf;
--custom-background-yellow: #ffc;
    --custom-background-cyan: #cef;
--custom-border-blue: #36e;
    --custom-background-green: #cfc;
--custom-border-cyan: #9df;
    --custom-background-gray: #d2d2d2;
--custom-border-green: #5d5;
    --custom-background-grey: var(--custom-background-gray);
--custom-border-gray: #bbb;
    --custom-background-magenta: #fdf;
--custom-border-grey: var(--custom-border-gray);
    --custom-background-orange: #fdb;
--custom-border-magenta: #f9f;
    --custom-background-purple: #ecf;
--custom-border-orange: #f90;
    --custom-background-red: #fcc;
--custom-border-purple: #96c;
    --custom-background-yellow: #ffc;
--custom-border-red: #e44;
    --custom-border-blue: #36e;
--custom-border-yellow: #fc3;
    --custom-border-cyan: #9df;
--custom-closed-topic-neutral: #eef;
    --custom-border-green: #5d5;
--custom-closed-topic-no: #fee;
    --custom-border-gray: #bbb;
--custom-closed-topic-yes: #efe;
    --custom-border-grey: var(--custom-border-gray);
--custom-code-background: #f8f9fa;
    --custom-border-magenta: #f9f;
--custom-load-page-button-color: #fff8;
    --custom-border-orange: #f90;
--custom-main-page-background: #fcfcfc;
    --custom-border-purple: #96c;
--custom-main-page-border: var(--custom-border-gray);
    --custom-border-red: #e44;
--custom-main-page-edition-subheader: #333;
    --custom-border-yellow: #fc3;
--custom-mcwiki-header-color: #bcd4f5;
--custom-navbox-background: #fff;
--custom-navbox-top: #ccc;
--custom-navbox-middle: #ddd;
--custom-navbox-thru: #eee;
--custom-nbt-inherit-color: #e6e6fa;
--custom-table-background: #f8f9fa;
--custom-table-alternate-background: #f0f1f2;
--custom-table-choice-always: #003600;
--custom-table-choice-always-background: #80d080;
--custom-table-choice-default: #fff;
--custom-table-choice-in-off-background: #060;
--custom-table-choice-in-on-background: #0c0;
--custom-table-choice-na: #000;
--custom-table-choice-na-background: #fff;
--custom-table-choice-neutral: #634800;
--custom-table-choice-neutral-background: #ffeb9c;
--custom-table-choice-never: #3c0404;
--custom-table-choice-never-background: #ff8080;
--custom-table-choice-no: #840606;
--custom-table-choice-no-background: #ffc7ce;
--custom-table-choice-out-off-background: #900;
--custom-table-choice-out-on-background: #f00;
--custom-table-choice-partial: #665400;
--custom-table-choice-partial-background: #ffd;
--custom-table-choice-planned: #0131b7;
--custom-table-choice-planned-background: #dfdfff;
--custom-table-choice-rarely: #533400;
--custom-table-choice-rarely-background: #fdce5e;
--custom-table-choice-unknown: #222;
--custom-table-choice-unknown-background: #ccc;
--custom-table-choice-yes: #005600;
--custom-table-choice-yes-background: #c6efce;
--custom-table-header-background: #eaecf0;
--custom-topic-30-days: #bbb;
--custom-topic-7-days: #ddd;
}


.notaninfobox {
    /* ==== Backrooms主题色彩 ==== */
position: relative;
    --white-monochrome: 252, 252, 252;
clear: right;
    --black-monochrome: 10, 10, 10;
margin: 0 0 1em 1em;
    --bright-accent: 229, 140, 36;
width: 350px;
    --medium-accent: 229, 140, 36;
font-size: 90%;
    --dark-accent: 140, 136, 126;
background-color: var(--custom-table-background);
    --pale-accent: 140, 136, 126;
float: right;
    --text-shadow: 2px 2px #C9781E;
border: 1px solid var(--custom-border-gray);
    --custom-text: 175, 100, 30;
padding: 2px;
   
overflow: auto;
    /* ==== 扫描线效果设置 ==== */
z-index: 1;
    --scanline-color: rgba(229, 140, 36, 0.05);
overflow-wrap: anywhere;
    --scanline-size: 2px;
}
    --scanline-timing: 6s;
@media all and (max-width: 511px) {
    --fade-in-delay: 0.1s;
.notaninfobox {
float: none;
margin-left: 0;
width: auto;
}
}
@media all and (max-width: 337px) {
.notaninfobox {
margin-left: -16px;
margin-right: -16px;
border-left: none;
border-right: none;
}
}
}


.notaninfobox > .infobox-title {
/* ==== 全局扫描线效果 ==== */
font-weight: bold;
body::before {
text-align: center;
    content: "";
font-size: 120%;
    position: fixed;
background-color: #BCD4F5;
    width: 100vw;
}
    height: 100vh;
.infobox-imagearea {
    pointer-events: none;
text-align: center;
    background: repeating-linear-gradient(
padding: 4px;
        180deg,
}
        rgba(0,0,0,0),
.infobox-imagearea > div:not(:first-child) {
        rgba(0,0,0,0) calc(var(--scanline-size) - 1px),
padding-top: 1em;
        var(--scanline-color) var(--scanline-size)
}
    );
/* Horizontally centre animated images */
    background-size: auto 8px;
.infobox-imagearea .animated {
    opacity: 0.7;
display: inline-flex;
    z-index: 9999;
align-items: center;
}
}


.notaninfobox .infobox-rows {
/* 扫描线动态效果 */
display: grid;
body::after {
grid-template-columns: max-content 1fr;
    content: "";
gap: 1px;
    position: fixed;
}
    width: 100vw;
.notaninfobox .infobox-rows .infobox-row {
    height: 1rem;
display: contents;
    top: 0;
    left: 0;
    pointer-events: none;
    background: linear-gradient(
        to bottom,
        rgba(229, 140, 36, 0.1) 0%,
        rgba(229, 140, 36, 0.1) 50%,
        rgba(229, 140, 36, 0.08) 51%,
        rgba(229, 140, 36, 0.1) 100%
    );
    opacity: 0.1;
    z-index: 9998;
    animation: scanline-move var(--scanline-timing) linear infinite;
}
}


.notaninfobox .infobox-row .infobox-row-label,
@keyframes scanline-move {
.notaninfobox .infobox-row .infobox-row-field {
    0%  { top: -1rem; opacity: 0.05; }
padding: 4px;
    25%  { top: 50%; opacity: 0.03; }
    37.5%{ top: 75%; opacity: 0.06; }
    50%  { top: 100%; opacity: 0.03; }
    100% { top: 100%; }
}
}


.notaninfobox .infobox-row .infobox-row-label {
/* CRT屏幕模拟效果 */
font-weight: bold;
#content::before {
display: flex;
    content: "";
align-items: center;
    position: fixed;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    background-image: radial-gradient(
        circle,
        rgba(229, 140, 36, 0.04) 4%,
        rgba(0, 0, 0, 0) 45%,
        rgba(229, 140, 36, 0.03) 95%
    );
    opacity: 0.25;
    mix-blend-mode: color-dodge;
    background-repeat: no-repeat;
    background-size: cover;
    z-index: 2;
}
}


.notaninfobox .infobox-rows .infobox-row:nth-child(2n) .infobox-row-label,
/* ==== 全局基础设置 ==== */
.notaninfobox .infobox-rows .infobox-row:nth-child(2n) .infobox-row-field {
html, body {
background-color: var(--custom-table-alternate-background);
    margin: 0;
    padding: 0;
    font-family: var(--body-font);
    font-size: var(--base-font-size);
    line-height: 1.6;
    background-color: #fcfcfc;
    background-image: radial-gradient(
        circle,
        rgba(var(--medium-accent), 0.03) 50%,
        transparent 0
    );
    background-size: 0.25em 0.25em;
    background-repeat: repeat;
    background-attachment: fixed;
    color: #000;
}
}


/* Infoboxes with tabber */
/* 淡入动画效果 */
.tabber-container-infobox .tabber .tabbertab,
@media screen and (prefers-reduced-motion: no-preference) {
.tabber-container-infobox ul.tabbernav li a,
    #content > *, #mw-content-text > * {
.tabber-container-infobox ul.tabbernav li.tabberactive a {
        animation-name: fadeIn;
background: none;
        animation-duration: 1s;
border: none;
        animation-iteration-count: 1;
        animation-timing-function: ease-out;
        animation-fill-mode: backwards;
    }
}
}


.tabber-container-infobox .tabber .tabbertab {
@keyframes fadeIn {
padding: 0;
    from {
        opacity: 0;
        transform: translate(0, 30px);
    }
    to {
        opacity: 1;
        transform: translate(0, 0);
    }
}
}


.tabber-container-infobox ul.tabbernav {
/* 内容逐项淡入 */
font: inherit;
#mw-content-text > :nth-child(1) { animation-delay: calc(1 * var(--fade-in-delay)); }
font-size: 100%;
#mw-content-text > :nth-child(2) { animation-delay: calc(2 * var(--fade-in-delay)); }
}
#mw-content-text > :nth-child(3) { animation-delay: calc(3 * var(--fade-in-delay)); }
#mw-content-text > :nth-child(4) { animation-delay: calc(4 * var(--fade-in-delay)); }
#mw-content-text > :nth-child(5) { animation-delay: calc(5 * var(--fade-in-delay)); }
#mw-content-text > :nth-child(6) { animation-delay: calc(6 * var(--fade-in-delay)); }
#mw-content-text > :nth-child(7) { animation-delay: calc(7 * var(--fade-in-delay)); }
#mw-content-text > :nth-child(8) { animation-delay: calc(8 * var(--fade-in-delay)); }
#mw-content-text > :nth-child(9) { animation-delay: calc(9 * var(--fade-in-delay)); }
#mw-content-text > :nth-child(10) { animation-delay: calc(10 * var(--fade-in-delay)); }
#mw-content-text > :nth-child(n+11) { animation-delay: calc(11 * var(--fade-in-delay)); }


.tabber-container-infobox ul.tabbernav li a:hover {
/* ==== 链接样式 ==== */
color: #000;
a {
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}
}


.tabber-container-infobox ul.tabbernav > li {
a:hover, a:focus {
margin-bottom: 5px;
    color: var(--link-color-active);
padding: 0;
    text-decoration: underline;
}
}


.tabber-container-infobox ul.tabbernav > li > a {
a:hover::before {
color: #595959;
    content: "> ";
padding-bottom: 1px;
display: block;
}
}


/* To prevent the tabs from jumping around when they become active or inactive
a:visited {
* due to the font-weight changing from normal to bold and vice versa, add an
    color: #0b0080;
* invisible ::before which contains the same text as the tab's text, but
* bolded. This way the element in which unbolded text sits is sized according
* to the bolded text, preventing it from resizing upon being selected.
*/
.tabber-container-infobox ul.tabbernav > li > a::before {
display: block;
content: attr(alt);
font-weight: bold;
height: 0;
color: transparent;
overflow: hidden;
visibility: hidden;
}
}


.tabber-container-infobox ul.tabbernav > li.tabberactive {
a.new {
border: none;
    color: #ba0000;
}
}


.tabber-container-infobox ul.tabbernav > li.tabberactive > a {
a.new:visited {
font-weight: bold;
    color: #a55858;
color: var(--link-color);
border-bottom: 2px solid var(--custom-mcwiki-header-color);
}
}


.infobox-rows p {
/* ==== 标题样式 ==== */
margin: 0;
h1, h2, h3, h4, h5, h6 {
    font-family: var(--title-font);
    font-weight: 700;
    line-height: 1.3;
    margin: 1em 0 0.5em;
    color: rgb(var(--custom-text));
    text-shadow: 0.5px 0.5px rgba(var(--bright-accent), 0.5);
}
}


/* Merge adjacent dls in the infobox, since they're usually supposed to be one,
h1 { font-size: 1.8rem; border-bottom: 1px solid rgba(var(--swatch-primary), 0.2); }
* but the wiki screws up sometimes.
h2 { font-size: 1.6rem; border-bottom: 1px solid rgba(var(--custom-border-gray), 0.5); }
*/
h3 { font-size: 1.4rem; }
.infobox-rows dl + dl {
h4 { font-size: 1.2rem; }
margin-top: -0.4em;
h5 { font-size: 1.1rem; }
}
h6 { font-size: 1rem; }


.infobox-rows dl:last-child {
/* ==== 强化infobox样式 ==== */
margin-bottom: 0.2em;
.notaninfobox {
}
     position: relative;
 
     clear: right;
.infobox-footer {
     margin: 0 0 1em 1em;
text-align: center;
     width: 350px;
}
     font-size: 90%;
 
     background-color: var(--custom-table-background);
/* 页面底部导航框(2011年8月16日引自中文维基)(所谓大家族模板) */
table.navbox{
     border:1px solid #aaa;
     clear:both;
     margin:auto;
    padding:1px;
    text-align:center;
    width:100%;
}
table.navbox + table.navbox{
    margin-top:-1px;
}
.navbox-title,
.navbox-abovebelow,
table.navbox th{
    padding-left:1em;
    padding-right:1em;
     text-align:center;
}
.navbox-group{
     font-weight:700;
     white-space:nowrap;
}
.navbox,
.navbox-subgroup{
    background:none repeat scroll 0 0 var(--theme-card-background-color, #fdfdfd);
}
.navbox-list{
    border-color:#fdfdfd;
}
.navbox-title,
table.navbox th{
    background:none repeat scroll 0 0 #a5e4a5;
}
.navbox-abovebelow,
.navbox-group,
.navbox-subgroup .navbox-title{
    background:none repeat scroll 0 0 #c0ecc0;
}
.navbox-subgroup .navbox-group,
.navbox-subgroup .navbox-abovebelow{
    background:none repeat scroll 0 0 #e6f6e6;
}
.navbox-even{
    background:none repeat scroll 0 0 #f5fcf5;
}
.navbox-odd{
    background:none repeat scroll 0 0 #fdfdfd;
}
.collapseButton {
     float: right;
     float: right;
     font-weight: 400;
     border: 1px solid var(--custom-border-gray);
     text-align: right;
     padding: 2px;
     width: auto;
     overflow: auto;
}
     z-index: 1;
.navbox .collapseButton {
     overflow-wrap: anywhere;
     width: 6em;
     box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
     transition: box-shadow 0.3s ease;
.navbar {
    position: relative;
     min-height: 23px !important;
     margin-bottom: 0px !important;
     border: 1px solid transparent;
}
.navbox-title .Wikiplus-Edit-EveryWhereBtn {
display: none;
}
}


@media only screen and (max-width:759px){
.notaninfobox:hover {
.infotable {
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    width: 90%;
    float: none;
    margin: 0 auto;
}
/*.navbox {*/
/* display:none;*/
/*}*/
/*“查·论·编”在小屏幕时基本用不到(也很难点到)*/
.navbox-title>div{
        display: none;
    }
    /*把内边距去掉*/
    .navbox-group,
    .navbox-group >div{
        padding-left: 0 !important;
        padding-right: 0 !important;
        text-align: center;
    }
}
}


/* h1标题字体 */
.notaninfobox > .infobox-title {
body h1 {
    font-weight: bold;
     font-family: "Microsoft YaHei", "微软雅黑", sans-serif !important;
    text-align: center;
     font-size: 120%;
    background-color: #BCD4F5;
    padding: 6px;
}
}


/* 本段内容来自萌娘百科 https://zh.moegirl.org.cn/MediaWiki:Gadget-site-styles.css 感谢贡献!*/
/* ==== 黑幕效果 ==== */
/* 版权协定:知识共享 署名-非商业性使用-相同方式共享 3.0 */
.heimu,  
 
.heimu rt {
.heimu,
     --heimu-color: #252525;
.heimu rt{
     --heimu-text-color: #fff;
     --heimu-color:#252525;
     background-color: var(--heimu-color);
     --heimu-text-color:#fff;
     transition: color 0.2s ease-in-out;
     --heimu-link-color:#add8e6;
    --heimu-visited-link-color:#c5cae9;
    --heimu-new-link-color:#fcc;
     --heimu-new-visited-link-color:#ef9a9a;
    --heimu-extiw-visited-link-color:#d1c4e9;
 
    background-color:var(--heimu-color);
}
}


第347行: 第264行:
a .heimu,
a .heimu,
a.new .heimu,
a.new .heimu,
span.heimu a:visited,
span.heimu a:visited {
span.heimu a.new,
     color: var(--heimu-color);
span.heimu a.external,
     text-shadow: none;
span.heimu a.external:visited,
span.heimu a.extiw,
span.heimu a.extiw:visited,
span.heimu a.mw-disambig,
span.heimu a.mw-redirect{
    transition:color 0.13s linear;
     color:var(--heimu-color);
     text-shadow:none;
}
}


span.heimu:hover,
span.heimu:hover,
span.heimu:active{
span.heimu:active {
     color:var(--heimu-text-color);
     color: var(--heimu-text-color);
}
}


span.heimu:hover a,
/* ==== 彩幕效果 ==== */
a:hover span.heimu{
.colormu-drk {
     color:var(--heimu-link-color);
     color: #FFF;
}
}
 
.colormu-bri {
span.heimu:hover a:visited,
     color: #000;
a:visited:hover span.heimu{
     color:var(--heimu-visited-link-color);
}
}
 
.colormu-drk:not(.colormu_toggle_on) a {
span.heimu:hover a.new,
     color: #add8e6;
a.new:hover span.heimu{
     color:var(--heimu-new-link-color);
}
}
 
.colormu-drk:not(.colormu_toggle_on) a.new {
span.heimu a.new:hover:visited,
     color: #FCC;
a.new:hover:visited span.heimu{
     color:var(--heimu-new-visited-link-color);
}
}
 
.colormu>span, .colormu a, .colormu a>span {
span.heimu:hover a.extiw:visited,
     transition: color 0.2s;
a.extiw:visited:hover span.heimu{
     color:var(--heimu-extiw-visited-link-color);
}
[color-mode="dark"] .heimu,
[color-mode="dark"] .heimu rt{
    --heimu-color:#5e6272;
}
}


/*
.colormu:not(:hover):not(:active):not(.colormu_toggle_on)>span,
该文档为一个hover特效库,由一些常用的效果以及GitHub上的开源项目“Hover.css”的一些部分构成。
.colormu:not(:hover):not(:active):not(.colormu_toggle_on) a {
请使用hovers在页面中进行载入。
    color: transparent;
*/
 
/* hover状态切换 */
.hover-change,
.hover-remote {
  position: relative;
  display: inline-block;
  transition: opacity 0.5s linear;
}
}


.hover-change-before,
.colormu:not(:hover):not(:active):not(.colormu_toggle_on) a>span {
.hover-change-after,
    color: transparent !important;
.hover-remote-target {
  transition: inherit;
}
}


.hover-change-after,
/* ==== 特殊区块样式 ==== */
.hover-remote-target {
/* 引用块 */
  opacity: 0;
blockquote {
  position: absolute;
    margin: 1em 0;
  top: 0;
    padding: 0.5em 1em;
  left: 0;
    border-left: 3px solid rgba(var(--bright-accent), 0.7);
}
    background-color: rgba(var(--white-monochrome), 0.5);
.hover-remote-target {
    box-shadow: 0.05rem 0.1rem 0.3rem rgba(0,0,0,.25);
  left: 100%;
}
}


.hover-change-after[style^='right:'],
/* 亮色样式引用 */
.hover-change-after[style*=' right:'],
.lightstyled-quote {
.hover-remote-after[style^='right:'],
    background-color: rgb(var(--bright-accent));
.hover-remote-after[style*=' right:'] {
    color: rgb(0, 0, 0);
  left: initial;
    border-left: 0.5rem solid rgba(var(--dark-gray-monochrome));
    padding: 0.1rem 1rem;
    margin: 0.5rem 0 0.5rem 0.25rem;
    box-shadow: 0.05rem 0.1rem 0.3rem rgba(0,0,0,.25);
}
}


.hover-change-after[style^='bottom:'],
/* 暗色样式引用 */
.hover-change-after[style*=' bottom:'],
.darkstyled-quote {
.hover-remote-after[style^='bottom:'],
    background-color: rgb(var(--dark-gray-monochrome));
.hover-remote-after[style*=' bottom:'] {
    border-left: 0.5rem solid rgba(var(--bright-accent));
  top: initial;
    color: rgb(var(--white-monochrome));
    padding: 0.1rem 1rem;
    margin: 0.5rem 0 0.5rem 0.25rem;
    box-shadow: 0.05rem 0.1rem 0.3rem rgba(0,0,0,.25);
}
}


.hover-change-after:hover,
.darkstyled-quote a {
.hover-remote-target {
    color: rgb(var(--swatch-menubg-medium-color));
  opacity: 0;
  margin-left: -9999px;
}
}


/* 主要用于制作hover形式的标签页(tab)切换 */
/* 亮色块 */
.hover-tab-mode {
.lightblock {
  position: relative;
    background-color: rgb(var(--bright-accent));
  transition: none;
    color: rgb(0, 0, 0);
}
    padding: 0.01rem 1rem;
.hover-tab-mode .hover-remote {
    margin: 0.5rem 0 0.5rem 0.25rem;
  transition: inherit;
    box-shadow: 0 0.2rem 0.3rem rgba(0,0,0,.25);
  position: static;
}
}


/* 闪烁效果 */
/* 暗色块 */
.hover-change.flash:hover .hover-change-before {
.darkblock {
  margin-left: -9999px;
    background-color: rgb(var(--dark-gray-monochrome));
    color: rgb(var(--white-monochrome));
    padding: 0.01rem 1rem;
    margin: 0.5rem 0 0.5rem 0.25rem;
    box-shadow: 0 0.2rem 0.3rem rgba(0,0,0,.25);
}
}


.hover-change:hover > .hover-change-before,
/* 带边框的暗色块 */
.hover-remote > .hover-remote-target,
.dark-borderblock {
.hover-change:hover > a > .hover-change-before,
    background-color: rgb(var(--dark-gray-monochrome));
.hover-remote > a > .hover-remote-target {
    color: rgb(var(--white-monochrome));
  opacity: 0;
    padding: 0.01rem 1rem;
    margin: 0.5rem 0 0.5rem 0.25rem;
    box-shadow: 0 0.2rem 0.3rem rgba(0,0,0,.25);
    border: solid 0.3rem rgb(var(--bright-accent));
}
}


.hover-change:hover > .hover-change-after,
/* 带边框的亮色块 */
.hover-remote:hover > .hover-remote-target,
.light-borderblock {
.hover-change:hover > a > .hover-change-after,
    background-color: rgb(var(--bright-accent));
.hover-remote:hover > a > .hover-remote-target {
    color: rgb(0, 0, 0);
  opacity: 1;
    padding: 0.01rem 1rem;
  margin-left: initial;
    margin: 0.5rem 0 0.5rem 0.25rem;
    box-shadow: 0 0.2rem 0.3rem rgba(0,0,0,.25);
    border: solid 0.3rem rgb(var(--dark-gray-monochrome));
}
}


/* 基类 */
/* 带Logo的边框块 */
[class*='hovers-'] {
.border-logoblock {
  display: inline-block;
    padding: 0.01rem 1rem;
  box-shadow: 0 0 1px rgba(0, 0, 0, 0);
    box-shadow: 0 0.2rem 0.3rem rgba(0,0,0,.25);
  transform: perspective(1px) translateZ(0);
    color: rgb(var(--white-monochrome));
  vertical-align: middle;
    margin: 0.5rem 0 0.5rem 0.25rem;
  transition-duration: 0.25s;
    display: block;
  transition-property: all;
    position: relative;
    background-color: rgb(var(--dark-gray-monochrome));
    border: solid 0.3rem rgb(var(--bright-accent));
}
}


/* 旋转放大 */
/* Logo块 */
.hovers-rotate-shrink {
.logoblock {
  transition-duration: 0.5s;
    padding: 0.01rem 1rem;
  transform: rotate(0) scale(0.75);
    color: rgb(var(--white-monochrome));
}
    box-shadow: 0 0.2rem 0.3rem rgba(0,0,0,.25);
.hovers-rotate-shrink:hover {
    margin: 0.5rem 0 0.5rem 0.25rem;
  transform: rotate(360deg) scale(1);
    display: block;
    position: relative;
    background-color: rgb(var(--dark-gray-monochrome));
}
}


.hovers-rotate-shrink-reverse {
/* 带标题的块 */
  transition-duration: 0.5s;
.titleblock {
  transform: rotate(360deg) scale(0.75);
    background-color: rgb(var(--dark-gray-monochrome));
    color: rgb(var(--white-monochrome));
    padding: 0.5rem 1rem 0.10rem;
    margin: 1.5rem 0rem 0.5rem 0rem;
    box-shadow: 0 0.2rem 0.3rem rgba(0,0,0,.5);
    border: solid rgb(var(--bright-accent)) 2px;
}
}


.hovers-rotate-shrink-reverse:hover {
.titlebox {
  transform: rotate(0) scale(1);
    color: rgb(var(--dark-gray-monochrome));
}
    position: relative;
 
    top: -1.6rem;
/* 旋转 */
    background-color: rgb(var(--bright-accent));
.hovers-rotate,
    padding: 0.25rem 1rem;
.hovers-rotate-reverse:hover {
    line-height: 0.1rem;
  transition-duration: 0.5s;
  transform: rotate(0);
}
 
.hovers-rotate-reverse,
.hovers-rotate:hover {
  transition-duration: 0.5s;
  transform: rotate(360deg);
}
 
/* 正常 => 浅 */
.hovers-fade-deep,
.hovers-fade,
.hovers-fade-shallow {
  opacity: 1;
}
.hovers-fade-deep:hover,
.hovers-fade-deep.active {
  opacity: 0.35;
}
.hovers-fade:hover,
.hovers-fade.active {
  opacity: 0.5;
}
.hovers-fade-shallow:hover,
.hovers-fade-shallow.active {
  opacity: 0.75;
}
}


/* => 正常 */
/* ==== 表格样式 ==== */
.hovers-bloom-deep {
table {
  opacity: 0.35;
    border-collapse: collapse;
}
    border-spacing: 0;
.hovers-bloom {
    margin: 1em 0;
  opacity: 0.5;
}
.hovers-bloom-shallow {
  opacity: 0.75;
}
}


.hovers-bloom-deep:hover,
table th {
.hovers-bloom-deep.active,
    background-color: rgba(var(--bright-accent), 0.2);
.hovers-bloom:hover,
    font-weight: bold;
.hovers-bloom.active,
    text-align: center;
.hovers-bloom-shallow:hover,
    padding: 6px;
.hovers-bloom-shallow.active {
    border: 1px solid var(--custom-border-gray);
  opacity: 1;
}
}


/* 正常 => 大 */
table td {
.hovers-grow-deep,
    padding: 4px 6px;
.hovers-grow,
    border: 1px solid var(--custom-border-gray);
.hovers-grow-shallow {
  transform: scale(1);
}
.hovers-grow-deep:hover,
.hovers-grow-deep.active {
  transform: scale(1.5);
}
.hovers-grow:hover,
.hovers-grow.active {
  transform: scale(1.25);
}
.hovers-grow-shallow:hover,
.hovers-grow-shallow.active {
  transform: scale(1.1);
}
}


/* 正常 => 小 */
table tr:nth-child(odd) {
.hovers-shrink-deep:hover,
    background-color: rgba(var(--white-monochrome), 0.8);
.hovers-shrink-deep.active,
.hovers-shrink:hover,
.hovers-shrink.active,
.hovers-shrink-shallow:hover,
.hovers-shrink-shallow.active {
  transform: scale(1);
}
.hovers-shrink-deep {
  transform: scale(0.5);
}
.hovers-shrink {
  transform: scale(0.75);
}
.hovers-shrink-shallow {
  transform: scale(0.9);
}
}


/* 左右抖动 */
table tr:nth-child(even) {
@keyframes shake-flexible {
     background-color: rgba(var(--white-monochrome), 0.6);
  25% {
    transform: translateX(-0.0625em);
  }
 
  50% {
     transform: translateX(0.0625em);
  }
 
  75% {
    transform: translateX(-0.0625em);
  }
}
}


.hovers-shake-flexible:hover,
/* ==== 列表样式 ==== */
.hovers-shake-flexible.active {
ul, ol {
  animation: shake-flexible 0.5s ease-out;
    padding-left: 2em;
    margin: 1em 0;
}
}


@keyframes shake {
li {
  25% {
     margin: 0.3em 0;
    transform: translateX(-8px);
  }
 
  50% {
     transform: translateX(8px);
  }
 
  75% {
    transform: translateX(-8px);
  }
}
}


.hovers-shake:hover,
/* ==== 代码和预格式化文本 ==== */
.hovers-shake.active {
pre, code, tt, kbd, samp {
  animation: shake 0.5s ease-out;
    font-family: var(--mono-font);
    background-color: var(--custom-code-background, #f8f9fa);
    padding: 1px 3px;
    border-radius: 2px;
}
}


/* 上下抖动 */
pre {
@keyframes bounce-flexible {
    padding: 8px;
  25% {
     overflow-x: auto;
     transform: translateY(-0.0625em);
     line-height: 1.4;
  }
     border: 1px solid rgba(var(--black-monochrome), 0.1);
 
  50% {
     transform: translateY(0.0625em);
  }
 
  75% {
     transform: translateY(-0.0625em);
  }
}
}


.hovers-bounce-flexible:hover,
/* ==== 表单元素 ==== */
.hovers-bounce-flexible.active {
input, button, select, textarea {
  animation: bounce-flexible 0.5s ease-out;
    font-family: var(--UI-font);
    font-size: 0.9rem;
    padding: 4px 8px;
    border: 1px solid var(--custom-border-gray);
    border-radius: 3px;
}
}


@keyframes bounce {
button, input[type="button"], input[type="submit"] {
  25% {
     background-color: rgba(var(--bright-accent), 0.1);
     transform: translateY(-8px);
     cursor: pointer;
  }
     transition: background-color 0.2s;
 
  50% {
     transform: translateY(8px);
  }
 
  75% {
     transform: translateY(-8px);
  }
}
}


.hovers-bounce:hover,
button:hover, input[type="button"]:hover, input[type="submit"]:hover {
.hovers-bounce.active {
    background-color: rgba(var(--bright-accent), 0.2);
  position: relative;
  left: 0;
  animation: bounce 0.5s ease-out;
}
}


/* 绕顶端中点抖动 */
/* ==== 选中文本样式 ==== */
@keyframes swing {
::selection {
  20% {
     background: rgba(var(--bright-accent), 0.25);
     transform: rotate3d(0, 0, 1, 10deg);
     text-shadow: none;
  }
 
  40% {
    transform: rotate3d(0, 0, 1, -10deg);
  }
 
  60% {
    transform: rotate3d(0, 0, 1, 5deg);
  }
 
  80% {
     transform: rotate3d(0, 0, 1, -5deg);
  }
 
  to {
    transform: rotate3d(0, 0, 1, 0deg);
  }
}
}


.hovers-swing {
/* ==== 滚动条样式 ==== */
  transform-origin: top center;
::-webkit-scrollbar {
}
    width: 10px;
.hovers-swing:hover,
    height: 10px;
.hovers-swing.active {
  animation: swing 0.75s ease-out;
}
}


/* 正常 => 大 */
::-webkit-scrollbar-track {
@keyframes pulse-grow {
     background: #f1f1f1;
  to {
     transform: scale(1.1);
  }
}
}


.hovers-pulse-grow:hover,
::-webkit-scrollbar-thumb {
.hovers-pulse-grow.active {
    background: rgba(var(--bright-accent), 0.5);
  animation: pulse-grow 0.5s linear infinite alternate;
    border-radius: 5px;
}
}


/* 正常 => 小 */
::-webkit-scrollbar-thumb:hover {
@keyframes pulse-shrink {
     background: rgba(var(--bright-accent), 0.7);
  to {
     transform: scale(0.9);
  }
}
}


.hovers-pulse-shrink:hover,
/* ==== 导航框样式 ==== */
.hovers-pulse-shrink.active {
table.navbox {
  animation: pulse-shrink 0.5s linear infinite alternate;
    border: 1px solid #aaa;
    clear: both;
    margin: auto;
    padding: 1px;
    text-align: center;
    width: 100%;
    background: var(--theme-card-background-color, #fdfdfd);
}
}


/* 正常 => 小 */
table.navbox + table.navbox {
@keyframes push {
     margin-top: -1px;
  50% {
     transform: scale(0.8);
  }
}
}


.hovers-push:hover,
.navbox-title,
.hovers-push.active {
.navbox-abovebelow,
  animation: push 0.3s linear;
table.navbox th {
    padding-left: 1em;
    padding-right: 1em;
    text-align: center;
    background: none repeat scroll 0 0 rgba(var(--bright-accent), 0.2);
}
}


/* 正常 => 大 */
.navbox-group {
@keyframes pop {
    font-weight: 700;
  50% {
     white-space: nowrap;
     transform: scale(1.2);
  }
}
}


.hovers-pop:hover,
/* ==== 响应式设计 ==== */
.hovers-pop.active {
@media all and (max-width: 511px) {
  animation: pop 0.3s linear;
    .notaninfobox {
        float: none;
        margin-left: 0;
        width: auto;
    }
   
    /* 在小屏幕上减弱扫描线效果 */
    :root {
        --scanline-color: rgba(229, 140, 36, 0.03);
        --scanline-size: 3px;
    }
}
}


/* 正常 => 大 => 正常 => 大 */
@media only screen and (max-width: 759px) {
.hovers-bounce-in:hover,
    .infotable {
.hovers-bounce-in.active {
        width: 90%;
  transform: scale(1.2);
        float: none;
  transition-duration: 0.5s;
        margin: 0 auto;
  transition-timing-function: cubic-bezier(0.47, 2.02, 0.31, -0.36);
    }
   
    .navbox-title > div {
        display: none;
    }
   
    .navbox-group,
    .navbox-group > div {
        padding-left: 0 !important;
        padding-right: 0 !important;
        text-align: center;
    }
}
}


/* 正常 => 小 => 正常 => 小 */
/* ==== 打印样式 ==== */
.hovers-bounce-out:hover,
@media print {
.hovers-bounce-out.active {
    body::before, body::after, #content::before {
  transform: scale(0.8);
        display: none;
  transition-duration: 0.5s;
    }
  transition-timing-function: cubic-bezier(0.47, 2.02, 0.31, -0.36);
}
}


/* 倾斜 */
/* ==== 工具辅助类 ==== */
.hovers-tilt:hover,
/* 旋转特效 */
.hovers-tilt.active {
.hovers-rotate {
  transition-duration: 0.3s;
    transition-duration: 0.5s;
  transform: rotate(4deg);
    transform: rotate(0);
}
}


/* 倾斜 + 放大 */
.hovers-rotate:hover {
.hovers-grow-rotate:hover,
    transition-duration: 0.5s;
.hovers-grow-rotate.active {
     transform: rotate(360deg);
  transition-duration: 0.3s;
  transform: scale(1.1) rotate(4deg);
}
 
/* 升起 */
.hovers-float:hover,
.hovers-float.active {
  transition-duration: 0.3s;
  transition-timing-function: ease-out;
  transform: translateY(-8px);
}
 
/* 下沉 */
.hovers-sink:hover,
.hovers-sink.active {
  transition-duration: 0.3s;
  transition-timing-function: ease-out;
  transform: translateY(8px);
}
 
/* 飘浮 */
@keyframes bob {
  0% {
    transform: translateY(-10px);
  }
  50% {
    transform: translateY(-5px);
  }
  100% {
    transform: translateY(-10px);
  }
}
@keyframes bob-float {
  100% {
    transform: translateY(-10px);
  }
}
 
.hovers-bob:hover,
.hovers-bob.active {
  animation-name: bob-float, bob;
  animation-duration: 0.3s, 1.5s;
  animation-delay: 0s, 0.3s;
  animation-timing-function: ease-out, ease-in-out;
  animation-iteration-count: 1, infinite;
  animation-fill-mode: forwards;
  animation-direction: normal, alternate;
}
 
/* 悬挂 */
@keyframes hang {
  0% {
    transform: translateY(10px);
  }
  50% {
    transform: translateY(5px);
  }
  100% {
    transform: translateY(10px);
  }
}
@keyframes hang-sink {
  100% {
    transform: translateY(10px);
  }
}
 
.hovers-hang:hover,
.hovers-hang.active {
  animation-name: hang-sink, hang;
  animation-duration: 0.3s, 1.5s;
  animation-delay: 0s, 0.3s;
  animation-timing-function: ease-out, ease-in-out;
  animation-iteration-count: 1, infinite;
  animation-fill-mode: forwards;
  animation-direction: normal, alternate;
}
 
/* 非对称 */
.hovers-skew:hover,
.hovers-skew.active {
  transform: skew(-10deg);
}
 
/* 非对称-左 */
.hovers-skew-forward {
  transform-origin: 0 100%;
}
.hovers-skew-forward:hover,
.hovers-skew-forward.active {
  transform: skew(-10deg);
}
 
/* 非对称-右 */
.hovers-skew-backward {
  transform-origin: 0 100%;
}
.hovers-skew-backward:hover,
.hovers-skew-backward.active {
  transform: skew(10deg);
}
 
/* 垂直抖动 */
@keyframes wobble-vertical {
  16.65% {
    transform: translateY(8px);
  }
  33.3% {
    transform: translateY(-6px);
  }
  49.95% {
    transform: translateY(4px);
  }
  66.6% {
    transform: translateY(-2px);
  }
  83.25% {
    transform: translateY(1px);
  }
  100% {
    transform: translateY(0);
  }
}
 
.hovers-wobble-vertical:hover,
.hovers-wobble-vertical.active {
  animation-name: wobble-vertical;
  animation-duration: 1s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: 1;
}
 
/* 水平抖动 */
@keyframes wobble-horizontal {
  16.65% {
    transform: translateX(8px);
  }
  33.3% {
    transform: translateX(-6px);
  }
  49.95% {
    transform: translateX(4px);
  }
  66.6% {
    transform: translateX(-2px);
  }
  83.25% {
    transform: translateX(1px);
  }
  100% {
    transform: translateX(0);
  }
}
.hovers-wobble-horizontal:hover,
.hovers-wobble-horizontal.active {
  animation-name: wobble-horizontal;
  animation-duration: 1s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: 1;
}
 
/* 右下弹回 */
@keyframes wobble-to-bottom-right {
  16.65% {
    transform: translate(8px, 8px);
  }
  33.3% {
    transform: translate(-6px, -6px);
  }
  49.95% {
    transform: translate(4px, 4px);
  }
  66.6% {
    transform: translate(-2px, -2px);
  }
  83.25% {
    transform: translate(1px, 1px);
  }
  100% {
    transform: translate(0, 0);
  }
}
 
.hovers-wobble-to-bottom-right:hover,
.hovers-wobble-to-bottom-right.active {
  animation-name: wobble-to-bottom-right;
  animation-duration: 1s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: 1;
}
 
/* 右上弹回 */
@keyframes wobble-to-top-right {
  16.65% {
     transform: translate(8px, -8px)
  }
  33.3% {
    transform: translate(-6px, 6px);
  }
  49.95% {
    transform: translate(4px, -4px);
  }
  66.6% {
    transform: translate(-2px, 2px);
  }
  83.25% {
    transform: translate(1px, -1px);
  }
  100% {
    transform: translate(0);
  }
}
 
.hovers-wobble-to-top-right:hover,
.hovers-wobble-to-top-right.active {
  animation-name: wobble-to-top-right;
  animation-duration: 1s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: 1;
}
 
/* 果冻 */
@keyframes wobble-top {
  16.65% {
    transform: skew(-12deg);
  }
  33.3% {
    transform: skew(10deg);
  }
  49.95% {
    transform: skew(-6deg);
  }
  66.6% {
    transform: skew(4deg);
  }
  83.25% {
    transform: skew(-2deg);
  }
  100% {
    transform: skew(0);
  }
}
 
/* 赘肉 */
.hovers-wobble-top {
  transform-origin: 0 100%;
}
.hovers-wobble-top:hover,
.hovers-wobble-top.active {
  animation-name: wobble-top;
  animation-duration: 1s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: 1;
}
 
@keyframes wobble-bottom {
  16.65% {
    transform: skew(-12deg);
  }
  33.3% {
    transform: skew(10deg);
  }
  49.95% {
    transform: skew(-6deg);
  }
  66.6% {
    transform: skew(4deg);
  }
  83.25% {
    transform: skew(-2deg);
  }
  100% {
    transform: skew(0);
  }
}
 
.hovers-wobble-bottom {
  transform-origin: 100% 0;
}
.hovers-wobble-bottom:hover,
.hovers-wobble-bottom.active {
  animation-name: wobble-bottom;
  animation-duration: 1s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: 1;
}
 
/* 颤动 */
@keyframes wobble-skew {
  16.65% {
    transform: skew(-12deg);
  }
  33.3% {
    transform: skew(10deg);
  }
  49.95% {
    transform: skew(-6deg);
  }
  66.6% {
    transform: skew(4deg);
  }
  83.25% {
    transform: skew(-2deg);
  }
  100% {
    transform: skew(0);
  }
}
.hovers-wobble-skew:hover,
.hovers-wobble-skew.active {
  animation-name: wobble-skew;
  animation-duration: 1s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: 1;
}
 
/* 振动 */
@keyframes buzz {
  50% {
    transform: translateX(3px) rotate(2deg);
  }
  100% {
    transform: translateX(-3px) rotate(-2deg);
  }
}
 
.hovers-buzz:hover,
.hovers-buzz.active {
  animation-name: buzz;
  animation-duration: 0.15s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}
 
/* 振出 */
@keyframes buzz-out {
  10% {
    transform: translateX(3px) rotate(2deg);
  }
  20% {
    transform: translateX(-3px) rotate(-2deg);
  }
  30% {
    transform: translateX(3px) rotate(2deg);
  }
  40% {
    transform: translateX(-3px) rotate(-2deg);
  }
  50% {
    transform: translateX(2px) rotate(1deg);
  }
  60% {
    transform: translateX(-2px) rotate(-1deg);
  }
  70% {
    transform: translateX(2px) rotate(1deg);
  }
  80% {
    transform: translateX(-2px) rotate(-1deg);
  }
  90% {
    transform: translateX(1px) rotate(0);
  }
  100% {
    transform: translateX(-1px) rotate(0);
  }
}
 
.hovers-buzz-out:hover,
.hovers-buzz-out.active {
  animation-name: buzz-out;
  animation-duration: 0.75s;
  animation-timing-function: linear;
  animation-iteration-count: 1;
}
 
/* 右移 */
.hovers-forward:hover,
.hovers-forward.active {
  transform: translateX(8px);
}
 
/* 左移 */
.hovers-backward:hover,
.hovers-backward.active {
  transform: translateX(-8px);
}
 
/* 自由移动 */
.hovers-top,
.hovers-left,
.hovers-bottom,
.hovers-right {
  transition: all 0.5s;
}
 
.hovers-top:hover,
.hovers-top.active {
  transform: translateY(-0.0625em);
}
 
.hovers-left:hover,
.hovers-left.active {
  transform: translateX(-0.0625em);
}
 
.hovers-bottom:hover,
.hovers-bottom.active {
  transform: translateY(0.0625em);
}
 
.hovers-right:hover,
.hovers-right.active {
  transform: translateX(0.0625em);
}
 
/* 滤镜 */
.hovers-blur,
.hovers-blur-reverse,
.hovers-brightness,
.hovers-brightness-reverse,
.hovers-contrast,
.hovers-contrast-reverse,
.hovers-grayscale,
.hovers-grayscale-reverse,
.hovers-invert,
.hovers-invert-reverse,
.hovers-saturate,
.hovers-saturate-reverse,
.hovers-sepia,
.hovers-sepia-reverse,
.hovers-hue-rotate,
.hovers-hue-rotate-reverse {
  transition-duration: 0.75s;
}
 
.hovers-blur:hover,
.hovers-blur.active,
.hovers-brightness:hover,
.hovers-brightness.active,
.hovers-contrast:hover,
.hovers-contrast.active,
.hovers-grayscale:hover,
.hovers-grayscale.active,
.hovers-invert:hover,
.hovers-invert.active,
.hovers-saturate:hover,
.hovers-saturate.active,
.hovers-sepia:hover,
.hovers-sepia.active,
.hovers-hue-rotate:hover,
.hovers-hue-rotate.active {
  filter: initial;
}
 
.hovers-blur {
  filter: blur(5px);
}
 
.hovers-blur-reverse:hover,
.hovers-blur-reverse.active {
  filter: blur(5px);
}
 
.hovers-brightness {
  filter: brightness(50%);
}
 
.hovers-brightness-reverse:hover,
.hovers-brightness-reverse.active {
  filter: brightness(50%);
}
 
.hovers-contrast {
  filter: contrast(50%);
}
 
.hovers-contrast-reverse:hover,
.hovers-contrast-reverse.active {
  filter: contrast(50%);
}
 
.hovers-grayscale {
  filter: grayscale(100%);
}
 
.hovers-grayscale-reverse:hover,
.hovers-grayscale-reverse.active {
  filter: grayscale(100%);
}
 
.hovers-invert {
  filter: invert(100%);
}
 
.hovers-invert-reverse:hover,
.hovers-invert-reverse.active {
  filter: invert(100%);
}
 
.hovers-saturate {
  filter: saturate(200%);
}
 
.hovers-saturate-reverse:hover,
.hovers-saturate-reverse.active {
  filter: saturate(200%);
}
 
.hovers-sepia {
  filter: sepia(100%);
}
 
.hovers-sepia-reverse:hover,
.hovers-sepia-reverse.acitve {
  filter: sepia(100%);
}
 
.hovers-hue-rotate {
  filter: hue-rotate(180deg);
}
 
.hovers-hue-rotate-reverse:hover,
.hovers-hue-rotate-reverse.active {
  filter: hue-rotate(180deg);
}
 
/* 背景滑动 */
.hovers-sweep-to-right,
.hovers-sweep-to-left,
.hovers-sweep-to-bottom,
.hovers-sweep-to-top,
.hovers-radial-out,
.hovers-radial-in {
  position: relative;
  transition-duration: 0.3s;
  transition-timing-function: ease-out;
  overflow: hidden;
}
 
.hovers-sweep-to-right:before,
.hovers-sweep-to-left:before,
.hovers-sweep-to-bottom:before,
.hovers-sweep-to-top:before,
.hovers-radial-out:before,
.hovers-radial-in:before {
  content: '';
  position: absolute;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: inherit;
  transform: scaleX(0);
  transition: inherit;
}
.hovers-sweep-to-bottom:before,
.hovers-sweep-to-top:before {
  transform: scaleY(0);
}
.hovers-radial-out:before,
.hovers-radial-in:before {
  border-radius: 50%;
  transform: scale(0);
}
.hovers-radial-in:before {
  transform: scale(2);
}
 
.hovers-sweep-to-right:before {
  transform-origin: 0 50%;
}
.hovers-sweep-to-left:before {
  transform-origin: 100% 50%;
}
.hovers-sweep-to-bottom:before {
  transform-origin: 50% 0;
}
.hovers-sweep-to-top:before {
  transform-origin: 50% 100%;
}
.hovers-radial-out:hover:before,
.hovers-radial-out.active:before {
  transform: scale(2);
}
.hovers-radial-in:hover:before,
.hovers-radial-in.active:before {
  transform: scale(0);
}
 
.hovers-sweep-to-right .hovers-content.center,
.hovers-sweep-to-left .hovers-content.center,
.hovers-sweep-to-bottom .hovers-content.center,
.hovers-sweep-to-top .hovers-content.center,
.hovers-radial-out .hovers-content.center,
.hovers-radial-in .hovers-content.center {
  display: flex;
  align-items: center;
  justify-content: center;
  word-break: break-all;
}
 
.hovers-sweep-to-right:hover:before,
.hovers-sweep-to-left:hover:before,
.hovers-sweep-to-bottom:hover:before,
.hovers-sweep-to-top:hover:before,
.hovers-sweep-to-right.active:before,
.hovers-sweep-to-left:hover:before,
.hovers-sweep-to-bottom:hover:before,
.hovers-sweep-to-top:hover:before {
  transform: scaleX(1);
}
 
.hovers-sweep-to-right .hovers-content,
.hovers-sweep-to-left .hovers-content,
.hovers-sweep-to-bottom .hovers-content,
.hovers-sweep-to-top .hovers-content,
.hovers-radial-out .hovers-content,
.hovers-radial-in .hovers-content {
  width: 100%;
  height: 100%;
  position: absolute;
  transition-property: all;
  transition-duration: inherit;
  top: 0;
  left: 0;
  z-index: 11;
}
 
.hovers-sweep-to-right .hovers-content {
  left: initial;
  right: 100%;
}
.hovers-sweep-to-right:hover .hovers-content,
.hovers-sweep-to-right.active .hovers-content {
  right: 0;
}
 
.hovers-sweep-to-left .hovers-content {
  left: 100%;
}
.hovers-sweep-to-left:hover .hovers-content,
.hovers-sweep-to-left.active .hovers-content {
  left: 0;
}
 
.hovers-sweep-to-bottom .hovers-content {
  top: initial;
  bottom: 100%;
}
.hovers-sweep-to-bottom:hover .hovers-content,
.hovers-sweep-to-bottom.active .hovers-content {
  bottom: 0;
}
 
.hovers-sweep-to-top .hovers-content {
  top: 100%;
}
.hovers-sweep-to-top:hover .hovers-content,
.hovers-sweep-to-top.active .hovers-content {
  top: 0;
}
 
.hovers-radial-out .hovers-content,
.hovers-radial-in:hover .hovers-content,
.hovers-radial-in.active .hovers-content {
  opacity: 0;
}
 
.hovers-radial-in .hovers-content,
.hovers-radial-out:hover .hovers-content,
.hovers-radial-out.active .hovers-content {
  opacity: 1;
}
 
/* 默认em */
.hovers-border,
.hovers-trim,
.hovers-ripple-out,
.hovers-ripple-in,
.hovers-outline-out,
.hovers-outline-in,
.hovers-reveal {
  font-size: 160px;
  line-height: 16px;
}
 
/* 内边框滑出 */
.hovers-border,
.hovers-trim {
  position: relative;
  top: 0;
  left: 0;
  transition: all 0.3s;
}
 
.hovers-border:before {
  content: '';
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  box-sizing: border-box;
  transition: inherit;
  border-width: calc(0.0625em * 0.6);
  border-color: inherit;
  border-style: solid;
  border-radius: inherit;
  opacity: 0;
}
 
.hovers-border:hover:before,
.hovers-border.active:before {
  opacity: 1;
}
 
/* 带边距内边框 */
.hovers-trim:before {
  content: '';
  position: absolute;
  top: calc(0.0625em * 0.4);
  left: calc(0.0625em * 0.4);
  bottom: calc(0.0625em * 0.4);
  right: calc(0.0625em * 0.4);
  transition: inherit;
  border-width: calc(0.0625em * 0.6);
  border-color: inherit;
  border-style: solid;
  opacity: 0;
  border-radius: inherit;
}
 
.hovers-trim:hover:before,
.hovers-trim.active:before {
  opacity: 1;
}
 
/* 边框飞出与飞入 */
.hovers-ripple-out,
.hovers-ripple-in,
.hovers-outline-out,
.hovers-outline-in,
.hovers-reveal {
  animation-duration: 0.7s;
  animation-timing-function: ease-out;
  transition: all 0.3s;
}
 
.hovers-ripple-out:before,
.hovers-ripple-in:before,
.hovers-outline-out:before,
.hovers-outline-in:before,
.hovers-reveal:before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  animation: inherit;
  transition: inherit;
  border-width: calc(0.0625em * 0.6);
  border-color: inherit;
  border-style: solid;
  border-radius: inherit;
}
.hovers-ripple-out:before {
  opacity: 0;
}
.hovers-ripple-in:before {
  top: calc(-0.0625em * 1.2);
  right: calc(-0.0625em * 1.2);
  bottom: calc(-0.0625em * 1.2);
  left: calc(-0.0625em * 1.2);
  opacity: 0;
}
.hovers-outline-out:before {
  opacity: 0;
}
.hovers-outline-out:before {
  top: calc(-0.0625em * 1.6);
  right: calc(-0.0625em * 1.6);
  bottom: calc(-0.0625em * 1.6);
  left: calc(-0.0625em * 1.6);
  opacity: 0;
}
.hovers-reveal:before {
  border-width: 0;
  opacity: 0;
}
 
@keyframes ripple-out {
  50% {
    opacity: 1;
  }
 
  100% {
    top: calc(-0.0625em * 1.2);
    right: calc(-0.0625em * 1.2);
    bottom: calc(-0.0625em * 1.2);
    left: calc(-0.0625em * 1.2);
    opacity: 0;
  }
}
.hovers-ripple-out:hover:before,
.hovers-ripple-out.active:before {
  animation-name: ripple-out;
}
}


@keyframes ripple-in {
/* 缩放特效 */
  50% {
.hovers-grow {
     opacity: 1;
     transform: scale(1);
  }
     transition: transform 0.3s ease;
 
  100% {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
     opacity: 0;
  }
}
.hovers-ripple-in:hover:before,
.hovers-ripple-in.active:before {
  animation-name: ripple-in;
}
}


.hovers-outline-out:hover:before,
.hovers-grow:hover {
.hovers-outline-in:hover:before,
    transform: scale(1.25);
.hovers-outline-out.active:before,
.hovers-outline-in:hover:before {
  top: calc(-0.0625em * 0.8);
  right: calc(-0.0625em * 0.8);
  bottom: calc(-0.0625em * 0.8);
  left: calc(-0.0625em * 0.8);
  opacity: 1;
}
}


.hovers-reveal:hover:before,
/* 模块框 */
.hovers-reveal.active:before {
.modulebox {
  transform: translateY(0);
    border: 1px solid #ccc;
  border-width: calc(0.0625em * 0.4);
     padding: 10px;
  opacity: 1;
     margin: 10px 0;
}
     background-color: #f9f9f9;
 
/* 圆角化 */
.hovers-round-corners {
  overflow: hidden;
}
.hovers-round-corners:hover,
.hovers-round-corners.active {
  border-radius: 0.0625em;
}
 
/* 重叠:翻转切换 */
 
.hover-turn {
  position: relative;
  transform: translateZ(1px);
}
 
.hover-turn-before,
.hover-turn-after {
  position: absolute;
  top: 0;
  left: 0;
}
 
@keyframes hover-turn {
  from {
     transform: rotateY(-90deg);
  }
 
  50% {
     transform: scale(1.2);
  }
 
  to {
     transform: rotateY(0);
  }
}
 
.hover-turn:not(:hover) .hover-turn-before,
.hover-turn:hover .hover-turn-after {
  animation: hover-turn 0.5s;
}
 
.hover-turn:hover .hover-turn-before,
.hover-turn:not(:hover) .hover-turn-after {
opacity: 0;
}
/* [[Category:在模板名字空间下的CSS页面]] */
 
/*
.colormu_toggle_on是为了黑幕开关(MediaWiki:Gadget-heimu-toggle.js)做适配。
.colormu-drk、.colormu-bri分别是暗色背景和亮色背景,
暗色背景的文字通常是浅色,在半隐背景后,颜色需要变成深色。
*/
.colormu-drk {
color: #FFF;
}
.colormu-bri {
color: #000;
}
.colormu-drk:not(.colormu_toggle_on) a {
color: #add8e6;
}
.colormu-drk:not(.colormu_toggle_on) a.new {
color: #FCC;
}
.colormu>span, .colormu a, .colormu a>span {
transition: color 0.2s;
}
.colormu:not(:hover):not(:active):not(.colormu_toggle_on)>span,
.colormu:not(:hover):not(:active):not(.colormu_toggle_on) a {
color: transparent;
}
/* for T:Coloredlink in T:彩幕 */
.colormu:not(:hover):not(:active):not(.colormu_toggle_on) a>span {
color: transparent !important;
}
/* for T:彩幕 in link */
a .colormu-bri {
color: inherit;
}
a:hover .colormu>span, a:active .colormu>span,
/* and for MediaWiki:Gadget-heimu-toggle.js */
.colormu-drk.colormu_toggle_on, .colormu_toggle_on>span, .colormu-drk.colormu_toggle_on a>span {
color: inherit !important;
}
}
/* [[Category:在模板名字空间下的CSS页面]] */

2025年4月12日 (六) 19:22的版本

/* MediaWiki扫描线效果主题CSS - 基于Backrooms数据库风格 */

@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@100;300;400;500;700;900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=VT323&display=swap");
@import url("https://fastly.jsdelivr.net/gh/hoah2333/Fonts@main/Typeface-VonwaonBitmap-16px.css");

/* ==== 基础变量 ==== */
:root {
    /* ==== 字体设置 ==== */
    --body-font: "VonwaonBitmap 16px", "Noto Sans SC", "Microsoft YaHei", "微软雅黑", VT323, monospace;
    --UI-font: "VonwaonBitmap 16px", "Noto Sans SC", "方体", "PingFang SC", VT323, monospace;
    --title-font: "VonwaonBitmap 16px", "Noto Sans SC", VT323, monospace;
    --mono-font: "VonwaonBitmap 16px", VT323, monospace;
    --base-font-size: 1.2rem;
    
    /* ==== 颜色方案 - 保留原MediaWiki颜色 ==== */
    --link-color: #0645ad;
    --link-color-active: #faa700;
    --custom-background-blue: #ccf;
    --custom-background-cyan: #cef;
    --custom-background-green: #cfc;
    --custom-background-gray: #d2d2d2;
    --custom-background-grey: var(--custom-background-gray);
    --custom-background-magenta: #fdf;
    --custom-background-orange: #fdb;
    --custom-background-purple: #ecf;
    --custom-background-red: #fcc;
    --custom-background-yellow: #ffc;
    --custom-border-blue: #36e;
    --custom-border-cyan: #9df;
    --custom-border-green: #5d5;
    --custom-border-gray: #bbb;
    --custom-border-grey: var(--custom-border-gray);
    --custom-border-magenta: #f9f;
    --custom-border-orange: #f90;
    --custom-border-purple: #96c;
    --custom-border-red: #e44;
    --custom-border-yellow: #fc3;

    /* ==== Backrooms主题色彩 ==== */
    --white-monochrome: 252, 252, 252;
    --black-monochrome: 10, 10, 10;
    --bright-accent: 229, 140, 36;
    --medium-accent: 229, 140, 36;
    --dark-accent: 140, 136, 126;
    --pale-accent: 140, 136, 126;
    --text-shadow: 2px 2px #C9781E;
    --custom-text: 175, 100, 30;
    
    /* ==== 扫描线效果设置 ==== */
    --scanline-color: rgba(229, 140, 36, 0.05);
    --scanline-size: 2px;
    --scanline-timing: 6s;
    --fade-in-delay: 0.1s;
}

/* ==== 全局扫描线效果 ==== */
body::before {
    content: "";
    position: fixed;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    background: repeating-linear-gradient(
        180deg,
        rgba(0,0,0,0), 
        rgba(0,0,0,0) calc(var(--scanline-size) - 1px),
        var(--scanline-color) var(--scanline-size)
    );
    background-size: auto 8px;
    opacity: 0.7;
    z-index: 9999;
}

/* 扫描线动态效果 */
body::after {
    content: "";
    position: fixed;
    width: 100vw;
    height: 1rem;
    top: 0;
    left: 0;
    pointer-events: none;
    background: linear-gradient(
        to bottom, 
        rgba(229, 140, 36, 0.1) 0%, 
        rgba(229, 140, 36, 0.1) 50%, 
        rgba(229, 140, 36, 0.08) 51%, 
        rgba(229, 140, 36, 0.1) 100%
    );
    opacity: 0.1;
    z-index: 9998;
    animation: scanline-move var(--scanline-timing) linear infinite;
}

@keyframes scanline-move {
    0%   { top: -1rem; opacity: 0.05; }
    25%  { top: 50%; opacity: 0.03; }
    37.5%{ top: 75%; opacity: 0.06; }
    50%  { top: 100%; opacity: 0.03; }
    100% { top: 100%; }
}

/* CRT屏幕模拟效果 */
#content::before {
    content: "";
    position: fixed;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    background-image: radial-gradient(
        circle, 
        rgba(229, 140, 36, 0.04) 4%, 
        rgba(0, 0, 0, 0) 45%, 
        rgba(229, 140, 36, 0.03) 95%
    );
    opacity: 0.25;
    mix-blend-mode: color-dodge;
    background-repeat: no-repeat;
    background-size: cover;
    z-index: 2;
}

/* ==== 全局基础设置 ==== */
html, body {
    margin: 0;
    padding: 0;
    font-family: var(--body-font);
    font-size: var(--base-font-size);
    line-height: 1.6;
    background-color: #fcfcfc;
    background-image: radial-gradient(
        circle, 
        rgba(var(--medium-accent), 0.03) 50%, 
        transparent 0
    );
    background-size: 0.25em 0.25em;
    background-repeat: repeat;
    background-attachment: fixed;
    color: #000;
}

/* 淡入动画效果 */
@media screen and (prefers-reduced-motion: no-preference) {
    #content > *, #mw-content-text > * {
        animation-name: fadeIn;
        animation-duration: 1s;
        animation-iteration-count: 1;
        animation-timing-function: ease-out;
        animation-fill-mode: backwards;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(0, 30px);
    }
    to {
        opacity: 1;
        transform: translate(0, 0);
    }
}

/* 内容逐项淡入 */
#mw-content-text > :nth-child(1) { animation-delay: calc(1 * var(--fade-in-delay)); }
#mw-content-text > :nth-child(2) { animation-delay: calc(2 * var(--fade-in-delay)); }
#mw-content-text > :nth-child(3) { animation-delay: calc(3 * var(--fade-in-delay)); }
#mw-content-text > :nth-child(4) { animation-delay: calc(4 * var(--fade-in-delay)); }
#mw-content-text > :nth-child(5) { animation-delay: calc(5 * var(--fade-in-delay)); }
#mw-content-text > :nth-child(6) { animation-delay: calc(6 * var(--fade-in-delay)); }
#mw-content-text > :nth-child(7) { animation-delay: calc(7 * var(--fade-in-delay)); }
#mw-content-text > :nth-child(8) { animation-delay: calc(8 * var(--fade-in-delay)); }
#mw-content-text > :nth-child(9) { animation-delay: calc(9 * var(--fade-in-delay)); }
#mw-content-text > :nth-child(10) { animation-delay: calc(10 * var(--fade-in-delay)); }
#mw-content-text > :nth-child(n+11) { animation-delay: calc(11 * var(--fade-in-delay)); }

/* ==== 链接样式 ==== */
a {
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

a:hover, a:focus {
    color: var(--link-color-active);
    text-decoration: underline;
}

a:hover::before {
    content: "> ";
}

a:visited {
    color: #0b0080;
}

a.new {
    color: #ba0000;
}

a.new:visited {
    color: #a55858;
}

/* ==== 标题样式 ==== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--title-font);
    font-weight: 700;
    line-height: 1.3;
    margin: 1em 0 0.5em;
    color: rgb(var(--custom-text));
    text-shadow: 0.5px 0.5px rgba(var(--bright-accent), 0.5);
}

h1 { font-size: 1.8rem; border-bottom: 1px solid rgba(var(--swatch-primary), 0.2); }
h2 { font-size: 1.6rem; border-bottom: 1px solid rgba(var(--custom-border-gray), 0.5); }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.2rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

/* ==== 强化infobox样式 ==== */
.notaninfobox {
    position: relative;
    clear: right;
    margin: 0 0 1em 1em;
    width: 350px;
    font-size: 90%;
    background-color: var(--custom-table-background);
    float: right;
    border: 1px solid var(--custom-border-gray);
    padding: 2px;
    overflow: auto;
    z-index: 1;
    overflow-wrap: anywhere;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
}

.notaninfobox:hover {
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.notaninfobox > .infobox-title {
    font-weight: bold;
    text-align: center;
    font-size: 120%;
    background-color: #BCD4F5;
    padding: 6px;
}

/* ==== 黑幕效果 ==== */
.heimu, 
.heimu rt {
    --heimu-color: #252525;
    --heimu-text-color: #fff;
    background-color: var(--heimu-color);
    transition: color 0.2s ease-in-out;
}

.heimu,
.heimu a,
a .heimu,
a.new .heimu,
span.heimu a:visited {
    color: var(--heimu-color);
    text-shadow: none;
}

span.heimu:hover,
span.heimu:active {
    color: var(--heimu-text-color);
}

/* ==== 彩幕效果 ==== */
.colormu-drk {
    color: #FFF;
}
.colormu-bri {
    color: #000;
}
.colormu-drk:not(.colormu_toggle_on) a {
    color: #add8e6;
}
.colormu-drk:not(.colormu_toggle_on) a.new {
    color: #FCC;
}
.colormu>span, .colormu a, .colormu a>span {
    transition: color 0.2s;
}

.colormu:not(:hover):not(:active):not(.colormu_toggle_on)>span,
.colormu:not(:hover):not(:active):not(.colormu_toggle_on) a {
    color: transparent;
}

.colormu:not(:hover):not(:active):not(.colormu_toggle_on) a>span {
    color: transparent !important;
}

/* ==== 特殊区块样式 ==== */
/* 引用块 */
blockquote {
    margin: 1em 0;
    padding: 0.5em 1em;
    border-left: 3px solid rgba(var(--bright-accent), 0.7);
    background-color: rgba(var(--white-monochrome), 0.5);
    box-shadow: 0.05rem 0.1rem 0.3rem rgba(0,0,0,.25);
}

/* 亮色样式引用 */
.lightstyled-quote {
    background-color: rgb(var(--bright-accent));
    color: rgb(0, 0, 0);
    border-left: 0.5rem solid rgba(var(--dark-gray-monochrome));
    padding: 0.1rem 1rem;
    margin: 0.5rem 0 0.5rem 0.25rem;
    box-shadow: 0.05rem 0.1rem 0.3rem rgba(0,0,0,.25);
}

/* 暗色样式引用 */
.darkstyled-quote {
    background-color: rgb(var(--dark-gray-monochrome));
    border-left: 0.5rem solid rgba(var(--bright-accent));
    color: rgb(var(--white-monochrome));
    padding: 0.1rem 1rem;
    margin: 0.5rem 0 0.5rem 0.25rem;
    box-shadow: 0.05rem 0.1rem 0.3rem rgba(0,0,0,.25);
}

.darkstyled-quote a {
    color: rgb(var(--swatch-menubg-medium-color));
}

/* 亮色块 */
.lightblock {
    background-color: rgb(var(--bright-accent));
    color: rgb(0, 0, 0);
    padding: 0.01rem 1rem;
    margin: 0.5rem 0 0.5rem 0.25rem;
    box-shadow: 0 0.2rem 0.3rem rgba(0,0,0,.25);
}

/* 暗色块 */
.darkblock {
    background-color: rgb(var(--dark-gray-monochrome));
    color: rgb(var(--white-monochrome));
    padding: 0.01rem 1rem;
    margin: 0.5rem 0 0.5rem 0.25rem;
    box-shadow: 0 0.2rem 0.3rem rgba(0,0,0,.25);
}

/* 带边框的暗色块 */
.dark-borderblock {
    background-color: rgb(var(--dark-gray-monochrome));
    color: rgb(var(--white-monochrome));
    padding: 0.01rem 1rem;
    margin: 0.5rem 0 0.5rem 0.25rem;
    box-shadow: 0 0.2rem 0.3rem rgba(0,0,0,.25);
    border: solid 0.3rem rgb(var(--bright-accent));
}

/* 带边框的亮色块 */
.light-borderblock {
    background-color: rgb(var(--bright-accent));
    color: rgb(0, 0, 0);
    padding: 0.01rem 1rem;
    margin: 0.5rem 0 0.5rem 0.25rem;
    box-shadow: 0 0.2rem 0.3rem rgba(0,0,0,.25);
    border: solid 0.3rem rgb(var(--dark-gray-monochrome));
}

/* 带Logo的边框块 */
.border-logoblock {
    padding: 0.01rem 1rem;
    box-shadow: 0 0.2rem 0.3rem rgba(0,0,0,.25);
    color: rgb(var(--white-monochrome));
    margin: 0.5rem 0 0.5rem 0.25rem;
    display: block;
    position: relative;
    background-color: rgb(var(--dark-gray-monochrome));
    border: solid 0.3rem rgb(var(--bright-accent));
}

/* Logo块 */
.logoblock {
    padding: 0.01rem 1rem;
    color: rgb(var(--white-monochrome));
    box-shadow: 0 0.2rem 0.3rem rgba(0,0,0,.25);
    margin: 0.5rem 0 0.5rem 0.25rem;
    display: block;
    position: relative;
    background-color: rgb(var(--dark-gray-monochrome));
}

/* 带标题的块 */
.titleblock {
    background-color: rgb(var(--dark-gray-monochrome));
    color: rgb(var(--white-monochrome));
    padding: 0.5rem 1rem 0.10rem;
    margin: 1.5rem 0rem 0.5rem 0rem;
    box-shadow: 0 0.2rem 0.3rem rgba(0,0,0,.5);
    border: solid rgb(var(--bright-accent)) 2px;
}

.titlebox {
    color: rgb(var(--dark-gray-monochrome));
    position: relative;
    top: -1.6rem;
    background-color: rgb(var(--bright-accent));
    padding: 0.25rem 1rem;
    line-height: 0.1rem;
}

/* ==== 表格样式 ==== */
table {
    border-collapse: collapse;
    border-spacing: 0;
    margin: 1em 0;
}

table th {
    background-color: rgba(var(--bright-accent), 0.2);
    font-weight: bold;
    text-align: center;
    padding: 6px;
    border: 1px solid var(--custom-border-gray);
}

table td {
    padding: 4px 6px;
    border: 1px solid var(--custom-border-gray);
}

table tr:nth-child(odd) {
    background-color: rgba(var(--white-monochrome), 0.8);
}

table tr:nth-child(even) {
    background-color: rgba(var(--white-monochrome), 0.6);
}

/* ==== 列表样式 ==== */
ul, ol {
    padding-left: 2em;
    margin: 1em 0;
}

li {
    margin: 0.3em 0;
}

/* ==== 代码和预格式化文本 ==== */
pre, code, tt, kbd, samp {
    font-family: var(--mono-font);
    background-color: var(--custom-code-background, #f8f9fa);
    padding: 1px 3px;
    border-radius: 2px;
}

pre {
    padding: 8px;
    overflow-x: auto;
    line-height: 1.4;
    border: 1px solid rgba(var(--black-monochrome), 0.1);
}

/* ==== 表单元素 ==== */
input, button, select, textarea {
    font-family: var(--UI-font);
    font-size: 0.9rem;
    padding: 4px 8px;
    border: 1px solid var(--custom-border-gray);
    border-radius: 3px;
}

button, input[type="button"], input[type="submit"] {
    background-color: rgba(var(--bright-accent), 0.1);
    cursor: pointer;
    transition: background-color 0.2s;
}

button:hover, input[type="button"]:hover, input[type="submit"]:hover {
    background-color: rgba(var(--bright-accent), 0.2);
}

/* ==== 选中文本样式 ==== */
::selection {
    background: rgba(var(--bright-accent), 0.25);
    text-shadow: none;
}

/* ==== 滚动条样式 ==== */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: rgba(var(--bright-accent), 0.5);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(var(--bright-accent), 0.7);
}

/* ==== 导航框样式 ==== */
table.navbox {
    border: 1px solid #aaa;
    clear: both;
    margin: auto;
    padding: 1px;
    text-align: center;
    width: 100%;
    background: var(--theme-card-background-color, #fdfdfd);
}

table.navbox + table.navbox {
    margin-top: -1px;
}

.navbox-title,
.navbox-abovebelow,
table.navbox th {
    padding-left: 1em;
    padding-right: 1em;
    text-align: center;
    background: none repeat scroll 0 0 rgba(var(--bright-accent), 0.2);
}

.navbox-group {
    font-weight: 700;
    white-space: nowrap;
}

/* ==== 响应式设计 ==== */
@media all and (max-width: 511px) {
    .notaninfobox {
        float: none;
        margin-left: 0;
        width: auto;
    }
    
    /* 在小屏幕上减弱扫描线效果 */
    :root {
        --scanline-color: rgba(229, 140, 36, 0.03);
        --scanline-size: 3px;
    }
}

@media only screen and (max-width: 759px) {
    .infotable {
        width: 90%;
        float: none;
        margin: 0 auto;
    }
    
    .navbox-title > div {
        display: none;
    }
    
    .navbox-group,
    .navbox-group > div {
        padding-left: 0 !important;
        padding-right: 0 !important;
        text-align: center;
    }
}

/* ==== 打印样式 ==== */
@media print {
    body::before, body::after, #content::before {
        display: none;
    }
}

/* ==== 工具辅助类 ==== */
/* 旋转特效 */
.hovers-rotate {
    transition-duration: 0.5s;
    transform: rotate(0);
}

.hovers-rotate:hover {
    transition-duration: 0.5s;
    transform: rotate(360deg);
}

/* 缩放特效 */
.hovers-grow {
    transform: scale(1);
    transition: transform 0.3s ease;
}

.hovers-grow:hover {
    transform: scale(1.25);
}

/* 模块框 */
.modulebox {
    border: 1px solid #ccc;
    padding: 10px;
    margin: 10px 0;
    background-color: #f9f9f9;
}