MediaWiki:Common.css:修订间差异

来自心灵终结资料站
跳转到导航 跳转到搜索
无编辑摘要
Lyx讨论 | 贡献
无编辑摘要
 
(未显示同一用户的107个中间版本)
第1行: 第1行:
/* ===== 所有内容区域透明 ===== */
/* ============================================================
#content {
  📦 整体说明
     background-color: transparent;
  本 CSS 用于 MediaWiki 全局暗色美化,适用于 Vector、Vector 2022、Monobook 等皮肤。
  目标:暗色背景 + 高对比度/醒目字体,提升阅读与编辑体验。
  包含:全局样式 | 标题与链接 | 表格与代码 | 信息框 | 侧边栏 | 顶部导航 | 编辑器 | 滚动条等。
  ============================================================ */
 
/* ============================================================
  区块 1:全局重置 & 基础颜色
  ============================================================ */
html,
body {
     background-color: #0d1117 !important;
    color: #e6edf3 !important;
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
}
}


#footer {
/* ============================================================
     background-color: transparent;
  区块 2:标题样式(更亮、更醒目)
  ============================================================ */
h1,
h2,
h3,
h4,
h5,
h6,
.firstHeading,
.mw-headline,
.personaltitle,
#firstHeading,
#siteSub,
#contentSub {
     color: #f0f6fc !important;
    font-weight: 600 !important;
    letter-spacing: 0.02em;
}
}


/* ===== 头部透明 ===== */
h2,
#mw-page-base {
h3,
     background-color: transparent !important;
h4,
     background-image: none !important;
h5,
h6 {
    border-bottom-color: #30363d !important;
}
 
/* ============================================================
  区块 3:链接颜色与交互(亮蓝 + 悬停加强)
  ============================================================ */
a,
a:visited,
a:active,
.mw-body a,
.mw-body a:visited,
#mw-panel a,
#mw-panel a:visited,
.vector-menu a,
.vector-menu a:visited {
     color: #58a6ff !important;
    text-decoration: none;
    transition: color 0.15s ease, text-shadow 0.15s ease;
}
 
a:hover,
a:focus,
.mw-body a:hover,
.vector-menu a:hover {
    color: #79c0ff !important;
     text-shadow: 0 0 6px rgba(88, 166, 255, 0.3) !important;
    text-decoration: underline !important;
}
 
a:visited {
    color: #a5b4fc !important;
}
}


#mw-head {
/* ============================================================
     background-color: transparent !important;
  区块 4:页面主体区域
     background-image: none !important;
  ============================================================ */
.mw-body,
#content,
#mw-content-text,
.ve-init-mw-desktopArticleTarget-targetContainer {
     background-color: #161b22 !important;
    color: #e6edf3 !important;
    border-color: #30363d !important;
    border: 1px solid #30363d !important;
     box-shadow: 0 0 0 1px #30363d !important;
}
}


#mw-head-base {
.mw-body p,
     background-color: transparent !important;
#content p {
     background-image: none !important;
     color: #e6edf3 !important;
     line-height: 1.7;
}
}


/* ===== 主内容区 ===== */
/* ============================================================
.mw-body {
  区块 5:表格样式(暗色背景 + 亮色文字)
     background-color: rgba(10, 21, 24, 0.94) !important;
  ============================================================ */
     color: #ffffff !important;
table,
     border-radius: 8px !important;
.wikitable,
    border-left: 3px solid #01faec !important;
.mw-datatable {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.6) !important;
     background-color: #0d1117 !important;
    position: relative !important;
     color: #e6edf3 !important;
    overflow: hidden !important;
     border-color: #30363d !important;
}
}


/* ===== 青绿色光晕点缀 ===== */
table th,
.mw-body::before {
.wikitable th,
     content: '' !important;
.mw-datatable th {
    position: absolute !important;
     background-color: #21262d !important;
    top: -50px !important;
     color: #f0f6fc !important;
    right: -50px !important;
     border-color: #30363d !important;
     width: 200px !important;
     font-weight: 600;
    height: 200px !important;
    background: radial-gradient(circle, rgba(1, 250, 236, 0.04), transparent 70%) !important;
    pointer-events: none !important;
     border-radius: 50% !important;
     z-index: 0 !important;
}
}


/* ===== 左侧导航面板 ===== */
table td,
#mw-panel {
.wikitable td,
     background-color: rgba(10, 21, 24, 0.88) !important;
.mw-datatable td {
     border-radius: 8px !important;
     border-color: #30363d !important;
    padding: 10px 0 !important;
     color: #e6edf3 !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5) !important;
}
}


#mw-panel .portal {
table tr:nth-child(even),
     background-color: transparent !important;
.wikitable tr:nth-child(even),
.mw-datatable tr:nth-child(even) {
     background-color: #161b22 !important;
}
}


#mw-panel .portal .body {
table tr:nth-child(odd),
     background-color: transparent !important;
.wikitable tr:nth-child(odd),
.mw-datatable tr:nth-child(odd) {
     background-color: #0d1117 !important;
}
}


/* ===== 侧边栏标题 ===== */
table tr:hover,
#mw-panel .portal h3 {
.wikitable tr:hover,
     color: #01faec !important;
.mw-datatable tr:hover {
     font-weight: 600;
     background-color: #1c2333 !important;
    padding-left: 12px;
     transition: background 0.1s ease;
    border-bottom: 1px solid rgba(1, 250, 236, 0.2);
    padding-bottom: 4px;
}
}


/* ============================================================
/* ============================================================
   侧边栏链接 - 青绿色主题(无下划线效果)
   区块 6:代码块 & 预格式化
   ============================================================ */
   ============================================================ */
#mw-panel a,
pre,
#mw-panel .portal .body ul li a,
.mw-code,
.mw-portlet .body ul li a,
.mw-json,
.portal .body ul li a {
.mw-highlight,
     color: #b0d4d8 !important;
.hljs,
     text-decoration: none !important;
code,
     border-radius: 4px !important;
tt,
     padding: 3px 12px !important;
kbd,
     transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
samp,
     position: relative !important;
.plainlinks pre {
     display: block !important;
    background-color: #0d1117 !important;
     color: #f0f6fc !important;
     border-color: #30363d !important;
     border-radius: 6px;
     font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;
     font-size: 0.92em;
    padding: 0.2em 0.5em;
}
 
code,
tt,
kbd {
    background-color: #21262d !important;
     color: #ffd700 !important;
     padding: 0.15em 0.4em;
    border-radius: 4px;
}
 
pre code,
.mw-code code {
     background-color: transparent !important;
     background-color: transparent !important;
    color: #e6edf3 !important;
    padding: 0;
}
}


/* 强制移除侧边栏所有 ::after 伪元素 */
/* ============================================================
#mw-panel a::after,
  区块 7:信息框 / 消息盒子(警告、错误、成功)
#mw-panel .portal .body ul li a::after,
  ============================================================ */
.mw-portlet .body ul li a::after,
.messagebox,
.portal .body ul li a::after {
.infobox,
     display: none !important;
.ambox,
     content: none !important;
.toc,
     width: 0 !important;
.mw-notification,
     height: 0 !important;
#mw-indicators,
     opacity: 0 !important;
.warningbox,
.errorbox,
.successbox {
     background-color: #161b22 !important;
     border-color: #30363d !important;
     color: #e6edf3 !important;
     border-radius: 6px;
     box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}
}


#mw-panel a:hover,
.warningbox {
#mw-panel .portal .body ul li a:hover,
     border-color: #daa520 !important;
.mw-portlet .body ul li a:hover,
     background-color: #2a1f0e !important;
.portal .body ul li a:hover {
}
     color: #01faec !important;
.warningbox,
     background-color: rgba(1, 250, 236, 0.12) !important;
.warningbox * {
    text-shadow: 0 0 20px rgba(1, 250, 236, 0.15) !important;
     color: #ffd966 !important;
     transform: translateX(4px) !important;
    text-decoration: none !important;
}
}


#mw-panel .portal .body ul li a::before,
.errorbox {
.mw-portlet .body ul li a::before,
     border-color: #dc3545 !important;
.portal .body ul li a::before {
     background-color: #2c141a !important;
     content: '' !important;
}
    position: absolute !important;
.errorbox,
    left: 0 !important;
.errorbox * {
    top: 50% !important;
     color: #f8a5b0 !important;
    transform: translateY(-50%) scaleY(0) !important;
    width: 3px !important;
    height: 60% !important;
     background: #01faec !important;
    border-radius: 0 4px 4px 0 !important;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
     opacity: 0 !important;
}
}


#mw-panel .portal .body ul li a:hover::before,
.successbox {
.mw-portlet .body ul li a:hover::before,
    border-color: #28a745 !important;
.portal .body ul li a:hover::before {
     background-color: #0f2b1a !important;
     transform: translateY(-50%) scaleY(1) !important;
}
     opacity: 1 !important;
.successbox,
.successbox * {
     color: #7ee08c !important;
}
}


/* ============================================================
/* ============================================================
   Logo - 强制限制宽度,无动画
   区块 8:侧边栏(紧凑 + 大字 + 高行距 + 黑金边框)
   ============================================================ */
   ============================================================ */
/* 8.1 侧边栏整体 */
#mw-panel {
    background: #0d1117 !important;
    border-right: 1px solid #21262d !important;
    padding-top: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-bottom: 1em !important;
    width: auto !important;
    min-width: 160px !important;
    max-width: 210px !important;
    margin-top: 0 !important;
}
/* 8.2 左上角 Logo */
#p-logo {
#p-logo {
     max-width: 180px !important;
     display: block !important;
     width: auto !important;
    padding: 0.5em 0 0.3em 0.8em !important;
     overflow: hidden !important;
    margin: 0 !important;
     box-sizing: border-box !important;
    border-bottom: 1px solid #21262d !important;
     background-color: transparent !important;
}
     border-radius: 0 !important;
 
#p-logo a {
    background-size: 128px !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    display: block !important;
    width: 10em !important;
    height: 160px !important;
    text-decoration: none !important;
}
 
/* 8.3 板块容器 */
#mw-panel .portal {
    margin-bottom: 0 !important;
    padding: 0 !important;
    position: relative !important;
}
 
/* 8.4 板块标题 */
#mw-panel .portal h3,
#mw-panel .portal .vector-menu-heading {
    color: #f0f6fc !important;
    font-weight: 600 !important;
     font-size: 0.85em !important;
     letter-spacing: 0.06em !important;
     text-transform: uppercase !important;
    border-bottom: 1px solid #21262d !important;
    padding: 0.5em 0 0.35em 0.6em !important;
    margin: 0 !important;
     background: transparent !important;
    opacity: 0.8 !important;
    white-space: nowrap !important;
}
 
/* 8.5 链接列表容器 */
#mw-panel .portal .vector-menu-content,
#mw-panel .portal .body {
    background: transparent !important;
     padding: 0 !important;
    margin: 0 !important;
}
 
#mw-panel .portal .vector-menu-content ul,
#mw-panel .portal .body ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
 
#mw-panel .portal .vector-menu-content ul li,
#mw-panel .portal .body ul li {
    margin: 0 !important;
     padding: 0 !important;
     padding: 0 !important;
    margin: 0 0 10px 0 !important;
    border: none !important;
    animation: none !important;
    transition: none !important;
    transform: none !important;
}
}


