MediaWiki:Common.css
MediaWiki界面页面
更多操作
注意:在发布之后,您可能需要清除浏览器缓存才能看到所作出的更改的影响。
- Firefox或Safari:按住Shift的同时单击刷新,或按Ctrl-F5或Ctrl-R(Mac为⌘-R)
- Google Chrome:按Ctrl-Shift-R(Mac为⌘-Shift-R)
- Edge:按住Ctrl的同时单击刷新,或按Ctrl-F5。
:root {
--jzy-ink: #eef8fb;
--jzy-muted: #c7d9df;
--jzy-blue: #78d8f0;
--jzy-blue-soft: #a8edf4;
--jzy-green: #5ab878;
--jzy-green-soft: #b8f0c8;
--jzy-gold: #f4cf78;
--jzy-gold-soft: #ffe7a8;
--jzy-border: rgba(126, 204, 218, 0.24);
}
html {
min-height: 100%;
}
body {
min-height: 100%;
color: var(--jzy-ink);
background: url("/images/1/18/%E4%B8%BB%E9%A1%B5%E8%83%8C%E6%99%AF1980.png") no-repeat fixed center center / cover;
font-family: "Microsoft YaHei", "Segoe UI", Arial, sans-serif;
}
/* 不再使用全屏遮罩,确保背景图保持清晰 */
#mw-page-base {
background: transparent !important;
}
/* ===== 主体内容:轻量玻璃,不压暗背景 ===== */
.mw-body {
background: rgba(12, 28, 38, 0.24) !important;
color: var(--jzy-ink) !important;
border: 1px solid rgba(126, 204, 218, 0.22) !important;
border-radius: 18px !important;
box-shadow:
0 12px 28px rgba(0, 0, 0, 0.18),
inset 0 1px 0 rgba(255, 255, 255, 0.10) !important;
backdrop-filter: blur(3px) saturate(115%);
-webkit-backdrop-filter: blur(3px) saturate(115%);
}
.mw-body-content,
.mw-parser-output {
background: transparent !important;
color: var(--jzy-ink) !important;
}
.mw-body-content p,
.mw-parser-output li {
line-height: 1.88 !important;
color: var(--jzy-ink) !important;
text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
}
.mw-body-content b,
.mw-body-content strong {
color: #ffffff !important;
text-shadow: 0 1px 4px rgba(0, 0, 0, 0.58);
}
/* ===== 顶部与侧边栏:更轻,不抢背景 ===== */
#mw-head,
.vector-header-container {
background: rgba(8, 22, 34, 0.18) !important;
backdrop-filter: blur(4px);
-webkit-backdrop-filter: blur(4px);
}
#mw-panel {
background: rgba(8, 22, 34, 0.24) !important;
color: var(--jzy-muted) !important;
border-right: 1px solid rgba(126, 204, 218, 0.12);
}
#mw-panel .portal,
#mw-panel nav {
background: rgba(8, 22, 34, 0.22);
border: 1px solid rgba(126, 204, 218, 0.12);
border-radius: 12px;
margin: 8px 8px 12px;
padding: 8px 10px;
}
/* ===== 标题层级:靠文字阴影保证清晰 ===== */
h1,
.firstHeading {
color: #f6fdff !important;
font-weight: 900 !important;
letter-spacing: 0 !important;
text-shadow:
0 3px 12px rgba(0, 0, 0, 0.70),
0 0 20px rgba(120, 216, 240, 0.18) !important;
}
h2 {
color: var(--jzy-blue-soft) !important;
font-weight: 850 !important;
font-size: 1.65em !important;
border-bottom: none !important;
padding-bottom: 6px !important;
margin-top: 1.45em !important;
text-shadow:
0 2px 7px rgba(0, 0, 0, 0.68),
0 0 14px rgba(120, 216, 240, 0.15) !important;
}
h2::after {
content: "";
display: block;
width: 100%;
height: 3px;
margin-top: 10px;
border-radius: 999px;
background: linear-gradient(90deg, var(--jzy-blue), var(--jzy-green), var(--jzy-gold));
box-shadow: 0 0 14px rgba(120, 216, 240, 0.26);
}
h3 {
color: var(--jzy-green-soft) !important;
font-weight: 800 !important;
text-shadow: 0 2px 6px rgba(0, 0, 0, 0.62) !important;
}
h4 {
color: #b7e9f4 !important;
font-weight: 750 !important;
text-shadow: 0 1px 4px rgba(0, 0, 0, 0.55) !important;
}
/* ===== 链接 ===== */
.mw-body-content a:link,
.mw-parser-output a:link {
color: var(--jzy-blue) !important;
text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}
.mw-body-content a:visited,
.mw-parser-output a:visited {
color: #86cfe0 !important;
}
.mw-body-content a:hover,
.mw-parser-output a:hover {
color: var(--jzy-gold) !important;
text-decoration: none !important;
text-shadow: 0 0 10px rgba(244, 207, 120, 0.42);
}
#mw-panel a:link,
#mw-panel a:visited {
color: #c3e3ec !important;
}
#mw-panel a:hover {
color: var(--jzy-gold) !important;
}
/* ===== 目录 ===== */
.toc {
background: rgba(8, 22, 34, 0.34) !important;
border: 1px solid rgba(126, 204, 218, 0.24) !important;
border-radius: 14px !important;
padding: 14px 18px !important;
color: var(--jzy-ink) !important;
box-shadow:
inset 0 1px 0 rgba(255, 255, 255, 0.10),
0 10px 22px rgba(0, 0, 0, 0.14);
backdrop-filter: blur(3px);
-webkit-backdrop-filter: blur(3px);
}
.toc h2 {
color: var(--jzy-blue-soft) !important;
font-weight: 800 !important;
}
.toclevel-1 > .toclink::before {
content: "▸ ";
color: var(--jzy-blue);
}
/* ===== 表格与普通内容块 ===== */
.wikitable {
background: rgba(8, 22, 34, 0.26) !important;
color: var(--jzy-ink) !important;
border: 1px solid rgba(126, 204, 218, 0.18) !important;
border-radius: 12px;
overflow: hidden;
}
.wikitable > tr > th,
.wikitable > * > tr > th {
background: rgba(8, 74, 88, 0.46) !important;
color: #f5fcff !important;
}
.wikitable > tr > td,
.wikitable > * > tr > td {
border-color: rgba(126, 204, 218, 0.14) !important;
}
pre,
code {
background: rgba(5, 18, 28, 0.56) !important;
color: #e8fbff !important;
border: 1px solid rgba(126, 204, 218, 0.22) !important;
border-radius: 8px;
}
/* ===== 首页卡片:轻透明,不遮背景 ===== */
.feature-card,
.hot-card,
.stat-card {
position: relative;
overflow: hidden;
border: 1px solid rgba(255, 255, 255, 0.10);
box-shadow:
0 10px 22px rgba(0, 0, 0, 0.16),
inset 0 1px 0 rgba(255, 255, 255, 0.10);
backdrop-filter: blur(3px);
-webkit-backdrop-filter: blur(3px);
}
.feature-card::before,
.hot-card::before,
.stat-card::before {
content: "";
position: absolute;
inset: 0;
background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent 48%);
pointer-events: none;
}
.feature-card {
padding: 18px 14px;
border-radius: 14px;
text-align: center;
font-weight: bold;
border-bottom: 3px solid;
}
.feature-card-blue,
.hot-card-cyan,
.stat-card-blue {
background: rgba(8, 74, 88, 0.44);
color: #e0fbff;
border-bottom-color: #16c3d0;
}
.feature-card-green,
.hot-card-green,
.stat-card-green {
background: rgba(18, 70, 42, 0.44);
color: #d7f8e2;
border-bottom-color: #5ab878;
}
.feature-card-orange,
.hot-card-orange {
background: rgba(98, 67, 20, 0.40);
color: #ffe9ad;
border-bottom-color: #d4a848;
}
.feature-card-red,
.hot-card-red {
background: rgba(80, 26, 48, 0.40);
color: #f4c9dc;
border-bottom-color: #d95b91;
}
.hot-card {
padding: 14px 16px;
border-radius: 10px;
font-weight: 700;
text-align: center;
border-bottom: 3px solid;
}
.stat-card {
padding: 20px 16px;
border-radius: 14px;
text-align: center;
font-weight: 800;
border-bottom: 3px solid;
}
.divider {
border: 0;
height: 3px;
margin: 24px 0;
border-radius: 999px;
background: linear-gradient(90deg, var(--jzy-blue), var(--jzy-green), var(--jzy-gold));
opacity: 0.95;
}
/* ===== 游戏资讯模块:降低遮挡,保留卡片可读性 ===== */
.jzy-game-info {
background:
radial-gradient(circle at 12% 8%, rgba(120, 216, 240, 0.10), transparent 30%),
radial-gradient(circle at 86% 16%, rgba(244, 207, 120, 0.12), transparent 26%),
linear-gradient(135deg, rgba(12, 40, 54, 0.44), rgba(8, 74, 88, 0.38) 48%, rgba(18, 70, 42, 0.38)) !important;
border: 1px solid rgba(126, 204, 218, 0.26) !important;
border-radius: 18px !important;
box-shadow:
0 12px 26px rgba(0, 0, 0, 0.18),
inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
backdrop-filter: blur(3px) saturate(115%);
-webkit-backdrop-filter: blur(3px) saturate(115%);
}
.jzy-tabs {
background: rgba(8, 38, 50, 0.34) !important;
border: 1px solid rgba(126, 204, 218, 0.24) !important;
}
.jzy-tab {
color: #c5e9f0 !important;
}
.jzy-tab:hover {
color: var(--jzy-gold) !important;
background: rgba(255, 255, 255, 0.08) !important;
}
.jzy-tab.is-active {
background: linear-gradient(180deg, rgba(120, 216, 240, 0.24), rgba(90, 184, 120, 0.16)) !important;
color: #f7fdff !important;
box-shadow: inset 0 -3px 0 var(--jzy-gold) !important;
}
.jzy-heading {
background: rgba(8, 22, 34, 0.28) !important;
border-color: rgba(126, 204, 218, 0.26) !important;
color: #f7fdff !important;
}
.jzy-card {
background: rgba(8, 22, 34, 0.38) !important;
border: 1px solid rgba(126, 204, 218, 0.22) !important;
box-shadow:
0 7px 0 rgba(8, 74, 88, 0.46),
0 12px 20px rgba(0, 0, 0, 0.16) !important;
}
.jzy-card:hover {
background: rgba(8, 74, 88, 0.56) !important;
border-color: rgba(244, 207, 120, 0.56) !important;
color: var(--jzy-gold) !important;
}
.jzy-fallback {
background: linear-gradient(145deg, #0fb4c1, #5ab878) !important;
color: #f7fdff !important;
}
/* ===== 页脚 ===== */
#footer {
color: #d2e4e8 !important;
text-shadow: 0 1px 4px rgba(0, 0, 0, 0.58);
}
#footer a {
color: #d7eef4 !important;
}
/* ===== 移动端适配 ===== */
@media (max-width: 560px) {
.mw-body {
background: rgba(12, 28, 38, 0.30) !important;
border-radius: 12px !important;
backdrop-filter: blur(3px) saturate(112%);
-webkit-backdrop-filter: blur(3px) saturate(112%);
}
h2 {
font-size: 1.35em !important;
}
h2::after {
height: 2px;
margin-top: 6px;
}
}
/* ===== 官网式页脚 ===== */
#citizen-footer,
.citizen-footer,
#footer,
.mw-footer {
background: #534646 !important;
color: #ffffff !important;
border: 0 !important;
box-shadow: none !important;
}
/* 首页脚本插入新版页脚后,隐藏 Citizen 的旧版布局,避免重复显示。 */
#citizen-footer.jzy-footer-ready > :not(#jzy-official-footer),
.citizen-footer.jzy-footer-ready > :not(#jzy-official-footer),
#footer.jzy-footer-ready > :not(#jzy-official-footer),
.mw-footer.jzy-footer-ready > :not(#jzy-official-footer) {
display: none !important;
}
#jzy-official-footer {
width: min(100% - 64px, 1760px);
margin: 0 auto;
padding: 48px 0 30px;
color: #ffffff !important;
box-sizing: border-box;
}
#jzy-official-footer * {
box-sizing: border-box;
}
.jzy-official-footer-top {
display: flex;
align-items: center;
justify-content: space-between;
gap: 28px;
min-height: 118px;
}
.jzy-official-footer-brand {
display: inline-flex;
align-items: center;
width: 220px;
color: #ffffff !important;
text-decoration: none !important;
}
.jzy-official-footer-brand img {
display: block;
width: 100%;
height: auto;
max-height: 150px;
object-fit: contain;
filter: drop-shadow(0 7px 10px rgba(0, 0, 0, 0.24));
}
.jzy-official-footer-socials {
display: flex;
align-items: center;
justify-content: flex-end;
flex-wrap: wrap;
gap: 14px;
}
.jzy-footer-social {
display: grid;
place-items: center;
width: 56px;
height: 56px;
padding: 10px;
border: 1px solid rgba(255, 255, 255, 0.08);
border-radius: 12px;
background: rgba(58, 46, 46, 0.30);
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.jzy-footer-social img {
display: block;
width: 34px;
height: 34px;
object-fit: contain;
}
.jzy-official-footer-rule {
height: 1px;
margin: 34px 0 26px;
background: rgba(255, 255, 255, 0.13);
}
.jzy-official-footer-bottom {
display: flex;
align-items: flex-end;
justify-content: space-between;
gap: 28px;
}
.jzy-official-footer-copy {
max-width: 820px;
margin: 0;
color: rgba(255, 255, 255, 0.92) !important;
font-size: 15px;
line-height: 1.8;
}
.jzy-official-footer-copy strong {
color: #fae5bd !important;
}
.jzy-official-footer-links {
display: flex;
align-items: center;
justify-content: flex-end;
flex-wrap: wrap;
gap: 22px;
}
.jzy-official-footer-links a {
color: #ffffff !important;
font-size: 15px;
font-weight: 700;
text-decoration: none !important;
white-space: nowrap;
}
.jzy-official-footer-links a:hover,
.jzy-official-footer-links a:focus-visible {
color: #fae5bd !important;
text-decoration: underline !important;
text-underline-offset: 4px;
}
@media (max-width: 720px) {
#jzy-official-footer {
width: min(100% - 36px, 1760px);
padding: 34px 0 26px;
}
.jzy-official-footer-top,
.jzy-official-footer-bottom {
align-items: flex-start;
flex-direction: column;
}
.jzy-official-footer-brand {
width: 176px;
}
.jzy-official-footer-socials,
.jzy-official-footer-links {
justify-content: flex-start;
gap: 10px 16px;
}
.jzy-footer-social {
width: 48px;
height: 48px;
}
}