MediaWiki:Common.css:修订间差异

来自心灵终结资料站
跳转到导航 跳转到搜索
无编辑摘要
Lyx讨论 | 贡献
无编辑摘要
第1行: 第1行:
/* ====================================================
/* ====================================================
   MediaWiki 硬朗工业风美化样式
   MediaWiki 美化样式表 - 基于主题色设计
   主色: #0a1518 (深空), #01faec (霓虹青), #3d839b (钢蓝), #488ab1 (亮蓝), #ffffff (纯白)
   主题色: #0a1518, #01faec, #3d839b, #488ab1, #ffffff
   圆角: 小半径 (4px) 营造利落、硬朗的视觉风格
   包含悬停 (hover) 效果
  适用: MediaWiki 所有现代皮肤 (Vector, Monobook 等)
  存放: MediaWiki:Common.css 或皮肤自定义CSS
   ==================================================== */
   ==================================================== */


/* ---------- 全局基础 ---------- */
/* ---------- 全局基础色调 ---------- */
body {
body {
     background-color: #0a1518;
     background-color: #f4f7f9;
     font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    color: #0a1518;
     color: #e8edf0;
     font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', sans-serif;
}
 
/* 主容器轻微内阴影,更立体 */
#mw-page-base {
     background: transparent;
}
}


/* 内容区 - 深色底衬 + 硬朗边框 */
#mw-head-base {
.mw-body {
    background: #0a1518;
     background-color: #ffffff;
    border-bottom: 3px solid #01faec;
     color: #0a1518;
}
 
/* ---------- 顶部导航栏 (个人工具/通知) ---------- */
#mw-head {
     background: #0a1518;
    color: #ffffff;
}
 
#mw-head a {
    color: #ffffff;
    transition: color 0.25s ease, text-shadow 0.25s ease;
}
 
#mw-head a:hover {
     color: #01faec;
    text-shadow: 0 0 8px rgba(1, 250, 236, 0.5);
}
 
/* 顶部导航按钮/标签悬停 */
#mw-head .mw-portlet li a {
    background: transparent;
    padding: 0.5em 0.8em;
     border-radius: 4px;
     border-radius: 4px;
     border-left: 4px solid #01faec;
     transition: background 0.2s, color 0.2s, box-shadow 0.2s;
     box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}
     padding: 1.5em 2em;
 
     margin-top: 0.5em;
#mw-head .mw-portlet li a:hover {
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
     background: rgba(1, 250, 236, 0.15);
     color: #01faec;
     box-shadow: inset 0 -2px 0 #01faec;
}
}


.mw-body:hover {
/* ---------- 左侧导航栏 (侧边栏) ---------- */
     box-shadow: 0 6px 20px rgba(1, 250, 236, 0.08);
#mw-panel {
     border-left-color: #3d839b;
     background: #0a1518;
     border-right: 1px solid #3d839b;
}
}


/* 标题 - 棱角分明 */
#mw-panel .mw-portlet h3 {
.mw-body h1,
    color: #01faec;
.mw-body h2 {
    font-weight: 500;
     border-bottom: 3px solid #0a1518;
    letter-spacing: 0.5px;
     border-bottom: 1px solid #3d839b;
     padding-bottom: 0.3em;
     padding-bottom: 0.3em;
    font-weight: 600;
    letter-spacing: 0.5px;
}
}


.mw-body h1 {
#mw-panel .mw-portlet li a {
     font-size: 2em;
     color: #d0e4ed;
     color: #0a1518;
    transition: color 0.2s, background 0.2s, padding-left 0.2s, border-color 0.2s;
    display: block;
    padding: 0.4em 0.4em 0.4em 0.8em;
    border-left: 2px solid transparent;
    border-radius: 0 4px 4px 0;
}
 
#mw-panel .mw-portlet li a:hover {
    color: #ffffff;
    background: rgba(1, 250, 236, 0.12);
    padding-left: 1.2em;
     border-left-color: #01faec;
    text-decoration: none;
}
}


.mw-body h2 {
/* ---------- 页面主内容 ---------- */
     font-size: 1.6em;
#content {
     background: #ffffff;
    border: 1px solid #d0dce3;
    border-top: 3px solid #488ab1;
    box-shadow: 0 2px 12px rgba(10, 21, 24, 0.08);
    border-radius: 0 0 8px 8px;
    padding: 1.5em 2em;
     color: #0a1518;
     color: #0a1518;
}
}