#p-logo a {
/* 8.6 链接默认状态(黑金风格:底部金边) */
#mw-panel .portal .vector-menu-content ul li a,
#mw-panel .portal .body ul li a {
     display: block !important;
     display: block !important;
     max-width: 100% !important;
     padding: 0.35em 0.6em 0.35em 0.8em !important;
     width: auto !important;
    color: #c9d1d9 !important;
    font-size: 1em !important;
    font-weight: 400 !important;
    text-decoration: none !important;
    border-left: 2px solid transparent !important;
     background: transparent !important;
    transition: all 0.15s ease !important;
    white-space: nowrap !important;
     overflow: hidden !important;
     overflow: hidden !important;
     transition: none !important;
     text-overflow: ellipsis !important;
     transform: none !important;
    line-height: 1.6 !important;
     animation: none !important;
    /* 底部金边装饰(来自后续终极版) */
     box-shadow: none !important;
    border-bottom: 1px solid rgba(255, 215, 0, 0.15) !important;
    background-image: linear-gradient(to right, rgba(255, 215, 0, 0.08), transparent 80%) !important;
    background-repeat: no-repeat !important;
    background-position: bottom left !important;
    background-size: 100% 1px !important;
}
 
/* 8.7 链接悬浮状态 */
#mw-panel .portal .vector-menu-content ul li a:hover,
#mw-panel .portal .body ul li a:hover {
    color: #f0f6fc !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border-left-color: #fbcb3e !important;
    border-bottom-color: rgba(255, 215, 0, 0.45) !important;
     background-image: linear-gradient(to right, rgba(255, 215, 0, 0.15), transparent 90%) !important;
}
 
/* 8.8 最后一个链接无边框 */
#mw-panel .portal .body ul li:last-child a,
#mw-panel .portal .vector-menu-content ul li:last-child a {
     border-bottom: none !important;
     background-image: none !important;
}
}


#p-logo a img,
/* 8.9 板块分隔线 */
#p-logo img {
#mw-panel .portal:not(:last-child)::after {
    max-width: 100% !important;
     content: '' !important;
    width: auto !important;
     height: auto !important;
     display: block !important;
     display: block !important;
     transition: none !important;
     height: 1px !important;
     transform: none !important;
    background: #21262d !important;
     animation: none !important;
    margin: 0.1em 0.8em !important;
}
 
/* 8.10 移除折叠按钮 */
#mw-panel .portal .vector-menu-heading .mw-collapsible-text {
    display: none !important;
}
 
/* 8.11 "工具"区域微调 */
#p-tb .portal .vector-menu-content ul li a,
#p-tb .portal .body ul li a {
     padding: 0.25em 0.6em 0.25em 0.8em !important;
    font-size: 0.9em !important;
     line-height: 1.5 !important;
}
 
/* 8.12 侧边栏滚动条 */
#mw-panel {
    scrollbar-width: thin;
    scrollbar-color: #21262d #0d1117;
}
#mw-panel::-webkit-scrollbar {
    width: 4px;
}
#mw-panel::-webkit-scrollbar-track {
    background: #0d1117;
}
#mw-panel::-webkit-scrollbar-thumb {
    background: #21262d;
    border-radius: 4px;
}
#mw-panel::-webkit-scrollbar-thumb:hover {
    background: #30363d;
}
}


#p-logo:hover,
/* 8.13 修复头部与侧边栏之间的空隙 */
#p-logo a:hover,
#mw-head-base {
#p-logo a:hover img,
     background: transparent !important;
#p-logo img:hover {
}
     transform: none !important;
#mw-page-base {
     animation: none !important;
     background: transparent !important;
    transition: none !important;
}
    box-shadow: none !important;
#mw-panel > div:empty,
     border-color: transparent !important;
#mw-panel > .empty,
#mw-panel > .portal:empty {
     display: none !important;
}
}


/* ============================================================
/* ============================================================
   右上角个人工具 - 去除黑色圆角背景
   区块 9:搜索框
   ============================================================ */
   ============================================================ */
#p-personal {
#searchInput,
     background-color: transparent !important;
#searchQuery,
     border: none !important;
.vector-search-box-input,
     border-radius: 0 !important;
#simpleSearch input {
     padding: 0 !important;
     background-color: #0d1117 !important;
    box-shadow: none !important;
     color: #e6edf3 !important;
     border-color: #30363d !important;
     border-radius: 6px;
}
}


#p-personal li a {
#searchInput:focus,
     color: #b0d4d8 !important;
#searchQuery:focus,
     transition: color 0.2s ease;
.vector-search-box-input:focus {
     border-color: #58a6ff !important;
     box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.25) !important;
    outline: none;
}
}


#p-personal li a:hover {
#searchButton,
     color: #01faec !important;
#mw-searchButton {
     text-decoration: none;
    background-color: #21262d !important;
    color: #e6edf3 !important;
     border-color: #30363d !important;
}
#searchButton:hover,
#mw-searchButton:hover {
     background-color: #30363d !important;
}
}


/* ============================================================
/* ============================================================
   顶部导航标签 - "首页""讨论"等
   区块 10:分类与底部
   ============================================================ */
   ============================================================ */
#p-views ul li a,
#catlinks,
#p-cactions ul li a {
#footer,
     background-color: transparent !important;
#footer-info,
    border: none !important;
#footer-places,
     border-radius: 0 !important;
#footer-icons {
    padding: 6px 14px !important;
     background-color: #0d1117 !important;
    margin: 0 2px !important;
     border-color: #30363d !important;
     color: #8ab4b8 !important;
     color: #8b949e !important;
    font-weight: 500 !important;
    transition: all 0.25s ease !important;
}
}


#p-views ul li a:hover,
#catlinks a,
#p-cactions ul li a:hover {
#footer a {
    background-color: rgba(1, 250, 236, 0.10) !important;
     color: #58a6ff !important;
     color: #01faec !important;
}
}


#p-views ul li.selected a,
#catlinks a:hover,
#p-cactions ul li.selected a {
#footer a:hover {
    background-color: transparent !important;
     color: #79c0ff !important;
     color: #01faec !important;
    font-weight: 600 !important;
}
}


/* ===== 编辑按钮 ===== */
/* ============================================================
#ca-edit a {
  区块 11:编辑框(经典文本编辑区域)
     background-color: rgba(1, 250, 236, 0.10) !important;
  ============================================================ */
     color: #01faec !important;
#wpTextbox1,
     font-weight: 600 !important;
.mw-editform #wpTextbox1,
     border-radius: 4px !important;
textarea.mw-editfont-monospace,
#editpage-textarea {
     background-color: #0d1117 !important;
    color: #e6edf3 !important;
    border: 1px solid #30363d !important;
    border-radius: 6px !important;
    font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', 'Consolas', monospace !important;
    font-size: 14px !important;
    line-height: 1.7 !important;
     padding: 12px !important;
    caret-color: #58a6ff !important;
     box-shadow: inset 0 0 0 1px #30363d !important;
     transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
}


#ca-edit a:hover {
#wpTextbox1:focus,
     background-color: rgba(1, 250, 236, 0.20) !important;
.mw-editform #wpTextbox1:focus,
     color: #66fcf0 !important;
#editpage-textarea:focus {
     border-color: #58a6ff !important;
    box-shadow: inset 0 0 0 1px #58a6ff, 0 0 0 3px rgba(88, 166, 255, 0.15) !important;
     outline: none !important;
}
}


/* ===== 查看源代码按钮 ===== */
/* ============================================================
#ca-viewsource a {
  区块 12:编辑摘要/注释输入框
     background-color: transparent !important;
  ============================================================ */
     color: #8ab4b8 !important;
#wpSummary,
.mw-summary,
#wpMinoredit + label,
input.mw-edit-summary {
     background-color: #0d1117 !important;
     color: #e6edf3 !important;
    border: 1px solid #30363d !important;
    border-radius: 4px !important;
    padding: 6px 10px !important;
}
}


#ca-viewsource a:hover {
#wpSummary:focus,
     background-color: rgba(1, 250, 236, 0.10) !important;
.mw-summary:focus {
     color: #01faec !important;
     border-color: #58a6ff !important;
    box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.15) !important;
     outline: none !important;
}
}


/* ============================================================
/* ============================================================
   "编辑源代码"那块白色背景去除
   区块 13:WikiEditor 工具栏
   ============================================================ */
   ============================================================ */
.mw-editsection {
.wikiEditor-toolbar,
.wikiEditor-ui-toolbar,
.wikiEditor-ui {
    background-color: #161b22 !important;
    border-color: #30363d !important;
    color: #e6edf3 !important;
    border-radius: 6px 6px 0 0 !important;
}
 
.wikiEditor-ui-toolbar .section-main {
     background-color: transparent !important;
     background-color: transparent !important;
}
}


.mw-editsection a {
.wikiEditor-ui-toolbar .group {
     background-color: rgba(1, 250, 236, 0.08) !important;
    border-color: #30363d !important;
     color: #01faec !important;
}
     border-radius: 4px !important;
 
     padding: 2px 8px !important;
.wikiEditor-ui-toolbar .group-label {
     transition: all 0.3s ease !important;
    color: #b1bac4 !important;
}
 
.wikiEditor-ui-toolbar .tool,
.wikiEditor-ui-toolbar .tool-select {
     background-color: #0d1117 !important;
    border-color: #30363d !important;
    color: #e6edf3 !important;
    border-radius: 3px !important;
}
 
.wikiEditor-ui-toolbar .tool:hover,
.wikiEditor-ui-toolbar .tool-select:hover {
    background-color: #21262d !important;
    border-color: #58a6ff !important;
}
 
.wikiEditor-ui-toolbar .tool.active,
.wikiEditor-ui-toolbar .tool-select.active {
    background-color: #1f6feb !important;
    border-color: #58a6ff !important;
     color: #ffffff !important;
}
 
.wikiEditor-ui-toolbar .menu {
    background-color: #161b22 !important;
     border-color: #30363d !important;
     color: #e6edf3 !important;
}
 
.wikiEditor-ui-toolbar .menu .menu-item {
     color: #e6edf3 !important;
}
}


.mw-editsection a:hover {
.wikiEditor-ui-toolbar .menu .menu-item:hover {
     background-color: rgba(1, 250, 236, 0.18) !important;
     background-color: #21262d !important;
     color: #66fcf0 !important;
     color: #f0f6fc !important;
}
}


/* ===== 底部 ===== */
/* ============================================================
#footer {
  区块 14:编辑按钮(保存/预览/差异)
    background-color: rgba(10, 21, 24, 0.88) !important;
  ============================================================ */
    border-radius: 8px;
#editpage-copywarn,
     padding: 12px 20px;
#editpage-copywarn p,
     border-top: 2px solid #01faec;
.mw-editform .editCheckboxes,
    color: #8ab4b8 !important;
.mw-editform .editHelp {
     color: #b1bac4 !important;
     background-color: transparent !important;
}
}


#footer a {
#wpSave,
     color: #01faec !important;
#wpPreview,
#wpDiff,
.mw-editform input[type="submit"] {
    background-color: #21262d !important;
     color: #f0f6fc !important;
    border: 1px solid #30363d !important;
    border-radius: 6px !important;
    padding: 8px 20px !important;
    font-weight: 600 !important;
    transition: all 0.15s ease;
}
}


#footer a:hover {
#wpSave:hover,
     color: #66fcf0 !important;
#wpPreview:hover,
#wpDiff:hover,
.mw-editform input[type="submit"]:hover {
     background-color: #30363d !important;
    border-color: #58a6ff !important;
    box-shadow: 0 0 12px rgba(88, 166, 255, 0.15) !important;
}
}


