MediaWiki:Common.css:修订间差异

来自Age Of History 2 Chinese Wiki
跳转至:导航、​搜索
无编辑摘要
无编辑摘要
第3行: 第3行:
@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");
@import url("https://fastly.jsdelivr.net/gh/hoah2333/Fonts@main/Typeface-VonwaonBitmap-12px.css"); /* 引入12px字体 */
@import url("https://fastly.jsdelivr.net/gh/hoah2333/Fonts@main/Typeface-VonwaonBitmap-12px.css");


:root {
:root {
第69行: 第69行:
--custom-table-choice-yes: #005600;
--custom-table-choice-yes: #005600;
--custom-table-choice-yes-background: #c6efce;
--custom-table-choice-yes-background: #c6efce;
--custom-table-header-background: #e8ebee;
--custom-table-header-background: #eaecf0;
--custom-topic-30-days: #bbb;
--custom-topic-30-days: #bbb;
--custom-topic-7-days: #ddd;
--custom-topic-7-days: #ddd;
/* CRT效果相关变量 - 进一步调整 */
/* CRT效果相关变量 - 精细调整 */
--crt-scanline-main-alpha: 0.12;
--crt-primary-scanline-alpha: 0.12; /* 主扫描线透明度 */
--crt-scanline-secondary-alpha: 0.06;
--crt-secondary-scanline-alpha: 0.08; /* 副扫描线透明度 */
--crt-scanline-fast-alpha: 0.04;
--crt-fast-scanline-alpha: 0.25; /* 快速扫描线透明度 */
--crt-flicker-alpha: 0.025;
--crt-flicker-alpha: 0.04; /* 屏幕闪烁强度 */
--crt-noise-alpha: 0.03;
--crt-noise-alpha: 0.03; /* 噪点强度 */
--crt-glow-radius: 0.1em;
--crt-glow-radius: 0.08em;
--crt-glow-color: rgba(90, 255, 150, 0.2); /* 调整辉光 */
--crt-glow-color: rgba(0, 255, 100, 0.2); /* 辉光颜色和强度 */
--crt-text-shadow: 0 0 var(--crt-glow-radius) var(--crt-glow-color);
--crt-text-shadow: 0 0 var(--crt-glow-radius) var(--crt-glow-color);
--crt-static-noise-opacity: 0.05;
--crt-vignette-opacity: 0.12; /* 暗角效果强度 */
/* 网格背景相关变量 */
/* 网格背景相关变量 */
--grid-color: rgba(0, 0, 0, 0.07);
--grid-color: rgba(0, 0, 0, 0.08);
--grid-size: 35px;
--grid-size: 40px;
--grid-line-width: 1px;
--grid-line-width: 1px;
/* 字体设置 - 使用VonwaonBitmap 16px/12px */
/* 字体设置 - 只使用VonwaonBitmap */
--font-body: 'VonwaonBitmap 16px', monospace;
--pixel-font-16: 'VonwaonBitmap 16px', monospace;
--font-title: 'VonwaonBitmap 12px', 'Press Start 2P', monospace; /* 12px优先,Press Start备用 */
--pixel-font-12: 'VonwaonBitmap 12px', monospace;
--font-ui: 'VonwaonBitmap 12px', monospace;
--title-font: var(--pixel-font-16);
--body-font: var(--pixel-font-16);
--small-font: var(--pixel-font-12);
--UI-font: var(--pixel-font-12);
/* 基础大小 - Vonwaon是像素字体,直接用16px/12px */
/* 字体大小设置 */
--base-font-size-px: 16;
--base-font-size: 15px;
--ui-font-size-px: 12;
--small-font-size: 13px;
--code-font-size-px: 14; /* 代码可以用16px或稍小 */
--title-scale: 1.3;
--code-scale: 0.9;
/* 边框和质感 */
/* 边框和内间距设置 */
     --main-border-color: rgba(0, 0, 0, 0.2);
     --side-border-thickness: 0.1rem;
     --inner-highlight-color: rgba(255, 255, 255, 0.3);
     --main-border-thickness: 0.05rem;
    --inner-shadow-color: rgba(0, 0, 0, 0.1);
      
      
     /* 启用/禁用扫描线效果 */
     /* 启用/禁用CRT效果 */
     --scanlines-display: block; /* 保持block */
     --crt-effects-display: block;
   
    /* 质感相关变量 */
    --glass-opacity: 0.92;
    --glass-blur: 0px; /* 模糊效果 - 如果浏览器支持 */
    --inset-shadow-depth: 25px;
    --border-shine: rgba(255, 255, 255, 0.1);
    --box-depth: 1px 1px 3px rgba(0, 0, 0, 0.15);
}
}


/* 基础CRT效果动画 */
/* CRT效果动画 */
@keyframes flicker {
@keyframes flicker {
     0%, 100% { opacity: 0.99; filter: brightness(1.0); }
     0%, 100% { opacity: 0.98; }
     25% { opacity: 0.97; filter: brightness(0.98); }
    25% { opacity: 0.94; }
     50% { opacity: 0.98; filter: brightness(1.01); }
     50% { opacity: 0.99; }
     75% { opacity: 0.96; filter: brightness(0.97); }
    75% { opacity: 0.95; }
     83% { opacity: 0.98; }
    90% { opacity: 0.91; }
     93% { opacity: 0.99; }
    97% { opacity: 0.93; }
}
}


@keyframes scanline-main {
/* 主扫描线动画 - 更慢、更明显 */
     0% { background-position: 0 0; }
@keyframes primary-scanline {
     100% { background-position: 0 6px; }
     0% { transform: translateY(-20px); }
     100% { transform: translateY(100vh); }
}
}


@keyframes scanline-secondary {
/* 副扫描线动画 - 中速移动 */
     0% { background-position: 0 1px; } /* 起始偏移 */
@keyframes secondary-scanline {
     100% { background-position: 0 7px; }
     0% { transform: translateY(-100vh); }
     100% { transform: translateY(100vh); }
}
}


@keyframes scanline-fast {
/* 快速扫描线动画 - 快速闪过,更加随机 */
     0% { background-position: 0 0; }
@keyframes fast-scanline {
    100% { background-position: 0 20px; }
     0%, 5% { opacity: 0; transform: translateY(-100vh); }
}
     8% { opacity: var(--crt-fast-scanline-alpha); }
 
     25% { opacity: var(--crt-fast-scanline-alpha); }
@keyframes subtle-noise {
    35% { opacity: 0; }
     0%, 100% { opacity: var(--crt-static-noise-opacity); }
    100% { opacity: 0; transform: translateY(100vh); }
     50% { opacity: calc(var(--crt-static-noise-opacity) * 0.7); }
}
}


@keyframes crt-on {
@keyframes crt-on {
     0% { opacity: 0; filter: brightness(5) saturate(0) contrast(3); }
     0% { opacity: 0; filter: brightness(5) saturate(0); }
     25% { opacity: 0.6; filter: brightness(1.5) saturate(0.5) contrast(1.2); }
    10% { opacity: 0.3; filter: brightness(3) saturate(0.2); }
     100% { opacity: 1; filter: brightness(1) saturate(1) contrast(1); }
     30% { opacity: 0.7; filter: brightness(2) saturate(0.5); }
    50% { opacity: 0.8; filter: brightness(1.5) saturate(0.8); }
     100% { opacity: 1; filter: brightness(1) saturate(1); }
}
}


/* 全局和背景样式 - 增加质感 */
/* 全局和背景样式 - 增强质感 */
html {
html {
     min-height: 100%;
     min-height: 100%;
     background-color: #2a2a2e; /* 深色背景,模拟CRT关闭时的屏幕 */
     background-color: #ffffff;
     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)),
         /* 静态噪点 */
         /* 精细噪点纹理 */
         url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='5' height='5' viewBox='0 0 5 5'%3E%3Cpath fill='%23ffffff' fill-opacity='0.06' d='M0 0h1v1H0V0zm1 1h1v1H1V1zm1 1h1v1H2V2zm1 1h1v1H3V3zm1 1h1v1H4V4z'/%3E%3C/svg%3E");
         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-size: var(--grid-size) var(--grid-size), var(--grid-size) var(--grid-size), auto;
     background-position: center center;
     background-position: center center;
     font-smooth: never; /* 尝试禁用字体平滑 */
     animation: crt-on 2s ease-out;
    -webkit-font-smoothing: none;
    overflow-x: hidden; /* 防止水平滚动条出现 */
}
}


