MediaWiki:Common.css:修订间差异

来自Age Of History 2 Chinese Wiki
跳转至:导航、​搜索
无编辑摘要
无编辑摘要
第1行: 第1行:
/* 这里放置的CSS将应用于所有皮肤 */
/* 这里放置的CSS将应用于所有皮肤 */


@import url("https://fonts.googleapis.com/css2?family=VT323&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap");
@import url("https://fastly.jsdelivr.net/gh/hoah2333/Fonts@main/Typeface-VonwaonBitmap-16px.css");
@import url("https://fastly.jsdelivr.net/gh/hoah2333/Fonts@main/Typeface-VonwaonBitmap-16px.css");
第73行: 第72行:
--custom-topic-7-days: #ddd;
--custom-topic-7-days: #ddd;
/* CRT效果相关变量 - 增强效果 */
/* CRT效果相关变量 - 调整效果 */
--crt-scanline-alpha: 0.15;
--crt-scanline-alpha: 0.1; /* 调整扫描线透明度 */
--crt-flicker-alpha: 0.05;
--crt-flicker-alpha: 0.03;
--crt-noise-alpha: 0.03;
--crt-noise-alpha: 0.025; /* 增加轻微噪点 */
--crt-glow-radius: 0.1em;
--crt-glow-radius: 0.08em;
--crt-glow-color: rgba(0, 255, 50, 0.25);
--crt-glow-color: rgba(0, 255, 100, 0.18); /* 调整辉光颜色和强度 */
--crt-text-shadow: 0 0 var(--crt-glow-radius) var(--crt-glow-color);
/* 网格背景相关变量 */
/* 网格背景相关变量 */
--grid-color: rgba(0, 0, 0, 0.1);
--grid-color: rgba(0, 0, 0, 0.08);
--grid-size: 30px;
--grid-size: 40px;
--grid-line-width: 1px;
--grid-line-width: 1px;
/* 字体设置 */
/* 字体设置 - 移除VT323 */
--pixel-font: 'VT323', 'VonwaonBitmap 16px', monospace;
--pixel-font: 'VonwaonBitmap 16px', monospace;
--body-font: var(--pixel-font), Verdana, "Microsoft YaHei", "微软雅黑", Geneva, sans-serif;
--title-font: 'Press Start 2P', var(--pixel-font);
--UI-font: var(--pixel-font), "方体", "PingFang SC", "黑体", "Heiti SC", sans-serif;
--body-font: 'Microsoft YaHei', '微软雅黑', var(--pixel-font), Verdana, Geneva, sans-serif; /* 将雅黑置前 */
--title-font: var(--pixel-font);
--UI-font: var(--body-font);
/* 字体大小设置 */
/* 字体大小设置 - 简化 */
--base-font-size: 16px;
--base-font-size: 15px; /* 统一基础字号 */
--chinese-scale: 1.2;
--title-scale: 1.4;
--heading-scale: 1.5;
--code-scale: 0.9;
--code-scale: 0.85;
/* 边框和内间距设置 */
/* 边框和内间距设置 */
     --side-border-thickness: 0.125rem;
     --side-border-thickness: 0.1rem;
     --main-border-thickness: 0.0625rem;
     --main-border-thickness: 0.05rem;
      
      
     /* 启用/禁用扫描线效果 */
     /* 启用/禁用扫描线效果 */
第105行: 第104行:
}
}


/* 基础CRT效果:扫描线和荧光效果 */
/* 基础CRT效果 */
@keyframes flicker {
@keyframes flicker {
     0% { opacity: 0.97; }
     0%, 100% { opacity: 0.98; }
    5% { opacity: 0.93; }
     25% { opacity: 0.95; }
    10% { opacity: 0.98; }
     50% { opacity: 0.99; }
    15% { opacity: 0.94; }
    20% { opacity: 0.96; }
     25% { opacity: 0.98; }
     30% { opacity: 0.93; }
    35% { opacity: 0.97; }
    40% { opacity: 0.99; }
    45% { opacity: 0.94; }
    50% { opacity: 0.98; }
    55% { opacity: 0.93; }
    60% { opacity: 0.97; }
    65% { opacity: 0.98; }
    70% { opacity: 0.94; }
     75% { opacity: 0.96; }
     75% { opacity: 0.96; }
    80% { opacity: 0.99; }
    85% { opacity: 0.96; }
    90% { opacity: 0.98; }
    95% { opacity: 0.94; }
    100% { opacity: 0.97; }
}
}


@keyframes scanlines {
@keyframes subtle-scanline {
     0% { transform: translateY(0); }
     0% { background-position: 0 0; }
     100% { transform: translateY(4px); }
     100% { background-position: 0 4px; }
}
}


@keyframes crt-on {
@keyframes crt-on {
     0% {
     0% { opacity: 0; filter: brightness(4) saturate(0); }
        opacity: 0;
     20% { opacity: 0.5; }
        transform: scale(0.8) translateY(10px);
     100% { opacity: 1; filter: brightness(1) saturate(1); }
        filter: brightness(3) saturate(0);
    }
     30% {
        opacity: 1;
        filter: brightness(2) saturate(0.3);
    }
     100% {
        transform: scale(1) translateY(0);
        filter: brightness(1) saturate(1);
    }
}
}


/* 网格背景和全局样式 */
/* 全局和背景样式 - 增加纹理 */
html {
html {
     min-height: 100%;
     min-height: 100%;
     background-color: #ffffff;
     background-color: #f0f0f0; /* 轻微调整背景色 */
     background-image:  
     background-image:  
        /* 网格线 */
         linear-gradient(var(--grid-color) var(--grid-line-width), transparent var(--grid-line-width)),
         linear-gradient(var(--grid-color) var(--grid-line-width), transparent var(--grid-line-width)),
         linear-gradient(90deg, var(--grid-color) var(--grid-line-width), transparent var(--grid-line-width));
         linear-gradient(90deg, var(--grid-color) var(--grid-line-width), transparent var(--grid-line-width)),
     background-size: var(--grid-size) var(--grid-size);
        /* 细微噪点纹理 */
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4' viewBox='0 0 4 4'%3E%3Cpath fill='%239C92AC' fill-opacity='0.08' d='M1 3h1v1H1V3zm2-2h1v1H3V1z'%3E%3C/path%3E%3C/svg%3E");
     background-size: var(--grid-size) var(--grid-size), var(--grid-size) var(--grid-size), auto;
     background-position: center center;
     background-position: center center;
     animation: crt-on 1.5s ease-out;
     animation: crt-on 1s ease-out;
}
}