.mw-body h3,
/* 内容区域标题 */
.mw-body h4 {
#content h1,
#content h2,
#content h3,
#content h4,
#content h5,
#content h6 {
     color: #0a1518;
     color: #0a1518;
    border-bottom: 1px solid #d0e4ed;
    padding-bottom: 0.2em;
}
}


/* ---------- 链接 - 冷色调 + 硬边悬停 ---------- */
#content h1 {
a {
     color: #0a1518;
     color: #3d839b;
     border-bottom: 2px solid #488ab1;
    text-decoration: none;
    transition: color 0.15s ease, background-color 0.15s ease, padding 0.1s ease;
     border-bottom: 2px solid transparent;
    font-weight: 500;
}
}


a:hover {
#content h2 {
    color: #01faec;
     border-bottom: 1px solid #3d839b;
    background-color: rgba(1, 250, 236, 0.06);
     border-bottom-color: #01faec;
    padding-bottom: 1px;
}
}


/* 外部链接 */
/* ---------- 链接样式 (正文中的链接) ---------- */
.mw-body a.external {
#content a {
     background-image: none;
    color: #3d839b;
     padding-right: 0;
    transition: color 0.2s, background 0.2s, box-shadow 0.2s, text-shadow 0.2s;
     text-decoration: none;
     border-radius: 2px;
}
}


/* ---------- 导航栏 (Vector) ---------- */
#content a:hover {
#mw-head {
     color: #0a1518;
     background: #0a1518;
     background: rgba(1, 250, 236, 0.18);
     border-radius: 0 0 4px 4px;
     box-shadow: 0 0 0 2px rgba(1, 250, 236, 0.2);
     box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    text-shadow: 0 0 12px rgba(1, 250, 236, 0.15);
     border-bottom: 2px solid #01faec;
     text-decoration: underline;
    text-underline-offset: 0.2em;
    text-decoration-color: #01faec;
}
}


/* 导航标签 - 硬朗风格 */
/* 已访问链接 */
.vector-menu-tabs li {
#content a:visited {
     background-color: transparent;
     color: #488ab1;
    border-radius: 4px 4px 0 0;
    transition: background 0.15s ease, transform 0.1s ease;
    border: 1px solid transparent;
    border-bottom: none;
}
}


.vector-menu-tabs li:hover {
#content a:visited:hover {
     background-color: rgba(1, 250, 236, 0.08);
    color: #0a1518;
    transform: translateY(-2px);
     background: rgba(72, 138, 177, 0.15);
    border-color: #3d839b;
}
}


.vector-menu-tabs li a {
/* 外部链接 */
     color: #e8edf0;
#content a.external {
     font-weight: 500;
     background: 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='%233d839b' 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) right center no-repeat;
     border-bottom: none;
     padding-right: 16px;
     background-size: 12px;
}
}


.vector-menu-tabs li a:hover {
#content a.external:hover {
     border-bottom: none;
     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);
    color: #01faec;
}
}


/* ---------- 按钮 - 工业感 ---------- */
/* ---------- 按钮样式 (如编辑、查看历史等) ---------- */
.mw-ui-button {
#content .mw-ui-button,
     background-color: #0a1518;
#content input[type="submit"],
#content input[type="button"],
#content .oo-ui-buttonElement-button {
     background: #ffffff;
     border: 1px solid #3d839b;
     border: 1px solid #3d839b;
    color: #0a1518;
    transition: all 0.25s ease;
     border-radius: 4px;
     border-radius: 4px;
     padding: 0.4em 1.2em;
     padding: 0.4em 1.2em;
     font-weight: 500;
     font-weight: 500;
    color: #e8edf0;
    transition: all 0.15s ease;
    box-shadow: none;
}
}


.mw-ui-button:hover {
#content .mw-ui-button:hover,
     background-color: #1a2a30;
#content input[type="submit"]:hover,
     border-color: #01faec;
#content input[type="button"]:hover,
     color: #01faec;
#content .oo-ui-buttonElement-button:hover {
     box-shadow: 0 0 12px rgba(1, 250, 236, 0.15);
     background: #01faec;
     transform: scale(1.01);
     border-color: #0a1518;
     color: #0a1518;
     box-shadow: 0 4px 12px rgba(1, 250, 236, 0.3);
     transform: translateY(-1px);
}
}