body {
body {
     font-family: var(--font-body);
     font-family: var(--body-font);
     font-size: calc(var(--base-font-size-px) * 1px);
     font-size: var(--base-font-size);
     line-height: 1.7;
     line-height: 1.65;
     color: #ddd; /* CRT亮色文本 */
     color: #222;
     position: relative;
     position: relative;
     min-height: calc(100vh - 2rem);
     min-height: calc(100vh - 2rem);
     margin: 1rem;
     margin: 1rem;
     padding: 1.8rem;
     padding: 1.5rem;
     background-color: rgba(30, 45, 35, 0.96); /* 深绿色调CRT背景 */
     background-color: rgba(255, 255, 255, var(--glass-opacity));
     border: 1px solid var(--main-border-color);
    border-radius: 4px;
    border-radius: 6px; /* 轻微增加圆角 */
     border: 1px solid var(--border-shine);
     box-shadow:  
     box-shadow:  
         0 3px 10px rgba(0, 0, 0, 0.3),
        var(--box-depth),
         inset 0 1px 0 var(--inner-highlight-color), /* 模拟顶部高光 */
         0 3px 12px rgba(0, 0, 0, 0.05),
        inset 0 -1px 0 var(--inner-shadow-color), /* 模拟底部阴影 */
         inset 0 0 var(--inset-shadow-depth) rgba(0, 255, 100, 0.04);
        inset 0 0 50px rgba(90, 255, 150, 0.08); /* 更深的内部辉光 */
     animation: flicker 120s infinite alternate ease-in-out;
     animation: crt-on 1.2s cubic-bezier(0.25, 1, 0.5, 1), /* 调整启动动画 */
     overflow: hidden; /* 隐藏超出部分,配合扫描线 */
              flicker 80s infinite alternate ease-in-out;
    backdrop-filter: blur(var(--glass-blur)); /* 支持的浏览器会有磨砂玻璃效果 */
     overflow: hidden; /* 必须,确保伪元素在内部 */
    -webkit-backdrop-filter: blur(var(--glass-blur));
}
}


/* 复合扫描线效果 */
/* 添加暗角效果 - 增强CRT显示器质感 */
body::before, body::after {
body::before {
     content: "";
     content: "";
     display: var(--scanlines-display);
     display: var(--crt-effects-display);
     position: absolute; /* 改为absolute相对body */
     position: fixed;
     top: 0;
     top: 0;
     left: 0;
     left: 0;
第190行: 第207行:
     height: 100%;
     height: 100%;
     pointer-events: none;
     pointer-events: none;
     z-index: 1; /* 降低z-index让内容可见 */
     z-index: 9998;
    background: radial-gradient(
        circle at center,
        transparent 40%,
        rgba(0, 0, 0, var(--crt-vignette-opacity)) 140%
    );
    mix-blend-mode: multiply;
}
 
/* CRT扫描线效果 - 使用新的三种不同类型的扫描线 */
/* 1. 主扫描线 - 较宽的水平线 */
.crt-primary-scanline {
    content: "";
    display: var(--crt-effects-display);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 8px; /* 主扫描线较宽 */
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(0, 0, 0, var(--crt-primary-scanline-alpha)) 40%,
        rgba(0, 0, 0, calc(var(--crt-primary-scanline-alpha) * 1.5)) 50%,
        rgba(0, 0, 0, var(--crt-primary-scanline-alpha)) 60%,
        transparent 100%
    );
    pointer-events: none;
    z-index: 9995;
    opacity: 0.85;
    animation: primary-scanline 12s linear infinite;
}
}


/* ::before 用于主扫描线和快速扫描线 */
/* 2. 副扫描线 - 细小的水平扫描线纹理 */
body::before {
.crt-secondary-scanline {
     background:  
     content: "";
        /* 快速扫描线 */
    display: var(--crt-effects-display);
        repeating-linear-gradient(
    position: fixed;
            to bottom,
    top: 0;
            transparent 0px,
    left: 0;
            transparent 1px,
    width: 100%;
            rgba(200, 255, 220, var(--crt-scanline-fast-alpha)) 1px,
    height: 100%;
            rgba(200, 255, 220, var(--crt-scanline-fast-alpha)) 2px
    background: repeating-linear-gradient(
        ),
        to bottom,
        /* 主扫描线 */
        transparent 0px,
        repeating-linear-gradient(
        transparent 3px,
            to bottom,
        rgba(0, 0, 0, var(--crt-secondary-scanline-alpha)) 4px,
            rgba(0, 0, 0, 0) 0px,
        rgba(0, 0, 0, var(--crt-secondary-scanline-alpha)) 4px
            rgba(0, 0, 0, 0) 3px, /* 透明区域 */
    );
            rgba(0, 0, 0, var(--crt-scanline-main-alpha)) 4px, /* 主线 */
     background-size: 100% 8px;
            rgba(0, 0, 0, var(--crt-scanline-main-alpha)) 6px /* 主线宽度 */
     pointer-events: none;
        );
     z-index: 9994;
     background-size: 100% 20px, 100% 6px;
     mix-blend-mode: overlay; /* 主线用overlay */
     animation:
        scanline-fast 0.8s linear infinite,
        scanline-main 8s linear infinite;
     opacity: 0.7;
     opacity: 0.7;
    animation: secondary-scanline 18s linear infinite;
}
}


/* ::after 用于次扫描线和动态噪点 */
/* 3. 快速扫描线 - 闪烁通过的亮条 */
body::after {
.crt-fast-scanline {
     background:
     content: "";
        /* 动态噪点 */
    display: var(--crt-effects-display);
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.08'%3E%3Cpath d='M14 18h1v1h-1zM21 20h1v1h-1zM24 11h1v1h-1zM40 15h1v1h-1zM15 4h1v1h-1zM6 13h1v1H6zM49 42h1v1h-1zM42 55h1v1h-1zM31 54h1v1h-1zM17 48h1v1h-1z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"),
    position: fixed;
        /* 次扫描线 */
    top: 0;
        repeating-linear-gradient(
    left: 0;
            to bottom,
    width: 100%;
            transparent 0px,
    height: 2px; /* 快速扫描线很窄 */
            transparent 4px,
    background: linear-gradient(
            rgba(50, 150, 100, var(--crt-scanline-secondary-alpha)) 5px, /* 次线 */
        to bottom,
            rgba(50, 150, 100, var(--crt-scanline-secondary-alpha)) 6px /* 次线宽度 */
        transparent 0%,
        );
        rgba(255, 255, 255, 0.5) 50%,
     background-size: 60px 60px, 100% 7px; /* 噪点大小,次线重复 */
        transparent 100%
     mix-blend-mode: screen; /* 次线和噪点尝试screen */
    );
     animation:  
     pointer-events: none;
        subtle-noise 4s infinite alternate, /* 噪点动画 */
     z-index: 9996;
        scanline-secondary 12s linear infinite; /* 次线动画 */
    opacity: 0;
    opacity: 0.8;
     animation: fast-scanline 2.5s cubic-bezier(0.15, 0.85, 0.5, 1) infinite;
}
}


/* CRT启动动画 (移除,如果之前添加了.crt-startup div) */
/* 标题样式 - 只使用VonwaonBitmap 16px字体 */
.crt-startup { display: none; }
 
/* 标题样式 - 使用12px字体,增加细节 */
h1, h2, h3, h4, h5, h6 {
h1, h2, h3, h4, h5, h6 {
     font-family: var(--font-title);
     font-family: var(--title-font);
     font-size: calc(var(--ui-font-size-px) * 1px); /* 直接使用12px */
     font-size: calc(var(--base-font-size) * var(--title-scale));
     font-weight: normal;
     font-weight: normal;
     text-shadow: var(--crt-text-shadow), 0 0 5px rgba(255,255,255,0.1); /* 增加一点白色辉光 */
     text-shadow: var(--crt-text-shadow),
     letter-spacing: 0.05em;
                0 1px 1px rgba(0, 0, 0, 0.1);
    text-transform: uppercase; /* 标题大写 */
     letter-spacing: 0.03em;
     position: relative;
     position: relative;
     margin-top: 2.2em;
     margin-top: 1.8em;
     margin-bottom: 1.2em;
     margin-bottom: 1em;
     padding-bottom: 0.5em;
     padding-bottom: 0.5em;
    padding-left: 0.5em;
     border-bottom: 1px solid rgba(0, 0, 0, 0.1);
     border-bottom: 1px solid rgba(90, 255, 150, 0.2); /* 辉光色边框 */
     color: #111;
     border-left: 3px solid rgba(90, 255, 150, 0.3);
     line-height: 1.5;
     color: #e8f8ef; /* 标题亮色 */
}
}


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


/* 标题大小现在由font-size控制,不再需要额外调整 */
body h1 {
    font-size: calc(var(--base-font-size) * 1.7);
    text-transform: uppercase;
    padding-left: 10px;
    border-left: 3px solid var(--crt-glow-color);
}