第166行: 第141行:
     font-family: var(--body-font);
     font-family: var(--body-font);
     font-size: var(--base-font-size);
     font-size: var(--base-font-size);
     line-height: 1.6;
     line-height: 1.65; /* 调整行高 */
    color: #222; /* 深灰色文本 */
     position: relative;
     position: relative;
     min-height: 100vh;
     min-height: calc(100vh - 2rem);
     margin: 0;
     margin: 1rem;
     padding: 1rem;
     padding: 1.5rem;
     background-color: rgba(255, 255, 255, 0.85);
     background-color: rgba(255, 255, 255, 0.92); /* 轻微增加透明度 */
     border-radius: 5px;
     border-radius: 4px;
     box-shadow:  
     box-shadow:  
         0 0 5px rgba(0, 0, 0, 0.1),
         0 2px 8px rgba(0, 0, 0, 0.1),
        0 0 15px var(--crt-glow-color),
         inset 0 0 30px rgba(0, 255, 100, 0.05); /* 调整内阴影 */
         inset 0 0 20px rgba(0, 255, 50, 0.05);
     animation: flicker 90s infinite alternate ease-in-out;
     animation: flicker 120s infinite;
    overflow: hidden; /* 隐藏超出部分,配合扫描线 */
}
}


/* 扫描线效果 - 更明显但不干扰阅读 */
/* 扫描线效果 - 使用单一伪元素 */
body::before {
body::after {
     content: "";
     content: "";
     display: var(--scanlines-display);
     display: var(--scanlines-display);
第189行: 第165行:
     width: 100%;
     width: 100%;
     height: 100%;
     height: 100%;
     background: linear-gradient(
     background: repeating-linear-gradient(
         to bottom,
         to bottom,
         transparent 0%,
         rgba(0, 0, 0, 0) 0px,
         rgba(0, 0, 0, var(--crt-scanline-alpha)) 50%,
        rgba(0, 0, 0, 0) 2px, /* 透明区域 */
        transparent 51%,
         rgba(0, 0, 0, var(--crt-scanline-alpha)) 3px, /* 扫描线 */
         rgba(0, 0, 0, var(--crt-scanline-alpha)) 100%
         rgba(0, 0, 0, var(--crt-scanline-alpha)) 4px /* 扫描线宽度 */
     );
     );
     background-size: 100% 4px;
     background-size: 100% 4px;
     pointer-events: none;
     pointer-events: none;
     z-index: 9999;
     z-index: 9999;
    animation: scanlines 6s linear infinite;
     opacity: 0.6;
     opacity: 0.7;
     mix-blend-mode: multiply; /* 尝试不同的混合模式 */
     mix-blend-mode: overlay;
    animation: subtle-scanline 10s linear infinite;
}
}


/* 噪点效果 - 更明显 */
/* 移除之前的噪点效果伪元素(如果存在),现在背景已包含噪点 */
body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAABmJLR0QA/wD/AP+gvaeTAAAA30lEQVRoge2awQ6EIAxFX/z/f3a+gImDLW2BZu4s7knYNbS9KSoRQojf5SQRzcyGNUlEs9a2zJukSJKkSDIXeWQ+kczkSsIid5GvJUYlL0WsRaxFDCVkLyMiIiJbYvn5S8xYJftGzKyltfaWsKbNeZ7dHTPXvRFJmUlZZEhERNZkSLJL8B1Zkax7Qkbk8J9vGZZhmqwYlmGarBiWYZqsGJZhmqwYlmGarBiWYZqsGJZhmqwYlmGarBiWYZqsGJZhmqwYlmGarBiWYZqsGJZhmqwYlmGarPwoJCIiciUfhRl8e00EGUAAAAAASUVORK5CYII=");
    background-size: 100px 100px;
    pointer-events: none;
    opacity: var(--crt-noise-alpha);
    z-index: 9998;
    mix-blend-mode: overlay;
}
 
/* CRT启动动画 */
.crt-startup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    z-index: 10000;
    animation: crt-startup 2s forwards;
    pointer-events: none;
}


@keyframes crt-startup {
/* CRT启动动画 (移除,如果之前添加了.crt-startup div) */
    0% { opacity: 1; }
.crt-startup { display: none; }
    70% { opacity: 1; }
    100% { opacity: 0; visibility: hidden; }
}


/* 标题样式 - 增强CRT效果 */
/* 标题样式 - 简化 */
h1, h2, h3, h4, h5, h6 {
h1, h2, h3, h4, h5, h6 {
     font-family: var(--title-font);
     font-family: var(--title-font);
     font-size: calc(var(--base-font-size) * var(--heading-scale));
     font-size: calc(var(--base-font-size) * var(--title-scale));
     font-weight: normal;
     font-weight: normal;
     text-shadow:  
     text-shadow: var(--crt-text-shadow);  
        0 0 var(--crt-glow-radius) var(--crt-glow-color),
     letter-spacing: 0.03em;
        0 0 calc(var(--crt-glow-radius) * 2) var(--crt-glow-color),
        0 0 calc(var(--crt-glow-radius) * 3) var(--crt-glow-color);
     letter-spacing: 0.05em;
     position: relative;
     position: relative;
     margin-top: 1.5em;
     margin-top: 1.8em;
     margin-bottom: 0.8em;
     margin-bottom: 1em;
     padding-left: 0.5em;
     padding-bottom: 0.3em;
     border-left: 3px solid var(--crt-glow-color);
     border-bottom: 1px solid rgba(0, 0, 0, 0.1); /* 简单的下边框 */
    color: #111;
}
}


h1::after, h2::after, h3::after {
/* 移除之前添加的标题:after伪元素 */
    content: "";
h1::after, h2::after, h3::after { content: none; }
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, var(--crt-glow-color), transparent);
}


body h1 {
body h1 {
    font-family: var(--title-font) !important;
     font-size: calc(var(--base-font-size) * 1.8); /* 调整标题大小 */
    color: #333;
    text-transform: uppercase;
     font-size: calc(var(--base-font-size) * 2);
}
}
h2 { font-size: calc(var(--base-font-size) * 1.6); }
h3 { font-size: calc(var(--base-font-size) * 1.4); }
h4 { font-size: calc(var(--base-font-size) * 1.2); }
h5, h6 { font-size: calc(var(--base-font-size) * 1.1); }


h2 {
/* 链接样式 - 增加质感 */
    font-size: calc(var(--base-font-size) * 1.8);
}
 
h3 {
    font-size: calc(var(--base-font-size) * 1.6);
}
 
h4 {
    font-size: calc(var(--base-font-size) * 1.4);
}
 
h5, h6 {
    font-size: calc(var(--base-font-size) * 1.2);
}
 