/* ============================================================
/* ============================================================
   内容区超链接 - 只作用于页面正文内容(含下划线效果)
   区块 15:其他输入框
   ============================================================ */
   ============================================================ */
.mw-parser-output a,
textarea,
.mw-body .mw-content-ltr a,
input[type="text"],
#mw-content-text a {
input[type="search"],
     color: #01faec !important;
input[type="password"],
     text-decoration: none !important;
input[type="email"],
     transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
select {
     position: relative !important;
     background-color: #0d1117 !important;
     color: #e6edf3 !important;
     border: 1px solid #30363d !important;
     border-radius: 4px;
}
}


.mw-parser-output a:visited,
textarea:focus,
.mw-body .mw-content-ltr a:visited {
input[type="text"]:focus {
     color: #3d839b !important;
     border-color: #58a6ff !important;
    box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.2);
}
}


.mw-parser-output a:hover,
/* ============================================================
.mw-body .mw-content-ltr a:hover {
  区块 16:特殊页面 & 差异对比
     color: #66fcf0 !important;
  ============================================================ */
     text-shadow: 0 0 20px rgba(1, 250, 236, 0.25) !important;
.diff,
     transform: translateY(-1px) !important;
.diff td,
.diff th,
.diff-editfont-monospace,
.mw-diff-edit,
#mw-diff-ntitle1,
#mw-diff-ntitle2 {
     background-color: #161b22 !important;
     color: #e6edf3 !important;
     border-color: #30363d !important;
}
}


/* 下划线效果 - 只作用于正文内容 */
.diff td.diff-context {
.mw-parser-output a::after,
     background-color: #0d1117 !important;
.mw-body .mw-content-ltr a::after {
     color: #b1bac4 !important;
     content: '' !important;
}
     position: absolute !important;
.diff td.diff-addedline {
    bottom: -2px !important;
     background-color: #1a3a2a !important;
     left: 50% !important;
     color: #a8f0c0 !important;
     width: 0 !important;
}
    height: 2px !important;
.diff td.diff-deletedline {
    background: linear-gradient(90deg, #01faec, #66fcf0) !important;
     background-color: #3a1a1a !important;
     transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
     color: #f0a8a8 !important;
    transform: translateX(-50%) !important;
     border-radius: 2px !important;
}
}


.mw-parser-output a:hover::after,
/* ============================================================
.mw-body .mw-content-ltr a:hover::after {
  区块 17:用户贡献 & 最近更改
     width: 80% !important;
  ============================================================ */
.mw-contributions-table,
.mw-changeslist,
.mw-rcfilters-table {
    background-color: transparent !important;
     color: #e6edf3 !important;
}
}


/* 外部链接 - 使用青绿色图标 */
.mw-changeslist-line,
.mw-parser-output a.external,
.mw-contributions-line {
.mw-body .mw-content-ltr a.external,
     background-color: #0d1117 !important;
#mw-content-text a.external {
     border-color: #30363d !important;
    padding-right: 18px !important;
     padding: 0.3em 0;
     background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2301faec' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'%3E%3C/path%3E%3Cpolyline points='15 3 21 3 21 9'%3E%3C/polyline%3E%3Cline x1='10' y1='14' x2='21' y2='3'%3E%3C/line%3E%3C/svg%3E") !important;
     background-repeat: no-repeat !important;
     background-position: right center !important;
    background-size: 12px !important;
}
}


.mw-parser-output a.external:hover,
.mw-rcfilters-ui-highlights {
.mw-body .mw-content-ltr a.external:hover,
     color: #f0f6fc !important;
#mw-content-text a.external:hover {
     background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2366fcf0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'%3E%3C/path%3E%3Cpolyline points='15 3 21 3 21 9'%3E%3C/polyline%3E%3Cline x1='10' y1='14' x2='21' y2='3'%3E%3C/line%3E%3C/svg%3E") !important;
}
}


/* ===== 搜索框 ===== */
/* ============================================================
#searchInput {
  区块 18:缩略图 / 图片说明
    border-radius: 20px !important;
  ============================================================ */
    border: 1px solid rgba(1, 250, 236, 0.30) !important;
.thumbinner,
     background-color: rgba(10, 21, 24, 0.80) !important;
.thumbcaption,
     color: #ffffff !important;
.gallerybox,
     padding: 5px 14px !important;
.gallerytext,
    transition: all 0.3s ease !important;
.thumbimage {
     background-color: #161b22 !important;
     color: #e6edf3 !important;
     border-color: #30363d !important;
}
}


#searchInput:focus {
.thumbimage {
    background-color: rgba(10, 21, 24, 0.95) !important;
     border: 1px solid #30363d !important;
     border-color: #01faec !important;
    box-shadow: 0 0 0 3px rgba(1, 250, 236, 0.15) !important;
    outline: none;
}
}


#searchButton {
/* ============================================================
    border-radius: 20px !important;
  区块 19:引用 / 参考文献
     background: linear-gradient(135deg, #01faec, #3d839b) !important;
  ============================================================ */
    border: none !important;
.reflist,
     color: #0a1518 !important;
.references,
    font-weight: 600 !important;
.mw-references-wrap {
    padding: 5px 16px !important;
     background-color: transparent !important;
    transition: all 0.3s ease !important;
     color: #e6edf3 !important;
     cursor: pointer !important;
}
.reflist a,
.references a {
     color: #58a6ff !important;
}
}


#searchButton:hover {
/* ============================================================
     transform: scale(1.05) !important;
  区块 20:内部导航 (toc)
     box-shadow: 0 4px 25px rgba(1, 250, 236, 0.30) !important;
  ============================================================ */
     background: linear-gradient(135deg, #66fcf0, #488ab1) !important;
#toc,
.toc {
     background-color: #161b22 !important;
     border: 1px solid #30363d !important;
     color: #e6edf3 !important;
    border-radius: 6px;
}
#toc a,
.toc a {
    color: #58a6ff !important;
}
#toc a:hover,
.toc a:hover {
    color: #79c0ff !important;
}
}


/* ===== 标题文字 ===== */
/* ============================================================
.mw-body h1,
  区块 21:滚动条美化(全局)
.mw-body h2,
  ============================================================ */
.mw-body h3,
::-webkit-scrollbar {
.mw-body h4 {
    width: 10px;
     color: #01faec !important;
    height: 10px;
     border-bottom-color: rgba(1, 250, 236, 0.20) !important;
    background: #0d1117;
}
::-webkit-scrollbar-track {
    background: #0d1117;
}
::-webkit-scrollbar-thumb {
     background: #30363d;
     border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover {
    background: #484f58;
}
}


.mw-body p,
/* ============================================================
.mw-body li,
  区块 22:辅助类与杂项
.mw-body .mw-content-ltr {
  ============================================================ */
     color: #ffffff !important;
.mw-body-content {
     color: #e6edf3 !important;
}
}


/* ===== 页面加载动画 ===== */
::placeholder {
.mw-body,
    color: #8b949e !important;
#mw-panel,
     opacity: 0.7;
#footer {
     animation: fadeInUp 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) both !important;
}
}


#mw-panel {
::selection {
     animation-delay: 0.05s !important;
    background: #1f6feb !important;
     color: #ffffff !important;
}
}


.mw-body {
img,
     animation-delay: 0.1s !important;
figure {
     background-color: #0d1117 !important;
    border: 1px solid #30363d;
    border-radius: 4px;
}
}


#footer {
#mw-page-base,
     animation-delay: 0.15s !important;
#mw-head-base {
     background-color: #0d1117 !important;
}
}


@keyframes fadeInUp {
.skin-minerva .mw-body,
     from {
.skin-minerva #content {
        opacity: 0;
     background-color: #161b22 !important;
        transform: translateY(20px);
    color: #e6edf3 !important;
    }
}
    to {
.skin-minerva a {
        opacity: 1;
    color: #58a6ff !important;
        transform: translateY(0);
    }
}
}


/* ============================================================
/* ============================================================
   强制修复顶部标签栏 - "首页""讨论""编辑源代码""监视"等
   区块 23:顶部操作标签美化(页面/讨论 | 阅读/编辑/源代码/历史)
  (黑金主题 + 完美排版修复)
   ============================================================ */
   ============================================================ */


/* 标签栏容器 - 背景透明 */
/* 23.1 导航容器布局 */
#left-navigation,
#right-navigation,
#p-views,
#p-views,
#p-cactions,
#p-cactions,
#left-navigation,
.vector-menu-tabs,
#right-navigation {
.vector-menu-tabs ul,
     background-color: transparent !important;
.vector-menu-dropdown,
#left-navigation ul,
#right-navigation ul {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
     background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    height: auto !important;
    min-height: 0 !important;
    line-height: 1.4 !important;
}
}


/* 所有标签项 - 重置为透明背景 */
/* 23.2 列表项重置 */
#p-views ul,
#left-navigation ul li,
#p-cactions ul,
#right-navigation ul li,
#p-views ul li,
#p-views ul li,
#p-cactions ul li {
#p-cactions ul li,
     background-color: transparent !important;
.vector-menu-tabs li,
     background: none !important;
.vector-menu-dropdown li {
     background: transparent !important;
     border: none !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    vertical-align: middle !important;
    line-height: 1.4 !important;
}
}


/* 标签链接 - 完全自定义样式 */
/* 23.3 链接通用样式 */
#left-navigation ul li a,
#right-navigation ul li a,
#p-views ul li a,
#p-views ul li a,
#p-cactions ul li a,
#p-cactions ul li a,
#left-navigation ul li a,
.vector-menu-tabs li a,
#right-navigation ul li a {
.vector-menu-dropdown label,
     background-color: transparent !important;
.vector-menu-dropdown a,
     background: none !important;
#ca-more a {
     display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    vertical-align: middle !important;
     background: transparent !important;
     border: none !important;
     border: none !important;
     border-radius: 4px 4px 0 0 !important;
     border-radius: 4px !important;
     padding: 6px 14px !important;
     box-shadow: none !important;
    text-shadow: none !important;
     margin: 0 2px !important;
     margin: 0 2px !important;
     color: #8ab4b8 !important;
     padding: 5px 12px !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    line-height: 1.4 !important;
    font-size: 13px !important;
     font-weight: 500 !important;
     font-weight: 500 !important;
     font-size: 13px !important;
     transform: none !important;
     transition: all 0.25s ease !important;
    top: auto !important;
     box-shadow: none !important;
    bottom: auto !important;
     text-shadow: none !important;
    left: auto !important;
    right: auto !important;
    width: auto !important;
    white-space: nowrap !important;
}
 
/* 23.4 移除所有伪元素(图标等) */
#left-navigation ul li a::before,
#left-navigation ul li a::after,
#right-navigation ul li a::before,
#right-navigation ul li a::after,
#p-views ul li a::before,
#p-views ul li a::after,
#p-cactions ul li a::before,
#p-cactions ul li a::after,
.vector-menu-tabs li a::before,
.vector-menu-tabs li a::after,
.vector-menu-dropdown label::before,
.vector-menu-dropdown label::after,
#ca-more a::before,
#ca-more a::after,
#ca-watch a::before,
#ca-watch a::after,
#ca-unwatch a::before,
#ca-unwatch a::after,
.mw-watchlink.icon a::before,
.mw-watchlink.icon a::after {
    content: none !important;
     display: none !important;
    width: 0 !important;
     height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    opacity: 0 !important;
    transform: none !important;
    background: none !important;
}
 