/* 主要按钮 (保存) */
#content .mw-ui-button:active,
.mw-ui-button.mw-ui-primary {
#content input[type="submit"]:active {
     background-color: #3d839b;
     background: #488ab1;
     border-color: #488ab1;
     border-color: #3d839b;
     color: #ffffff;
     transform: scale(0.97);
}
}


.mw-ui-button.mw-ui-primary:hover {
/* ---------- 特殊: 主要操作按钮 (如保存) ---------- */
     background-color: #488ab1;
#content .mw-ui-progressive {
     border-color: #01faec;
     background: #488ab1;
    box-shadow: 0 0 20px rgba(1, 250, 236, 0.2);
     border-color: #3d839b;
    transform: scale(1.02);
     color: #ffffff;
     color: #ffffff;
}
}


/* ---------- 表格 - 冷峻线条 ---------- */
#content .mw-ui-progressive:hover {
.wikitable {
     background: #3d839b;
     background-color: #ffffff;
     border-color: #0a1518;
     border: 1px solid #0a1518;
     color: #ffffff;
     border-radius: 4px;
     box-shadow: 0 4px 12px rgba(72, 138, 177, 0.4);
    overflow: hidden;
     box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}
}


.wikitable th {
/* ---------- 目录 (TOC) 美化 ---------- */
     background-color: #0a1518;
#toc {
     color: #01faec;
     background: #f8fafc;
     font-weight: 600;
     border: 1px solid #d0e4ed;
     padding: 0.6em 1em;
     border-radius: 8px;
     border-bottom: 2px solid #3d839b;
     box-shadow: 0 2px 8px rgba(10, 21, 24, 0.06);
     padding: 0.8em 1.2em;
}
}


.wikitable td {
#toc ul {
     padding: 0.5em 1em;
     margin: 0.3em 0;
    border-bottom: 1px solid #d0d7dd;
    color: #0a1518;
}
}


.wikitable tr {
#toc li a {
     transition: background 0.12s ease;
    color: #3d839b;
     transition: all 0.2s;
    display: inline-block;
    padding: 0.1em 0.3em;
    border-radius: 4px;
}
}


.wikitable tr:hover {
#toc li a:hover {
     background-color: rgba(1, 250, 236, 0.08);
    color: #0a1518;
     background: rgba(1, 250, 236, 0.2);
    padding-left: 0.8em;
    text-decoration: none;
}
}


.wikitable tr:hover td {
#toc .toctitle {
     color: #0a1518;
     color: #0a1518;
    border-bottom: 1px solid #01faec;
}
}


/* ---------- 消息框 ---------- */
/* ---------- 信息框/消息盒子 (如系统消息) ---------- */
.mw-message-box {
.mw-message-box {
     border-radius: 4px;
     border-left: 6px solid #488ab1;
     border-left: 6px solid #3d839b;
     background: #f0f7fa;
     background-color: #f5f8fa;
     border-radius: 6px;
     box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
     box-shadow: 0 2px 6px rgba(10, 21, 24, 0.06);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
    padding: 0.8em 1.5em;
    color: #0a1518;
}
}


.mw-message-box:hover {
.mw-message-box:hover {
    box-shadow: 0 4px 14px rgba(1, 250, 236, 0.1);
     border-left-color: #01faec;
     border-left-color: #01faec;
    background: #ffffff;
    transition: background 0.3s, border-color 0.3s;
}
}


/* ---------- 目录 (TOC) ---------- */
/* ---------- 搜索框 ---------- */
.toc {
#searchInput {
    background-color: #f5f8fa;
     border: 1px solid #3d839b;
     border: 1px solid #0a1518;
     border-radius: 20px;
     border-radius: 4px;
     padding: 0.4em 1em;
     padding: 0.8em 1.2em;
     transition: border-color 0.3s, box-shadow 0.3s;
     box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
     background: #ffffff;
     transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
}