/* 链接样式 - 更科幻的风格 */
a {
a {
     color: var(--link-color);
     color: var(--link-color);
     text-decoration: none;
     text-decoration: none;
     position: relative;
     position: relative;
     transition: color 0.2s ease, text-shadow 0.2s ease;
     transition: color 0.2s ease, background-color 0.2s ease, text-shadow 0.2s ease;
     padding: 0 2px;
     padding: 1px 3px;
    border-radius: 2px;
    text-shadow: 0 0 3px rgba(0, 100, 255, 0.1);
}
}


a:hover {
a:hover {
     color: var(--link-color-active);
     color: var(--link-color-active);
     text-shadow: 0 0 var(--crt-glow-radius) rgba(250, 167, 0, 0.3),
     background-color: rgba(250, 167, 0, 0.1);
                0 0 calc(var(--crt-glow-radius) * 2) rgba(250, 167, 0, 0.2);
    text-shadow: 0 0 var(--crt-glow-radius) rgba(250, 167, 0, 0.4);
    background-color: rgba(250, 167, 0, 0.05);
    border-radius: 2px;
}
}


a::after {
a::after { content: none; } /* 移除之前的下划线动画 */
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--link-color-active);
    transition: width 0.3s ease;
}
 
a:hover::after {
    width: 100%;
}


a.new {
a.new {
     color: #ba0000;
     color: #ba0000;
    text-shadow: 0 0 3px rgba(186, 0, 0, 0.2);
}
a.new:hover {
    background-color: rgba(186, 0, 0, 0.1);
    text-shadow: 0 0 var(--crt-glow-radius) rgba(186, 0, 0, 0.4);
}
}


/* Infobox样式 - 更明显的CRT效果 */
/* Infobox样式 - 调整 */
.notaninfobox {
.notaninfobox {
     position: relative;
     position: relative;
第331行: 第245行:
     margin: 0 0 1em 1em;
     margin: 0 0 1em 1em;
     width: 350px;
     width: 350px;
     font-size: 90%;
     font-size: calc(var(--base-font-size) * 0.9);
     background-color: var(--custom-table-background);
     background-color: rgba(248, 249, 250, 0.9); /* 背景色微调 */
     float: right;
     float: right;
     border: 1px solid var(--custom-border-gray);
     border: 1px solid rgba(0, 0, 0, 0.15);
     padding: 2px;
     padding: 2px;
     overflow: auto;
     overflow: auto;
第340行: 第254行:
     overflow-wrap: anywhere;
     overflow-wrap: anywhere;
     box-shadow:  
     box-shadow:  
         0 0 var(--crt-glow-radius) var(--crt-glow-color),
         2px 2px 5px rgba(0, 0, 0, 0.08),
         0 0 calc(var(--crt-glow-radius) * 3) rgba(0, 255, 50, 0.1);
         inset 0 0 10px rgba(0, 255, 100, 0.04);
     animation: flicker 60s infinite;
     animation: flicker 70s infinite alternate;
     border-radius: 3px;
     border-radius: 3px;
}
}
第367行: 第281行:
     font-weight: normal;
     font-weight: normal;
     text-align: center;
     text-align: center;
     font-size: 120%;
     font-size: 115%; /* 调整标题大小 */
     background-color: var(--custom-mcwiki-header-color);
     background: linear-gradient(to bottom, #d0e0f8, var(--custom-mcwiki-header-color)); /* 渐变背景 */
     text-shadow: 0 0 var(--crt-glow-radius) var(--crt-glow-color);
    color: #333;
     padding: 5px 2px;
     text-shadow: 0 1px 1px rgba(255, 255, 255, 0.5), var(--crt-text-shadow);
    position: relative;
     padding: 6px 4px;
     border-bottom: 1px solid rgba(0, 0, 0, 0.1);
     border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}
}
第406行: 第320行:


.notaninfobox .infobox-row .infobox-row-label {
.notaninfobox .infobox-row .infobox-row-label {
     font-family: var(--pixel-font);
     font-family: var(--UI-font);
     font-weight: normal;
     font-weight: 600; /* 加粗标签 */
     display: flex;
     color: #444;
    align-items: center;
     text-shadow: none;
     text-shadow: 0 0 var(--crt-glow-radius) var(--crt-glow-color);
}
}


.notaninfobox .infobox-rows .infobox-row:nth-child(2n) .infobox-row-label,
.notaninfobox .infobox-rows .infobox-row:nth-child(2n) .infobox-row-label,
.notaninfobox .infobox-rows .infobox-row:nth-child(2n) .infobox-row-field {
.notaninfobox .infobox-rows .infobox-row:nth-child(2n) .infobox-row-field {
     background-color: var(--custom-table-alternate-background);
     background-color: rgba(230, 231, 232, 0.7); /* 调整隔行背景色 */
}
}


第497行: 第410行:
}
}


