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

MediaWiki:Common.css:修订间差异

MediaWiki界面页面
Jzyfate留言 | 贡献
无编辑摘要
Jzyfate留言 | 贡献
无编辑摘要
 
(未显示同一用户的11个中间版本)
第1行: 第1行:
/* ===== 江中缘 Wiki 全局主题:官网海岛配色版 ===== */
:root {
:root {
   /* 官网截图取色 */
   /* 官网截图取色 */
第30行: 第31行:
     radial-gradient(circle at 18% 8%, rgba(250, 229, 189, 0.18), transparent 34%),
     radial-gradient(circle at 18% 8%, rgba(250, 229, 189, 0.18), transparent 34%),
     linear-gradient(180deg, rgba(107, 193, 240, 0.22), rgba(57, 166, 229, 0.18) 42%, rgba(250, 229, 189, 0.08)),
     linear-gradient(180deg, rgba(107, 193, 240, 0.22), rgba(57, 166, 229, 0.18) 42%, rgba(250, 229, 189, 0.08)),
     url("https://wiki.mcjzy.net/images/4/46/%E6%B2%99%E6%BB%A9%E8%83%8C%E6%99%AF.png") no-repeat fixed center center / cover,
     url("https://wiki.mcjzy.net/images/thumb/f/fb/%E6%97%A0logo%E8%83%8C%E6%99%AF.png/180px-%E6%97%A0logo%E8%83%8C%E6%99%AF.png") no-repeat fixed center center / cover,
     var(--jzy-sky);
     var(--jzy-sky);
   font-family: "Microsoft YaHei", "Segoe UI", Arial, sans-serif;
   font-family: "Microsoft YaHei", "Segoe UI", Arial, sans-serif;
第535行: 第536行:
}
}


/* 首页脚本生成新版页脚后,隐藏 Citizen 原页脚,避免两套内容重叠。 */
/* 首页生成新版页脚后,隐藏 Citizen 的旧布局,避免内容重复。 */
#citizen-footer.jzy-footer-ready > :not(#jzy-official-footer),
#citizen-footer.jzy-footer-ready > :not(#jzy-official-footer),
.citizen-footer.jzy-footer-ready > :not(#jzy-official-footer),
.citizen-footer.jzy-footer-ready > :not(#jzy-official-footer),
第598行: 第599行:
   background: rgba(58, 46, 46, 0.30);
   background: rgba(58, 46, 46, 0.30);
   box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
   box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  color: #ffffff !important;
  text-decoration: none !important;
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}
a.jzy-footer-social:hover,
a.jzy-footer-social:focus-visible {
  transform: translateY(-2px);
  background: rgba(250, 229, 189, 0.16);
  border-color: rgba(250, 229, 189, 0.42);
}
}


第680行: 第691行:
     width: 48px;
     width: 48px;
     height: 48px;
     height: 48px;
  }
}
/* ===== 背景清晰化:保留透明层,取消背景模糊 ===== */
body {
  background:
    url("https://wiki.mcjzy.net/images/f/fb/%E6%97%A0logo%E8%83%8C%E6%99%AF.png") no-repeat fixed center center / cover,
    var(--jzy-sky) !important;
}
.mw-body,
.toc,
.feature-card,
.hot-card,
.stat-card,
.jzy-game-info,
#jzy-game-info,
.jzy-side-toc {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
/* ===== 页脚统一:清除 Citizen 外层留白与分层背景 ===== */
#mw-data-after-content,
.mw-page-container-footer,
.citizen-page-footer,
#footer,
.mw-footer,
#citizen-footer,
.citizen-footer {
  margin: 0 !important;
  border: 0 !important;
}
#mw-data-after-content {
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
#citizen-footer.jzy-footer-ready,
.citizen-footer.jzy-footer-ready,
#footer.jzy-footer-ready,
.mw-footer.jzy-footer-ready {
  display: block !important;
  min-height: 0 !important;
  padding: 0 !important;
  background: var(--jzy-footer) !important;
}
#jzy-official-footer {
  padding-top: 28px !important;
  padding-bottom: 30px !important;
}
.jzy-official-footer-top {
  min-height: 96px !important;
}
/* ===== 恢复官网原本的纯深棕页脚 =====
  放在 MediaWiki:Common.css 最底部,覆盖之前的页脚渐变规则。 */