/* 23.5 移除监视链接的图标背景 */
.mw-watchlink.icon a,
#ca-watch a,
#ca-unwatch a {
    background-image: none !important;
     text-indent: 0 !important;
}
 
/* 23.6 导航链接颜色(黑金主题) */
#left-navigation ul li a,
#right-navigation ul li a,
#p-views ul li a,
#p-cactions ul li a,
.vector-menu-tabs li a,
.vector-menu-dropdown a,
.vector-menu-dropdown label,
#ca-more a {
    color: #c9d1d9 !important;
}
}


/* 悬停效果 */
#left-navigation ul li a:hover,
#right-navigation ul li a:hover,
#p-views ul li a:hover,
#p-views ul li a:hover,
#p-cactions ul li a:hover,
#p-cactions ul li a:hover,
#left-navigation ul li a:hover,
.vector-menu-tabs li a:hover,
#right-navigation ul li a:hover {
.vector-menu-dropdown a:hover,
    background-color: rgba(1, 250, 236, 0.12) !important;
.vector-menu-dropdown label:hover,
     color: #01faec !important;
#ca-more a:hover {
     border: none !important;
     color: #ffd700 !important;
    border-radius: 4px 4px 0 0 !important;
     background-color: rgba(255, 215, 0, 0.1) !important;
    text-decoration: none !important;
}
}


/* 当前选中的标签页 - "首页"或"页面" */
/* 23.7 当前选中标签 */
#left-navigation ul li.selected a,
#right-navigation ul li.selected a,
#p-views ul li.selected a,
#p-views ul li.selected a,
#p-cactions ul li.selected a,
#p-cactions ul li.selected a,
#left-navigation ul li.selected a,
.vector-menu-tabs li.selected a {
#right-navigation ul li.selected a {
     color: #ffd700 !important;
     background-color: transparent !important;
     border-bottom: 2px solid #ffd700 !important;
     color: #01faec !important;
     font-weight: 700 !important;
     font-weight: 600 !important;
    border-radius: 0 !important;
}
}


/* ===== "编辑源代码" 按钮特殊样式 ===== */
/* 23.8 编辑/查看源代码特殊高亮 */
#ca-edit a,
#ca-viewsource a {
#ca-viewsource a {
     background-color: rgba(1, 250, 236, 0.06) !important;
    color: #ffd700 !important;
    color: #8ab4b8 !important;
     background-color: rgba(255, 215, 0, 0.08) !important;
     border-radius: 4px !important;
     border-radius: 4px !important;
}
#ca-edit a:hover,
#ca-viewsource a:hover {
    color: #ffe066 !important;
    background-color: rgba(255, 215, 0, 0.2) !important;
}
/* 23.9 监视链接 */
#ca-watch a,
#ca-unwatch a {
    color: #c9d1d9 !important;
}
#ca-watch a:hover,
#ca-unwatch a:hover {
    color: #ffd700 !important;
}
}


#ca-viewsource a:hover {
/* 23.10 下拉菜单 */
     background-color: rgba(1, 250, 236, 0.18) !important;
#p-cactions .vector-menu-dropdown .menu li a,
    color: #01faec !important;
.vector-menu-dropdown .menu li a {
    color: #c9d1d9 !important;
    background-color: transparent !important;
}
#p-cactions .vector-menu-dropdown .menu li a:hover,
.vector-menu-dropdown .menu li a:hover {
    color: #ffd700 !important;
     background-color: rgba(255, 215, 0, 0.1) !important;
}
}


/* ===== "编辑" 按钮特殊样式 ===== */
/* 23.11 下拉指示器 */
#ca-edit a {
.vector-menu-indicator,
     background-color: rgba(1, 250, 236, 0.08) !important;
#p-cactions .vector-menu-indicator {
     color: #01faec !important;
     display: inline-flex !important;
     border-radius: 4px !important;
    align-items: center !important;
    justify-content: center !important;
    vertical-align: middle !important;
    margin: 0 0 0 4px !important;
    padding: 0 !important;
    height: auto !important;
    line-height: 1 !important;
    transform: none !important;
    border: none !important;
    background: none !important;
     color: #c9d1d9 !important;
}
.vector-menu-dropdown:hover .vector-menu-indicator,
#p-cactions .vector-menu-dropdown:hover .vector-menu-indicator {
     color: #ffd700 !important;
}
}


#ca-edit a:hover {
/* 23.12 下拉菜单面板 */
     background-color: rgba(1, 250, 236, 0.20) !important;
#p-cactions .vector-menu-dropdown .menu,
     color: #66fcf0 !important;
.vector-menu-dropdown .menu {
     background-color: rgba(32, 32, 32, 0.98) !important;
    border: 1px solid rgba(255, 215, 0, 0.2) !important;
     border-radius: 6px !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6) !important;
}
}


/* ===== "监视" 按钮 ===== */
/* ============================================================
#ca-watch a,
  区块 24:正文区彻底修复(移除导致过宽的 padding)
#ca-unwatch a {
  ============================================================ */
     color: #8ab4b8 !important;
 
/* 24.1 清除所有误加的背景、边框、阴影,恢复正常宽度 */
.mw-body .mw-parser-output,
.mw-parser-output,
#mw-content-text,
.mw-body-content {
     padding: 0 !important;
     background-color: transparent !important;
     background-color: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background-image: none !important;
    max-width: 100% !important;
    width: auto !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}
}


#ca-watch a:hover,
/* 24.2 移除正文区外部多余容器的边框和背景 */
#ca-unwatch a:hover {
.mw-body .mw-parser-output > div,
     color: #01faec !important;
.mw-body .mw-parser-output > table,
     background-color: rgba(1, 250, 236, 0.08) !important;
.mw-body .mw-parser-output > form {
     background-color: transparent !important;
    border: none !important;
     box-shadow: none !important;
}
}


/* ===== "讨论" 按钮 ===== */
/* 24.3 强制正文区内部所有超链接恢复蓝色(不适用金色) */
#ca-talk a {
.mw-parser-output a,
     color: #8ab4b8 !important;
.mw-parser-output a:visited,
.mw-parser-output a:active,
.mw-parser-output a.external,
.mw-body .mw-parser-output a,
.mw-body .mw-content-ltr a,
#mw-content-text a {
     color: #58a6ff !important;
    text-decoration: none !important;
     background-color: transparent !important;
     background-color: transparent !important;
    background-image: none !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
    display: inline !important;
    transform: none !important;
    transition: color 0.2s ease !important;
}
.mw-parser-output a:visited,
.mw-body .mw-parser-output a:visited {
    color: #a5b4fc !important;
}
.mw-parser-output a:hover,
.mw-body .mw-parser-output a:hover,
.mw-parser-output a.external:hover {
    color: #79c0ff !important;
    text-decoration: underline !important;
    text-shadow: none !important;
}
/* 24.4 保留列表和段落的正常缩进 */
.mw-parser-output h1,
.mw-parser-output h2,
.mw-parser-output h3,
.mw-parser-output h4,
.mw-parser-output p {
    margin-left: 0 !important;
    padding-left: 0 !important;
}
.mw-parser-output ul,
.mw-parser-output ol {
    margin-left: 0 !important;
    padding-left: 1.6em !important;
}
.mw-parser-output ul li,
.mw-parser-output ol li {
    margin-bottom: 0.3em !important;
    padding-left: 0 !important;
    color: #d0d0d0 !important;
}
/* ============================================================
  区块 25:CodeMirror 编辑器暗色适配
  ============================================================ */
.CodeMirror,
.CodeMirror-scroll,
.CodeMirror-gutters {
    background-color: #0d1117 !important;
    color: #e6edf3 !important;
    border-color: #30363d !important;
}
.CodeMirror-gutters {
    background-color: #161b22 !important;
    border-right-color: #30363d !important;
}
.CodeMirror-linenumber {
    color: #8b949e !important;
}
.CodeMirror-cursor {
    border-left-color: #58a6ff !important;
}
.CodeMirror-selected {
    background-color: #1f6feb !important;
}
/* CodeMirror 语法高亮颜色(保持醒目) */
.cm-s-default .cm-keyword {
    color: #ff7b72 !important;
}
.cm-s-default .cm-atom {
    color: #79c0ff !important;
}
.cm-s-default .cm-number {
    color: #d2a8ff !important;
}
.cm-s-default .cm-def {
    color: #58a6ff !important;
}
.cm-s-default .cm-variable {
    color: #e6edf3 !important;
}
.cm-s-default .cm-variable-2 {
    color: #e6edf3 !important;
}
.cm-s-default .cm-variable-3 {
    color: #e6edf3 !important;
}
.cm-s-default .cm-property {
    color: #79c0ff !important;
}
.cm-s-default .cm-operator {
    color: #ff7b72 !important;
}
.cm-s-default .cm-comment {
    color: #8b949e !important;
    font-style: italic !important;
}
.cm-s-default .cm-string {
    color: #a5d6ff !important;
}
.cm-s-default .cm-string-2 {
    color: #a5d6ff !important;
}
.cm-s-default .cm-meta {
    color: #b1bac4 !important;
}
.cm-s-default .cm-qualifier {
    color: #58a6ff !important;
}
.cm-s-default .cm-builtin {
    color: #ff7b72 !important;
}
.cm-s-default .cm-bracket {
    color: #e6edf3 !important;
}
.cm-s-default .cm-tag {
    color: #ff7b72 !important;
}
.cm-s-default .cm-attribute {
    color: #79c0ff !important;
}
.cm-s-default .cm-hr {
    color: #8b949e !important;
}
.cm-s-default .cm-link {
    color: #58a6ff !important;
}
.cm-s-default .cm-error {
    color: #f85149 !important;
}
}


#ca-talk a:hover {
/* ============================================================
     color: #01faec !important;
  区块 26:编辑器白色背景修复(统一边框为 #30363d)
     background-color: rgba(1, 250, 236, 0.08) !important;
  ============================================================ */
 
/* 26.1 编辑选项区域 */
.editOptions,
.mw-editform .editOptions {
     background-color: #161b22 !important;
     border-color: #30363d !important;
    border: 1px solid #30363d !important;
}
 
/* 26.2 编辑器状态信息栏 */
.codeEditor-status-message,
.codeEditor-status-worker {
    background-color: #0d1117 !important;
    color: #e6edf3 !important;
    border-color: #30363d !important;
    border: 1px solid #30363d !important;
}
}


/* 移除任何残留的默认背景和边框 */
/* 26.3 编辑器外部容器 - 移除所有白线 */
#p-views .vector-menu-content,
.codeEditor-editor,
#p-cactions .vector-menu-content,
.codeEditor-status {
.vector-menu-tabs,
    background-color: #0d1117 !important;
.vector-menu-tabs ul {
    border-color: #30363d !important;
     background: none !important;
     border: 1px solid #30363d !important;
     background-color: transparent !important;
}
 
/* ============================================================
  区块 27:Ace 编辑器适配
  ============================================================ */
 
/* 27.1 Ace 编辑器主体 - 移除多余边框 */
.ace_editor,
.ace_editor .ace_scroller,
.ace_editor .ace_content {
     background-color: #0d1117 !important;
     border: none !important;
     border: none !important;
}
}