/* 页面底部导航框(2011年8月16日引自中文维基)(所谓大家族模板) */
/* 页面底部导航框 - 调整 */
table.navbox{
table.navbox{
     border: 1px solid #aaa;
     border: 1px solid #bbb;
     clear: both;
     background-color: rgba(253, 253, 253, 0.95);
    margin: auto;
     box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.07);
    padding: 1px;
    text-align: center;
    width: 100%;
     box-shadow: 0 0 var(--crt-glow-radius) var(--crt-glow-color);
}
}
.navbox-title, table.navbox th{
table.navbox + table.navbox{
     background: linear-gradient(to bottom, #c5f0c5, #a5e4a5);
     margin-top: -1px;
    color: #224422;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.4), var(--crt-text-shadow);
}
}
.navbox-abovebelow, .navbox-group, .navbox-subgroup .navbox-title{
.navbox-title,
     background: linear-gradient(to bottom, #d0f5d0, #c0ecc0);
.navbox-abovebelow,
     color: #335533;
table.navbox th{
     text-shadow: 0 1px 1px rgba(255, 255, 255, 0.3), var(--crt-text-shadow);
     padding-left: 1em;
     padding-right: 1em;
     text-align: center;
    font-family: var(--pixel-font);
}
}
.navbox-subgroup .navbox-group, .navbox-subgroup .navbox-abovebelow{
.navbox-group{
     background: linear-gradient(to bottom, #f0fff0, #e6f6e6);
    font-weight: normal;
    white-space: nowrap;
    font-family: var(--pixel-font);
}
.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;
    text-shadow: 0 0 var(--crt-glow-radius) var(--crt-glow-color);
}
.navbox-abovebelow,
.navbox-group,
.navbox-subgroup .navbox-title{
     background: none repeat scroll 0 0 #c0ecc0;
    text-shadow: 0 0 var(--crt-glow-radius) var(--crt-glow-color);
}
.navbox-subgroup .navbox-group,
.navbox-subgroup .navbox-abovebelow{
    background: none repeat scroll 0 0 #e6f6e6;
}
}
.navbox-even{
.navbox-even{
     background: none repeat scroll 0 0 #f5fcf5;
     background-color: rgba(245, 252, 245, 0.8);
}
}
.navbox-odd{
.navbox-odd{
     background: none repeat scroll 0 0 #fdfdfd;
     background-color: rgba(253, 253, 253, 0.8);
}
}


/* 按钮样式 - 以.collapseButton为例 */
.collapseButton {
.collapseButton {
    font-family: var(--UI-font);
    font-size: calc(var(--base-font-size) * 0.85);
    padding: 3px 8px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 3px;
    background: linear-gradient(to bottom, #eee, #ddd);
    color: #333;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.15s ease;
     float: right;
     float: right;
     font-weight: 400;
     font-weight: normal;
     text-align: right;
     text-align: right;
     width: auto;
     width: auto;
    margin: 2px 4px;
}
}


.navbox .collapseButton {
.collapseButton:hover {
     width: 6em;
     background: linear-gradient(to bottom, #f5f5f5, #e0e0e0);
    border-color: rgba(0, 0, 0, 0.3);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
}


.navbar {
.collapseButton:active {
     position: relative;
     background: linear-gradient(to bottom, #ddd, #ccc);
     min-height: 23px !important;
     box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2);
     margin-bottom: 0px !important;
     text-shadow: none;
    border: 1px solid transparent;
}
}


.navbox-title .Wikiplus-Edit-EveryWhereBtn {
.navbox .collapseButton {
     display: none;
     width: 6em;
}
 
@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;
    }
}
}


第703行: 第572行:
}
}


/* 表格样式 - 增强CRT效果 */
/* 表格样式 - 调整 */
table {
table {
     border-collapse: collapse;
     border: 1px solid #ccc; /* 更清晰的边框 */
     background-color: var(--custom-table-background);
     background-color: rgba(248, 249, 250, 0.9);
     box-shadow:  
     box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.07);
        0 0 var(--crt-glow-radius) var(--crt-glow-color),
        0 0 15px rgba(0, 0, 0, 0.05);
     border-radius: 3px;
     border-radius: 3px;
     margin: 1em 0;
     margin: 1.2em 0;
}
}


table th {
table th {
     background-color: var(--custom-table-header-background);
     background: linear-gradient(to bottom, #f5f6f7, var(--custom-table-header-background));
     font-family: var(--pixel-font);
    color: #333;
     font-weight: normal;
     font-family: var(--UI-font);
     text-shadow: 0 0 var(--crt-glow-radius) var(--crt-glow-color);
     font-weight: 600; /* 加粗表头 */
     padding: 8px 12px;
     text-shadow: 0 1px 1px rgba(255, 255, 255, 0.5), var(--crt-text-shadow);
    position: relative;
     padding: 10px 14px; /* 增加内边距 */
}
}


table td, table th {
table td, table th {
     border: 1px solid var(--custom-border-gray);
     border: 1px solid #d8d9da;
     padding: 0.25em 0.5em;
     padding: 8px 12px; /* 调整单元格内边距 */
     transition: background-color 0.2s ease;
     transition: background-color 0.2s ease;
     font-size: calc(var(--base-font-size) * 0.9);
     font-size: calc(var(--base-font-size) * 0.95); /* 调整表格字体 */
}
}


table tr:nth-child(even) td {
    background-color: rgba(240, 241, 242, 0.7);
}
table tr:hover td {
table tr:hover td {
     background-color: rgba(0, 255, 50, 0.05);
     background-color: rgba(0, 255, 100, 0.08); /* 调整悬停背景色 */
}
}


/* 代码样式 - 更科技感 */
/* 代码样式 - 调整 */
pre, code {
pre, code {
     font-family: var(--pixel-font);
     font-family: var(--pixel-font);
     font-size: calc(var(--base-font-size) * var(--code-scale));
     font-size: calc(var(--base-font-size) * var(--code-scale));
     background-color: var(--custom-code-background);
     background-color: rgba(240, 240, 240, 0.8); /* 代码背景 */
     border: 1px solid var(--custom-border-gray);
     border: 1px solid #d0d0d0;
     padding: 0.2em 0.4em;
     padding: 0.3em 0.5em;
     text-shadow: 0 0 var(--crt-glow-radius) var(--crt-glow-color);
     text-shadow: none; /* 代码块移除辉光 */
     border-radius: 3px;
     border-radius: 3px;
    color: #1a1a1a;
}
}


第748行: 第619行:
     padding: 1em;
     padding: 1em;
     overflow-x: auto;
     overflow-x: auto;
     background-color: rgba(0, 0, 0, 0.03);
     background-color: rgba(235, 237, 240, 0.85);
     position: relative;
     box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}
}


pre::before {
pre::before { content: none; } /* 移除之前的CODE标签 */
    content: "CODE";
    position: absolute;
    top: 0;
    right: 0;
    font-size: 10px;
    background-color: rgba(0, 0, 0, 0.1);
    padding: 2px 8px;
    color: #666;
    border-bottom-left-radius: 4px;
}


/* 确保文本内容在荧光字体下清晰可读 */
/* 确保文本内容在荧光字体下清晰可读 */
p, li, td, th, figcaption, blockquote, cite {
p, li, td, th, figcaption, blockquote, cite {
     font-family: var(--pixel-font);
     /* font-family 已在body设置 */
     font-size: var(--base-font-size);
     /* font-size 已在body或table设置 */
     line-height: 1.6;
     line-height: 1.65;
     letter-spacing: 0.02em;
     letter-spacing: 0.01em; /* 轻微调整字间距 */
     position: relative;
     position: relative;
    text-shadow: var(--crt-text-shadow); /* 对大部分文本应用辉光 */
}
}


/* 图片效果 - 增强 */
/* 图片效果 - 微调 */
img {
img {
     max-width: 100%;
     max-width: 100%;
     height: auto;
     height: auto;
     transition: all 0.3s ease;
     transition: all 0.25s ease;
     border-radius: 3px;
     border-radius: 3px;
     border: 1px solid transparent;
     border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
}


img:hover {
img:hover {
     box-shadow:  
     box-shadow:  
         0 0 var(--crt-glow-radius) var(--crt-glow-color),
         0 2px 6px rgba(0, 0, 0, 0.1),
         0 0 calc(var(--crt-glow-radius) * 2) var(--crt-glow-color),
         0 0 8px var(--crt-glow-color); /* 调整悬停辉光 */
        0 0 15px rgba(0, 0, 0, 0.1);
     transform: scale(1.015);
     transform: scale(1.01);
     border-color: rgba(0, 255, 100, 0.3);
     border-color: rgba(0, 255, 50, 0.2);
}
}


/* 引入CRT启动效果 */
/* 滚动条样式 - 增加质感 */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 10000;
    animation: startup 2s forwards;
    pointer-events: none;
}
 