.toc:hover {
#searchInput:focus {
     box-shadow: 0 4px 16px rgba(1, 250, 236, 0.08);
    border-color: #01faec;
     border-color: #3d839b;
     box-shadow: 0 0 0 3px rgba(1, 250, 236, 0.25);
     outline: none;
}
}


.toc ul li {
#searchButton,
     padding: 0.2em 0;
#mw-searchButton {
     transition: padding-left 0.12s ease;
    background: #488ab1;
    color: #ffffff;
    border: none;
    border-radius: 20px;
     padding: 0.4em 1.2em;
     transition: all 0.25s ease;
    font-weight: 500;
}
}


.toc ul li a {
#searchButton:hover,
     border-bottom: none;
#mw-searchButton:hover {
     background: #01faec;
     color: #0a1518;
     color: #0a1518;
     font-weight: 400;
     box-shadow: 0 2px 12px rgba(1, 250, 236, 0.3);
    transform: scale(1.02);
}
}


.toc ul li:hover {
/* ---------- 页脚 ---------- */
     padding-left: 6px;
#footer {
    background: #0a1518;
    color: #d0e4ed;
    border-top: 2px solid #01faec;
     padding: 1.2em 0;
}
}


.toc ul li a:hover {
#footer a {
     color: #0a1518;
     color: #01faec;
     background-color: rgba(1, 250, 236, 0.06);
     transition: color 0.2s, text-shadow 0.2s;
    border-bottom: 2px solid #01faec;
}
}


/* ---------- 侧边栏 ---------- */
#footer a:hover {
.vector-menu .vector-menu-content ul li {
     color: #ffffff;
     border-radius: 4px;
     text-shadow: 0 0 12px rgba(1, 250, 236, 0.4);
     transition: background 0.12s ease, padding-left 0.12s ease;
    text-decoration: underline;
     padding: 0.1em 0;
     text-underline-offset: 0.2em;
}
}


.vector-menu .vector-menu-content ul li:hover {
/* ---------- 表格美化 (wikitable) ---------- */
     background: rgba(1, 250, 236, 0.06);
.wikitable {
     padding-left: 6px;
    border-collapse: separate;
     border-left: 2px solid #01faec;
    border-spacing: 0;
     border: 1px solid #d0e4ed;
     border-radius: 8px;
     overflow: hidden;
    box-shadow: 0 2px 8px rgba(10, 21, 24, 0.05);
}
}


.vector-menu .vector-menu-content ul li a {
.wikitable th {
     border-bottom: none;
     background: #0a1518;
     color: #e8edf0;
     color: #ffffff;
    padding: 0.6em 1em;
    border-bottom: 2px solid #01faec;
}
}


.vector-menu .vector-menu-content ul li a:hover {
.wikitable td {
     color: #01faec;
     padding: 0.5em 1em;
     border-bottom: none;
     border-bottom: 1px solid #e8f0f5;
    transition: background 0.2s;
}
}


/* ---------- 编辑框 ---------- */
.wikitable tr:hover td {
.mw-editform textarea {
     background: rgba(1, 250, 236, 0.08);
     border-radius: 4px;
    border: 1px solid #0a1518;
    padding: 0.8em;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.95em;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background-color: #fafcfe;
    color: #0a1518;
}
}


.mw-editform textarea:hover {
.wikitable tr:last-child td {
    border-color: #3d839b;
     border-bottom: none;
    box-shadow: inset 0 0 0 1px rgba(1, 250, 236, 0.2);
}
 
.mw-editform textarea:focus {
     border-color: #01faec;
    box-shadow: 0 0 0 3px rgba(1, 250, 236, 0.15), inset 0 0 0 1px #0a1518;
    outline: none;
}
}


/* ---------- 缩略图 ---------- */
/* ---------- 缩略图/图片边框 ---------- */
.thumbinner {
.thumbinner {
     background-color: #ffffff;
     border: 1px solid #d0e4ed;
     border: 1px solid #0a1518;
     background: #ffffff;
     border-radius: 4px;
     border-radius: 8px;
     padding: 6px;
     padding: 4px;
     box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
     box-shadow: 0 2px 10px rgba(10, 21, 24, 0.06);
     transition: box-shadow 0.2s ease, border-color 0.2s ease;
     transition: box-shadow 0.25s, transform 0.2s;
}
}