.vector-menu-tabs .mw-watchlink.icon a {
/* 27.2 Ace 编辑器文字颜色 */
     width: auto !important;
.ace_editor .ace_text-layer,
     height: auto !important;
.ace_editor .ace_line,
.ace_editor .ace_line * {
    color: #e6edf3 !important;
}
 
/* 27.3 Ace 行号区 */
.ace_gutter,
.ace_editor .ace_gutter {
    background-color: #161b22 !important;
    color: #8b949e !important;
    border-right: 1px solid #30363d !important;
}
 
/* 27.4 Ace 光标 */
.ace_cursor,
.ace_editor .ace_cursor {
    color: #58a6ff !important;
    border-left-color: #58a6ff !important;
}
 
/* 27.5 Ace 选中高亮 - 修复框选看不见的问题 */
.ace_selection,
.ace_editor .ace_selection,
.ace_editor .ace_selection div {
    background-color: #1f6feb !important;
    color: #ffffff !important;
}
 
.ace_editor .ace_selected-word,
.ace_editor .ace_selected-word div {
    background-color: #1f6feb !important;
    color: #ffffff !important;
}
 
/* 27.6 Ace 当前行高亮 */
.ace_active-line,
.ace_editor .ace_active-line {
    background-color: #1c2333 !important;
}
 
/* 27.7 Ace 当前行号高亮 */
.ace_gutter-active-line,
.ace_editor .ace_gutter-active-line {
    background-color: #1c2333 !important;
}
 
/* 27.8 强制 Ace 选中的背景色 */
.ace_editor .ace_marker-layer .ace_selection {
    background-color: #1f6feb !important;
}
 
/* ============================================================
  区块 28:编辑页面底部区域修复
  ============================================================ */
 
/* 28.1 摘要输入框 */
#wpSummary,
.mw-summary,
input.mw-edit-summary {
    color: #e6edf3 !important;
    border: 1px solid #30363d !important;
}
 
#wpSummary:focus,
.mw-summary:focus {
    border-color: #58a6ff !important;
    box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.15) !important;
    outline: none !important;
}
 
/* 28.2 版权警告 */
#editpage-copywarn,
#editpage-copywarn p {
    color: #b1bac4 !important;
}
 
/* 28.3 保存/预览/差异 按钮 */
#wpSave,
#wpPreview,
#wpDiff {
    color: #f0f6fc !important;
    background-color: #21262d !important;
    border: 1px solid #30363d !important;
}
 
#wpSave:hover,
#wpPreview:hover,
#wpDiff:hover {
     background-color: #30363d !important;
    border-color: #58a6ff !important;
}
 
/* 28.4 页面底部 */
#footer,
#footer-info,
#footer-places,
#footer-icons {
     color: #8b949e !important;
}
}


/* ===== 强制修复:重置星标图标定位和尺寸 ===== */
#footer a,
.vector-menu-tabs .mw-watchlink.icon a:before {
#footer-places a {
     left: auto !important;
     color: #58a6ff !important;
    top: auto !important;
    width: auto !important;
    height: auto !important;
}
}


/* ===== 强制修复:标签栏高度 ===== */
/* ============================================================
.vector-menu-tabs-legacy li a {
  区块 29:修复 Ace 编辑器白线问题(只禁用 height)
  ============================================================ */
.ace_content {
     height: auto !important;
     height: auto !important;
}
}


/* ============================================================
/* ============================================================
   强制修复 "系统消息" 和 "讨论" 标签样式(含背景)
   ★★★★★ 代码结束 ★★★★★
   ============================================================ */
   ============================================================ */


/* "系统消息" 标签 - 页面主标签 */
 
#ca-nstab-main {
 
     background-color: transparent !important;
 
     background: none !important;
 
 
 
 
 
 
 
 
 
 
 
 
 
/* --- 单位信息卡片样式 (全局生效) --- */
 
.mw-card-box {
    width: 100% !important;
     background-color: transparent !important; /* 去掉原来的浅灰背景,直接透出深色底 */
    border: 1px solid #444; /* 边框改为深灰色,更契合暗黑主题 */
    padding: 0;
    border-spacing: 0;
    border-collapse: collapse;
    table-layout: fixed;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3); /* 阴影加深 */
}
 
.mw-card-header {
     background-color: #1a1a1a; /* 深黑背景 */
    color: var(--theme-color, #0077FF); /* 标题文字使用主题色 */
    font-weight: bold;
    padding: 12px 18px;
    text-align: left;
    border-bottom: 3px solid var(--theme-color, #0077FF);
    font-size: 1.2em;
}
 
.mw-card-body {
    padding: 15px 18px;
    color: #ddd; /* 文字改为浅色,配合暗黑主题 */
}
}


#ca-nstab-main a {
.mw-card-flex {
     background-color: transparent !important;
     display: flex;
     background: none !important;
     justify-content: space-between;
     color: #8ab4b8 !important;
     align-items: flex-start;
     border: none !important;
     flex-wrap: wrap;
    border-radius: 4px 4px 0 0 !important;
     gap: 15px 30px;
    padding: 6px 14px !important;
     box-sizing: border-box;
     margin: 0 2px !important;
     font-weight: 500 !important;
    font-size: 13px !important;
    transition: all 0.25s ease !important;
}
}


#ca-nstab-main a:hover {
.mw-card-col {
     background-color: rgba(1, 250, 236, 0.12) !important;
     flex: 1;
     background: rgba(1, 250, 236, 0.12) !important;
     line-height: 1.7;
     color: #01faec !important;
     min-width: 120px;
     border: none !important;
     word-break: break-word;
    text-decoration: none !important;
}
}


/* "系统消息" 选中状态 */
.mw-card-icon-box {
#ca-nstab-main.selected {
    flex: 0 0 auto;
     background-color: transparent !important;
     background-color: var(--theme-color, #0077FF);
     background: none !important;
     padding: 4px 8px;
    border-radius: 3px;
    display: flex;
    align-items: center;
}
}


#ca-nstab-main.selected a {
.mw-card-divider {
     background-color: transparent !important;
     padding: 0;
    background: none !important;
     border-bottom: 1px solid #333; /* 暗色分割线 */
    color: #01faec !important;
    font-weight: 600 !important;
     border-radius: 0 !important;
}
}


/* "讨论" 标签 */
/* 核心修复:图片区 */
#ca-talk {
.mw-card-image-frame {
     background-color: transparent !important;
    text-align: center;
     background: none !important;
    padding: 15px;
     background-color: transparent !important; /* 去掉白色背景! */
     border: none; /* 去掉边框 */
    margin: 0;
}
}


#ca-talk a {
.mw-card-image-frame img {
     background-color: transparent !important;
     max-width: 100% !important;
     background: none !important;
     height: auto !important;
     color: #8ab4b8 !important;
     display: block;
     border: none !important;
     margin: 0 auto;
     border-radius: 4px 4px 0 0 !important;
     border-radius: 4px;
    padding: 6px 14px !important;
    margin: 0 2px !important;
    font-weight: 500 !important;
    font-size: 13px !important;
    transition: all 0.25s ease !important;
}
}


#ca-talk a:hover {
.mw-card-caption {
    background-color: rgba(1, 250, 236, 0.12) !important;
     color: #888; /* 图片说明文字颜色调暗 */
    background: rgba(1, 250, 236, 0.12) !important;
     margin-top: 6px;
     color: #01faec !important;
     display: block;
     border: none !important;
     text-decoration: none !important;
}
}


/* "讨论" 选中状态 */
.mw-card-footer {
#ca-talk.selected {
     padding: 15px 18px;
     background-color: transparent !important;
    line-height: 1.8;
     background: none !important;
     color: #ccc; /* 文字颜色 */
}
}


#ca-talk.selected a {
.mw-card-code {
    background-color: transparent !important;
     padding: 15px 18px;
    background: none !important;
    color: #01faec !important;
    font-weight: 600 !important;
     border-radius: 0 !important;
}
}


/* ===== 额外兜底:强制所有导航标签背景透明 ===== */
.mw-card-code-divider {
#left-navigation ul li,
    padding: 0;
#p-views ul li,
     border-bottom: 1px solid #333;
#p-cactions ul li,
     margin-bottom: 15px;
#left-navigation ul li a,
#p-views ul li a,
#p-cactions ul li a {
     background-color: transparent !important;
     background: none !important;
}
}


/* 所有选中状态统一青绿色下划线 */
/* 修复代码块白底 */
#left-navigation ul li.selected,
.mw-card-code-block {
#p-views ul li.selected,
    white-space: pre-wrap !important;      /* 保留换行,自动换行 */
#p-cactions ul li.selected,
    word-break: break-word !important;    /* 长单词换行 */
#left-navigation ul li.selected a,
    tab-size: 4 !important;                /* 制表符宽度 */
#p-views ul li.selected a,
    font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace !important;
#p-cactions ul li.selected a {
    font-size: 13px !important;
     background-color: transparent !important;
    line-height: 1.8 !important;          /* 增加行高,更舒适 */
     background: none !important;
    padding: 16px 20px !important;
     color: #01faec !important;
     background-color: #0d1117 !important;
     border-radius: 0 !important;
    border: 1px solid #30363d !important;
     border-radius: 6px !important;
    overflow-x: auto !important;
    max-height: 500px !important;          /* 内容太多时滚动 */
}.mw-card-code-block {
    white-space: pre-wrap;
    word-break: break-all;
     overflow-x: auto;
    max-width: 100%;
    box-sizing: border-box;
    background-color: #1e1e1e !important; /* 暗黑代码背景 */
     border: 1px solid #444 !important;
    color: #a9b7c6; /* 代码文字颜色 */
    padding: 10px;
}
}


/* 所有悬停状态统一青绿色背景 */
/* 移动端优化 */
#left-navigation ul li a:hover,
@media screen and (max-width: 800px) {
#p-views ul li a:hover,
    .mw-card-header {
#p-cactions ul li a:hover {
        padding: 10px 12px;
    background-color: rgba(1, 250, 236, 0.12) !important;
        font-size: 1.1em;
    background: rgba(1, 250, 236, 0.12) !important;
    }
     color: #01faec !important;
    .mw-card-flex {
        flex-direction: column;
        gap: 10px;
     }
    .mw-card-icon-box {
        align-self: flex-end;
    }
}
}

2026年8月27日 (四) 23:19的最新版本

/* ============================================================
   📦 整体说明
   本 CSS 用于 MediaWiki 全局暗色美化,适用于 Vector、Vector 2022、Monobook 等皮肤。
   目标:暗色背景 + 高对比度/醒目字体,提升阅读与编辑体验。
   包含:全局样式 | 标题与链接 | 表格与代码 | 信息框 | 侧边栏 | 顶部导航 | 编辑器 | 滚动条等。
   ============================================================ */

/* ============================================================
   区块 1:全局重置 & 基础颜色
   ============================================================ */
html,
body {
    background-color: #0d1117 !important;
    color: #e6edf3 !important;
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
}

/* ============================================================
   区块 2:标题样式(更亮、更醒目)
   ============================================================ */
h1,
h2,
h3,
h4,
h5,
h6,
.firstHeading,
.mw-headline,
.personaltitle,
#firstHeading,
#siteSub,
#contentSub {
    color: #f0f6fc !important;
    font-weight: 600 !important;
    letter-spacing: 0.02em;
}

h2,
h3,
h4,
h5,
h6 {
    border-bottom-color: #30363d !important;
}

/* ============================================================
   区块 3:链接颜色与交互(亮蓝 + 悬停加强)
   ============================================================ */