/* 链接样式 - 更复古 */
h2 { font-size: calc(var(--base-font-size) * 1.5); }
h3 { font-size: calc(var(--base-font-size) * 1.3); }
h4 { font-size: calc(var(--base-font-size) * 1.2); }
h5, h6 { font-size: calc(var(--base-font-size) * 1.1); }
 
/* 链接样式 - 增强质感 */
a {
a {
     color: #7bf0a0; /* 亮绿色链接 */
     color: var(--link-color);
     text-decoration: none; /* 移除下划线 */
     text-decoration: none;
     position: relative;
     position: relative;
     transition: color 0.2s ease, background-color 0.2s ease, text-shadow 0.2s ease;
     transition: all 0.25s ease;
     padding: 0px 2px; /* 微调padding */
     padding: 1px 3px;
     border-radius: 1px;
     border-radius: 2px;
     text-shadow: var(--crt-text-shadow);
     text-shadow: 0 0 3px rgba(0, 100, 255, 0.15);
    background-color: transparent; /* 默认无背景 */
    font-family: var(--pixel-font-16);
}
}


a:hover {
a:hover {
     color: #fff; /* 悬停变白 */
     color: var(--link-color-active);
     background-color: rgba(123, 240, 160, 0.2); /* 悬停背景 */
     background-color: rgba(250, 167, 0, 0.1);
     text-shadow: 0 0 5px #fff, 0 0 10px var(--crt-glow-color); /* 更强辉光 */
     text-shadow: 0 0 var(--crt-glow-radius) rgba(250, 167, 0, 0.4);
    transform: translateY(-1px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
 
a:active {
    transform: translateY(0);
    box-shadow: none;
}
 
/* 标记链接是可交互的 - 添加小图标 */
a[href]:not(.mw-selflink)::before {
    content: '>';
    display: inline-block;
    margin-right: 3px;
    font-size: 0.8em;
    opacity: 0.6;
    transition: all 0.2s ease;
}
 
a[href]:not(.mw-selflink):hover::before {
    opacity: 1;
    transform: translateX(1px);
}
}


a.new {
a.new {
     color: #ff8080; /* 红色新链接 */
     color: #ba0000;
     text-shadow: 0 0 3px rgba(255, 128, 128, 0.4);
     text-shadow: 0 0 3px rgba(186, 0, 0, 0.2);
}
}
a.new:hover {
a.new:hover {
    color: #fff;
     background-color: rgba(186, 0, 0, 0.1);
     background-color: rgba(255, 128, 128, 0.2);
     text-shadow: 0 0 var(--crt-glow-radius) rgba(186, 0, 0, 0.4);
     text-shadow: 0 0 5px #fff, 0 0 10px rgba(255, 128, 128, 0.5);
}
}


第301行: 第383行:
     margin: 0 0 1em 1em;
     margin: 0 0 1em 1em;
     width: 350px;
     width: 350px;
     font-size: calc(var(--ui-font-size-px) * 1px); /* UI字体大小 */
     font-size: calc(var(--base-font-size) * 0.9);
     background: linear-gradient(to bottom, rgba(40, 60, 45, 0.95), rgba(30, 50, 35, 0.95)); /* 深色渐变背景 */
     font-family: var(--small-font);
    background-color: rgba(248, 249, 250, 0.95);
     float: right;
     float: right;
     border: 1px solid rgba(90, 255, 150, 0.3); /* 辉光色边框 */
     border: 1px solid rgba(0, 0, 0, 0.15);
     padding: 2px;
     padding: 0;
     overflow: auto;
     overflow: auto;
     z-index: 1;
     z-index: 1;
     overflow-wrap: anywhere;
     overflow-wrap: anywhere;
     box-shadow:  
     box-shadow:  
         3px 3px 8px rgba(0, 0, 0, 0.25),
         2px 2px 5px rgba(0, 0, 0, 0.1),
         inset 0 1px 0 rgba(90, 255, 150, 0.15), /* 内部高光 */
         inset 0 0 10px rgba(0, 255, 100, 0.04);
        inset 0 0 15px rgba(90, 255, 150, 0.06); /* 内部辉光 */
     animation: flicker 80s infinite alternate;
     animation: flicker 60s infinite alternate;
     border-radius: 3px;
     border-radius: 4px;
    color: #c0e0d0; /* Infobox内文本颜色 */
}
 
@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 {
.notaninfobox > .infobox-title {
     font-family: var(--font-title);
     font-family: var(--title-font);
    font-size: calc(var(--ui-font-size-px) * 1px); /* 标题字体 */
     font-weight: normal;
     font-weight: normal;
     text-align: center;
     text-align: center;
     background: linear-gradient(to bottom, rgba(90, 255, 150, 0.18), rgba(90, 255, 150, 0.08));
    font-size: 110%;
     color: #e8f8ef; /* 亮色标题 */
     background: linear-gradient(to bottom, #d5e5fb, var(--custom-mcwiki-header-color));
     text-shadow: var(--crt-text-shadow);
     color: #333;
     padding: 7px 5px;
     text-shadow: 0 1px 1px rgba(255, 255, 255, 0.5), var(--crt-text-shadow);
     border-bottom: 1px solid rgba(90, 255, 150, 0.25);
     padding: 8px 4px;
     text-transform: uppercase;
     border-bottom: 1px solid rgba(0, 0, 0, 0.15);
     position: relative;
    overflow: hidden;
}
}


.infobox-imagearea {
/* 给标题添加光泽效果 */
     text-align: center;
.notaninfobox > .infobox-title::after {
     padding: 4px;
     content: "";
    position: absolute;
    top: 0;
    left: -150%;
    width: 150%;
    height: 100%;
    background: linear-gradient(
        to right,
        transparent 0%,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.4) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(35deg);
     animation: shine 6s infinite;
}
}


.infobox-imagearea > div:not(:first-child) {
@keyframes shine {
     padding-top: 1em;
    0% { left: -150%; }
    30% { left: -150%; }
    60% { left: 150%; }
     100% { left: 150%; }
}
}


/* Horizontally centre animated images */
.notaninfobox .infobox-row .infobox-row-label {
.infobox-imagearea .animated {
     font-family: var(--UI-font);
     display: inline-flex;
     font-weight: 600;
     align-items: center;
    color: #444;
    text-shadow: none;
    letter-spacing: 0.03em;
}
}


.notaninfobox .infobox-rows {
/* 表格样式 - 增强质感 */
     display: grid;
table {
     grid-template-columns: max-content 1fr;
     border: 1px solid #ccc;
     gap: 1px;
     background-color: rgba(248, 249, 250, 0.95);
    box-shadow:  
        var(--box-depth),
        inset 0 0 15px rgba(240, 240, 240, 0.8);
    border-radius: 3px;
     margin: 1.2em 0;
    font-family: var(--pixel-font-12);
}
}


.notaninfobox .infobox-rows .infobox-row {
table caption {
     display: contents;
    font-family: var(--title-font);
    font-size: calc(var(--base-font-size) * 1.05);
    padding: 8px;
    font-weight: normal;
     text-shadow: var(--crt-text-shadow);
}
}


.notaninfobox .infobox-row .infobox-row-label,
table th {
.notaninfobox .infobox-row .infobox-row-field {
    background: linear-gradient(to bottom, #f8f9fa, var(--custom-table-header-background));
     padding: 4px;
    color: #333;
    font-family: var(--title-font);
    font-weight: normal;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.5), var(--crt-text-shadow);
     padding: 10px 14px;
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
}
}


.notaninfobox .infobox-row .infobox-row-label {
table td, table th {
     font-family: var(--font-ui);
     border: 1px solid #e0e0e0;
     font-weight: normal; /* UI字体本身可能较粗 */
     padding: 8px 12px;
     color: #90c0a0; /* 标签颜色 */
     transition: all 0.2s ease;
     text-shadow: none;
     font-size: calc(var(--base-font-size) * 0.95);
    padding-right: 0.8em;
}
}


.notaninfobox .infobox-rows .infobox-row:nth-child(2n) .infobox-row-label,
table tr:nth-child(even) td {
.notaninfobox .infobox-rows .infobox-row:nth-child(2n) .infobox-row-field {
     background-color: rgba(240, 241, 242, 0.7);
     background-color: rgba(90, 255, 150, 0.04); /* 非常淡的隔行背景 */
}
}


.notaninfobox .infobox-row .infobox-row-field {
table tr:hover td {
     color: #d0f0e0; /* 字段值颜色 */
     background-color: rgba(0, 255, 100, 0.08);
}
}


/* Infoboxes with tabber */
/* 代码样式 - 增强科技感 */
.tabber-container-infobox .tabber .tabbertab,
pre, code {
.tabber-container-infobox ul.tabbernav li a,
    font-family: var(--pixel-font-12);
.tabber-container-infobox ul.tabbernav li.tabberactive a {
    font-size: calc(var(--base-font-size) * var(--code-scale));
     background: none;
    background-color: rgba(232, 232, 232, 0.8);
     border: none;
    border: 1px solid #d0d0d0;
    padding: 0.3em 0.5em;
     text-shadow: none;
     border-radius: 3px;
    color: #1a1a1a;
    position: relative;
}
}


.tabber-container-infobox .tabber .tabbertab {
pre {
     padding: 0;
    padding: 1em;
    overflow-x: auto;
    background-color: rgba(228, 230, 232, 0.9);
    box-shadow:
        inset 0 1px 4px rgba(0,0,0,0.15),
        0 1px 0 rgba(255,255,255,0.7);
    counter-reset: line;
     margin: 1.5em 0;
}
}


.tabber-container-infobox ul.tabbernav {
/* 添加代码行号 */
     font: inherit;
pre code {
     font-size: 100%;
    display: block;
    position: relative;
    background: transparent;
    border: none;
    box-shadow: none;
     padding: 0;
     counter-increment: line;
}
}


.tabber-container-infobox ul.tabbernav li a:hover {
pre code::before {
     color: #000;
    content: counter(line);
    display: inline-block;
    width: 1.5em;
    margin-right: 1em;
     color: #888;
    text-align: right;
    user-select: none;
}
}


.tabber-container-infobox ul.tabbernav > li {
/* 确保文本内容清晰可读 */
     margin-bottom: 5px;
p, li, td, th, figcaption, blockquote, cite {
     padding: 0;
    font-family: var(--body-font);
    line-height: 1.65;
     letter-spacing: 0.01em;
    position: relative;
     text-shadow: var(--crt-text-shadow);
}
}


.tabber-container-infobox ul.tabbernav > li > a {
/* 小字体元素 */
     color: #595959;
.small, small, .text-small, figcaption, .caption, .info, .note {
    padding-bottom: 1px;
     font-family: var(--small-font);
    display: block;
     font-size: var(--small-font-size);
     font-family: var(--font-body);
}
}


.tabber-container-infobox ul.tabbernav > li > a::before {
/* 图片效果 - 增强质感 */
     display: block;
img {
     content: attr(alt);
     max-width: 100%;
     font-weight: bold;
     height: auto;
     height: 0;
     transition: all 0.3s ease;
     color: transparent;
     border-radius: 3px;
     overflow: hidden;
     border: 1px solid rgba(0, 0, 0, 0.1);
     visibility: hidden;
     box-shadow: 0 1px 3px rgba(0,0,0,0.05);
     filter: contrast(1.02) brightness(1.01); /* 轻微增强对比度 */
}
}


.tabber-container-infobox ul.tabbernav > li.tabberactive {
img:hover {
     border: none;
    box-shadow:
        0 3px 8px rgba(0, 0, 0, 0.15),
        0 0 10px var(--crt-glow-color);
    transform: scale(1.02) translateY(-2px);
    border-color: rgba(0, 255, 100, 0.3);
     filter: contrast(1.05) brightness(1.02);
}
}


.modulebox {
/* 滚动条样式 - 像素风格 */
    border: 1px solid #ccc;
::-webkit-scrollbar {
    padding: 10px;
     width: 12px;
    margin: 10px 0;
     height: 12px;
     background-color: #f9f9f9;
     box-shadow: 0 0 var(--crt-glow-radius) var(--crt-glow-color);
}
}


.tabber-container-infobox ul.tabbernav > li.tabberactive > a {
::-webkit-scrollbar-track {
     font-weight: bold;
     background: rgba(0, 0, 0, 0.04);
     color: var(--link-color);
     border-radius: 0;
     border-bottom: 2px solid var(--custom-mcwiki-header-color);
     box-shadow: inset 0 0 4px rgba(0,0,0,0.1);
}
}


.infobox-rows p {
::-webkit-scrollbar-thumb {
     margin: 0;
     background: repeating-linear-gradient(
        to bottom,
        #aaa 0px,
        #aaa 2px,
        #999 3px,
        #999 5px
    );
    border-radius: 0;
    border: 1px solid rgba(0, 0, 0, 0.2);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
}


.infobox-rows dl + dl {
::-webkit-scrollbar-thumb:hover {
     margin-top: -0.4em;
     background: repeating-linear-gradient(
        to bottom,
        #bbb 0px,
        #bbb 2px,
        #aaa 3px,
        #aaa 5px
    );
}
}


.infobox-rows dl:last-child {
/* 引用块样式 */
     margin-bottom: 0.2em;
blockquote {
    border-left: 3px solid var(--crt-glow-color);
     margin: 1em 0;
    padding: 0.5em 1em;
    background: rgba(240, 240, 240, 0.5);
    position: relative;
    font-family: var(--body-font);
}
}


.infobox-footer {
blockquote::before {
    text-align: center;
     content: """;
    font-family: var(--font-body);
     position: absolute;
     text-shadow: 0 0 var(--crt-glow-radius) var(--crt-glow-color);
     top: 0;
}
     left: 10px;
 
     font-size: 2em;
/* 页面底部导航框 - 调整 */
     color: rgba(0, 0, 0, 0.1);
table.navbox{
     font-family: serif;
     border: 1px solid rgba(90, 255, 150, 0.25);
     background-color: rgba(35, 55, 40, 0.94);
     box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.2);
}
.navbox-title, table.navbox th{
     font-family: var(--font-title);
    background: linear-gradient(to bottom, rgba(90, 255, 150, 0.18), rgba(90, 255, 150, 0.08));
     color: #d8f8e8;
    text-shadow: var(--crt-text-shadow);
}
.navbox-abovebelow, .navbox-group, .navbox-subgroup .navbox-title{
    font-family: var(--font-ui);
    background: linear-gradient(to bottom, rgba(90, 255, 150, 0.12), rgba(90, 255, 150, 0.06));
    color: #b0e0c0;
    text-shadow: var(--crt-text-shadow);
}
.navbox-subgroup .navbox-group, .navbox-subgroup .navbox-abovebelow{
    background: linear-gradient(to bottom, rgba(90, 255, 150, 0.08), rgba(90, 255, 150, 0.04));
}
.navbox-list {
     font-family: var(--font-body);
    font-size: calc(var(--base-font-size-px) * 1px);
}
.navbox-even{
    background-color: rgba(90, 255, 150, 0.03);
}
.navbox-odd{
    background-color: transparent;
}
}


/* 按钮样式 - 增强复古感 */
/* 按钮样式 - 像素风格 */
.collapseButton {
.collapseButton, button, .mw-ui-button, input[type="button"], input[type="submit"] {
     font-family: var(--font-ui);
     font-family: var(--UI-font);
     font-size: calc(var(--ui-font-size-px) * 1px);
     font-size: calc(var(--base-font-size) * 0.85);
     padding: 4px 10px;
     padding: 4px 10px;
     border: 1px solid rgba(90, 255, 150, 0.4); /* 辉光边框 */
     border: 2px solid #666;
     border-radius: 3px;
     border-bottom: 4px solid #444;
     background: linear-gradient(to bottom, rgba(60, 80, 65, 0.9), rgba(40, 60, 45, 0.9)); /* 深色按钮背景 */
     border-right: 4px solid #444;
     color: #b0e0c0; /* 按钮文字颜色 */
    border-radius: 0;
     text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.3); /* 文字底部阴影 */
     background: #ddd;
     box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(90, 255, 150, 0.15); /* 外阴影和内高光 */
     color: #333;
     text-transform: uppercase;
     cursor: pointer;
     cursor: pointer;
     transition: all 0.15s ease;
     transition: all 0.15s ease;
     float: right;
     text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
    font-weight: normal;
     margin: 2px 4px;
     text-align: right;
     position: relative;
     width: auto;
     text-align: center;
     margin: 3px 5px;
}
}


.collapseButton:hover {
.collapseButton:hover, button:hover, .mw-ui-button:hover, input[type="button"]:hover, input[type="submit"]:hover {
     background: linear-gradient(to bottom, rgba(70, 90, 75, 0.9), rgba(50, 70, 55, 0.9));
     background: #eee;
     border-color: rgba(120, 255, 180, 0.6);
    border-color: #777;
     color: #d8f8e8; /* 悬停文字变亮 */
     border-bottom-color: #555;
     box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(120, 255, 180, 0.2);
     border-right-color: #555;
     transform: translateY(-1px);
}
}


.collapseButton:active {
.collapseButton:active, button:active, .mw-ui-button:active, input[type="button"]:active, input[type="submit"]:active {
     background: linear-gradient(to bottom, rgba(40, 60, 45, 0.9), rgba(60, 80, 65, 0.9)); /* 按下反转渐变 */
     background: #ccc;
     box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3); /* 按下内阴影 */
    border: 2px solid #444;
    border-top: 4px solid #666;
     border-left: 4px solid #666;
    transform: translateY(1px);
     text-shadow: none;
     text-shadow: none;
    color: #a0d0b0;
}
}


第544行: 第668行:
}
}


/* 黑幕效果 */
/* 边栏样式 - 复古科幻风格 */
.heimu,
.side-block {
.heimu rt{
     background:
     --heimu-color: #252525;
        linear-gradient(135deg, rgba(0, 255, 100, 0.05) 0%, transparent 100%),
     --heimu-text-color: #fff;
        linear-gradient(to bottom, rgba(220, 230, 240, 0.85), rgba(190, 210, 225, 0.95));
     --heimu-link-color: #add8e6;
     border: 1px solid rgba(0, 0, 0, 0.15);
     --heimu-visited-link-color: #c5cae9;
     border-radius: 0;
     --heimu-new-link-color: #fcc;
     margin: 0.5rem 0.5rem 1rem 0;
     --heimu-new-visited-link-color: #ef9a9a;
     padding: 0;
    --heimu-extiw-visited-link-color: #d1c4e9;
     box-shadow:  
 
        var(--box-depth),
     background-color: var(--heimu-color);
        inset 0 0 20px rgba(0, 200, 255, 0.07);
     font-family: var(--UI-font);
    position: relative;
    overflow: hidden;
}
}


.heimu,
.side-block::before {
.heimu a,
    content: "";
a .heimu,
    position: absolute;
a.new .heimu,
    top: 0;
span.heimu a:visited,
    left: 0;
span.heimu a.new,
    width: 100%;
span.heimu a.external,
     height: 2px;
span.heimu a.external:visited,
     background: linear-gradient(to right, transparent, var(--crt-glow-color), transparent);
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,
.side-block::after {
span.heimu:active{
    content: "";
     color: var(--heimu-text-color);
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
     background: linear-gradient(to right, transparent, rgba(0, 0, 0, 0.1), transparent);
}
}


span.heimu:hover a,
.side-block .heading {
a:hover span.heimu{
    font-family: var(--title-font);
     color: var(--heimu-link-color);
    font-size: calc(var(--base-font-size) * 0.95);
     color: #222;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5), var(--crt-text-shadow);
    padding: 0.5rem 0.7rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.15);
    background: linear-gradient(to bottom, #e8f0f8, #c8d8e8);
    letter-spacing: 0.05em;
    position: relative;
    text-transform: uppercase;
}
}


span.heimu:hover a:visited,
.side-block .heading::after {
a:visited:hover span.heimu{
    content: "";
     color: var(--heimu-visited-link-color);
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
     background: linear-gradient(to right, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0));
}
}


span.heimu:hover a.new,
.side-block .heading p {
a.new:hover span.heimu{
    margin: 0;
     color: var(--heimu-new-link-color);
     padding: 0;
}
}


span.heimu a.new:hover:visited,
.side-block div.menu-item {
a.new:hover:visited span.heimu{
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
     color: var(--heimu-new-visited-link-color);
    border-top: 1px solid rgba(255, 255, 255, 0.7);
     position: relative;
}
}


span.heimu:hover a.extiw:visited,
.side-block div.menu-item:last-child {
a.extiw:visited:hover span.heimu{
     border-bottom: none;
     color: var(--heimu-extiw-visited-link-color);
}
}


[color-mode="dark"] .heimu,
.side-block div.menu-item a {
[color-mode="dark"] .heimu rt{
    display: block;
     --heimu-color: #5e6272;
    padding: 0.5rem 0.7rem;
    color: var(--link-color);
    text-decoration: none;
     font-size: calc(var(--base-font-size) * 0.9);
    transition: all 0.2s ease;
    text-shadow: 0 0 2px rgba(0, 100, 255, 0.1);
    position: relative;
    overflow: hidden;
}
}


/* 彩幕效果 */
.side-block div.menu-item a:hover {
.colormu-drk {
     background-color: rgba(0, 150, 255, 0.1);
    color: #FFF;
     color: var(--link-color-active);
}
     text-shadow: 0 0 5px rgba(0, 150, 255, 0.3);
.colormu-bri {
     transform: translateX(2px);
     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;
}
}


/* 表格样式 - 调整 */
.side-block div.menu-item a::before {
table {
    content: '►';
     border: 1px solid rgba(90, 255, 150, 0.3);
     display: inline-block;
     background-color: rgba(40, 60, 45, 0.92);
     margin-right: 5px;
     box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.2);
     font-size: 0.8em;
     border-radius: 4px;
     opacity: 0;
     margin: 1.5em 0;
     transition: all 0.2s ease;
    transform: translateX(-5px);
}
}


table th {
.side-block div.menu-item a:hover::before {
    font-family: var(--font-ui);
     opacity: 0.7;
    font-size: calc(var(--ui-font-size-px) * 1px);
     transform: translateX(0);
     background: linear-gradient(to bottom, rgba(90, 255, 150, 0.15), rgba(90, 255, 150, 0.08));
    color: #d0f0e0;
    font-weight: normal;
    text-shadow: var(--crt-text-shadow);
    padding: 10px 14px;
     text-transform: uppercase;
    border-bottom: 1px solid rgba(90, 255, 150, 0.25);
}
}


table td, table th {
/* CRT页面启动效果 - 暗角、闪烁和亮线 */
     border: 1px solid rgba(90, 255, 150, 0.15);
.crt-startup-effect {
     padding: 9px 13px;
     position: fixed;
     transition: background-color 0.2s ease;
    top: 0;
     font-family: var(--font-body);
    left: 0;
     font-size: calc(var(--base-font-size-px) * 1px);
     width: 100%;
     height: 100%;
    background-color: #000;
     z-index: 10000;
    opacity: 1;
    pointer-events: none;
     animation: crt-startup-fade 2.5s forwards;
}
}


table tr:nth-child(even) td {
@keyframes crt-startup-fade {
     background-color: rgba(90, 255, 150, 0.04);
    0% { opacity: 1; }
}
     15% { opacity: 0.7; }
table tr:hover td {
    20% { opacity: 0.9; }
     background-color: rgba(90, 255, 150, 0.1);
    25% { opacity: 0.6; }
     color: #fff;
    30% { opacity: 0.9; }
     35% { opacity: 0.2; }
    40% { opacity: 0; }
     100% { opacity: 0; visibility: hidden; }
}
}


/* 代码样式 - 调整 */
/* 页面加载后自动添加CRT效果元素 */
pre, code {
document.addEventListener('DOMContentLoaded', function() {
     font-family: var(--font-body); /* 或指定等宽字体 */
     // 创建一个隐藏/显示扫描线效果的按钮
     font-size: calc(var(--code-font-size-px) * 1px);
    var toggleButton = document.createElement('button');
    background-color: rgba(10, 20, 15, 0.85); /* 更深的背景 */
    toggleButton.innerHTML = '切换扫描线';
     border: 1px solid rgba(90, 255, 150, 0.2);
    toggleButton.style.position = 'fixed';
     padding: 0.4em 0.6em;
    toggleButton.style.bottom = '10px';
     text-shadow: none;
    toggleButton.style.right = '10px';
     border-radius: 3px;
    toggleButton.style.zIndex = '10000';
     color: #a8d8b8; /* 代码文本颜色 */
    toggleButton.style.fontSize = '12px';
}
    toggleButton.style.padding = '4px 8px';
    toggleButton.style.opacity = '0.7';
   
    // 添加事件监听
     toggleButton.addEventListener('click', function() {
        var root = document.documentElement;
        var currentDisplay = getComputedStyle(root).getPropertyValue('--crt-effects-display').trim();
       
        if (currentDisplay === 'block' || currentDisplay === '') {
            root.style.setProperty('--crt-effects-display', 'none');
            toggleButton.innerHTML = '显示扫描线';
        } else {
            root.style.setProperty('--crt-effects-display', 'block');
            toggleButton.innerHTML = '隐藏扫描线';
        }
    });
   
    document.body.appendChild(toggleButton);
   
    // 添加扫描线和启动效果元素
     var body = document.querySelector('body');
   
    // 主扫描线
    var primaryScanline = document.createElement('div');
     primaryScanline.className = 'crt-primary-scanline';
    body.appendChild(primaryScanline);
   
    // 副扫描线
    var secondaryScanline = document.createElement('div');
     secondaryScanline.className = 'crt-secondary-scanline';
    body.appendChild(secondaryScanline);
   
    // 快速扫描线
    var fastScanline = document.createElement('div');
     fastScanline.className = 'crt-fast-scanline';
     body.appendChild(fastScanline);
   
    // 启动效果
    var startupEffect = document.createElement('div');
    startupEffect.className = 'crt-startup-effect';
    body.appendChild(startupEffect);
});


pre {
/* 媒体查询 */
    padding: 1.2em;
@media screen and (max-width: 768px) {
    overflow-x: auto;
:root {
    background: repeating-linear-gradient( -45deg, rgba(10, 20, 15, 0.85), rgba(10, 20, 15, 0.85) 5px, rgba(15, 25, 20, 0.85) 5px, rgba(15, 25, 20, 0.85) 10px ), /* 斜纹背景 */
--base-font-size: 14px;
                rgba(10, 20, 15, 0.9);
        --small-font-size: 12px;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.3);
}
    body {
        padding: 1rem;  
        margin: 0.5rem;  
    }
}
}


/* 确保文本内容在荧光字体下清晰可读 */
@media screen and (min-width: 1440px) {
p, li, td, th, figcaption, blockquote, cite {
:root {
    /* 字体和大小已分别设置 */
--base-font-size: 16px;
    line-height: 1.7;
        --small-font-size: 14px;
    letter-spacing: 0.02em; /* 像素字体可能需要调整间距 */
}
    position: relative;
    text-shadow: var(--crt-text-shadow);
}
}


/* 图片效果 - 增加边框效果 */
/* 打印样式优化 */
img {
    max-width: 100%;
    height: auto;
    transition: all 0.25s ease;
    border-radius: 2px;
    border: 1px solid rgba(90, 255, 150, 0.2);
    box-shadow: 0 1px 2px rgba(0,0,0,0.15), inset 0 0 3px rgba(0,0,0,0.2);
}
 
img:hover {
    box-shadow:
        0 2px 5px rgba(0, 0, 0, 0.2),
        0 0 10px var(--crt-glow-color), /* 调整悬停辉光 */
        inset 0 0 5px rgba(90, 255, 150, 0.1);
    transform: scale(1.01);
    border-color: rgba(120, 255, 180, 0.4);
}
 
/* 滚动条样式 - 适配暗色主题 */
::-webkit-scrollbar {
    width: 13px;
    height: 13px;
}
 
::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    box-shadow: inset 0 0 4px rgba(0,0,0,0.4);
}
 
::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, rgba(90, 255, 150, 0.4), rgba(90, 255, 150, 0.2));
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.4);
    box-shadow: inset 0 1px 0 rgba(90, 255, 150, 0.2);
}
 
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, rgba(110, 255, 170, 0.5), rgba(110, 255, 170, 0.3));
}
 
/* 打印样式覆盖 - 保持不变 */
@media print {
@media print {
     :root {
     :root {
         --scanlines-display: none;
         --crt-effects-display: none;
    }
   
    html, body {
        background: #fff !important;
        color: #000 !important;
     }
     }
      
      
     body::before,
     body::before,
     body::after,
     .crt-primary-scanline,
     body .scanlines {
    .crt-secondary-scanline,
    .crt-fast-scanline,
     .crt-startup-effect {
         display: none !important;
         display: none !important;
     }
     }
第768行: 第897行:
         box-shadow: none !important;
         box-shadow: none !important;
         animation: none !important;
         animation: none !important;
    }
         border-color: #ddd !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;
     }
     }
      
      
第784行: 第905行:
     }
     }
      
      
     html {
     a::before {
         background: none !important;
         display: none !important;
     }
     }
      
      
     body {
     pre, code {
         background: #fff !important;
         border: 1px solid #ddd;
         box-shadow: none !important;
         background: #f8f8f8 !important;
     }
     }
}
}
/* 媒体查询,适应不同设备 - 调整基础字号 */
@media screen and (max-width: 768px) {
:root {
--base-font-size-px: 15; /* 小屏幕也用16px */
--ui-font-size-px: 12;
}
    body { padding: 1rem; margin: 0.5rem; min-height: calc(100vh - 1rem); }
}
@media screen and (min-width: 1440px) {
:root {
--base-font-size-px: 16;
--ui-font-size-px: 12;
}
}
/* 边栏样式 - 增强质感 */
.side-block {
    background: linear-gradient(135deg, rgba(45, 65, 50, 0.92), rgba(35, 55, 40, 0.95)); /* 对角渐变 */
    border: 1px solid rgba(90, 255, 150, 0.35);
    border-radius: 5px;
    margin: 0.5rem 0.5rem 1rem 0;
    padding: 0.6rem;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2),
                inset 0 1px 0 rgba(90, 255, 150, 0.1),
                inset 0 0 20px rgba(90, 255, 150, 0.07);
    font-family: var(--font-ui);
}
.side-block .heading {
    font-family: var(--font-title);
    font-size: calc(var(--ui-font-size-px) * 1px);
    color: #e0f8e8;
    text-shadow: var(--crt-text-shadow);
    padding: 0.6rem 0.8rem;
    margin: -0.6rem -0.6rem 0.6rem -0.6rem;
    border-bottom: 1px solid rgba(90, 255, 150, 0.3);
    background: linear-gradient(to bottom, rgba(90, 255, 150, 0.15), rgba(90, 255, 150, 0.08));
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.side-block div.menu-item {
    margin: 0 -0.6rem;
    border-bottom: 1px solid rgba(90, 255, 150, 0.1);
}
.side-block div.menu-item:last-child {
    border-bottom: none;
    border-bottom-left-radius: 4px; /* 匹配容器圆角 */
    border-bottom-right-radius: 4px;
    overflow: hidden; /* 隐藏溢出 */
}
.side-block div.menu-item a {
    display: block;
    padding: 0.6rem 1.2rem;
    color: #a8d8b8; /* 菜单项颜色 */
    text-decoration: none;
    font-size: calc(var(--ui-font-size-px) * 1px);
    transition: background-color 0.15s ease, color 0.15s ease, text-shadow 0.15s ease;
    text-shadow: none;
    position: relative;
}
.side-block div.menu-item a::before { /* 添加悬停指示器 */
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background-color: #7bf0a0;
    opacity: 0;
    transition: opacity 0.2s ease;
}
.side-block div.menu-item a:hover {
    background-color: rgba(90, 255, 150, 0.08);
    color: #e8f8e8; /* 悬停变亮 */
    text-shadow: 0 0 5px rgba(120, 255, 180, 0.4);
}
.side-block div.menu-item a:hover::before {
    opacity: 1;
}
/* 移除hovers库样式 - 如果不再需要 */
/* [class*='hovers-'] { display: none; } */

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

/* 这里放置的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");
@import url("https://fastly.jsdelivr.net/gh/hoah2333/Fonts@main/Typeface-VonwaonBitmap-12px.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-primary-scanline-alpha: 0.12; /* 主扫描线透明度 */
	--crt-secondary-scanline-alpha: 0.08; /* 副扫描线透明度 */
	--crt-fast-scanline-alpha: 0.25; /* 快速扫描线透明度 */
	--crt-flicker-alpha: 0.04; /* 屏幕闪烁强度 */
	--crt-noise-alpha: 0.03; /* 噪点强度 */
	--crt-glow-radius: 0.08em;
	--crt-glow-color: rgba(0, 255, 100, 0.2); /* 辉光颜色和强度 */
	--crt-text-shadow: 0 0 var(--crt-glow-radius) var(--crt-glow-color);
	--crt-vignette-opacity: 0.12; /* 暗角效果强度 */
	
	/* 网格背景相关变量 */
	--grid-color: rgba(0, 0, 0, 0.08);
	--grid-size: 40px;
	--grid-line-width: 1px;
	
	/* 字体设置 - 只使用VonwaonBitmap */
	--pixel-font-16: 'VonwaonBitmap 16px', monospace;
	--pixel-font-12: 'VonwaonBitmap 12px', monospace;
	--title-font: var(--pixel-font-16);
	--body-font: var(--pixel-font-16);
	--small-font: var(--pixel-font-12);
	--UI-font: var(--pixel-font-12);
	
	/* 字体大小设置 */
	--base-font-size: 15px;
	--small-font-size: 13px;
	--title-scale: 1.3;
	--code-scale: 0.9;
	
	/* 边框和内间距设置 */
    --side-border-thickness: 0.1rem;
    --main-border-thickness: 0.05rem;
    
    /* 启用/禁用CRT效果 */
    --crt-effects-display: block;
    
    /* 质感相关变量 */
    --glass-opacity: 0.92;
    --glass-blur: 0px; /* 模糊效果 - 如果浏览器支持 */
    --inset-shadow-depth: 25px;
    --border-shine: rgba(255, 255, 255, 0.1);
    --box-depth: 1px 1px 3px rgba(0, 0, 0, 0.15);
}

/* CRT效果动画 */
@keyframes flicker {
    0%, 100% { opacity: 0.98; }
    25% { opacity: 0.94; }
    50% { opacity: 0.99; }
    75% { opacity: 0.95; }
    83% { opacity: 0.98; }
    90% { opacity: 0.91; }
    93% { opacity: 0.99; }
    97% { opacity: 0.93; }
}

/* 主扫描线动画 - 更慢、更明显 */
@keyframes primary-scanline {
    0% { transform: translateY(-20px); }
    100% { transform: translateY(100vh); }
}

/* 副扫描线动画 - 中速移动 */
@keyframes secondary-scanline {
    0% { transform: translateY(-100vh); }
    100% { transform: translateY(100vh); }
}

/* 快速扫描线动画 - 快速闪过,更加随机 */
@keyframes fast-scanline {
    0%, 5% { opacity: 0; transform: translateY(-100vh); }
    8% { opacity: var(--crt-fast-scanline-alpha); }
    25% { opacity: var(--crt-fast-scanline-alpha); }
    35% { opacity: 0; }
    100% { opacity: 0; transform: translateY(100vh); }
}

@keyframes crt-on {
    0% { opacity: 0; filter: brightness(5) saturate(0); }
    10% { opacity: 0.3; filter: brightness(3) saturate(0.2); }
    30% { opacity: 0.7; filter: brightness(2) saturate(0.5); }
    50% { opacity: 0.8; filter: brightness(1.5) saturate(0.8); }
    100% { opacity: 1; filter: brightness(1) saturate(1); }
}

/* 全局和背景样式 - 增强质感 */
html {
    min-height: 100%;
    background-color: #ffffff;
    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 2s ease-out;
    overflow-x: hidden; /* 防止水平滚动条出现 */
}

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, var(--glass-opacity));
    border-radius: 4px;
    border: 1px solid var(--border-shine);
    box-shadow: 
        var(--box-depth),
        0 3px 12px rgba(0, 0, 0, 0.05),
        inset 0 0 var(--inset-shadow-depth) rgba(0, 255, 100, 0.04);
    animation: flicker 120s infinite alternate ease-in-out;
    overflow: hidden; /* 隐藏超出部分,配合扫描线 */
    backdrop-filter: blur(var(--glass-blur)); /* 支持的浏览器会有磨砂玻璃效果 */
    -webkit-backdrop-filter: blur(var(--glass-blur));
}

/* 添加暗角效果 - 增强CRT显示器质感 */
body::before {
    content: "";
    display: var(--crt-effects-display);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
    background: radial-gradient(
        circle at center,
        transparent 40%,
        rgba(0, 0, 0, var(--crt-vignette-opacity)) 140%
    );
    mix-blend-mode: multiply;
}

/* CRT扫描线效果 - 使用新的三种不同类型的扫描线 */
/* 1. 主扫描线 - 较宽的水平线 */
.crt-primary-scanline {
    content: "";
    display: var(--crt-effects-display);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 8px; /* 主扫描线较宽 */
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(0, 0, 0, var(--crt-primary-scanline-alpha)) 40%,
        rgba(0, 0, 0, calc(var(--crt-primary-scanline-alpha) * 1.5)) 50%,
        rgba(0, 0, 0, var(--crt-primary-scanline-alpha)) 60%,
        transparent 100%
    );
    pointer-events: none;
    z-index: 9995;
    opacity: 0.85;
    animation: primary-scanline 12s linear infinite;
}

/* 2. 副扫描线 - 细小的水平扫描线纹理 */
.crt-secondary-scanline {
    content: "";
    display: var(--crt-effects-display);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        to bottom,
        transparent 0px,
        transparent 3px,
        rgba(0, 0, 0, var(--crt-secondary-scanline-alpha)) 4px,
        rgba(0, 0, 0, var(--crt-secondary-scanline-alpha)) 4px
    );
    background-size: 100% 8px;
    pointer-events: none;
    z-index: 9994;
    opacity: 0.7;
    animation: secondary-scanline 18s linear infinite;
}

/* 3. 快速扫描线 - 闪烁通过的亮条 */
.crt-fast-scanline {
    content: "";
    display: var(--crt-effects-display);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px; /* 快速扫描线很窄 */
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(255, 255, 255, 0.5) 50%,
        transparent 100%
    );
    pointer-events: none;
    z-index: 9996;
    opacity: 0;
    animation: fast-scanline 2.5s cubic-bezier(0.15, 0.85, 0.5, 1) infinite;
}

/* 标题样式 - 只使用VonwaonBitmap 16px字体 */
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),
                0 1px 1px rgba(0, 0, 0, 0.1);
    letter-spacing: 0.03em;
    position: relative;
    margin-top: 1.8em;
    margin-bottom: 1em;
    padding-bottom: 0.5em;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    color: #111;
    line-height: 1.5;
}

h1::after, h2::after, h3::after { 
    content: ""; 
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(
        to right,
        var(--crt-glow-color),
        transparent 90%
    );
}

body h1 {
    font-size: calc(var(--base-font-size) * 1.7);
    text-transform: uppercase;
    padding-left: 10px;
    border-left: 3px solid var(--crt-glow-color);
}

h2 { font-size: calc(var(--base-font-size) * 1.5); }
h3 { font-size: calc(var(--base-font-size) * 1.3); }
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: all 0.25s ease;
    padding: 1px 3px;
    border-radius: 2px;
    text-shadow: 0 0 3px rgba(0, 100, 255, 0.15);
    font-family: var(--pixel-font-16);
}

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);
    transform: translateY(-1px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

a:active {
    transform: translateY(0);
    box-shadow: none;
}

/* 标记链接是可交互的 - 添加小图标 */
a[href]:not(.mw-selflink)::before {
    content: '>';
    display: inline-block;
    margin-right: 3px;
    font-size: 0.8em;
    opacity: 0.6;
    transition: all 0.2s ease;
}

a[href]:not(.mw-selflink):hover::before {
    opacity: 1;
    transform: translateX(1px);
}

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);
    font-family: var(--small-font);
    background-color: rgba(248, 249, 250, 0.95);
    float: right;
    border: 1px solid rgba(0, 0, 0, 0.15);
    padding: 0;
    overflow: auto;
    z-index: 1;
    overflow-wrap: anywhere;
    box-shadow: 
        2px 2px 5px rgba(0, 0, 0, 0.1),
        inset 0 0 10px rgba(0, 255, 100, 0.04);
    animation: flicker 80s infinite alternate;
    border-radius: 3px;
}

.notaninfobox > .infobox-title {
    font-family: var(--title-font);
    font-weight: normal;
    text-align: center;
    font-size: 110%;
    background: linear-gradient(to bottom, #d5e5fb, var(--custom-mcwiki-header-color));
    color: #333;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.5), var(--crt-text-shadow);
    padding: 8px 4px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

/* 给标题添加光泽效果 */
.notaninfobox > .infobox-title::after {
    content: "";
    position: absolute;
    top: 0;
    left: -150%;
    width: 150%;
    height: 100%;
    background: linear-gradient(
        to right,
        transparent 0%,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.4) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(35deg);
    animation: shine 6s infinite;
}

@keyframes shine {
    0% { left: -150%; }
    30% { left: -150%; }
    60% { left: 150%; }
    100% { left: 150%; }
}

.notaninfobox .infobox-row .infobox-row-label {
    font-family: var(--UI-font);
    font-weight: 600;
    color: #444;
    text-shadow: none;
    letter-spacing: 0.03em;
}

/* 表格样式 - 增强质感 */
table {
    border: 1px solid #ccc;
    background-color: rgba(248, 249, 250, 0.95);
    box-shadow: 
        var(--box-depth),
        inset 0 0 15px rgba(240, 240, 240, 0.8);
    border-radius: 3px;
    margin: 1.2em 0;
    font-family: var(--pixel-font-12);
}

table caption {
    font-family: var(--title-font);
    font-size: calc(var(--base-font-size) * 1.05);
    padding: 8px;
    font-weight: normal;
    text-shadow: var(--crt-text-shadow);
}

table th {
    background: linear-gradient(to bottom, #f8f9fa, var(--custom-table-header-background));
    color: #333;
    font-family: var(--title-font);
    font-weight: normal;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.5), var(--crt-text-shadow);
    padding: 10px 14px;
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
}

table td, table th {
    border: 1px solid #e0e0e0;
    padding: 8px 12px;
    transition: all 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-12);
    font-size: calc(var(--base-font-size) * var(--code-scale));
    background-color: rgba(232, 232, 232, 0.8);
    border: 1px solid #d0d0d0;
    padding: 0.3em 0.5em;
    text-shadow: none;
    border-radius: 3px;
    color: #1a1a1a;
    position: relative;
}

pre {
    padding: 1em;
    overflow-x: auto;
    background-color: rgba(228, 230, 232, 0.9);
    box-shadow: 
        inset 0 1px 4px rgba(0,0,0,0.15),
        0 1px 0 rgba(255,255,255,0.7);
    counter-reset: line;
    margin: 1.5em 0;
}

/* 添加代码行号 */
pre code {
    display: block;
    position: relative;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    counter-increment: line;
}

pre code::before {
    content: counter(line);
    display: inline-block;
    width: 1.5em;
    margin-right: 1em;
    color: #888;
    text-align: right;
    user-select: none;
}

/* 确保文本内容清晰可读 */
p, li, td, th, figcaption, blockquote, cite {
    font-family: var(--body-font);
    line-height: 1.65;
    letter-spacing: 0.01em;
    position: relative;
    text-shadow: var(--crt-text-shadow);
}

/* 小字体元素 */
.small, small, .text-small, figcaption, .caption, .info, .note {
    font-family: var(--small-font);
    font-size: var(--small-font-size);
}

/* 图片效果 - 增强质感 */
img {
    max-width: 100%;
    height: auto;
    transition: all 0.3s ease;
    border-radius: 3px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    filter: contrast(1.02) brightness(1.01); /* 轻微增强对比度 */
}

img:hover {
    box-shadow: 
        0 3px 8px rgba(0, 0, 0, 0.15),
        0 0 10px var(--crt-glow-color);
    transform: scale(1.02) translateY(-2px);
    border-color: rgba(0, 255, 100, 0.3);
    filter: contrast(1.05) brightness(1.02);
}

/* 滚动条样式 - 像素风格 */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

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

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

::-webkit-scrollbar-thumb:hover {
    background: repeating-linear-gradient(
        to bottom,
        #bbb 0px,
        #bbb 2px,
        #aaa 3px,
        #aaa 5px
    );
}

/* 引用块样式 */
blockquote {
    border-left: 3px solid var(--crt-glow-color);
    margin: 1em 0;
    padding: 0.5em 1em;
    background: rgba(240, 240, 240, 0.5);
    position: relative;
    font-family: var(--body-font);
}

blockquote::before {
    content: """;
    position: absolute;
    top: 0;
    left: 10px;
    font-size: 2em;
    color: rgba(0, 0, 0, 0.1);
    font-family: serif;
}

/* 按钮样式 - 像素风格 */
.collapseButton, button, .mw-ui-button, input[type="button"], input[type="submit"] {
    font-family: var(--UI-font);
    font-size: calc(var(--base-font-size) * 0.85);
    padding: 4px 10px;
    border: 2px solid #666;
    border-bottom: 4px solid #444;
    border-right: 4px solid #444;
    border-radius: 0;
    background: #ddd;
    color: #333;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.15s ease;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
    margin: 2px 4px;
    position: relative;
    text-align: center;
}

.collapseButton:hover, button:hover, .mw-ui-button:hover, input[type="button"]:hover, input[type="submit"]:hover {
    background: #eee;
    border-color: #777;
    border-bottom-color: #555;
    border-right-color: #555;
    transform: translateY(-1px);
}

.collapseButton:active, button:active, .mw-ui-button:active, input[type="button"]:active, input[type="submit"]:active {
    background: #ccc;
    border: 2px solid #444;
    border-top: 4px solid #666;
    border-left: 4px solid #666;
    transform: translateY(1px);
    text-shadow: none;
}

.navbox .collapseButton {
    width: 6em;
}

/* 边栏样式 - 复古科幻风格 */
.side-block {
    background: 
        linear-gradient(135deg, rgba(0, 255, 100, 0.05) 0%, transparent 100%),
        linear-gradient(to bottom, rgba(220, 230, 240, 0.85), rgba(190, 210, 225, 0.95));
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 0;
    margin: 0.5rem 0.5rem 1rem 0;
    padding: 0;
    box-shadow: 
        var(--box-depth),
        inset 0 0 20px rgba(0, 200, 255, 0.07);
    font-family: var(--UI-font);
    position: relative;
    overflow: hidden;
}

.side-block::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--crt-glow-color), transparent);
}

.side-block::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(0, 0, 0, 0.1), transparent);
}

