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。
/* ===== 江中缘 Wiki 全局主题 ===== */
:root {
--jzy-ink: #e8f1f4;
--jzy-muted: #b9cbd2;
--jzy-blue: #78d8f0;
--jzy-blue-deep: #082b3a;
--jzy-green: #5ab878;
--jzy-green-deep: #0a2e1f;
--jzy-gold: #f4cf78;
--jzy-gold-deep: #6f4d16;
--jzy-panel: rgba(14, 31, 43, 0.66);
--jzy-panel-soft: rgba(20, 35, 50, 0.52);
--jzy-border: rgba(126, 204, 218, 0.26);
--jzy-shadow: rgba(0, 0, 0, 0.38);
}
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;
}
/* 背景保护层:保留背景图,同时避免文字直接压在复杂画面上 */
body::before {
content: "";
position: fixed;
inset: 0;
pointer-events: none;
background:
radial-gradient(circle at 18% 8%, rgba(120, 216, 240, 0.14), transparent 30%),
radial-gradient(circle at 82% 18%, rgba(244, 207, 120, 0.12), transparent 28%),
linear-gradient(135deg, rgba(4, 18, 28, 0.42), rgba(7, 34, 45, 0.38) 45%, rgba(8, 30, 18, 0.44));
z-index: 0;
}
#mw-page-base,
#mw-head,
#mw-panel,
.mw-body,
#footer {
position: relative;
z-index: 1;
}
/* ===== 内容区:柔和玻璃层,减少和背景的硬切割 ===== */
#mw-page-base {
background: transparent !important;
}
.mw-body {
background:
linear-gradient(145deg, rgba(20, 35, 50, 0.70), rgba(10, 43, 58, 0.58) 48%, rgba(10, 46, 31, 0.56)) !important;
color: var(--jzy-ink) !important;
border: 1px solid var(--jzy-border) !important;
border-radius: 18px !important;
box-shadow:
0 22px 55px rgba(0, 0, 0, 0.34),
inset 0 1px 0 rgba(255, 255, 255, 0.10) !important;
backdrop-filter: blur(10px) saturate(125%);
-webkit-backdrop-filter: blur(10px) saturate(125%);
}
.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.86 !important;
color: var(--jzy-ink) !important;
}
.mw-body-content b,
.mw-body-content strong {
color: #ffffff !important;
text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}
/* ===== 顶部与侧边栏 ===== */
#mw-head,
.vector-header-container {
background: rgba(8, 22, 34, 0.36) !important;
backdrop-filter: blur(8px);
-webkit-backdrop-filter: blur(8px);
}
#mw-panel {
background: rgba(8, 22, 34, 0.46) !important;
color: var(--jzy-muted) !important;
border-right: 1px solid rgba(126, 204, 218, 0.16);
}
#mw-panel .portal,
#mw-panel nav {
background: rgba(255, 255, 255, 0.035);
border: 1px solid rgba(126, 204, 218, 0.12);
border-radius: 12px;
margin: 8px 8px 12px;
padding: 8px 10px;
}
/* ===== 标题层级 ===== */
h1,
.firstHeading {
color: #f3fbff !important;
font-weight: 900 !important;
letter-spacing: 0 !important;
text-shadow: 0 3px 12px rgba(0, 0, 0, 0.62) !important;
}
h2 {
color: #a8edf4 !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 6px rgba(0, 0, 0, 0.54) !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 16px rgba(120, 216, 240, 0.22);
}
h3 {
color: #b8f0c8 !important;
font-weight: 800 !important;
text-shadow: 0 2px 5px rgba(0, 0, 0, 0.48) !important;
}
h4 {
color: #a8dff0 !important;
font-weight: 750 !important;
}
/* ===== 链接 ===== */
.mw-body-content a:link,
.mw-parser-output a:link {
color: var(--jzy-blue) !important;
}
.mw-body-content a:visited,
.mw-parser-output a:visited {
color: #7ac9dd !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.34);
}
#mw-panel a:link,
#mw-panel a:visited {
color: #b8dce8 !important;
}
#mw-panel a:hover {
color: var(--jzy-gold) !important;
}
/* ===== 目录 ===== */
.toc {
background: rgba(12, 30, 42, 0.68) !important;
border: 1px solid var(--jzy-border) !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.08), 0 10px 24px rgba(0, 0, 0, 0.22);
}
.toc h2 {
color: #a8edf4 !important;
font-weight: 800 !important;
}
.toclevel-1 > .toclink::before {
content: "▸ ";
color: var(--jzy-blue);
}
/* ===== 表格与普通内容块 ===== */
.wikitable {
background: rgba(12, 30, 42, 0.46) !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, 43, 58, 0.72) !important;
color: #f3fbff !important;
}
.wikitable > tr > td,
.wikitable > * > tr > td {
border-color: rgba(126, 204, 218, 0.16) !important;
}
pre,
code {
background: rgba(5, 18, 28, 0.70) !important;
color: #dff8ff !important;
border: 1px solid rgba(126, 204, 218, 0.20) !important;
border-radius: 8px;
}
/* ===== 首页卡片类:海岛经营主题 ===== */
.feature-card,
.hot-card,
.stat-card {
position: relative;
overflow: hidden;
border: 1px solid rgba(255, 255, 255, 0.08);
box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.08);
backdrop-filter: blur(6px);
-webkit-backdrop-filter: blur(6px);
}
.feature-card::before,
.hot-card::before,
.stat-card::before {
content: "";
position: absolute;
inset: 0;
background: linear-gradient(135deg, rgba(255, 255, 255, 0.11), 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, 43, 58, 0.76);
color: #d8f6fb;
border-bottom-color: #0fb4c1;
}
.feature-card-green,
.hot-card-green,
.stat-card-green {
background: rgba(10, 46, 31, 0.76);
color: #cef4dc;
border-bottom-color: #42b971;
}
.feature-card-orange,
.hot-card-orange {
background: rgba(72, 48, 12, 0.72);
color: #ffe5a8;
border-bottom-color: #d4a848;
}
.feature-card-red,
.hot-card-red {
background: rgba(58, 20, 38, 0.72);
color: #f2c3d8;
border-bottom-color: #c64c82;
}
.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.92;
}
/* ===== 游戏资讯模块:与全局背景统一 ===== */
.jzy-game-info {
background:
radial-gradient(circle at 12% 8%, rgba(120, 216, 240, 0.14), transparent 30%),
radial-gradient(circle at 86% 16%, rgba(244, 207, 120, 0.13), transparent 26%),
linear-gradient(135deg, rgba(20, 35, 50, 0.74), rgba(8, 43, 58, 0.72) 48%, rgba(10, 46, 31, 0.72)) !important;
border: 1px solid var(--jzy-border) !important;
border-radius: 18px !important;
box-shadow: 0 18px 42px rgba(0, 0, 0, 0.30), inset 0 1px 0 rgba(255, 255, 255, 0.09) !important;
}
.jzy-card {
background: rgba(20, 35, 50, 0.62) !important;
border: 1px solid rgba(126, 204, 218, 0.22) !important;
box-shadow: 0 7px 0 rgba(8, 43, 58, 0.68), 0 14px 24px rgba(0, 0, 0, 0.22) !important;
}
.jzy-card:hover {
background: rgba(8, 43, 58, 0.80) !important;
border-color: rgba(244, 207, 120, 0.56) !important;
color: var(--jzy-gold) !important;
}
.jzy-tab.is-active {
background: linear-gradient(180deg, rgba(120, 216, 240, 0.26), rgba(90, 184, 120, 0.18)) !important;
color: #f3fbff !important;
box-shadow: inset 0 -3px 0 var(--jzy-gold) !important;
}
.jzy-fallback {
background: linear-gradient(145deg, #0a8b94, #5ab878) !important;
color: #f3fbff !important;
}
/* ===== 页脚 ===== */
#footer {
color: #a7b8bf !important;
text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}
#footer a {
color: #b8dce8 !important;
}
/* ===== 移动端适配 ===== */
@media (max-width: 560px) {
.mw-body {
border-radius: 12px !important;
backdrop-filter: blur(8px) saturate(120%);
-webkit-backdrop-filter: blur(8px) saturate(120%);
}
h2 {
font-size: 1.35em !important;
}
h2::after {
height: 2px;
margin-top: 6px;
}
}