.mw-page-container-footer,
.citizen-page-footer,
#citizen-footer.jzy-footer-ready,
.citizen-footer.jzy-footer-ready,
#footer.jzy-footer-ready,
.mw-footer.jzy-footer-ready {
  background: #534646 !important;
}
/* ===== 首页页脚最终修复:移除旧空容器造成的横向分割带 =====
  新版页脚 #jzy-official-footer 保留在它所在的真实页脚容器中。
  其余不含新版页脚的 Citizen/MediaWiki 旧页脚容器完全收起。 */
body:has(#jzy-official-footer) #mw-data-after-content,
body:has(#jzy-official-footer) .citizen-page-footer__info,
body:has(#jzy-official-footer) .citizen-page-footer .mw-footer-info,
body:has(#jzy-official-footer) .mw-footer-info,
body:has(#jzy-official-footer) #footer-info,
body:has(#jzy-official-footer) #footer-info-lastmod,
body:has(#jzy-official-footer) #footer-info-copyright {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
}
body:has(#jzy-official-footer) .mw-page-container-footer:not(:has(#jzy-official-footer)),
body:has(#jzy-official-footer) .citizen-page-footer:not(:has(#jzy-official-footer)),
body:has(#jzy-official-footer) #footer:not(:has(#jzy-official-footer)),
body:has(#jzy-official-footer) .mw-footer:not(:has(#jzy-official-footer)),
body:has(#jzy-official-footer) #citizen-footer:not(:has(#jzy-official-footer)),
body:has(#jzy-official-footer) .citizen-footer:not(:has(#jzy-official-footer)) {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: hidden !important;
}
/* 真正承载新版页脚的容器保持官网原本的纯深棕色,不使用渐变。 */
body:has(#jzy-official-footer) .mw-page-container-footer:has(#jzy-official-footer),
body:has(#jzy-official-footer) .citizen-page-footer:has(#jzy-official-footer),
body:has(#jzy-official-footer) #footer:has(#jzy-official-footer),
body:has(#jzy-official-footer) .mw-footer:has(#jzy-official-footer),
body:has(#jzy-official-footer) #citizen-footer:has(#jzy-official-footer),
body:has(#jzy-official-footer) .citizen-footer:has(#jzy-official-footer) {
  display: block !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: #534646 !important;
  box-shadow: none !important;
}
/* ===== 官网式页脚微调:移除白线并压缩留白 ===== */
#jzy-official-footer {
  width: min(calc(100% - 76px), 1760px) !important;
  padding: 34px 0 30px !important;
}
.jzy-official-footer-top {
  display: grid !important;
  grid-template-columns: minmax(180px, 1fr) auto;
  align-items: center !important;
  min-height: 0 !important;
  gap: 32px !important;
}
.jzy-official-footer-brand {
  width: 210px !important;
}
.jzy-official-footer-brand img {
  max-height: 122px !important;
}
.jzy-official-footer-socials {
  gap: 12px !important;
}
.jzy-footer-social {
  width: 54px !important;
  height: 54px !important;
}
/* 删除页脚内部的白色横线。 */
.jzy-official-footer-rule {
  display: none !important;
}
.jzy-official-footer-bottom {
  align-items: flex-end !important;
  margin-top: 28px !important;
  padding-top: 22px !important;
  border-top: 0 !important;
}
.jzy-official-footer-copy {
  max-width: 900px !important;
  font-size: 16px !important;
  line-height: 1.78 !important;
}
.jzy-official-footer-links {
  gap: 18px !important;
}
@media (max-width: 720px) {
  #jzy-official-footer {
    width: min(calc(100% - 36px), 1760px) !important;
    padding: 28px 0 24px !important;
  }
  .jzy-official-footer-top {
    grid-template-columns: 1fr !important;
    gap: 22px !important;
  }
  .jzy-official-footer-bottom {
    margin-top: 22px !important;
    padding-top: 0 !important;
  }
}
/* ===== 页脚排版精修:两行清晰布局 ===== */
#jzy-official-footer {
  width: min(calc(100% - 92px), 1760px) !important;
  padding: 32px 0 26px !important;
}
.jzy-official-footer-top {
  grid-template-columns: minmax(180px, 1fr) auto !important;
  gap: 40px !important;
}
.jzy-official-footer-brand {
  width: 190px !important;
}
.jzy-official-footer-brand img {
  max-height: 108px !important;
}
.jzy-official-footer-socials {
  gap: 14px !important;
}
.jzy-footer-social {
  width: 52px !important;
  height: 52px !important;
  padding: 9px !important;
  border-radius: 10px !important;
}
.jzy-footer-social img {
  width: 32px !important;
  height: 32px !important;
}
.jzy-official-footer-bottom {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end !important;
  gap: 36px !important;
  margin-top: 20px !important;
  padding-top: 0 !important;
}
.jzy-official-footer-copy {
  max-width: 1120px !important;
  font-size: 15px !important;
  line-height: 1.72 !important;
}
.jzy-official-footer-links {
  align-self: end;
  gap: 20px !important;
  padding-bottom: 2px;
}
@media (max-width: 720px) {
  #jzy-official-footer {
    width: min(calc(100% - 40px), 1760px) !important;
    padding: 28px 0 24px !important;
  }
  .jzy-official-footer-top,
  .jzy-official-footer-bottom {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  .jzy-official-footer-socials,
  .jzy-official-footer-links {
    justify-content: flex-start !important;
  }
  .jzy-official-footer-links {
    align-self: start;
    padding-bottom: 0;
   }
   }
}
}

2026年7月27日 (一) 10:49的最新版本

/* ===== 江中缘 Wiki 全局主题:官网海岛配色版 ===== */
:root {
  /* 官网截图取色 */
  --jzy-sky: #6bc1f0;
  --jzy-sea: #39a6e5;
  --jzy-sand: #fae5bd;
  --jzy-footer: #534646;

  /* Wiki 主题延展色 */
  --jzy-deep: #0b3f55;
  --jzy-deep-2: #11384a;
  --jzy-teal: #28c7c9;
  --jzy-green: #5ab878;
  --jzy-gold: #f4cf78;
  --jzy-rose: #e86f9e;
  --jzy-ink: #f3fbff;
  --jzy-muted: #d5edf5;
  --jzy-border: rgba(178, 235, 246, 0.30);
  --jzy-glass: rgba(14, 71, 92, 0.34);
  --jzy-glass-strong: rgba(10, 55, 74, 0.50);
}

html {
  min-height: 100%;
}

body {
  min-height: 100%;
  color: var(--jzy-ink);
  background:
    radial-gradient(circle at 18% 8%, rgba(250, 229, 189, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(107, 193, 240, 0.22), rgba(57, 166, 229, 0.18) 42%, rgba(250, 229, 189, 0.08)),
    url("https://wiki.mcjzy.net/images/thumb/f/fb/%E6%97%A0logo%E8%83%8C%E6%99%AF.png/180px-%E6%97%A0logo%E8%83%8C%E6%99%AF.png") no-repeat fixed center center / cover,
    var(--jzy-sky);
  font-family: "Microsoft YaHei", "Segoe UI", Arial, sans-serif;
}

/* ===== MediaWiki 默认区域:透明化,避免切割背景 ===== */
#mw-page-base,
.mw-body-content,
.mw-parser-output {
  background: transparent !important;
}

.mw-body {
  background:
    linear-gradient(135deg, rgba(13, 81, 105, 0.28), rgba(11, 63, 85, 0.20)) !important;
  color: var(--jzy-ink) !important;
  border: 1px solid rgba(178, 235, 246, 0.26) !important;
  border-radius: 18px !important;
  box-shadow:
    0 16px 32px rgba(22, 77, 98, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.16) !important;
  backdrop-filter: blur(3px) saturate(116%);
  -webkit-backdrop-filter: blur(3px) saturate(116%);
}

.mw-body-content p,
.mw-parser-output li {
  line-height: 1.88 !important;
  color: var(--jzy-ink) !important;
  text-shadow: 0 1px 3px rgba(21, 49, 64, 0.62);
}

.mw-body-content b,
.mw-body-content strong {
  color: #ffffff !important;
  text-shadow: 0 1px 4px rgba(21, 49, 64, 0.68);
}

/* ===== 顶部与侧边栏 ===== */
#mw-head,
#mw-header,
#mw-navigation,
#p-personal,
.mw-header,
.vector-header-container,
.vector-sticky-header,
.citizen-header,
#citizen-header,
.citizen-sticky-header,
.citizen-page-header,
.citizen-header__inner,
.citizen-header__start,
.citizen-header__end {
  background:
    linear-gradient(180deg, rgba(107, 193, 240, 0.92), rgba(57, 166, 229, 0.86)) !important;
  color: #ffffff !important;
  border-bottom: 1px solid rgba(250, 229, 189, 0.38) !important;
  box-shadow: 0 8px 20px rgba(22, 77, 98, 0.18) !important;
  backdrop-filter: blur(5px) saturate(115%);
  -webkit-backdrop-filter: blur(5px) saturate(115%);
}

#mw-head a,
#mw-header a,
#mw-navigation a,
#p-personal a,
.mw-header a,
.vector-header-container a,
.vector-sticky-header a,
.citizen-header a,
#citizen-header a,
.citizen-sticky-header a,
.citizen-page-header a {
  color: #ffffff !important;
}

#mw-head button,
#mw-header button,
#mw-navigation button,
.mw-header button,
.vector-header-container button,
.vector-sticky-header button,
.citizen-header button,
#citizen-header button,
.citizen-sticky-header button,
.citizen-page-header button {
  color: #ffffff !important;
}

.citizen-header .oo-ui-iconElement-icon,
#citizen-header .oo-ui-iconElement-icon,
.mw-header .oo-ui-iconElement-icon,
.vector-header-container .oo-ui-iconElement-icon {
  filter: brightness(0) invert(1) drop-shadow(0 1px 2px rgba(0, 0, 0, 0.20));
}

#mw-panel {
  background: rgba(14, 84, 112, 0.24) !important;
  color: var(--jzy-muted) !important;
  border-right: 1px solid rgba(178, 235, 246, 0.16);
}

#mw-panel .portal,
#mw-panel nav {
  background: rgba(9, 68, 94, 0.24);
  border: 1px solid rgba(178, 235, 246, 0.16);
  border-radius: 12px;
  margin: 8px 8px 12px;
  padding: 8px 10px;
}

/* ===== 标题层级 ===== */
h1,
.firstHeading {
  color: #ffffff !important;
  font-weight: 900 !important;
  letter-spacing: 0 !important;
  text-shadow:
    0 3px 12px rgba(13, 54, 70, 0.78),
    0 0 22px rgba(107, 193, 240, 0.24) !important;
}

h2 {
  color: #d9fbff !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(13, 54, 70, 0.72),
    0 0 14px rgba(107, 193, 240, 0.24) !important;
}

h2::after {
  content: "";
  display: block;
  width: 100%;
  height: 3px;
  margin-top: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--jzy-sky), var(--jzy-teal), var(--jzy-sand));
  box-shadow: 0 0 14px rgba(107, 193, 240, 0.32);
}

h3 {
  color: #d6ffe7 !important;
  font-weight: 800 !important;
  text-shadow: 0 2px 6px rgba(13, 54, 70, 0.66) !important;
}

h4 {
  color: #e9fbff !important;
  font-weight: 750 !important;
  text-shadow: 0 1px 4px rgba(13, 54, 70, 0.58) !important;
}

/* ===== 链接 ===== */
.mw-body-content a:link,
.mw-parser-output a:link {
  color: #d8fbff !important;
  text-shadow: 0 1px 3px rgba(13, 54, 70, 0.55);
}

.mw-body-content a:visited,
.mw-parser-output a:visited {
  color: #bfeff9 !important;
}

.mw-body-content a:hover,
.mw-parser-output a:hover {
  color: var(--jzy-sand) !important;
  text-decoration: none !important;
  text-shadow: 0 0 11px rgba(250, 229, 189, 0.52);
}

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

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

/* ===== 目录 ===== */
.toc {
  background: rgba(10, 63, 85, 0.38) !important;
  border: 1px solid rgba(178, 235, 246, 0.28) !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.14),
    0 10px 22px rgba(21, 72, 96, 0.18);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.toc h2 {
  color: #e6fbff !important;
  font-weight: 800 !important;
}

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

/* ===== 表格与代码块 ===== */
.wikitable {
  background: rgba(10, 63, 85, 0.30) !important;
  color: var(--jzy-ink) !important;
  border: 1px solid rgba(178, 235, 246, 0.22) !important;
  border-radius: 12px;
  overflow: hidden;
}

.wikitable > tr > th,
.wikitable > * > tr > th {
  background: rgba(15, 101, 132, 0.54) !important;
  color: #ffffff !important;
}

.wikitable > tr > td,
.wikitable > * > tr > td {
  border-color: rgba(178, 235, 246, 0.16) !important;
}

pre,
code {
  background: rgba(9, 45, 62, 0.58) !important;
  color: #ebfbff !important;
  border: 1px solid rgba(178, 235, 246, 0.25) !important;
  border-radius: 8px;
}

/* ===== 通用玻璃卡片 ===== */
.feature-card,
.hot-card,
.stat-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 10px 22px rgba(21, 72, 96, 0.20),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  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.14), transparent 48%);
  pointer-events: none;
}

.feature-card {
  padding: 18px 14px;
  border-radius: 14px;
  text-align: center;
  font-weight: bold;
  border-bottom: 3px solid;
}

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

.feature-card-blue,
.hot-card-cyan,
.stat-card-blue {
  background: rgba(57, 166, 229, 0.34);
  color: #effcff;
  border-bottom-color: var(--jzy-sky);
}

.feature-card-green,
.hot-card-green,
.stat-card-green {
  background: rgba(90, 184, 120, 0.34);
  color: #eefff4;
  border-bottom-color: #76d79a;
}

.feature-card-orange,
.hot-card-orange {
  background: rgba(250, 229, 189, 0.26);
  color: #fff5da;
  border-bottom-color: var(--jzy-sand);
}

.feature-card-red,
.hot-card-red {
  background: rgba(232, 111, 158, 0.30);
  color: #ffe6f0;
  border-bottom-color: var(--jzy-rose);
}

.divider {
  border: 0;
  height: 3px;
  margin: 24px 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--jzy-sky), var(--jzy-teal), var(--jzy-sand));
  opacity: 0.96;
}

/* ===== 游戏资讯模块:官网海岛色系 ===== */
.jzy-game-info {
  background:
    radial-gradient(circle at 12% 8%, rgba(250, 229, 189, 0.18), transparent 30%),
    radial-gradient(circle at 86% 16%, rgba(107, 193, 240, 0.16), transparent 28%),
    linear-gradient(135deg, rgba(11, 63, 85, 0.46), rgba(57, 166, 229, 0.24) 46%, rgba(90, 184, 120, 0.26)) !important;
  border: 1px solid rgba(178, 235, 246, 0.30) !important;
  border-radius: 18px !important;
  box-shadow:
    0 12px 26px rgba(21, 72, 96, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
  backdrop-filter: blur(3px) saturate(116%);
  -webkit-backdrop-filter: blur(3px) saturate(116%);
}

.jzy-tabs {
  background: rgba(9, 66, 91, 0.38) !important;
  border: 1px solid rgba(178, 235, 246, 0.28) !important;
}

.jzy-tab {
  color: #d8f6ff !important;
}

.jzy-tab:hover {
  color: var(--jzy-sand) !important;
  background: rgba(255, 255, 255, 0.08) !important;
}

.jzy-tab.is-active {
  background: linear-gradient(180deg, rgba(107, 193, 240, 0.30), rgba(250, 229, 189, 0.16)) !important;
  color: #ffffff !important;
  box-shadow: inset 0 -3px 0 var(--jzy-sand) !important;
}

.jzy-heading {
  background: rgba(9, 45, 62, 0.30) !important;
  border-color: rgba(178, 235, 246, 0.28) !important;
  color: #ffffff !important;
}

.jzy-card {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(10, 63, 85, 0.36)) !important;
  border: 1px solid rgba(178, 235, 246, 0.24) !important;
  box-shadow:
    0 7px 0 rgba(9, 66, 91, 0.46),
    0 12px 20px rgba(21, 72, 96, 0.18) !important;
}

.jzy-card:hover {
  background:
    linear-gradient(145deg, rgba(250, 229, 189, 0.18), rgba(57, 166, 229, 0.24)) !important;
  border-color: rgba(250, 229, 189, 0.64) !important;
  color: var(--jzy-sand) !important;
}

.jzy-fallback {
  background: linear-gradient(145deg, var(--jzy-sky), var(--jzy-teal)) !important;
  color: #073647 !important;
}

/* ===== 页脚:对齐官网深棕色 #534646 ===== */
#footer,
.mw-footer,
.mw-page-container-footer,
.page-footer,
footer,
.citizen-footer,
#citizen-footer,
.citizen-footer__container,
.citizen-footer__content,
.citizen-footer__siteinfo,
.citizen-footer__places,
.citizen-footer__bottom {
  background: #534646 !important;
  color: #ffffff !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.46);
  border-top: 1px solid rgba(250, 229, 189, 0.32) !important;
  box-shadow: 0 -10px 24px rgba(83, 70, 70, 0.22) !important;
}

#footer *,
.mw-footer *,
.mw-page-container-footer *,
.page-footer *,
footer *,
.citizen-footer *,
#citizen-footer * {
  color: #ffffff !important;
}

#footer a,
.mw-footer a,
.mw-page-container-footer a,
.page-footer a,
footer a,
.citizen-footer a,
#citizen-footer a {
  color: #ffffff !important;
  text-decoration-color: rgba(250, 229, 189, 0.62) !important;
}

#footer a:hover,
.mw-footer a:hover,
.mw-page-container-footer a:hover,
.page-footer a:hover,
footer a:hover,
.citizen-footer a:hover,
#citizen-footer a:hover {
  color: var(--jzy-sand) !important;
}