.side-block .heading {
    font-family: var(--title-font);
    font-size: calc(var(--base-font-size) * 0.95);
    color: #222;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5), var(--crt-text-shadow);
    padding: 0.5rem 0.7rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.15);
    background: linear-gradient(to bottom, #e8f0f8, #c8d8e8);
    letter-spacing: 0.05em;
    position: relative;
    text-transform: uppercase;
}

.side-block .heading::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0));
}

.side-block .heading p {
    margin: 0;
    padding: 0;
}

.side-block div.menu-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
    border-top: 1px solid rgba(255, 255, 255, 0.7);
    position: relative;
}

.side-block div.menu-item:last-child {
    border-bottom: none;
}

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

.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);
    transform: translateX(2px);
}

.side-block div.menu-item a::before {
    content: '►';
    display: inline-block;
    margin-right: 5px;
    font-size: 0.8em;
    opacity: 0;
    transition: all 0.2s ease;
    transform: translateX(-5px);
}

.side-block div.menu-item a:hover::before {
    opacity: 0.7;
    transform: translateX(0);
}

/* CRT页面启动效果 - 暗角、闪烁和亮线 */
.crt-startup-effect {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    z-index: 10000;
    opacity: 1;
    pointer-events: none;
    animation: crt-startup-fade 2.5s forwards;
}

