打开/关闭菜单
打开/关闭外观设置菜单
打开/关闭个人菜单
未登录
未登录用户的IP地址会在进行任意编辑后公开展示。

MediaWiki:Common.css

MediaWiki界面页面
Jzyfate留言 | 贡献2026年7月17日 (五) 05:43的版本

注意:在发布之后,您可能需要清除浏览器缓存才能看到所作出的更改的影响。

  • Firefox或Safari:按住Shift的同时单击刷新,或按Ctrl-F5Ctrl-R(Mac为⌘-R
  • Google Chrome:Ctrl-Shift-R(Mac为⌘-Shift-R
  • Edge:按住Ctrl的同时单击刷新,或按Ctrl-F5
/* ===== 江中缘 Wiki 全局主题:明亮海岛玻璃版 ===== */
:root {
  --jzy-ink: #eef8fb;
  --jzy-muted: #c6d9df;
  --jzy-blue: #78d8f0;
  --jzy-blue-soft: #a8edf4;
  --jzy-blue-deep: #0b4a58;
  --jzy-green: #5ab878;
  --jzy-green-soft: #b8f0c8;
  --jzy-green-deep: #155d38;
  --jzy-gold: #f4cf78;
  --jzy-gold-soft: #ffe7a8;
  --jzy-panel: rgba(28, 55, 70, 0.54);
  --jzy-panel-soft: rgba(20, 35, 50, 0.42);
  --jzy-border: rgba(126, 204, 218, 0.30);
}

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.10), transparent 32%),
    radial-gradient(circle at 82% 18%, rgba(244, 207, 120, 0.11), transparent 30%),
    linear-gradient(135deg, rgba(4, 18, 28, 0.22), rgba(7, 34, 45, 0.20) 45%, rgba(8, 30, 18, 0.22));
  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(28, 55, 70, 0.54), rgba(12, 74, 88, 0.42) 48%, rgba(18, 70, 42, 0.42)) !important;
  color: var(--jzy-ink) !important;
  border: 1px solid rgba(126, 204, 218, 0.30) !important;
  border-radius: 18px !important;
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.14) !important;
  backdrop-filter: blur(8px) saturate(135%);
  -webkit-backdrop-filter: blur(8px) saturate(135%);
}

.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.42);
}

/* ===== 顶部与侧边栏 ===== */
#mw-head,
.vector-header-container {
  background: rgba(8, 22, 34, 0.24) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

#mw-panel {
  background: rgba(8, 22, 34, 0.34) !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.045);
  border: 1px solid rgba(126, 204, 218, 0.14);
  border-radius: 12px;
  margin: 8px 8px 12px;
  padding: 8px 10px;
}

/* ===== 标题层级 ===== */
h1,
.firstHeading {
  color: #f5fcff !important;
  font-weight: 900 !important;
  letter-spacing: 0 !important;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.56) !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 6px rgba(0, 0, 0, 0.48) !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.24);
}

h3 {
  color: var(--jzy-green-soft) !important;
  font-weight: 800 !important;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.42) !important;
}

h4 {
  color: #b7e9f4 !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: #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.34);
}

#mw-panel a:link,
#mw-panel a:visited {
  color: #c3e3ec !important;
}

#mw-panel a:hover {
  color: var(--jzy-gold) !important;
}

/* ===== 目录 ===== */
.toc {
  background: rgba(12, 44, 58, 0.50) !important;
  border: 1px solid rgba(126, 204, 218, 0.30) !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.18);
}

.toc h2 {
  color: var(--jzy-blue-soft) !important;
  font-weight: 800 !important;
}

.toclevel-1 > .toclink::before {
  content: "▸ ";
  color: var(--jzy-blue);
}

/* ===== 表格与普通内容块 ===== */
.wikitable {
  background: rgba(12, 44, 58, 0.38) !important;
  color: var(--jzy-ink) !important;
  border: 1px solid rgba(126, 204, 218, 0.20) !important;
  border-radius: 12px;
  overflow: hidden;
}

.wikitable > tr > th,
.wikitable > * > tr > th {
  background: rgba(8, 74, 88, 0.62) !important;
  color: #f5fcff !important;
}

.wikitable > tr > td,
.wikitable > * > tr > td {
  border-color: rgba(126, 204, 218, 0.16) !important;
}

pre,
code {
  background: rgba(5, 18, 28, 0.62) !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.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.10);
  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.13), 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.62);
  color: #e0fbff;
  border-bottom-color: #16c3d0;
}

.feature-card-green,
.hot-card-green,
.stat-card-green {
  background: rgba(18, 70, 42, 0.62);
  color: #d7f8e2;
  border-bottom-color: #5ab878;
}

.feature-card-orange,
.hot-card-orange {
  background: rgba(98, 67, 20, 0.58);
  color: #ffe9ad;
  border-bottom-color: #d4a848;
}

.feature-card-red,
.hot-card-red {
  background: rgba(80, 26, 48, 0.58);
  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.12), transparent 30%),
    radial-gradient(circle at 86% 16%, rgba(244, 207, 120, 0.16), transparent 26%),
    linear-gradient(135deg, rgba(28, 55, 70, 0.62), rgba(8, 92, 105, 0.52) 48%, rgba(24, 88, 52, 0.52)) !important;
  border: 1px solid rgba(126, 204, 218, 0.32) !important;
  border-radius: 18px !important;
  box-shadow:
    0 14px 32px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.13) !important;
}

.jzy-tabs {
  background: rgba(8, 38, 50, 0.46) !important;
  border: 1px solid rgba(126, 204, 218, 0.28) !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.28), rgba(90, 184, 120, 0.20)) !important;
  color: #f7fdff !important;
  box-shadow: inset 0 -3px 0 var(--jzy-gold) !important;
}

.jzy-heading {
  background: rgba(20, 35, 50, 0.38) !important;
  border-color: rgba(126, 204, 218, 0.30) !important;
  color: #f7fdff !important;
}

.jzy-card {
  background: rgba(20, 35, 50, 0.50) !important;
  border: 1px solid rgba(126, 204, 218, 0.24) !important;
  box-shadow:
    0 7px 0 rgba(8, 74, 88, 0.56),
    0 14px 24px rgba(0, 0, 0, 0.18) !important;
}

.jzy-card:hover {
  background: rgba(8, 74, 88, 0.66) !important;
  border-color: rgba(244, 207, 120, 0.58) !important;
  color: var(--jzy-gold) !important;
}

.jzy-fallback {
  background: linear-gradient(145deg, #0fb4c1, #5ab878) !important;
  color: #f7fdff !important;
}

/* ===== 页脚 ===== */
#footer {
  color: #bed0d6 !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.42);
}

#footer a {
  color: #c6e5ed !important;
}

/* ===== 移动端适配 ===== */
@media (max-width: 560px) {
  .mw-body {
    border-radius: 12px !important;
    backdrop-filter: blur(7px) saturate(130%);
    -webkit-backdrop-filter: blur(7px) saturate(130%);
  }

  h2 {
    font-size: 1.35em !important;
  }

  h2::after {
    height: 2px;
    margin-top: 6px;
  }
}