/* ===== 移动端适配 ===== */
@media (max-width: 560px) {
  .mw-body {
    background: rgba(13, 81, 105, 0.34) !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 悬浮操作栏 =====
   Citizen 会把此容器放在 .citizen-page-container 之后,并以悬浮方式显示。
   在首页隐藏它,避免“查看历史 / 编辑 / 讨论”横栏切断海岛背景。
*/
body.page-首页 .citizen-sticky-header-container {
  display: none !important;
}

/* Citizen 皮肤会因版本和设置把操作栏渲染为不同节点。
   这些节点只在首页隐藏,避免中间的历史/编辑/讨论栏遮挡背景。 */
body.page-首页 .citizen-page-header,
body.page-首页 .citizen-page-tools,
body.page-首页 .citizen-page-actions,
body.page-首页 #citizen-page-tools,
body.page-首页 #citizen-page-actions,
body.page-首页 #citizen-page-options,
body.page-首页 #p-cactions,
body.page-首页 .mw-portlet-cactions,
body.page-首页 .vector-page-toolbar {
  display: none !important;
}

/* 首页不显示 MediaWiki 自动附加的最后修改时间与版权说明。
   Citizen 自己的深棕色网站页脚仍会保留。 */
body.page-首页 #footer-info,
body.page-首页 #footer-info-lastmod,
body.page-首页 #footer-info-copyright {
  display: none !important;
}

/* Citizen 的页面信息容器。仅移除自动生成的页面元数据,不影响站点页脚。 */
body.page-首页 #mw-data-after-content,
body.page-首页 .mw-footer-info,
body.page-首页 .citizen-page-footer__info,
body.page-首页 .citizen-page-footer .mw-footer-info {
  display: none !important;
}

/* ===== 官网式页脚布局 ===== */
#citizen-footer,
.citizen-footer,
#footer,
.mw-footer {
  background: var(--jzy-footer) !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);
  color: #ffffff !important;
  text-decoration: none !important;
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

a.jzy-footer-social:hover,
a.jzy-footer-social:focus-visible {
  transform: translateY(-2px);
  background: rgba(250, 229, 189, 0.16);
  border-color: rgba(250, 229, 189, 0.42);
}

.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: var(--jzy-sand) !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: var(--jzy-sand) !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;
  }
}