.thumbinner:hover {
.thumbinner:hover {
     box-shadow: 0 6px 20px rgba(1, 250, 236, 0.06);
     box-shadow: 0 6px 20px rgba(1, 250, 236, 0.15);
     border-color: #3d839b;
     transform: scale(1.01);
}
}


.thumbinner .thumbcaption {
/* ---------- 代码块/预格式化 ---------- */
     font-size: 0.9em;
pre,
.mw-code {
     background: #f0f4f7;
    border: 1px solid #d0e4ed;
    border-left: 4px solid #488ab1;
    border-radius: 6px;
    padding: 0.8em 1.2em;
     color: #0a1518;
     color: #0a1518;
     padding: 0.4em 0.2em 0.1em;
     transition: border-color 0.25s, background 0.25s;
}
}


/* ---------- 搜索框 ---------- */
pre:hover,
#p-search input[type="search"] {
.mw-code:hover {
     border-radius: 4px;
     border-left-color: #01faec;
    border: 1px solid #3d839b;
     background: #f8fbfd;
    padding: 0.4em 1em 0.4em 2.2em;
    background-color: #0a1518;
     color: #e8edf0;
    transition: all 0.2s ease;
    width: 180px;
    font-size: 0.95em;
}
}


#p-search input[type="search"]::placeholder {
/* ---------- 分类链接 ---------- */
     color: #6a7f8a;
#catlinks {
    border: 1px solid #d0e4ed;
    background: #f8fafc;
    border-radius: 6px;
    padding: 0.3em 0.8em;
     margin-top: 1.2em;
}
}


#p-search input[type="search"]:hover {
#catlinks a {
     border-color: #01faec;
     color: #3d839b;
     background-color: #122024;
     transition: color 0.2s, background 0.2s;
     box-shadow: 0 0 12px rgba(1, 250, 236, 0.06);
     padding: 0.1em 0.4em;
     width: 200px;
     border-radius: 4px;
}
}


#p-search input[type="search"]:focus {
#catlinks a:hover {
     border-color: #01faec;
     color: #0a1518;
     box-shadow: 0 0 0 3px rgba(1, 250, 236, 0.12);
     background: rgba(1, 250, 236, 0.2);
     width: 220px;
     text-decoration: none;
    outline: none;
    background-color: #0a1518;
    color: #ffffff;
}
}


/* ---------- 页脚 ---------- */
/* ---------- 编辑工具栏 (WikiEditor) ---------- */
#footer {
.wikiEditor-ui-toolbar {
     background: #0a1518;
     background: #f0f7fa;
     border-radius: 4px 4px 0 0;
     border: 1px solid #d0e4ed;
    padding: 1.2em 1.5em;
     border-radius: 6px 6px 0 0;
    margin-top: 2em;
    color: #8a9ba6;
     border-top: 2px solid #01faec;
}
}


#footer a {
.wikiEditor-ui-toolbar .section-main .group {
    color: #3d839b;
     border-right: 1px solid #d0e4ed;
     border-bottom: none;
}
}


#footer a:hover {
.wikiEditor-ui-toolbar .tool {
     color: #01faec;
     transition: background 0.2s, box-shadow 0.2s;
    background-color: transparent;
     border-radius: 4px;
     border-bottom: none;
}
}


/* ---------- 杂项 ---------- */
.wikiEditor-ui-toolbar .tool:hover {
.mw-indicators {
     background: rgba(1, 250, 236, 0.2);
     opacity: 0.7;
     box-shadow: 0 0 0 2px rgba(1, 250, 236, 0.15);
     transition: opacity 0.15s ease;
}
}


.mw-indicators:hover {
/* ---------- 高亮/选中效果 ---------- */
     opacity: 1;
::selection {
     background: #01faec;
    color: #0a1518;
}
}


.mw-summary {
::-moz-selection {
    border-radius: 4px;
     background: #01faec;
    border: 1px solid #0a1518;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
     background-color: #fafcfe;
     color: #0a1518;
     color: #0a1518;
}
}


.mw-summary:hover {
/* ---------- 滚动条美化 (可选) ---------- */
     border-color: #3d839b;
::-webkit-scrollbar {
     box-shadow: inset 0 0 0 1px rgba(1, 250, 236, 0.15);
     width: 8px;
     height: 8px;
}
}