@keyframes startup {
    0% { opacity: 1; }
    40% { opacity: 1; }
    60% { opacity: 0.5; }
    100% { opacity: 0; visibility: hidden; }
}
 
/* 滚动条样式 */
::-webkit-scrollbar {
::-webkit-scrollbar {
     width: 10px;
     width: 12px;
     height: 10px;
     height: 12px;
}
}


::-webkit-scrollbar-track {
::-webkit-scrollbar-track {
     background: rgba(0, 0, 0, 0.05);
     background: rgba(0, 0, 0, 0.04);
     border-radius: 5px;
     border-radius: 6px;
    box-shadow: inset 0 0 3px rgba(0,0,0,0.1);
}
}


::-webkit-scrollbar-thumb {
::-webkit-scrollbar-thumb {
     background: rgba(0, 0, 0, 0.2);
     background: linear-gradient(to bottom, #aaa, #888);
     border-radius: 5px;
     border-radius: 6px;
     border: 2px solid rgba(0, 0, 0, 0.05);
     border: 1px solid rgba(0, 0, 0, 0.15);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
}


::-webkit-scrollbar-thumb:hover {
::-webkit-scrollbar-thumb:hover {
     background: rgba(0, 0, 0, 0.3);
     background: linear-gradient(to bottom, #bbb, #999);
}
}


/* 修复扫描线显示问题 */
/* 修复扫描线显示问题 (已在body::after中实现) */
@media screen {
@media screen {
    :root {
     /* 移除之前的body .scanlines规则 */
        --scanlines-display: block;
     body .scanlines { display: none; }
    }
   
     /* 为了确保扫描线效果能够正常显示,添加一个额外的扫描线元素 */
     body .scanlines {
        content: "";
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: repeating-linear-gradient(
            to bottom,
            transparent 0px,
            rgba(0, 0, 0, 0.1) 1px,
            transparent 2px,
            transparent 4px
        );
        pointer-events: none;
        z-index: 9997;
        opacity: 0.4;
        mix-blend-mode: overlay;
    }
}
}


/* 打印样式覆盖 */
/* 打印样式覆盖 - 保持不变 */
@media print {
@media print {
     :root {
     :root {
第904行: 第724行:
}
}


/* 添加扫描线DOM元素 */
/* 移除之前的额外扫描线 DOM 元素 body::after */
body::after {
/* (注意:上面的body::after已经重新定义为扫描线,所以这个注释提醒移除重复定义,但实际修改是替换) */
    content: "";
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        to bottom,
        transparent 0px,
        rgba(0, 0, 0, 0.07) 1px,
        transparent 2px,
        transparent 4px
    );
    pointer-events: none;
    z-index: 9997;
    opacity: 0.5;
    mix-blend-mode: overlay;
}


/* 为含有中文的元素设置字体大小 */
/* 移除之前添加的语言特定字体大小规则 */
:lang(zh),  
:lang(zh),  
:lang(zh-CN),  
:lang(zh-CN),  
:lang(zh-TW),  
:lang(zh-TW),  
:lang(zh-HK) {
:lang(zh-HK) {
font-size: calc(var(--base-font-size) * var(--chinese-scale));
font-size: inherit; /* 恢复继承 */
}
}


/* 媒体查询,适应不同设备 */
/* 媒体查询,适应不同设备 - 调整基础字号 */
@media screen and (max-width: 768px) {
@media screen and (max-width: 768px) {
:root {
:root {
--base-font-size: 14px;
--base-font-size: 14px;
}
}
    body { padding: 1rem; margin: 0.5rem; }
}
}


@media screen and (min-width: 1440px) {
@media screen and (min-width: 1440px) {
:root {
:root {
--base-font-size: 18px;
--base-font-size: 16px; /* 在大屏幕上稍微增大 */
}
}
}
}


/* 使用Press Start 2P时的特别设置 */
/* 边栏样式 - 重新设计 */
@supports (font-family: 'Press Start 2P') {
.side-block { /* 假设这是边栏容器 */
:root {
    --sideblock-heading-border-color: var(--custom-border-green);
--pixel-font: 'VT323', 'VonwaonBitmap 16px', monospace;
    --sideblock-heading-text-color: #111;
}
   
    background: linear-gradient(to bottom, rgba(225, 235, 245, 0.85), rgba(200, 215, 230, 0.9));
h1, h2, h3, h4, h5, h6 {
    border: 1px solid rgba(0, 0, 0, 0.2);
font-family: 'Press Start 2P', var(--pixel-font);
    border-radius: 4px;
letter-spacing: -0.05em;
    margin: 0.5rem 0.5rem 1rem 0;
line-height: 1.4;
    padding: 0.5rem;
}
    box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.1), inset 0 0 15px rgba(0, 200, 255, 0.05);
    font-family: var(--UI-font);
}
 
.side-block .heading {
    font-family: var(--title-font);
    font-size: calc(var(--base-font-size) * 1); /* 调整边栏标题大小 */
    color: var(--sideblock-heading-text-color);
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.4), var(--crt-text-shadow);
    padding: 0.4rem 0.6rem;
    margin: -0.5rem -0.5rem 0.5rem -0.5rem; /* 使其贴合容器顶部 */
    border-bottom: 1px solid rgba(0, 0, 0, 0.15);
    background: linear-gradient(to bottom, #e8f0f8, #d8e2f0);
    border-top-left-radius: 3px;
    border-top-right-radius: 3px;
    letter-spacing: 0.05em;
}
 
.side-block .heading p { /* 如果标题在p标签里 */
    margin: 0;
    padding: 0;
}
 
.side-block div.menu-item {
    margin: 0 -0.5rem; /* 左右贴合容器 */
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.side-block div.menu-item:last-child {
    border-bottom: none;
}
 
.side-block div.menu-item a {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--link-color);
    text-decoration: none;
    font-size: calc(var(--base-font-size) * 0.95);
    transition: background-color 0.2s ease, color 0.2s ease;
    text-shadow: 0 0 2px rgba(0, 100, 255, 0.1);
}
 
.side-block div.menu-item a:hover {
    background-color: rgba(0, 150, 255, 0.1);
    color: var(--link-color-active);
    text-shadow: 0 0 5px rgba(0, 150, 255, 0.3);
}
 
/* 移除hovers库样式 - 如果不再需要 */
[class*='hovers-'] {
    /* 可以保留需要的,或完全移除 */
    /* display: none; */
}
}

2025年4月12日 (六) 21:53的版本

/* 这里放置的CSS将应用于所有皮肤 */

@import url("https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap");
@import url("https://fastly.jsdelivr.net/gh/hoah2333/Fonts@main/Typeface-VonwaonBitmap-16px.css");

:root {
	--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;
	--custom-closed-topic-neutral: #eef;
	--custom-closed-topic-no: #fee;
	--custom-closed-topic-yes: #efe;
	--custom-code-background: #f8f9fa;
	--custom-load-page-button-color: #fff8;
	--custom-main-page-background: #fcfcfc;
	--custom-main-page-border: var(--custom-border-gray);
	--custom-main-page-edition-subheader: #333;
	--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;
	
	/* CRT效果相关变量 - 调整效果 */
	--crt-scanline-alpha: 0.1; /* 调整扫描线透明度 */
	--crt-flicker-alpha: 0.03;
	--crt-noise-alpha: 0.025; /* 增加轻微噪点 */
	--crt-glow-radius: 0.08em;
	--crt-glow-color: rgba(0, 255, 100, 0.18); /* 调整辉光颜色和强度 */
	--crt-text-shadow: 0 0 var(--crt-glow-radius) var(--crt-glow-color);
	
	/* 网格背景相关变量 */
	--grid-color: rgba(0, 0, 0, 0.08);
	--grid-size: 40px;
	--grid-line-width: 1px;
	
	/* 字体设置 - 移除VT323 */
	--pixel-font: 'VonwaonBitmap 16px', monospace;
	--title-font: 'Press Start 2P', var(--pixel-font);
	--body-font: 'Microsoft YaHei', '微软雅黑', var(--pixel-font), Verdana, Geneva, sans-serif; /* 将雅黑置前 */
	--UI-font: var(--body-font);
	
	/* 字体大小设置 - 简化 */
	--base-font-size: 15px; /* 统一基础字号 */
	--title-scale: 1.4;
	--code-scale: 0.9;
	
	/* 边框和内间距设置 */
    --side-border-thickness: 0.1rem;
    --main-border-thickness: 0.05rem;
    
    /* 启用/禁用扫描线效果 */
    --scanlines-display: block;
}

/* 基础CRT效果 */
@keyframes flicker {
    0%, 100% { opacity: 0.98; }
    25% { opacity: 0.95; }
    50% { opacity: 0.99; }
    75% { opacity: 0.96; }
}

@keyframes subtle-scanline {
    0% { background-position: 0 0; }
    100% { background-position: 0 4px; }
}

@keyframes crt-on {
    0% { opacity: 0; filter: brightness(4) saturate(0); }
    20% { opacity: 0.5; }
    100% { opacity: 1; filter: brightness(1) saturate(1); }
}

/* 全局和背景样式 - 增加纹理 */
html {
    min-height: 100%;
    background-color: #f0f0f0; /* 轻微调整背景色 */
    background-image: 
        /* 网格线 */
        linear-gradient(var(--grid-color) var(--grid-line-width), transparent var(--grid-line-width)),
        linear-gradient(90deg, var(--grid-color) var(--grid-line-width), transparent var(--grid-line-width)),
        /* 细微噪点纹理 */
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4' viewBox='0 0 4 4'%3E%3Cpath fill='%239C92AC' fill-opacity='0.08' d='M1 3h1v1H1V3zm2-2h1v1H3V1z'%3E%3C/path%3E%3C/svg%3E");
    background-size: var(--grid-size) var(--grid-size), var(--grid-size) var(--grid-size), auto;
    background-position: center center;
    animation: crt-on 1s ease-out;
}

body {
    font-family: var(--body-font);
    font-size: var(--base-font-size);
    line-height: 1.65; /* 调整行高 */
    color: #222; /* 深灰色文本 */
    position: relative;
    min-height: calc(100vh - 2rem);
    margin: 1rem;
    padding: 1.5rem;
    background-color: rgba(255, 255, 255, 0.92); /* 轻微增加透明度 */
    border-radius: 4px;
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.1),
        inset 0 0 30px rgba(0, 255, 100, 0.05); /* 调整内阴影 */
    animation: flicker 90s infinite alternate ease-in-out;
    overflow: hidden; /* 隐藏超出部分,配合扫描线 */
}

/* 扫描线效果 - 使用单一伪元素 */
body::after {
    content: "";
    display: var(--scanlines-display);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 0px,
        rgba(0, 0, 0, 0) 2px, /* 透明区域 */
        rgba(0, 0, 0, var(--crt-scanline-alpha)) 3px, /* 扫描线 */
        rgba(0, 0, 0, var(--crt-scanline-alpha)) 4px /* 扫描线宽度 */
    );
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.6;
    mix-blend-mode: multiply; /* 尝试不同的混合模式 */
    animation: subtle-scanline 10s linear infinite;
}

/* 移除之前的噪点效果伪元素(如果存在),现在背景已包含噪点 */

/* CRT启动动画 (移除,如果之前添加了.crt-startup div) */
.crt-startup { display: none; }

/* 标题样式 - 简化 */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--title-font);
    font-size: calc(var(--base-font-size) * var(--title-scale));
    font-weight: normal;
    text-shadow: var(--crt-text-shadow); 
    letter-spacing: 0.03em;
    position: relative;
    margin-top: 1.8em;
    margin-bottom: 1em;
    padding-bottom: 0.3em;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1); /* 简单的下边框 */
    color: #111;
}