/* ===== 背景清晰化:保留透明层,取消背景模糊 ===== */
body {
  background:
    url("https://wiki.mcjzy.net/images/f/fb/%E6%97%A0logo%E8%83%8C%E6%99%AF.png") no-repeat fixed center center / cover,
    var(--jzy-sky) !important;
}

.mw-body,
.toc,
.feature-card,
.hot-card,
.stat-card,
.jzy-game-info,
#jzy-game-info,
.jzy-side-toc {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* ===== 页脚统一:清除 Citizen 外层留白与分层背景 ===== */
#mw-data-after-content,
.mw-page-container-footer,
.citizen-page-footer,
#footer,
.mw-footer,
#citizen-footer,
.citizen-footer {
  margin: 0 !important;
  border: 0 !important;
}

#mw-data-after-content {
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

#citizen-footer.jzy-footer-ready,
.citizen-footer.jzy-footer-ready,
#footer.jzy-footer-ready,
.mw-footer.jzy-footer-ready {
  display: block !important;
  min-height: 0 !important;
  padding: 0 !important;
  background: var(--jzy-footer) !important;
}

#jzy-official-footer {
  padding-top: 28px !important;
  padding-bottom: 30px !important;
}

.jzy-official-footer-top {
  min-height: 96px !important;
}
/* ===== 恢复官网原本的纯深棕页脚 =====
   放在 MediaWiki:Common.css 最底部,覆盖之前的页脚渐变规则。 */