/* 差异对比 */
::-webkit-scrollbar-track {
td.diff-context,
     background: #e8eff3;
td.diff-deletedline,
     border-radius: 10px;
td.diff-addedline {
     border-radius: 4px;
     transition: background 0.12s ease;
}
}


td.diff-context:hover,
::-webkit-scrollbar-thumb {
td.diff-deletedline:hover,
    background: #488ab1;
td.diff-addedline:hover {
    border-radius: 10px;
     background: rgba(1, 250, 236, 0.06);
     transition: background 0.3s;
}
}


/* 特别: 霓虹青点缀块 */
::-webkit-scrollbar-thumb:hover {
.mw-body .mw-parser-output .highlight-box {
     background: #01faec;
     border-left: 6px solid #01faec;
    background: #f5f8fa;
    padding: 0.8em 1.2em;
    border-radius: 4px;
    transition: box-shadow 0.2s ease;
}
}


.mw-body .mw-parser-output .highlight-box:hover {
/* ---------- 响应式小调整 ---------- */
     box-shadow: 0 0 20px rgba(1, 250, 236, 0.08);
@media (max-width: 768px) {
     #content {
        padding: 1em;
    }
    #mw-panel {
        border-right: none;
        border-bottom: 1px solid #3d839b;
    }
}
}
/* ====================================================
  风格: 硬朗、冷峻、工业感
  主色: 深空 #0a1518 | 霓虹青 #01faec | 钢蓝 #3d839b
  ==================================================== */

2026年8月19日 (三) 02:40的版本

/* ====================================================
   MediaWiki 美化样式表 - 基于主题色设计
   主题色: #0a1518, #01faec, #3d839b, #488ab1, #ffffff
   包含悬停 (hover) 效果
   ==================================================== */

/* ---------- 全局基础色调 ---------- */
body {
    background-color: #f4f7f9;
    color: #0a1518;
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', sans-serif;
}

/* 主容器轻微内阴影,更立体 */
#mw-page-base {
    background: transparent;
}

#mw-head-base {
    background: #0a1518;
    border-bottom: 3px solid #01faec;
}

/* ---------- 顶部导航栏 (个人工具/通知) ---------- */
#mw-head {
    background: #0a1518;
    color: #ffffff;
}

#mw-head a {
    color: #ffffff;
    transition: color 0.25s ease, text-shadow 0.25s ease;
}

#mw-head a:hover {
    color: #01faec;
    text-shadow: 0 0 8px rgba(1, 250, 236, 0.5);
}

/* 顶部导航按钮/标签悬停 */
#mw-head .mw-portlet li a {
    background: transparent;
    padding: 0.5em 0.8em;
    border-radius: 4px;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

#mw-head .mw-portlet li a:hover {
    background: rgba(1, 250, 236, 0.15);
    color: #01faec;
    box-shadow: inset 0 -2px 0 #01faec;
}

/* ---------- 左侧导航栏 (侧边栏) ---------- */
#mw-panel {
    background: #0a1518;
    border-right: 1px solid #3d839b;
}

#mw-panel .mw-portlet h3 {
    color: #01faec;
    font-weight: 500;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #3d839b;
    padding-bottom: 0.3em;
}

#mw-panel .mw-portlet li a {
    color: #d0e4ed;
    transition: color 0.2s, background 0.2s, padding-left 0.2s, border-color 0.2s;
    display: block;
    padding: 0.4em 0.4em 0.4em 0.8em;
    border-left: 2px solid transparent;
    border-radius: 0 4px 4px 0;
}

#mw-panel .mw-portlet li a:hover {
    color: #ffffff;
    background: rgba(1, 250, 236, 0.12);
    padding-left: 1.2em;
    border-left-color: #01faec;
    text-decoration: none;
}

/* ---------- 页面主内容 ---------- */
#content {
    background: #ffffff;
    border: 1px solid #d0dce3;
    border-top: 3px solid #488ab1;
    box-shadow: 0 2px 12px rgba(10, 21, 24, 0.08);
    border-radius: 0 0 8px 8px;
    padding: 1.5em 2em;
    color: #0a1518;
}