/* 移除之前添加的标题:after伪元素 */
h1::after, h2::after, h3::after { content: none; }

body h1 {
    font-size: calc(var(--base-font-size) * 1.8); /* 调整标题大小 */
}
h2 { font-size: calc(var(--base-font-size) * 1.6); }
h3 { font-size: calc(var(--base-font-size) * 1.4); }
h4 { font-size: calc(var(--base-font-size) * 1.2); }
h5, h6 { font-size: calc(var(--base-font-size) * 1.1); }

/* 链接样式 - 增加质感 */
a {
    color: var(--link-color);
    text-decoration: none;
    position: relative;
    transition: color 0.2s ease, background-color 0.2s ease, text-shadow 0.2s ease;
    padding: 1px 3px;
    border-radius: 2px;
    text-shadow: 0 0 3px rgba(0, 100, 255, 0.1);
}

a:hover {
    color: var(--link-color-active);
    background-color: rgba(250, 167, 0, 0.1);
    text-shadow: 0 0 var(--crt-glow-radius) rgba(250, 167, 0, 0.4);
}

a::after { content: none; } /* 移除之前的下划线动画 */

a.new {
    color: #ba0000;
    text-shadow: 0 0 3px rgba(186, 0, 0, 0.2);
}
a.new:hover {
    background-color: rgba(186, 0, 0, 0.1);
    text-shadow: 0 0 var(--crt-glow-radius) rgba(186, 0, 0, 0.4);
}