.mw-page-container-footer,
.citizen-page-footer,
#citizen-footer.jzy-footer-ready,
.citizen-footer.jzy-footer-ready,
#footer.jzy-footer-ready,
.mw-footer.jzy-footer-ready {
  background: #534646 !important;
}

/* ===== 首页页脚最终修复:移除旧空容器造成的横向分割带 =====
   新版页脚 #jzy-official-footer 保留在它所在的真实页脚容器中。
   其余不含新版页脚的 Citizen/MediaWiki 旧页脚容器完全收起。 */
body:has(#jzy-official-footer) #mw-data-after-content,
body:has(#jzy-official-footer) .citizen-page-footer__info,
body:has(#jzy-official-footer) .citizen-page-footer .mw-footer-info,
body:has(#jzy-official-footer) .mw-footer-info,
body:has(#jzy-official-footer) #footer-info,
body:has(#jzy-official-footer) #footer-info-lastmod,
body:has(#jzy-official-footer) #footer-info-copyright {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
}

body:has(#jzy-official-footer) .mw-page-container-footer:not(:has(#jzy-official-footer)),
body:has(#jzy-official-footer) .citizen-page-footer:not(:has(#jzy-official-footer)),
body:has(#jzy-official-footer) #footer:not(:has(#jzy-official-footer)),
body:has(#jzy-official-footer) .mw-footer:not(:has(#jzy-official-footer)),
body:has(#jzy-official-footer) #citizen-footer:not(:has(#jzy-official-footer)),
body:has(#jzy-official-footer) .citizen-footer:not(:has(#jzy-official-footer)) {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: hidden !important;
}

/* 真正承载新版页脚的容器保持官网原本的纯深棕色,不使用渐变。 */
body:has(#jzy-official-footer) .mw-page-container-footer:has(#jzy-official-footer),
body:has(#jzy-official-footer) .citizen-page-footer:has(#jzy-official-footer),
body:has(#jzy-official-footer) #footer:has(#jzy-official-footer),
body:has(#jzy-official-footer) .mw-footer:has(#jzy-official-footer),
body:has(#jzy-official-footer) #citizen-footer:has(#jzy-official-footer),
body:has(#jzy-official-footer) .citizen-footer:has(#jzy-official-footer) {
  display: block !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: #534646 !important;
  box-shadow: none !important;
}

/* ===== 官网式页脚微调:移除白线并压缩留白 ===== */
#jzy-official-footer {
  width: min(calc(100% - 76px), 1760px) !important;
  padding: 34px 0 30px !important;
}

.jzy-official-footer-top {
  display: grid !important;
  grid-template-columns: minmax(180px, 1fr) auto;
  align-items: center !important;
  min-height: 0 !important;
  gap: 32px !important;
}

.jzy-official-footer-brand {
  width: 210px !important;
}

.jzy-official-footer-brand img {
  max-height: 122px !important;
}

.jzy-official-footer-socials {
  gap: 12px !important;
}

.jzy-footer-social {
  width: 54px !important;
  height: 54px !important;
}

/* 删除页脚内部的白色横线。 */
.jzy-official-footer-rule {
  display: none !important;
}

.jzy-official-footer-bottom {
  align-items: flex-end !important;
  margin-top: 28px !important;
  padding-top: 22px !important;
  border-top: 0 !important;
}

.jzy-official-footer-copy {
  max-width: 900px !important;
  font-size: 16px !important;
  line-height: 1.78 !important;
}

.jzy-official-footer-links {
  gap: 18px !important;
}

@media (max-width: 720px) {
  #jzy-official-footer {
    width: min(calc(100% - 36px), 1760px) !important;
    padding: 28px 0 24px !important;
  }

  .jzy-official-footer-top {
    grid-template-columns: 1fr !important;
    gap: 22px !important;
  }

  .jzy-official-footer-bottom {
    margin-top: 22px !important;
    padding-top: 0 !important;
  }
}

/* ===== 页脚排版精修:两行清晰布局 ===== */
#jzy-official-footer {
  width: min(calc(100% - 92px), 1760px) !important;
  padding: 32px 0 26px !important;
}

.jzy-official-footer-top {
  grid-template-columns: minmax(180px, 1fr) auto !important;
  gap: 40px !important;
}

.jzy-official-footer-brand {
  width: 190px !important;
}

.jzy-official-footer-brand img {
  max-height: 108px !important;
}

.jzy-official-footer-socials {
  gap: 14px !important;
}

.jzy-footer-social {
  width: 52px !important;
  height: 52px !important;
  padding: 9px !important;
  border-radius: 10px !important;
}

.jzy-footer-social img {
  width: 32px !important;
  height: 32px !important;
}

.jzy-official-footer-bottom {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end !important;
  gap: 36px !important;
  margin-top: 20px !important;
  padding-top: 0 !important;
}

.jzy-official-footer-copy {
  max-width: 1120px !important;
  font-size: 15px !important;
  line-height: 1.72 !important;
}

.jzy-official-footer-links {
  align-self: end;
  gap: 20px !important;
  padding-bottom: 2px;
}

@media (max-width: 720px) {
  #jzy-official-footer {
    width: min(calc(100% - 40px), 1760px) !important;
    padding: 28px 0 24px !important;
  }

  .jzy-official-footer-top,
  .jzy-official-footer-bottom {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  .jzy-official-footer-socials,
  .jzy-official-footer-links {
    justify-content: flex-start !important;
  }

  .jzy-official-footer-links {
    align-self: start;
    padding-bottom: 0;
  }
}