/* 内容区域标题 */
#content h1,
#content h2,
#content h3,
#content h4,
#content h5,
#content h6 {
    color: #0a1518;
    border-bottom: 1px solid #d0e4ed;
    padding-bottom: 0.2em;
}

#content h1 {
    color: #0a1518;
    border-bottom: 2px solid #488ab1;
}

#content h2 {
    border-bottom: 1px solid #3d839b;
}

/* ---------- 链接样式 (正文中的链接) ---------- */
#content a {
    color: #3d839b;
    transition: color 0.2s, background 0.2s, box-shadow 0.2s, text-shadow 0.2s;
    text-decoration: none;
    border-radius: 2px;
}

#content a:hover {
    color: #0a1518;
    background: rgba(1, 250, 236, 0.18);
    box-shadow: 0 0 0 2px rgba(1, 250, 236, 0.2);
    text-shadow: 0 0 12px rgba(1, 250, 236, 0.15);
    text-decoration: underline;
    text-underline-offset: 0.2em;
    text-decoration-color: #01faec;
}

/* 已访问链接 */
#content a:visited {
    color: #488ab1;
}

#content a:visited:hover {
    color: #0a1518;
    background: rgba(72, 138, 177, 0.15);
}

/* 外部链接 */
#content a.external {
    background: 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='%233d839b' 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) right center no-repeat;
    padding-right: 16px;
    background-size: 12px;
}

#content 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='%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);
}

/* ---------- 按钮样式 (如编辑、查看历史等) ---------- */
#content .mw-ui-button,
#content input[type="submit"],
#content input[type="button"],
#content .oo-ui-buttonElement-button {
    background: #ffffff;
    border: 1px solid #3d839b;
    color: #0a1518;
    transition: all 0.25s ease;
    border-radius: 4px;
    padding: 0.4em 1.2em;
    font-weight: 500;
}

#content .mw-ui-button:hover,
#content input[type="submit"]:hover,
#content input[type="button"]:hover,
#content .oo-ui-buttonElement-button:hover {
    background: #01faec;
    border-color: #0a1518;
    color: #0a1518;
    box-shadow: 0 4px 12px rgba(1, 250, 236, 0.3);
    transform: translateY(-1px);
}

#content .mw-ui-button:active,
#content input[type="submit"]:active {
    background: #488ab1;
    border-color: #3d839b;
    transform: scale(0.97);
}

/* ---------- 特殊: 主要操作按钮 (如保存) ---------- */
#content .mw-ui-progressive {
    background: #488ab1;
    border-color: #3d839b;
    color: #ffffff;
}

#content .mw-ui-progressive:hover {
    background: #3d839b;
    border-color: #0a1518;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(72, 138, 177, 0.4);
}

/* ---------- 目录 (TOC) 美化 ---------- */
#toc {
    background: #f8fafc;
    border: 1px solid #d0e4ed;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(10, 21, 24, 0.06);
    padding: 0.8em 1.2em;
}

#toc ul {
    margin: 0.3em 0;
}

#toc li a {
    color: #3d839b;
    transition: all 0.2s;
    display: inline-block;
    padding: 0.1em 0.3em;
    border-radius: 4px;
}

#toc li a:hover {
    color: #0a1518;
    background: rgba(1, 250, 236, 0.2);
    padding-left: 0.8em;
    text-decoration: none;
}

#toc .toctitle {
    color: #0a1518;
    border-bottom: 1px solid #01faec;
}

/* ---------- 信息框/消息盒子 (如系统消息) ---------- */
.mw-message-box {
    border-left: 6px solid #488ab1;
    background: #f0f7fa;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(10, 21, 24, 0.06);
}

.mw-message-box:hover {
    border-left-color: #01faec;
    background: #ffffff;
    transition: background 0.3s, border-color 0.3s;
}

/* ---------- 搜索框 ---------- */
#searchInput {
    border: 1px solid #3d839b;
    border-radius: 20px;
    padding: 0.4em 1em;
    transition: border-color 0.3s, box-shadow 0.3s;
    background: #ffffff;
}

#searchInput:focus {
    border-color: #01faec;
    box-shadow: 0 0 0 3px rgba(1, 250, 236, 0.25);
    outline: none;
}