/* Infobox样式 - 调整 */
.notaninfobox {
    position: relative;
    clear: right;
    margin: 0 0 1em 1em;
    width: 350px;
    font-size: calc(var(--base-font-size) * 0.9);
    background-color: rgba(248, 249, 250, 0.9); /* 背景色微调 */
    float: right;
    border: 1px solid rgba(0, 0, 0, 0.15);
    padding: 2px;
    overflow: auto;
    z-index: 1;
    overflow-wrap: anywhere;
    box-shadow: 
        2px 2px 5px rgba(0, 0, 0, 0.08),
        inset 0 0 10px rgba(0, 255, 100, 0.04);
    animation: flicker 70s infinite alternate;
    border-radius: 3px;
}

@media all and (max-width: 511px) {
    .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-family: var(--title-font);
    font-weight: normal;
    text-align: center;
    font-size: 115%; /* 调整标题大小 */
    background: linear-gradient(to bottom, #d0e0f8, var(--custom-mcwiki-header-color)); /* 渐变背景 */
    color: #333;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.5), var(--crt-text-shadow);
    padding: 6px 4px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.infobox-imagearea {
    text-align: center;
    padding: 4px;
}

.infobox-imagearea > div:not(:first-child) {
    padding-top: 1em;
}

/* Horizontally centre animated images */
.infobox-imagearea .animated {
    display: inline-flex;
    align-items: center;
}

.notaninfobox .infobox-rows {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 1px;
}

.notaninfobox .infobox-rows .infobox-row {
    display: contents;
}

.notaninfobox .infobox-row .infobox-row-label,
.notaninfobox .infobox-row .infobox-row-field {
    padding: 4px;
}

.notaninfobox .infobox-row .infobox-row-label {
    font-family: var(--UI-font);
    font-weight: 600; /* 加粗标签 */
    color: #444;
    text-shadow: none;
}

.notaninfobox .infobox-rows .infobox-row:nth-child(2n) .infobox-row-label,
.notaninfobox .infobox-rows .infobox-row:nth-child(2n) .infobox-row-field {
    background-color: rgba(230, 231, 232, 0.7); /* 调整隔行背景色 */
}

/* Infoboxes with tabber */
.tabber-container-infobox .tabber .tabbertab,
.tabber-container-infobox ul.tabbernav li a,
.tabber-container-infobox ul.tabbernav li.tabberactive a {
    background: none;
    border: none;
}

.tabber-container-infobox .tabber .tabbertab {
    padding: 0;
}

.tabber-container-infobox ul.tabbernav {
    font: inherit;
    font-size: 100%;
}

.tabber-container-infobox ul.tabbernav li a:hover {
    color: #000;
}

.tabber-container-infobox ul.tabbernav > li {
    margin-bottom: 5px;
    padding: 0;
}

.tabber-container-infobox ul.tabbernav > li > a {
    color: #595959;
    padding-bottom: 1px;
    display: block;
    font-family: var(--pixel-font);
}

.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 {
    border: none;
}

.modulebox {
    border: 1px solid #ccc;
    padding: 10px;
    margin: 10px 0;
    background-color: #f9f9f9;
    box-shadow: 0 0 var(--crt-glow-radius) var(--crt-glow-color);
}

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

.infobox-rows p {
    margin: 0;
}

.infobox-rows dl + dl {
    margin-top: -0.4em;
}

.infobox-rows dl:last-child {
    margin-bottom: 0.2em;
}

.infobox-footer {
    text-align: center;
    font-family: var(--pixel-font);
    text-shadow: 0 0 var(--crt-glow-radius) var(--crt-glow-color);
}

/* 页面底部导航框 - 调整 */
table.navbox{
    border: 1px solid #bbb;
    background-color: rgba(253, 253, 253, 0.95);
    box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.07);
}
.navbox-title, table.navbox th{
    background: linear-gradient(to bottom, #c5f0c5, #a5e4a5);
    color: #224422;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.4), var(--crt-text-shadow);
}
.navbox-abovebelow, .navbox-group, .navbox-subgroup .navbox-title{
    background: linear-gradient(to bottom, #d0f5d0, #c0ecc0);
    color: #335533;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.3), var(--crt-text-shadow);
}
.navbox-subgroup .navbox-group, .navbox-subgroup .navbox-abovebelow{
    background: linear-gradient(to bottom, #f0fff0, #e6f6e6);
}
.navbox-even{
    background-color: rgba(245, 252, 245, 0.8);
}
.navbox-odd{
    background-color: rgba(253, 253, 253, 0.8);
}

/* 按钮样式 - 以.collapseButton为例 */
.collapseButton {
    font-family: var(--UI-font);
    font-size: calc(var(--base-font-size) * 0.85);
    padding: 3px 8px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 3px;
    background: linear-gradient(to bottom, #eee, #ddd);
    color: #333;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.15s ease;
    float: right;
    font-weight: normal;
    text-align: right;
    width: auto;
    margin: 2px 4px;
}

.collapseButton:hover {
    background: linear-gradient(to bottom, #f5f5f5, #e0e0e0);
    border-color: rgba(0, 0, 0, 0.3);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.collapseButton:active {
    background: linear-gradient(to bottom, #ddd, #ccc);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2);
    text-shadow: none;
}

.navbox .collapseButton {
    width: 6em;
}

/* 黑幕效果 */
.heimu,
.heimu rt{
    --heimu-color: #252525;
    --heimu-text-color: #fff;
    --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);
}

.heimu,
.heimu a,
a .heimu,
a.new .heimu,
span.heimu a:visited,
span.heimu a.new,
span.heimu a.external,
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:active{
    color: var(--heimu-text-color);
}

span.heimu:hover a,
a:hover span.heimu{
    color: var(--heimu-link-color);
}

span.heimu:hover a:visited,
a:visited:hover span.heimu{
    color: var(--heimu-visited-link-color);
}

span.heimu:hover a.new,
a.new:hover span.heimu{
    color: var(--heimu-new-link-color);
}

span.heimu a.new:hover:visited,
a.new:hover:visited span.heimu{
    color: var(--heimu-new-visited-link-color);
}

span.heimu:hover a.extiw:visited,
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-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;
}
 
a .colormu-bri {
    color: inherit;
}
a:hover .colormu>span, a:active .colormu>span,
.colormu-drk.colormu_toggle_on, .colormu_toggle_on>span, .colormu-drk.colormu_toggle_on a>span {
    color: inherit !important;
}

/* 表格样式 - 调整 */
table {
    border: 1px solid #ccc; /* 更清晰的边框 */
    background-color: rgba(248, 249, 250, 0.9);
    box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.07);
    border-radius: 3px;
    margin: 1.2em 0;
}

table th {
    background: linear-gradient(to bottom, #f5f6f7, var(--custom-table-header-background));
    color: #333;
    font-family: var(--UI-font);
    font-weight: 600; /* 加粗表头 */
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.5), var(--crt-text-shadow);
    padding: 10px 14px; /* 增加内边距 */
}

table td, table th {
    border: 1px solid #d8d9da;
    padding: 8px 12px; /* 调整单元格内边距 */
    transition: background-color 0.2s ease;
    font-size: calc(var(--base-font-size) * 0.95); /* 调整表格字体 */
}

table tr:nth-child(even) td {
    background-color: rgba(240, 241, 242, 0.7);
}
table tr:hover td {
    background-color: rgba(0, 255, 100, 0.08); /* 调整悬停背景色 */
}

/* 代码样式 - 调整 */
pre, code {
    font-family: var(--pixel-font);
    font-size: calc(var(--base-font-size) * var(--code-scale));
    background-color: rgba(240, 240, 240, 0.8); /* 代码背景 */
    border: 1px solid #d0d0d0;
    padding: 0.3em 0.5em;
    text-shadow: none; /* 代码块移除辉光 */
    border-radius: 3px;
    color: #1a1a1a;
}

pre {
    padding: 1em;
    overflow-x: auto;
    background-color: rgba(235, 237, 240, 0.85);
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

pre::before { content: none; } /* 移除之前的CODE标签 */

/* 确保文本内容在荧光字体下清晰可读 */
p, li, td, th, figcaption, blockquote, cite {
    /* font-family 已在body设置 */
    /* font-size 已在body或table设置 */
    line-height: 1.65;
    letter-spacing: 0.01em; /* 轻微调整字间距 */
    position: relative;
    text-shadow: var(--crt-text-shadow); /* 对大部分文本应用辉光 */
}

/* 图片效果 - 微调 */
img {
    max-width: 100%;
    height: auto;
    transition: all 0.25s ease;
    border-radius: 3px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

img:hover {
    box-shadow: 
        0 2px 6px rgba(0, 0, 0, 0.1),
        0 0 8px var(--crt-glow-color); /* 调整悬停辉光 */
    transform: scale(1.015);
    border-color: rgba(0, 255, 100, 0.3);
}

/* 滚动条样式 - 增加质感 */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.04);
    border-radius: 6px;
    box-shadow: inset 0 0 3px rgba(0,0,0,0.1);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #aaa, #888);
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #bbb, #999);
}

/* 修复扫描线显示问题 (已在body::after中实现) */
@media screen {
    /* 移除之前的body .scanlines规则 */
    body .scanlines { display: none; }
}

/* 打印样式覆盖 - 保持不变 */
@media print {
    :root {
        --scanlines-display: none;
    }
    
    body::before,
    body::after,
    body .scanlines {
        display: none !important;
    }
    
    * {
        text-shadow: none !important;
        box-shadow: none !important;
        animation: none !important;
    }
    
    body, p, li, td, th {
        font-family: serif !important;
    }
    
    h1, h2, h3, h4, h5, h6 {
        font-family: sans-serif !important;
        font-weight: bold !important;
    }
    
    a {
        color: #000 !important;
        text-decoration: underline !important;
    }
    
    html {
        background: none !important;
    }
    
    body {
        background: #fff !important;
        box-shadow: none !important;
    }
}

/* 移除之前的额外扫描线 DOM 元素 body::after */
/* (注意:上面的body::after已经重新定义为扫描线,所以这个注释提醒移除重复定义,但实际修改是替换) */

/* 移除之前添加的语言特定字体大小规则 */
:lang(zh), 
:lang(zh-CN), 
:lang(zh-TW), 
:lang(zh-HK) {
	font-size: inherit; /* 恢复继承 */
}

/* 媒体查询,适应不同设备 - 调整基础字号 */
@media screen and (max-width: 768px) {
	:root {
		--base-font-size: 14px;
	}
    body { padding: 1rem; margin: 0.5rem; }
}

@media screen and (min-width: 1440px) {
	:root {
		--base-font-size: 16px; /* 在大屏幕上稍微增大 */
	}
}

/* 边栏样式 - 重新设计 */
.side-block { /* 假设这是边栏容器 */
    --sideblock-heading-border-color: var(--custom-border-green);
    --sideblock-heading-text-color: #111;
    
    background: linear-gradient(to bottom, rgba(225, 235, 245, 0.85), rgba(200, 215, 230, 0.9));
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    margin: 0.5rem 0.5rem 1rem 0;
    padding: 0.5rem;
    box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.1), inset 0 0 15px rgba(0, 200, 255, 0.05);
    font-family: var(--UI-font);
}

.side-block .heading {
    font-family: var(--title-font);
    font-size: calc(var(--base-font-size) * 1); /* 调整边栏标题大小 */
    color: var(--sideblock-heading-text-color);
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.4), var(--crt-text-shadow);
    padding: 0.4rem 0.6rem;
    margin: -0.5rem -0.5rem 0.5rem -0.5rem; /* 使其贴合容器顶部 */
    border-bottom: 1px solid rgba(0, 0, 0, 0.15);
    background: linear-gradient(to bottom, #e8f0f8, #d8e2f0);
    border-top-left-radius: 3px;
    border-top-right-radius: 3px;
    letter-spacing: 0.05em;
}

.side-block .heading p { /* 如果标题在p标签里 */
    margin: 0;
    padding: 0;
}

.side-block div.menu-item {
    margin: 0 -0.5rem; /* 左右贴合容器 */
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.side-block div.menu-item:last-child {
    border-bottom: none;
}

.side-block div.menu-item a {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--link-color);
    text-decoration: none;
    font-size: calc(var(--base-font-size) * 0.95);
    transition: background-color 0.2s ease, color 0.2s ease;
    text-shadow: 0 0 2px rgba(0, 100, 255, 0.1);
}

.side-block div.menu-item a:hover {
    background-color: rgba(0, 150, 255, 0.1);
    color: var(--link-color-active);
    text-shadow: 0 0 5px rgba(0, 150, 255, 0.3);
}

/* 移除hovers库样式 - 如果不再需要 */
[class*='hovers-'] {
    /* 可以保留需要的,或完全移除 */
    /* display: none; */
}