a,
a:visited,
a:active,
.mw-body a,
.mw-body a:visited,
#mw-panel a,
#mw-panel a:visited,
.vector-menu a,
.vector-menu a:visited {
    color: #58a6ff !important;
    text-decoration: none;
    transition: color 0.15s ease, text-shadow 0.15s ease;
}

a:hover,
a:focus,
.mw-body a:hover,
.vector-menu a:hover {
    color: #79c0ff !important;
    text-shadow: 0 0 6px rgba(88, 166, 255, 0.3) !important;
    text-decoration: underline !important;
}

a:visited {
    color: #a5b4fc !important;
}

/* ============================================================
   区块 4:页面主体区域
   ============================================================ */
.mw-body,
#content,
#mw-content-text,
.ve-init-mw-desktopArticleTarget-targetContainer {
    background-color: #161b22 !important;
    color: #e6edf3 !important;
    border-color: #30363d !important;
    border: 1px solid #30363d !important;
    box-shadow: 0 0 0 1px #30363d !important;
}

.mw-body p,
#content p {
    color: #e6edf3 !important;
    line-height: 1.7;
}

/* ============================================================
   区块 5:表格样式(暗色背景 + 亮色文字)
   ============================================================ */
table,
.wikitable,
.mw-datatable {
    background-color: #0d1117 !important;
    color: #e6edf3 !important;
    border-color: #30363d !important;
}

table th,
.wikitable th,
.mw-datatable th {
    background-color: #21262d !important;
    color: #f0f6fc !important;
    border-color: #30363d !important;
    font-weight: 600;
}

table td,
.wikitable td,
.mw-datatable td {
    border-color: #30363d !important;
    color: #e6edf3 !important;
}

table tr:nth-child(even),
.wikitable tr:nth-child(even),
.mw-datatable tr:nth-child(even) {
    background-color: #161b22 !important;
}

table tr:nth-child(odd),
.wikitable tr:nth-child(odd),
.mw-datatable tr:nth-child(odd) {
    background-color: #0d1117 !important;
}

table tr:hover,
.wikitable tr:hover,
.mw-datatable tr:hover {
    background-color: #1c2333 !important;
    transition: background 0.1s ease;
}

/* ============================================================
   区块 6:代码块 & 预格式化
   ============================================================ */
pre,
.mw-code,
.mw-json,
.mw-highlight,
.hljs,
code,
tt,
kbd,
samp,
.plainlinks pre {
    background-color: #0d1117 !important;
    color: #f0f6fc !important;
    border-color: #30363d !important;
    border-radius: 6px;
    font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;
    font-size: 0.92em;
    padding: 0.2em 0.5em;
}

code,
tt,
kbd {
    background-color: #21262d !important;
    color: #ffd700 !important;
    padding: 0.15em 0.4em;
    border-radius: 4px;
}

pre code,
.mw-code code {
    background-color: transparent !important;
    color: #e6edf3 !important;
    padding: 0;
}

/* ============================================================
   区块 7:信息框 / 消息盒子(警告、错误、成功)
   ============================================================ */
.messagebox,
.infobox,
.ambox,
.toc,
.mw-notification,
#mw-indicators,
.warningbox,
.errorbox,
.successbox {
    background-color: #161b22 !important;
    border-color: #30363d !important;
    color: #e6edf3 !important;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.warningbox {
    border-color: #daa520 !important;
    background-color: #2a1f0e !important;
}
.warningbox,
.warningbox * {
    color: #ffd966 !important;
}

.errorbox {
    border-color: #dc3545 !important;
    background-color: #2c141a !important;
}
.errorbox,
.errorbox * {
    color: #f8a5b0 !important;
}

.successbox {
    border-color: #28a745 !important;
    background-color: #0f2b1a !important;
}
.successbox,
.successbox * {
    color: #7ee08c !important;
}

/* ============================================================
   区块 8:侧边栏(紧凑 + 大字 + 高行距 + 黑金边框)
   ============================================================ */

/* 8.1 侧边栏整体 */
#mw-panel {
    background: #0d1117 !important;
    border-right: 1px solid #21262d !important;
    padding-top: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-bottom: 1em !important;
    width: auto !important;
    min-width: 160px !important;
    max-width: 210px !important;
    margin-top: 0 !important;
}

/* 8.2 左上角 Logo */
#p-logo {
    display: block !important;
    padding: 0.5em 0 0.3em 0.8em !important;
    margin: 0 !important;
    border-bottom: 1px solid #21262d !important;
}

#p-logo a {
    background-size: 128px !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    display: block !important;
    width: 10em !important;
    height: 160px !important;
    text-decoration: none !important;
}

/* 8.3 板块容器 */
#mw-panel .portal {
    margin-bottom: 0 !important;
    padding: 0 !important;
    position: relative !important;
}

/* 8.4 板块标题 */
#mw-panel .portal h3,
#mw-panel .portal .vector-menu-heading {
    color: #f0f6fc !important;
    font-weight: 600 !important;
    font-size: 0.85em !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
    border-bottom: 1px solid #21262d !important;
    padding: 0.5em 0 0.35em 0.6em !important;
    margin: 0 !important;
    background: transparent !important;
    opacity: 0.8 !important;
    white-space: nowrap !important;
}

/* 8.5 链接列表容器 */
#mw-panel .portal .vector-menu-content,
#mw-panel .portal .body {
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
}

#mw-panel .portal .vector-menu-content ul,
#mw-panel .portal .body ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

#mw-panel .portal .vector-menu-content ul li,
#mw-panel .portal .body ul li {
    margin: 0 !important;
    padding: 0 !important;
}

/* 8.6 链接默认状态(黑金风格:底部金边) */
#mw-panel .portal .vector-menu-content ul li a,
#mw-panel .portal .body ul li a {
    display: block !important;
    padding: 0.35em 0.6em 0.35em 0.8em !important;
    color: #c9d1d9 !important;
    font-size: 1em !important;
    font-weight: 400 !important;
    text-decoration: none !important;
    border-left: 2px solid transparent !important;
    background: transparent !important;
    transition: all 0.15s ease !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    line-height: 1.6 !important;
    /* 底部金边装饰(来自后续终极版) */
    border-bottom: 1px solid rgba(255, 215, 0, 0.15) !important;
    background-image: linear-gradient(to right, rgba(255, 215, 0, 0.08), transparent 80%) !important;
    background-repeat: no-repeat !important;
    background-position: bottom left !important;
    background-size: 100% 1px !important;
}

/* 8.7 链接悬浮状态 */
#mw-panel .portal .vector-menu-content ul li a:hover,
#mw-panel .portal .body ul li a:hover {
    color: #f0f6fc !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border-left-color: #fbcb3e !important;
    border-bottom-color: rgba(255, 215, 0, 0.45) !important;
    background-image: linear-gradient(to right, rgba(255, 215, 0, 0.15), transparent 90%) !important;
}

/* 8.8 最后一个链接无边框 */
#mw-panel .portal .body ul li:last-child a,
#mw-panel .portal .vector-menu-content ul li:last-child a {
    border-bottom: none !important;
    background-image: none !important;
}

/* 8.9 板块分隔线 */
#mw-panel .portal:not(:last-child)::after {
    content: '' !important;
    display: block !important;
    height: 1px !important;
    background: #21262d !important;
    margin: 0.1em 0.8em !important;
}

/* 8.10 移除折叠按钮 */
#mw-panel .portal .vector-menu-heading .mw-collapsible-text {
    display: none !important;
}

/* 8.11 "工具"区域微调 */
#p-tb .portal .vector-menu-content ul li a,
#p-tb .portal .body ul li a {
    padding: 0.25em 0.6em 0.25em 0.8em !important;
    font-size: 0.9em !important;
    line-height: 1.5 !important;
}

/* 8.12 侧边栏滚动条 */
#mw-panel {
    scrollbar-width: thin;
    scrollbar-color: #21262d #0d1117;
}
#mw-panel::-webkit-scrollbar {
    width: 4px;
}
#mw-panel::-webkit-scrollbar-track {
    background: #0d1117;
}
#mw-panel::-webkit-scrollbar-thumb {
    background: #21262d;
    border-radius: 4px;
}
#mw-panel::-webkit-scrollbar-thumb:hover {
    background: #30363d;
}

/* 8.13 修复头部与侧边栏之间的空隙 */
#mw-head-base {
    background: transparent !important;
}
#mw-page-base {
    background: transparent !important;
}
#mw-panel > div:empty,
#mw-panel > .empty,
#mw-panel > .portal:empty {
    display: none !important;
}

/* ============================================================
   区块 9:搜索框
   ============================================================ */
#searchInput,
#searchQuery,
.vector-search-box-input,
#simpleSearch input {
    background-color: #0d1117 !important;
    color: #e6edf3 !important;
    border-color: #30363d !important;
    border-radius: 6px;
}

#searchInput:focus,
#searchQuery:focus,
.vector-search-box-input:focus {
    border-color: #58a6ff !important;
    box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.25) !important;
    outline: none;
}

#searchButton,
#mw-searchButton {
    background-color: #21262d !important;
    color: #e6edf3 !important;
    border-color: #30363d !important;
}
#searchButton:hover,
#mw-searchButton:hover {
    background-color: #30363d !important;
}

/* ============================================================
   区块 10:分类与底部
   ============================================================ */
#catlinks,
#footer,
#footer-info,
#footer-places,
#footer-icons {
    background-color: #0d1117 !important;
    border-color: #30363d !important;
    color: #8b949e !important;
}

#catlinks a,
#footer a {
    color: #58a6ff !important;
}

#catlinks a:hover,
#footer a:hover {
    color: #79c0ff !important;
}

/* ============================================================
   区块 11:编辑框(经典文本编辑区域)
   ============================================================ */
#wpTextbox1,
.mw-editform #wpTextbox1,
textarea.mw-editfont-monospace,
#editpage-textarea {
    background-color: #0d1117 !important;
    color: #e6edf3 !important;
    border: 1px solid #30363d !important;
    border-radius: 6px !important;
    font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', 'Consolas', monospace !important;
    font-size: 14px !important;
    line-height: 1.7 !important;
    padding: 12px !important;
    caret-color: #58a6ff !important;
    box-shadow: inset 0 0 0 1px #30363d !important;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

#wpTextbox1:focus,
.mw-editform #wpTextbox1:focus,
#editpage-textarea:focus {
    border-color: #58a6ff !important;
    box-shadow: inset 0 0 0 1px #58a6ff, 0 0 0 3px rgba(88, 166, 255, 0.15) !important;
    outline: none !important;
}

/* ============================================================
   区块 12:编辑摘要/注释输入框
   ============================================================ */
#wpSummary,
.mw-summary,
#wpMinoredit + label,
input.mw-edit-summary {
    background-color: #0d1117 !important;
    color: #e6edf3 !important;
    border: 1px solid #30363d !important;
    border-radius: 4px !important;
    padding: 6px 10px !important;
}

#wpSummary:focus,
.mw-summary:focus {
    border-color: #58a6ff !important;
    box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.15) !important;
    outline: none !important;
}

/* ============================================================
   区块 13:WikiEditor 工具栏
   ============================================================ */
.wikiEditor-toolbar,
.wikiEditor-ui-toolbar,
.wikiEditor-ui {
    background-color: #161b22 !important;
    border-color: #30363d !important;
    color: #e6edf3 !important;
    border-radius: 6px 6px 0 0 !important;
}

.wikiEditor-ui-toolbar .section-main {
    background-color: transparent !important;
}

.wikiEditor-ui-toolbar .group {
    border-color: #30363d !important;
}

