杂物间:空山新雨后/styles.css
来自EaseCation Wiki
更多操作
/* 杂物间:空山新雨后 - "我想你"蔓延效果样式 */
/* 配合 JS 动态生成文字 */
/* 容器 - 仿论坛帖子风格 */
.miss-you-container {
position: relative;
width: 100%;
min-height: 600px;
overflow: hidden;
background: #FEFEFE;
font-family: "SimSun", "宋体", "Microsoft YaHei", serif;
font-size: 14px;
line-height: 1.6;
color: #2F2F2F;
padding: 15px;
box-sizing: border-box;
border: 1px solid #DDD;
transition: background-color 0.5s ease;
}
/* 正文文字 */
.miss-you-content p {
margin: 0.8em 0;
text-indent: 2em;
font-weight: normal;
}
/* 覆盖层 - JS 动态生成文字的容器 */
.miss-you-overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
pointer-events: none;
z-index: 10;
overflow: hidden;
}
/* JS 动态生成的文字 */
.miss-word {
position: absolute;
font-weight: bold;
color: #000000;
white-space: nowrap;
pointer-events: none;
font-family: inherit;
transition: opacity 0.15s ease;
z-index: 15;
}
/* 黑色遮罩 */
.miss-you-blackout {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: #000000;
z-index: 50;
opacity: 0;
pointer-events: none;
transition: opacity 1.5s ease;
}
.miss-you-blackout.show {
opacity: 0.92;
}
/* 终局红色大字 */
.miss-you-final {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
font-size: 48px;
font-weight: bold;
color: #FF0000;
text-align: center;
z-index: 100;
font-family: "SimHei", "Microsoft YaHei", sans-serif;
letter-spacing: 8px;
text-shadow: 0 0 20px rgba(255,0,0,0.5), 0 0 40px rgba(255,0,0,0.3);
white-space: nowrap;
opacity: 0;
pointer-events: none;
transition: opacity 1s ease;
}
.miss-you-final.show {
opacity: 1;
}
/* 仿论坛头部 */
.miss-you-header {
background: #F0F7FF;
border-bottom: 1px solid #CCCCCC;
padding: 12px 15px;
margin: -15px -15px 20px -15px;
}
.miss-you-header h2 {
font-size: 18px;
font-weight: bold;
color: #003366;
margin: 0;
padding-bottom: 10px;
border-bottom: 2px solid #EAEFF3;
}
.miss-you-header .post-meta {
color: #999;
font-size: 11px;
margin-top: 5px;
}
/* 仿论坛底部 */
.miss-you-footer {
margin-top: 20px;
border-top: 1px solid #EEE;
padding-top: 10px;
text-align: right;
font-size: 12px;
}
.miss-you-footer a {
color: #003366;
text-decoration: none;
}
/* === 全页面变黑效果 === */
/* 全页面遮罩层 - 覆盖整个视口 */
.miss-you-page-blackout {
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
background: #000000;
z-index: 9999;
opacity: 0;
pointer-events: none;
transition: opacity 1.5s ease;
}
.miss-you-page-blackout.show {
opacity: 0.95;
pointer-events: auto;
}
/* 终局红色大字 - 全屏居中 */
.miss-you-final {
position: fixed !important;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
font-size: 64px;
font-weight: bold;
color: #FF0000;
text-align: center;
z-index: 10000;
font-family: "SimHei", "Microsoft YaHei", sans-serif;
letter-spacing: 12px;
text-shadow: 0 0 30px rgba(255,0,0,0.6), 0 0 60px rgba(255,0,0,0.4), 0 0 90px rgba(255,0,0,0.2);
white-space: nowrap;
opacity: 0;
pointer-events: none;
transition: opacity 1.5s ease;
}
.miss-you-final.show {
opacity: 1;
animation: finalPulse 3s ease-in-out infinite;
}
@keyframes finalPulse {
0%, 100% { text-shadow: 0 0 30px rgba(255,0,0,0.6), 0 0 60px rgba(255,0,0,0.4), 0 0 90px rgba(255,0,0,0.2); }
50% { text-shadow: 0 0 40px rgba(255,0,0,0.8), 0 0 80px rgba(255,0,0,0.6), 0 0 120px rgba(255,0,0,0.3); }
}
/* 页面变黑时的过渡效果 */
body.miss-black-mode {
transition: background-color 0.5s ease;
background-color: #000000 !important;
}
body.miss-black-mode .citizen-body,
body.miss-black-mode .citizen-header,
body.miss-black-mode .citizen-sidebar,
body.miss-black-mode .citizen-footer,
body.miss-black-mode .citizen-search,
body.miss-black-mode #mw-navigation,
body.miss-black-mode .mw-body,
body.miss-black-mode .mw-parser-output,
body.miss-black-mode #content,
body.miss-black-mode #mw-panel,
body.miss-black-mode #footer {
background-color: #000000 !important;
color: #222 !important;
transition: all 0.5s ease;
}
body.miss-black-mode a,
body.miss-black-mode .mw-parser-output a,
body.miss-black-mode .citizen-body a {
color: #333 !important;
}
body.miss-black-mode .miss-you-container {
background-color: #000 !important;
border-color: #333 !important;
transition: all 0.5s ease;
}
body.miss-black-mode .miss-you-content p,
body.miss-black-mode .miss-you-header h2,
body.miss-black-mode .miss-you-header .post-meta,
body.miss-black-mode .miss-you-footer a {
color: #222 !important;
transition: color 0.5s ease;
}