@keyframes crt-startup-fade {
    0% { opacity: 1; }
    15% { opacity: 0.7; }
    20% { opacity: 0.9; }
    25% { opacity: 0.6; }
    30% { opacity: 0.9; }
    35% { opacity: 0.2; }
    40% { opacity: 0; }
    100% { opacity: 0; visibility: hidden; }
}

/* 页面加载后自动添加CRT效果元素 */
document.addEventListener('DOMContentLoaded', function() {
    // 创建一个隐藏/显示扫描线效果的按钮
    var toggleButton = document.createElement('button');
    toggleButton.innerHTML = '切换扫描线';
    toggleButton.style.position = 'fixed';
    toggleButton.style.bottom = '10px';
    toggleButton.style.right = '10px';
    toggleButton.style.zIndex = '10000';
    toggleButton.style.fontSize = '12px';
    toggleButton.style.padding = '4px 8px';
    toggleButton.style.opacity = '0.7';
    
    // 添加事件监听
    toggleButton.addEventListener('click', function() {
        var root = document.documentElement;
        var currentDisplay = getComputedStyle(root).getPropertyValue('--crt-effects-display').trim();
        
        if (currentDisplay === 'block' || currentDisplay === '') {
            root.style.setProperty('--crt-effects-display', 'none');
            toggleButton.innerHTML = '显示扫描线';
        } else {
            root.style.setProperty('--crt-effects-display', 'block');
            toggleButton.innerHTML = '隐藏扫描线';
        }
    });
    
    document.body.appendChild(toggleButton);
    
    // 添加扫描线和启动效果元素
    var body = document.querySelector('body');
    
    // 主扫描线
    var primaryScanline = document.createElement('div');
    primaryScanline.className = 'crt-primary-scanline';
    body.appendChild(primaryScanline);
    
    // 副扫描线
    var secondaryScanline = document.createElement('div');
    secondaryScanline.className = 'crt-secondary-scanline';
    body.appendChild(secondaryScanline);
    
    // 快速扫描线
    var fastScanline = document.createElement('div');
    fastScanline.className = 'crt-fast-scanline';
    body.appendChild(fastScanline);
    
    // 启动效果
    var startupEffect = document.createElement('div');
    startupEffect.className = 'crt-startup-effect';
    body.appendChild(startupEffect);
});

/* 媒体查询 */
@media screen and (max-width: 768px) {
	:root {
		--base-font-size: 14px;
        --small-font-size: 12px;
	}
    body { 
        padding: 1rem; 
        margin: 0.5rem; 
    }
}

@media screen and (min-width: 1440px) {
	:root {
		--base-font-size: 16px;
        --small-font-size: 14px;
	}
}

/* 打印样式优化 */
@media print {
    :root {
        --crt-effects-display: none;
    }
    
    html, body {
        background: #fff !important;
        color: #000 !important;
    }
    
    body::before,
    .crt-primary-scanline,
    .crt-secondary-scanline,
    .crt-fast-scanline,
    .crt-startup-effect {
        display: none !important;
    }
    
    * {
        text-shadow: none !important;
        box-shadow: none !important;
        animation: none !important;
        border-color: #ddd !important;
    }
    
    a {
        color: #000 !important;
        text-decoration: underline !important;
    }
    
    a::before {
        display: none !important;
    }
    
    pre, code {
        border: 1px solid #ddd;
        background: #f8f8f8 !important;
    }
}