.wikiEditor-ui-toolbar .group-label {
    color: #b1bac4 !important;
}

.wikiEditor-ui-toolbar .tool,
.wikiEditor-ui-toolbar .tool-select {
    background-color: #0d1117 !important;
    border-color: #30363d !important;
    color: #e6edf3 !important;
    border-radius: 3px !important;
}

.wikiEditor-ui-toolbar .tool:hover,
.wikiEditor-ui-toolbar .tool-select:hover {
    background-color: #21262d !important;
    border-color: #58a6ff !important;
}

.wikiEditor-ui-toolbar .tool.active,
.wikiEditor-ui-toolbar .tool-select.active {
    background-color: #1f6feb !important;
    border-color: #58a6ff !important;
    color: #ffffff !important;
}

.wikiEditor-ui-toolbar .menu {
    background-color: #161b22 !important;
    border-color: #30363d !important;
    color: #e6edf3 !important;
}

.wikiEditor-ui-toolbar .menu .menu-item {
    color: #e6edf3 !important;
}

.wikiEditor-ui-toolbar .menu .menu-item:hover {
    background-color: #21262d !important;
    color: #f0f6fc !important;
}

/* ============================================================
   区块 14:编辑按钮(保存/预览/差异)
   ============================================================ */
#editpage-copywarn,
#editpage-copywarn p,
.mw-editform .editCheckboxes,
.mw-editform .editHelp {
    color: #b1bac4 !important;
    background-color: transparent !important;
}

#wpSave,
#wpPreview,
#wpDiff,
.mw-editform input[type="submit"] {
    background-color: #21262d !important;
    color: #f0f6fc !important;
    border: 1px solid #30363d !important;
    border-radius: 6px !important;
    padding: 8px 20px !important;
    font-weight: 600 !important;
    transition: all 0.15s ease;
}

#wpSave:hover,
#wpPreview:hover,
#wpDiff:hover,
.mw-editform input[type="submit"]:hover {
    background-color: #30363d !important;
    border-color: #58a6ff !important;
    box-shadow: 0 0 12px rgba(88, 166, 255, 0.15) !important;
}

/* ============================================================
   区块 15:其他输入框
   ============================================================ */
textarea,
input[type="text"],
input[type="search"],
input[type="password"],
input[type="email"],
select {
    background-color: #0d1117 !important;
    color: #e6edf3 !important;
    border: 1px solid #30363d !important;
    border-radius: 4px;
}

textarea:focus,
input[type="text"]:focus {
    border-color: #58a6ff !important;
    box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.2);
}

/* ============================================================
   区块 16:特殊页面 & 差异对比
   ============================================================ */
.diff,
.diff td,
.diff th,
.diff-editfont-monospace,
.mw-diff-edit,
#mw-diff-ntitle1,
#mw-diff-ntitle2 {
    background-color: #161b22 !important;
    color: #e6edf3 !important;
    border-color: #30363d !important;
}

.diff td.diff-context {
    background-color: #0d1117 !important;
    color: #b1bac4 !important;
}
.diff td.diff-addedline {
    background-color: #1a3a2a !important;
    color: #a8f0c0 !important;
}
.diff td.diff-deletedline {
    background-color: #3a1a1a !important;
    color: #f0a8a8 !important;
}

/* ============================================================
   区块 17:用户贡献 & 最近更改
   ============================================================ */
.mw-contributions-table,
.mw-changeslist,
.mw-rcfilters-table {
    background-color: transparent !important;
    color: #e6edf3 !important;
}

.mw-changeslist-line,
.mw-contributions-line {
    background-color: #0d1117 !important;
    border-color: #30363d !important;
    padding: 0.3em 0;
}

.mw-rcfilters-ui-highlights {
    color: #f0f6fc !important;
}

/* ============================================================
   区块 18:缩略图 / 图片说明
   ============================================================ */
.thumbinner,
.thumbcaption,
.gallerybox,
.gallerytext,
.thumbimage {
    background-color: #161b22 !important;
    color: #e6edf3 !important;
    border-color: #30363d !important;
}

.thumbimage {
    border: 1px solid #30363d !important;
}

/* ============================================================
   区块 19:引用 / 参考文献
   ============================================================ */
.reflist,
.references,
.mw-references-wrap {
    background-color: transparent !important;
    color: #e6edf3 !important;
}
.reflist a,
.references a {
    color: #58a6ff !important;
}

/* ============================================================
   区块 20:内部导航 (toc)
   ============================================================ */
#toc,
.toc {
    background-color: #161b22 !important;
    border: 1px solid #30363d !important;
    color: #e6edf3 !important;
    border-radius: 6px;
}
#toc a,
.toc a {
    color: #58a6ff !important;
}
#toc a:hover,
.toc a:hover {
    color: #79c0ff !important;
}

/* ============================================================
   区块 21:滚动条美化(全局)
   ============================================================ */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
    background: #0d1117;
}
::-webkit-scrollbar-track {
    background: #0d1117;
}
::-webkit-scrollbar-thumb {
    background: #30363d;
    border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover {
    background: #484f58;
}

/* ============================================================
   区块 22:辅助类与杂项
   ============================================================ */
.mw-body-content {
    color: #e6edf3 !important;
}

::placeholder {
    color: #8b949e !important;
    opacity: 0.7;
}

::selection {
    background: #1f6feb !important;
    color: #ffffff !important;
}

img,
figure {
    background-color: #0d1117 !important;
    border: 1px solid #30363d;
    border-radius: 4px;
}

#mw-page-base,
#mw-head-base {
    background-color: #0d1117 !important;
}

.skin-minerva .mw-body,
.skin-minerva #content {
    background-color: #161b22 !important;
    color: #e6edf3 !important;
}
.skin-minerva a {
    color: #58a6ff !important;
}

/* ============================================================
   区块 23:顶部操作标签美化(页面/讨论 | 阅读/编辑/源代码/历史)
   (黑金主题 + 完美排版修复)
   ============================================================ */

/* 23.1 导航容器布局 */
#left-navigation,
#right-navigation,
#p-views,
#p-cactions,
.vector-menu-tabs,
.vector-menu-tabs ul,
.vector-menu-dropdown,
#left-navigation ul,
#right-navigation ul {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    height: auto !important;
    min-height: 0 !important;
    line-height: 1.4 !important;
}

/* 23.2 列表项重置 */
#left-navigation ul li,
#right-navigation ul li,
#p-views ul li,
#p-cactions ul li,
.vector-menu-tabs li,
.vector-menu-dropdown li {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    vertical-align: middle !important;
    line-height: 1.4 !important;
}

/* 23.3 链接通用样式 */
#left-navigation ul li a,
#right-navigation ul li a,
#p-views ul li a,
#p-cactions ul li a,
.vector-menu-tabs li a,
.vector-menu-dropdown label,
.vector-menu-dropdown a,
#ca-more a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    vertical-align: middle !important;
    background: transparent !important;
    border: none !important;
    border-radius: 4px !important;
    box-shadow: none !important;
    text-shadow: none !important;
    margin: 0 2px !important;
    padding: 5px 12px !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    line-height: 1.4 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    transform: none !important;
    top: auto !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    width: auto !important;
    white-space: nowrap !important;
}

/* 23.4 移除所有伪元素(图标等) */
#left-navigation ul li a::before,
#left-navigation ul li a::after,
#right-navigation ul li a::before,
#right-navigation ul li a::after,
#p-views ul li a::before,
#p-views ul li a::after,
#p-cactions ul li a::before,
#p-cactions ul li a::after,
.vector-menu-tabs li a::before,
.vector-menu-tabs li a::after,
.vector-menu-dropdown label::before,
.vector-menu-dropdown label::after,
#ca-more a::before,
#ca-more a::after,
#ca-watch a::before,
#ca-watch a::after,
#ca-unwatch a::before,
#ca-unwatch a::after,
.mw-watchlink.icon a::before,
.mw-watchlink.icon a::after {
    content: none !important;
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    opacity: 0 !important;
    transform: none !important;
    background: none !important;
}

/* 23.5 移除监视链接的图标背景 */
.mw-watchlink.icon a,
#ca-watch a,
#ca-unwatch a {
    background-image: none !important;
    text-indent: 0 !important;
}

/* 23.6 导航链接颜色(黑金主题) */
#left-navigation ul li a,
#right-navigation ul li a,
#p-views ul li a,
#p-cactions ul li a,
.vector-menu-tabs li a,
.vector-menu-dropdown a,
.vector-menu-dropdown label,
#ca-more a {
    color: #c9d1d9 !important;
}

#left-navigation ul li a:hover,
#right-navigation ul li a:hover,
#p-views ul li a:hover,
#p-cactions ul li a:hover,
.vector-menu-tabs li a:hover,
.vector-menu-dropdown a:hover,
.vector-menu-dropdown label:hover,
#ca-more a:hover {
    color: #ffd700 !important;
    background-color: rgba(255, 215, 0, 0.1) !important;
}

/* 23.7 当前选中标签 */
#left-navigation ul li.selected a,
#right-navigation ul li.selected a,
#p-views ul li.selected a,
#p-cactions ul li.selected a,
.vector-menu-tabs li.selected a {
    color: #ffd700 !important;
    border-bottom: 2px solid #ffd700 !important;
    font-weight: 700 !important;
}

/* 23.8 编辑/查看源代码特殊高亮 */
#ca-edit a,
#ca-viewsource a {
    color: #ffd700 !important;
    background-color: rgba(255, 215, 0, 0.08) !important;
    border-radius: 4px !important;
}
#ca-edit a:hover,
#ca-viewsource a:hover {
    color: #ffe066 !important;
    background-color: rgba(255, 215, 0, 0.2) !important;
}

/* 23.9 监视链接 */
#ca-watch a,
#ca-unwatch a {
    color: #c9d1d9 !important;
}
#ca-watch a:hover,
#ca-unwatch a:hover {
    color: #ffd700 !important;
}

/* 23.10 下拉菜单 */
#p-cactions .vector-menu-dropdown .menu li a,
.vector-menu-dropdown .menu li a {
    color: #c9d1d9 !important;
    background-color: transparent !important;
}
#p-cactions .vector-menu-dropdown .menu li a:hover,
.vector-menu-dropdown .menu li a:hover {
    color: #ffd700 !important;
    background-color: rgba(255, 215, 0, 0.1) !important;
}

/* 23.11 下拉指示器 */
.vector-menu-indicator,
#p-cactions .vector-menu-indicator {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    vertical-align: middle !important;
    margin: 0 0 0 4px !important;
    padding: 0 !important;
    height: auto !important;
    line-height: 1 !important;
    transform: none !important;
    border: none !important;
    background: none !important;
    color: #c9d1d9 !important;
}
.vector-menu-dropdown:hover .vector-menu-indicator,
#p-cactions .vector-menu-dropdown:hover .vector-menu-indicator {
    color: #ffd700 !important;
}

/* 23.12 下拉菜单面板 */
#p-cactions .vector-menu-dropdown .menu,
.vector-menu-dropdown .menu {
    background-color: rgba(32, 32, 32, 0.98) !important;
    border: 1px solid rgba(255, 215, 0, 0.2) !important;
    border-radius: 6px !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6) !important;
}

/* ============================================================
   区块 24:正文区彻底修复(移除导致过宽的 padding)
   ============================================================ */