#searchButton,
#mw-searchButton {
    background: #488ab1;
    color: #ffffff;
    border: none;
    border-radius: 20px;
    padding: 0.4em 1.2em;
    transition: all 0.25s ease;
    font-weight: 500;
}

#searchButton:hover,
#mw-searchButton:hover {
    background: #01faec;
    color: #0a1518;
    box-shadow: 0 2px 12px rgba(1, 250, 236, 0.3);
    transform: scale(1.02);
}

/* ---------- 页脚 ---------- */
#footer {
    background: #0a1518;
    color: #d0e4ed;
    border-top: 2px solid #01faec;
    padding: 1.2em 0;
}

#footer a {
    color: #01faec;
    transition: color 0.2s, text-shadow 0.2s;
}

#footer a:hover {
    color: #ffffff;
    text-shadow: 0 0 12px rgba(1, 250, 236, 0.4);
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

/* ---------- 表格美化 (wikitable) ---------- */
.wikitable {
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid #d0e4ed;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(10, 21, 24, 0.05);
}

.wikitable th {
    background: #0a1518;
    color: #ffffff;
    padding: 0.6em 1em;
    border-bottom: 2px solid #01faec;
}

.wikitable td {
    padding: 0.5em 1em;
    border-bottom: 1px solid #e8f0f5;
    transition: background 0.2s;
}

.wikitable tr:hover td {
    background: rgba(1, 250, 236, 0.08);
}

.wikitable tr:last-child td {
    border-bottom: none;
}

/* ---------- 缩略图/图片边框 ---------- */
.thumbinner {
    border: 1px solid #d0e4ed;
    background: #ffffff;
    border-radius: 8px;
    padding: 4px;
    box-shadow: 0 2px 10px rgba(10, 21, 24, 0.06);
    transition: box-shadow 0.25s, transform 0.2s;
}

.thumbinner:hover {
    box-shadow: 0 6px 20px rgba(1, 250, 236, 0.15);
    transform: scale(1.01);
}

/* ---------- 代码块/预格式化 ---------- */
pre,
.mw-code {
    background: #f0f4f7;
    border: 1px solid #d0e4ed;
    border-left: 4px solid #488ab1;
    border-radius: 6px;
    padding: 0.8em 1.2em;
    color: #0a1518;
    transition: border-color 0.25s, background 0.25s;
}

pre:hover,
.mw-code:hover {
    border-left-color: #01faec;
    background: #f8fbfd;
}

/* ---------- 分类链接 ---------- */
#catlinks {
    border: 1px solid #d0e4ed;
    background: #f8fafc;
    border-radius: 6px;
    padding: 0.3em 0.8em;
    margin-top: 1.2em;
}

#catlinks a {
    color: #3d839b;
    transition: color 0.2s, background 0.2s;
    padding: 0.1em 0.4em;
    border-radius: 4px;
}

#catlinks a:hover {
    color: #0a1518;
    background: rgba(1, 250, 236, 0.2);
    text-decoration: none;
}

/* ---------- 编辑工具栏 (WikiEditor) ---------- */
.wikiEditor-ui-toolbar {
    background: #f0f7fa;
    border: 1px solid #d0e4ed;
    border-radius: 6px 6px 0 0;
}

.wikiEditor-ui-toolbar .section-main .group {
    border-right: 1px solid #d0e4ed;
}

.wikiEditor-ui-toolbar .tool {
    transition: background 0.2s, box-shadow 0.2s;
    border-radius: 4px;
}

.wikiEditor-ui-toolbar .tool:hover {
    background: rgba(1, 250, 236, 0.2);
    box-shadow: 0 0 0 2px rgba(1, 250, 236, 0.15);
}

/* ---------- 高亮/选中效果 ---------- */
::selection {
    background: #01faec;
    color: #0a1518;
}

::-moz-selection {
    background: #01faec;
    color: #0a1518;
}

/* ---------- 滚动条美化 (可选) ---------- */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #e8eff3;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #488ab1;
    border-radius: 10px;
    transition: background 0.3s;
}

::-webkit-scrollbar-thumb:hover {
    background: #01faec;
}

/* ---------- 响应式小调整 ---------- */
@media (max-width: 768px) {
    #content {
        padding: 1em;
    }
    #mw-panel {
        border-right: none;
        border-bottom: 1px solid #3d839b;
    }
}