/* 24.1 清除所有误加的背景、边框、阴影,恢复正常宽度 */
.mw-body .mw-parser-output,
.mw-parser-output,
#mw-content-text,
.mw-body-content {
    padding: 0 !important;
    background-color: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background-image: none !important;
    max-width: 100% !important;
    width: auto !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

/* 24.2 移除正文区外部多余容器的边框和背景 */
.mw-body .mw-parser-output > div,
.mw-body .mw-parser-output > table,
.mw-body .mw-parser-output > form {
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* 24.3 强制正文区内部所有超链接恢复蓝色(不适用金色) */
.mw-parser-output a,
.mw-parser-output a:visited,
.mw-parser-output a:active,
.mw-parser-output a.external,
.mw-body .mw-parser-output a,
.mw-body .mw-content-ltr a,
#mw-content-text a {
    color: #58a6ff !important;
    text-decoration: none !important;
    background-color: transparent !important;
    background-image: none !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
    display: inline !important;
    transform: none !important;
    transition: color 0.2s ease !important;
}

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

.mw-parser-output a:hover,
.mw-body .mw-parser-output a:hover,
.mw-parser-output a.external:hover {
    color: #79c0ff !important;
    text-decoration: underline !important;
    text-shadow: none !important;
}

/* 24.4 保留列表和段落的正常缩进 */
.mw-parser-output h1,
.mw-parser-output h2,
.mw-parser-output h3,
.mw-parser-output h4,
.mw-parser-output p {
    margin-left: 0 !important;
    padding-left: 0 !important;
}

.mw-parser-output ul,
.mw-parser-output ol {
    margin-left: 0 !important;
    padding-left: 1.6em !important;
}

.mw-parser-output ul li,
.mw-parser-output ol li {
    margin-bottom: 0.3em !important;
    padding-left: 0 !important;
    color: #d0d0d0 !important;
}

/* ============================================================
   区块 25:CodeMirror 编辑器暗色适配
   ============================================================ */
.CodeMirror,
.CodeMirror-scroll,
.CodeMirror-gutters {
    background-color: #0d1117 !important;
    color: #e6edf3 !important;
    border-color: #30363d !important;
}

.CodeMirror-gutters {
    background-color: #161b22 !important;
    border-right-color: #30363d !important;
}

.CodeMirror-linenumber {
    color: #8b949e !important;
}

.CodeMirror-cursor {
    border-left-color: #58a6ff !important;
}

.CodeMirror-selected {
    background-color: #1f6feb !important;
}

/* CodeMirror 语法高亮颜色(保持醒目) */
.cm-s-default .cm-keyword {
    color: #ff7b72 !important;
}
.cm-s-default .cm-atom {
    color: #79c0ff !important;
}
.cm-s-default .cm-number {
    color: #d2a8ff !important;
}
.cm-s-default .cm-def {
    color: #58a6ff !important;
}
.cm-s-default .cm-variable {
    color: #e6edf3 !important;
}
.cm-s-default .cm-variable-2 {
    color: #e6edf3 !important;
}
.cm-s-default .cm-variable-3 {
    color: #e6edf3 !important;
}
.cm-s-default .cm-property {
    color: #79c0ff !important;
}
.cm-s-default .cm-operator {
    color: #ff7b72 !important;
}
.cm-s-default .cm-comment {
    color: #8b949e !important;
    font-style: italic !important;
}
.cm-s-default .cm-string {
    color: #a5d6ff !important;
}
.cm-s-default .cm-string-2 {
    color: #a5d6ff !important;
}
.cm-s-default .cm-meta {
    color: #b1bac4 !important;
}
.cm-s-default .cm-qualifier {
    color: #58a6ff !important;
}
.cm-s-default .cm-builtin {
    color: #ff7b72 !important;
}
.cm-s-default .cm-bracket {
    color: #e6edf3 !important;
}
.cm-s-default .cm-tag {
    color: #ff7b72 !important;
}
.cm-s-default .cm-attribute {
    color: #79c0ff !important;
}
.cm-s-default .cm-hr {
    color: #8b949e !important;
}
.cm-s-default .cm-link {
    color: #58a6ff !important;
}
.cm-s-default .cm-error {
    color: #f85149 !important;
}

/* ============================================================
   区块 26:编辑器白色背景修复(统一边框为 #30363d)
   ============================================================ */

/* 26.1 编辑选项区域 */
.editOptions,
.mw-editform .editOptions {
    background-color: #161b22 !important;
    border-color: #30363d !important;
    border: 1px solid #30363d !important;
}

/* 26.2 编辑器状态信息栏 */
.codeEditor-status-message,
.codeEditor-status-worker {
    background-color: #0d1117 !important;
    color: #e6edf3 !important;
    border-color: #30363d !important;
    border: 1px solid #30363d !important;
}

/* 26.3 编辑器外部容器 - 移除所有白线 */
.codeEditor-editor,
.codeEditor-status {
    background-color: #0d1117 !important;
    border-color: #30363d !important;
    border: 1px solid #30363d !important;
}

/* ============================================================
   区块 27:Ace 编辑器适配
   ============================================================ */

/* 27.1 Ace 编辑器主体 - 移除多余边框 */
.ace_editor,
.ace_editor .ace_scroller,
.ace_editor .ace_content {
    background-color: #0d1117 !important;
    border: none !important;
}

/* 27.2 Ace 编辑器文字颜色 */
.ace_editor .ace_text-layer,
.ace_editor .ace_line,
.ace_editor .ace_line * {
    color: #e6edf3 !important;
}

/* 27.3 Ace 行号区 */
.ace_gutter,
.ace_editor .ace_gutter {
    background-color: #161b22 !important;
    color: #8b949e !important;
    border-right: 1px solid #30363d !important;
}

/* 27.4 Ace 光标 */
.ace_cursor,
.ace_editor .ace_cursor {
    color: #58a6ff !important;
    border-left-color: #58a6ff !important;
}

/* 27.5 Ace 选中高亮 - 修复框选看不见的问题 */
.ace_selection,
.ace_editor .ace_selection,
.ace_editor .ace_selection div {
    background-color: #1f6feb !important;
    color: #ffffff !important;
}

.ace_editor .ace_selected-word,
.ace_editor .ace_selected-word div {
    background-color: #1f6feb !important;
    color: #ffffff !important;
}

/* 27.6 Ace 当前行高亮 */
.ace_active-line,
.ace_editor .ace_active-line {
    background-color: #1c2333 !important;
}

/* 27.7 Ace 当前行号高亮 */
.ace_gutter-active-line,
.ace_editor .ace_gutter-active-line {
    background-color: #1c2333 !important;
}

/* 27.8 强制 Ace 选中的背景色 */
.ace_editor .ace_marker-layer .ace_selection {
    background-color: #1f6feb !important;
}

/* ============================================================
   区块 28:编辑页面底部区域修复
   ============================================================ */

/* 28.1 摘要输入框 */
#wpSummary,
.mw-summary,
input.mw-edit-summary {
    color: #e6edf3 !important;
    border: 1px solid #30363d !important;
}

#wpSummary:focus,
.mw-summary:focus {
    border-color: #58a6ff !important;
    box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.15) !important;
    outline: none !important;
}

/* 28.2 版权警告 */
#editpage-copywarn,
#editpage-copywarn p {
    color: #b1bac4 !important;
}

/* 28.3 保存/预览/差异 按钮 */
#wpSave,
#wpPreview,
#wpDiff {
    color: #f0f6fc !important;
    background-color: #21262d !important;
    border: 1px solid #30363d !important;
}

#wpSave:hover,
#wpPreview:hover,
#wpDiff:hover {
    background-color: #30363d !important;
    border-color: #58a6ff !important;
}

/* 28.4 页面底部 */
#footer,
#footer-info,
#footer-places,
#footer-icons {
    color: #8b949e !important;
}

#footer a,
#footer-places a {
    color: #58a6ff !important;
}

/* ============================================================
   区块 29:修复 Ace 编辑器白线问题(只禁用 height)
   ============================================================ */
.ace_content {
    height: auto !important;
}

/* ============================================================
   ★★★★★ 代码结束 ★★★★★
   ============================================================ */

















/* --- 单位信息卡片样式 (全局生效) --- */

.mw-card-box {
    width: 100% !important;
    background-color: transparent !important; /* 去掉原来的浅灰背景,直接透出深色底 */
    border: 1px solid #444; /* 边框改为深灰色,更契合暗黑主题 */
    padding: 0;
    border-spacing: 0;
    border-collapse: collapse;
    table-layout: fixed;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3); /* 阴影加深 */
}

.mw-card-header {
    background-color: #1a1a1a; /* 深黑背景 */
    color: var(--theme-color, #0077FF); /* 标题文字使用主题色 */
    font-weight: bold;
    padding: 12px 18px;
    text-align: left;
    border-bottom: 3px solid var(--theme-color, #0077FF);
    font-size: 1.2em;
}

.mw-card-body {
    padding: 15px 18px;
    color: #ddd; /* 文字改为浅色,配合暗黑主题 */
}

.mw-card-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 15px 30px;
    box-sizing: border-box;
}

.mw-card-col {
    flex: 1;
    line-height: 1.7;
    min-width: 120px;
    word-break: break-word;
}

.mw-card-icon-box {
    flex: 0 0 auto;
    background-color: var(--theme-color, #0077FF);
    padding: 4px 8px;
    border-radius: 3px;
    display: flex;
    align-items: center;
}

.mw-card-divider {
    padding: 0;
    border-bottom: 1px solid #333; /* 暗色分割线 */
}

/* 核心修复:图片区 */
.mw-card-image-frame {
    text-align: center;
    padding: 15px;
    background-color: transparent !important; /* 去掉白色背景! */
    border: none; /* 去掉边框 */
    margin: 0;
}

.mw-card-image-frame img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
    margin: 0 auto;
    border-radius: 4px;
}

.mw-card-caption {
    color: #888; /* 图片说明文字颜色调暗 */
    margin-top: 6px;
    display: block;
}

.mw-card-footer {
    padding: 15px 18px;
    line-height: 1.8;
    color: #ccc; /* 文字颜色 */
}

.mw-card-code {
    padding: 15px 18px;
}

.mw-card-code-divider {
    padding: 0;
    border-bottom: 1px solid #333;
    margin-bottom: 15px;
}

/* 修复代码块白底 */
.mw-card-code-block {
    white-space: pre-wrap !important;      /* 保留换行,自动换行 */
    word-break: break-word !important;     /* 长单词换行 */
    tab-size: 4 !important;                /* 制表符宽度 */
    font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace !important;
    font-size: 13px !important;
    line-height: 1.8 !important;           /* 增加行高,更舒适 */
    padding: 16px 20px !important;
    background-color: #0d1117 !important;
    border: 1px solid #30363d !important;
    border-radius: 6px !important;
    overflow-x: auto !important;
    max-height: 500px !important;          /* 内容太多时滚动 */
}.mw-card-code-block {
    white-space: pre-wrap;
    word-break: break-all;
    overflow-x: auto;
    max-width: 100%;
    box-sizing: border-box;
    background-color: #1e1e1e !important; /* 暗黑代码背景 */
    border: 1px solid #444 !important;
    color: #a9b7c6; /* 代码文字颜色 */
    padding: 10px;
}

/* 移动端优化 */
@media screen and (max-width: 800px) {
    .mw-card-header {
        padding: 10px 12px;
        font-size: 1.1em;
    }
    .mw-card-flex {
        flex-direction: column;
        gap: 10px;
    }
    .mw-card-icon-box {
        align-self: flex-end;
    }
}