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

MediaWiki:Common.css:修订间差异

MediaWiki界面页面
Rockman留言 | 贡献
无编辑摘要
标签已被回退
Rockman留言 | 贡献
无编辑摘要
标签已被回退
第1行: 第1行:
/* ----------------------------------------------------------
/* ----------------------------------------------------------
   1. CSS 变量(全站配色、字体、圆角、阴影统一管理)
   1. CSS 变量
   ---------------------------------------------------------- */
   ---------------------------------------------------------- */
:root {
:root {
  /* 主色调 */
   --g-bg: #eef1f6;
   --gmtv-bg: #f5f7fa;
   --g-card: #ffffff;
   --gmtv-card: #ffffff;
   --g-blue: #2d7dd2;
   --gmtv-primary: #1a6fc4;
   --g-blue-deep: #1b5eb5;
   --gmtv-primary-hover: #155da6;
   --g-blue-pale: #e6f0fb;
   --gmtv-primary-light: #e8f1fb;
   --g-red: #ef4444;
   --gmtv-accent: #e03020;
   --g-red-pale: #fef2f2;
   --gmtv-accent-light: #fdecea;
   --g-green: #10b981;
   --gmtv-text: #181e28;
   --g-purple: #8b5cf6;
   --gmtv-text-secondary: #5a6170;
   --g-text: #1a1d24;
   --gmtv-text-muted: #8c939e;
   --g-text-2: #4b5563;
   --gmtv-border: #e2e6ec;
   --g-text-3: #9ca3af;
   --gmtv-border-light: #eef1f5;
   --g-border: #e5e7eb;
 
   --g-border-light: #f3f4f6;
  /* 字体 */
   --g-radius: 14px;
   --gmtv-font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
   --g-radius-sm: 8px;
   --gmtv-font-heading: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
   --g-shadow: 0 1px 3px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.03);
  --gmtv-font-mono: "JetBrains Mono", "Fira Code", "Source Code Pro", monospace;
   --g-shadow-hover: 0 8px 25px rgba(45,125,210,0.12), 0 2px 6px rgba(0,0,0,0.04);
 
   --g-font: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  /* 圆角与阴影 */
   --g-font-mono: "JetBrains Mono", "Fira Code", monospace;
   --gmtv-radius: 10px;
   --g-gap: 16px;
   --gmtv-radius-sm: 6px;
   --gmtv-shadow-card: 0 1px 4px rgba(0, 0, 0, 0.06), 0 0 1px rgba(0, 0, 0, 0.04);
   --gmtv-shadow-card-hover: 0 4px 16px rgba(26, 111, 196, 0.10), 0 1px 4px rgba(0, 0, 0, 0.06);
   --gmtv-shadow-infobox: 0 2px 8px rgba(0, 0, 0, 0.08);
 
  /* 间距 */
   --gmtv-gap: 20px;
   --gmtv-gap-sm: 12px;
}
}


/* ----------------------------------------------------------
/* ----------------------------------------------------------
   2. 全局基础样式
   2. 全局
   ---------------------------------------------------------- */
   ---------------------------------------------------------- */
body {
body {
   background-color: var(--gmtv-bg);
   background: var(--g-bg);
   color: var(--gmtv-text);
   color: var(--g-text);
   font-family: var(--gmtv-font-body);
   font-family: var(--g-font);
   font-size: 15px;
   font-size: 15px;
   line-height: 1.75;
   line-height: 1.78;
   -webkit-font-smoothing: antialiased;
   -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
}


/* 全局链接 */
a { color: var(--g-blue); text-decoration: none; transition: color .15s; }
a {
a:hover { color: var(--g-blue-deep); }
  color: var(--gmtv-primary);
a.new { color: var(--g-red); }
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover {
  color: var(--gmtv-primary-hover);
  text-decoration: underline;
}


/* 新词条(红链)样式 */
/* ----------------------------------------------------------
a.new {
  3. 页面标题
   color: var(--gmtv-accent);
  ---------------------------------------------------------- */
}
#firstHeading, .firstHeading, .page-header h1 {
a.new:hover {
  font-weight: 800;
   color: #b82018;
  font-size: 1.85em;
   color: var(--g-text);
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin-bottom: 6px;
   border-bottom: none;
}
}


/* ----------------------------------------------------------
/* ----------------------------------------------------------
   3. 内容区卡片化 每个章节自动变成白色卡片
   4. 核心布局 CSS Grid 双栏
  PC端:左内容(1fr) + 右Infobox(310px)
  手机端:单栏,Infobox在顶部
   ---------------------------------------------------------- */
   ---------------------------------------------------------- */
 
.mw-parser-output {
/* 整个内容区域 */
  display: grid;
#mw-content-text {
  grid-template-columns: 1fr;
   max-width: 960px;
  gap: var(--g-gap);
   max-width: 1060px;
}
}


/*
@media (min-width: 992px) {
  MediaWiki 的每个 == 章节标题 == 后面的内容块
  .mw-parser-output {
  Chameleon 皮肤下,每个 section 用 .mw-parser-output > h2 分隔
    grid-template-columns: 1fr 310px;
  我们对整个 parser output 做卡片化处理
    gap: 24px;
*/
    align-items: start;
.mw-parser-output {
  }
  display: flex;
  .mw-parser-output > .infobox {
  flex-direction: column;
    grid-column: 2;
  gap: var(--gmtv-gap);
    grid-row: 1 / span 8;
    position: sticky;
    top: 20px;
    align-self: start;
  }
  .mw-parser-output > *:not(.infobox) {
    grid-column: 1;
  }
}
}


/* 让章节标题 + 内容形成视觉卡片 */
/* ----------------------------------------------------------
  5. 章节卡片化
  ---------------------------------------------------------- */
.mw-parser-output > .mw-heading2,
.mw-parser-output > .mw-heading2,
.mw-parser-output > h2 {
.mw-parser-output > h2 {
   background: var(--gmtv-card);
   background: var(--g-card);
  padding: 16px 22px 13px;
   margin: 0;
   margin: 0;
  padding: 18px 24px 14px;
   border-radius: var(--g-radius) var(--g-radius) 0 0;
   border-radius: var(--gmtv-radius) var(--gmtv-radius) 0 0;
   box-shadow: var(--g-shadow);
   box-shadow: var(--gmtv-shadow-card);
   font-size: 1.3em;
  border-bottom: 2px solid var(--gmtv-primary);
  font-family: var(--gmtv-font-heading);
   font-size: 1.35em;
   font-weight: 700;
   font-weight: 700;
   color: var(--gmtv-text);
   color: var(--g-text);
   letter-spacing: 0.01em;
   line-height: 1.35;
   line-height: 1.4;
  border-left: 4px solid var(--g-blue);
   border-bottom: none;
}
}
/* 章节标题内的编辑按钮 */
.mw-parser-output > .mw-heading2 .mw-editsection,
.mw-parser-output > .mw-heading2 .mw-editsection,
.mw-parser-output > h2 .mw-editsection {
.mw-parser-output > h2 .mw-editsection {
   font-size: 0.65em;
   font-size: 0.6em; font-weight: 400; color: var(--g-text-3);
  font-weight: 400;
  color: var(--gmtv-text-muted);
}
}


/* 三级标题 */
.mw-parser-output > .mw-heading3,
.mw-parser-output > .mw-heading3,
.mw-parser-output > h3 {
.mw-parser-output > h3 {
   font-size: 1.1em;
   font-size: 1.05em;
   font-weight: 600;
   font-weight: 600;
   color: var(--gmtv-primary);
   color: var(--g-blue);
  margin-top: 1.2em;
   padding-left: 12px;
  margin-bottom: 0.4em;
   border-left: 3px solid var(--g-blue);
   padding-left: 10px;
  margin: 1em 0 0.4em;
   border-left: 3px solid var(--gmtv-primary);
}
}


/* 章节内容段落(紧跟 h2 后面的 p / table / div 等元素) */
.mw-parser-output > p,
.mw-parser-output > p,
.mw-parser-output > ul,
.mw-parser-output > ul,
.mw-parser-output > ol,
.mw-parser-output > ol,
.mw-parser-output > dl,
.mw-parser-output > dl,
.mw-parser-output > div:not(.infobox-wrapper):not(.navbox-wrapper):not(.mw-heading2):not(.mw-heading3),
.mw-parser-output > blockquote,
.mw-parser-output > blockquote,
.mw-parser-output > pre,
.mw-parser-output > pre,
.mw-parser-output > .wikitable {
.mw-parser-output > .wikitable,
   background: var(--gmtv-card);
.mw-parser-output > div:not(.infobox):not(.navbox):not(.mw-heading2):not(.mw-heading3):not(.relation-grid) {
   margin: -1px 0 0 0;  /* 紧贴上方卡片 */
   background: var(--g-card);
  padding: 12px 24px;
  padding: 12px 22px;
   box-shadow: var(--gmtv-shadow-card);
   margin: -1px 0 0 0;
   box-shadow: var(--g-shadow);
}
}
/* 最后一个元素加底部圆角 */
.mw-parser-output > p:last-child,
.mw-parser-output > p:last-child,
.mw-parser-output > ul:last-child,
.mw-parser-output > ul:last-child,
.mw-parser-output > ol:last-child,
.mw-parser-output > div:last-child:not(.infobox):not(.navbox),
.mw-parser-output > div:last-child,
.mw-parser-output > .wikitable:last-child {
.mw-parser-output > .wikitable:last-child {
   border-radius: 0 0 var(--gmtv-radius) var(--gmtv-radius);
   border-radius: 0 0 var(--g-radius) var(--g-radius);
   padding-bottom: 20px;
   padding-bottom: 18px;
}
}


/* ----------------------------------------------------------
/* ----------------------------------------------------------
   4. Infobox 样式(角色/IP/境界/势力通用)
   6. Infobox
   ---------------------------------------------------------- */
   ---------------------------------------------------------- */
.infobox,
.infobox {
.infobox-wrapper {
   background: var(--g-card);
   background: var(--gmtv-card);
   border: none;
   border: 1px solid var(--gmtv-border);
   border-radius: var(--g-radius);
   border-radius: var(--gmtv-radius);
   box-shadow: var(--g-shadow);
   box-shadow: var(--gmtv-shadow-infobox);
  padding: 0;
  margin: 0 0 var(--gmtv-gap) var(--gmtv-gap);
  float: right;
  width: 300px;
   overflow: hidden;
   overflow: hidden;
   font-size: 0.9em;
  width: 100%;
   font-size: 0.88em;
   line-height: 1.6;
   line-height: 1.6;
}
}
 
.infobox-title, .infobox caption, .infobox th[colspan] {
/* Infobox 标题栏 */
   background: linear-gradient(135deg, #2d7dd2 0%, #6c5ce7 100%);
.infobox-title,
   color: #fff;
.infobox caption,
   font-size: 1.2em;
.infobox th[colspan] {
   background: var(--gmtv-primary);
   color: #ffffff;
   font-size: 1.15em;
   font-weight: 700;
   font-weight: 700;
   text-align: center;
   text-align: center;
   padding: 14px 16px;
   padding: 16px 18px;
   letter-spacing: 0.03em;
   letter-spacing: 0.03em;
}
}
 
.infobox-image img, .infobox .image-section img {
/* Infobox 角色图片 */
  width: 100%; height: auto; display: block;
.infobox-image,
}
.infobox .image-section {
.infobox-group-header, .infobox tr.infobox-header th {
  background: linear-gradient(135deg, #2d7dd2, #1b5eb5);
  color: #fff;
  font-weight: 600;
  font-size: 0.92em;
   text-align: center;
   text-align: center;
   padding: 0;
   padding: 9px 14px;
  background: var(--gmtv-bg);
}
}
.infobox-image img,
.infobox .image-section img {
  max-width: 100%;
  height: auto;
  display: block;
}
/* Infobox 行:标签 + 数据 */
.infobox th {
.infobox th {
   background: var(--gmtv-primary-light);
   background: var(--g-blue-pale);
   color: var(--gmtv-primary);
   color: var(--g-blue);
   font-weight: 600;
   font-weight: 600;
   padding: 8px 12px;
   padding: 8px 12px;
   text-align: right;
   text-align: right;
   width: 35%;
   width: 36%;
   border-bottom: 1px solid var(--gmtv-border-light);
   border-bottom: 1px solid var(--g-border-light);
   vertical-align: top;
   vertical-align: top;
}
}
.infobox td {
.infobox td {
   padding: 8px 12px;
   padding: 8px 12px;
   border-bottom: 1px solid var(--gmtv-border-light);
   border-bottom: 1px solid var(--g-border-light);
   vertical-align: top;
   vertical-align: top;
}
}
 
.realm-highlight, .infobox .realm-current {
/* Infobox 分组标题行(如"实力信息""人际关系") */
   color: var(--g-red);
.infobox-group-header,
.infobox tr.infobox-header th {
  background: linear-gradient(135deg, var(--gmtv-primary), var(--gmtv-primary-hover));
  color: #ffffff;
  font-weight: 600;
  font-size: 0.95em;
  text-align: center;
  padding: 8px 12px;
  letter-spacing: 0.02em;
}
 
/* 境界高亮(红色强调) */
.realm-highlight,
.infobox .realm-current {
   color: var(--gmtv-accent);
   font-weight: 700;
   font-weight: 700;
}
}


/* ----------------------------------------------------------
/* ----------------------------------------------------------
   5. 表格样式(wikitable 美化)
   7. 表格
   ---------------------------------------------------------- */
   ---------------------------------------------------------- */
.wikitable {
.wikitable {
第240行: 第198行:
   border-collapse: separate;
   border-collapse: separate;
   border-spacing: 0;
   border-spacing: 0;
   border: 1px solid var(--gmtv-border);
   border: none;
   border-radius: var(--gmtv-radius-sm);
   border-radius: var(--g-radius-sm);
   overflow: hidden;
   overflow: hidden;
   font-size: 0.92em;
   font-size: 0.9em;
}
}
.wikitable th {
.wikitable th {
   background: var(--gmtv-primary);
   background: linear-gradient(135deg, #2d7dd2 0%, #4a90d9 100%);
   color: #ffffff;
   color: #fff;
   font-weight: 600;
   font-weight: 600;
   padding: 10px 14px;
   padding: 10px 14px;
   text-align: left;
   text-align: left;
   border: none;
   border: none;
  border-bottom: 2px solid var(--gmtv-primary-hover);
}
}
.wikitable td {
.wikitable td {
   padding: 9px 14px;
   padding: 9px 14px;
   border: none;
   border: none;
   border-bottom: 1px solid var(--gmtv-border-light);
   border-bottom: 1px solid var(--g-border-light);
  color: var(--gmtv-text);
}
 
/* 表格斑马纹 */
.wikitable tr:nth-child(even) td {
  background: #f8fafc;
}
.wikitable tr:hover td {
  background: var(--gmtv-primary-light);
  transition: background 0.15s ease;
}
 
/* 表格内的胜/负/平 标记 */
.battle-win {
  color: #16a34a;
  font-weight: 600;
}
.battle-lose {
  color: var(--gmtv-accent);
  font-weight: 600;
}
.battle-draw {
  color: var(--gmtv-text-muted);
  font-weight: 600;
}
}
.wikitable tr:nth-child(even) td { background: #f8fafc; }
.wikitable tr:hover td { background: var(--g-blue-pale); transition: background .15s; }


.battle-win { color: var(--g-green); font-weight: 700; }
.battle-lose { color: var(--g-red); font-weight: 700; }
.battle-draw { color: var(--g-text-3); font-weight: 700; }


/* ----------------------------------------------------------
/* ----------------------------------------------------------
   6. Navbox(底部导航栏)
   8. Navbox
   ---------------------------------------------------------- */
   ---------------------------------------------------------- */
.navbox-wrapper,
.navbox {
.navbox {
   background: var(--gmtv-card);
   background: var(--g-card);
   border: 1px solid var(--gmtv-border);
   border: 1px solid var(--g-border);
   border-radius: var(--gmtv-radius);
   border-radius: var(--g-radius);
   box-shadow: var(--gmtv-shadow-card);
   box-shadow: var(--g-shadow);
   overflow: hidden;
   overflow: hidden;
   margin-top: var(--gmtv-gap);
   margin-top: var(--g-gap);
   font-size: 0.88em;
   font-size: 0.86em;
   width: 100%;
   width: 100%;
}
}
/* Navbox 标题 */
.navbox-title {
.navbox-title {
   background: var(--gmtv-primary);
   background: linear-gradient(135deg, #2d7dd2 0%, #6c5ce7 100%);
   color: #ffffff;
   color: #fff; font-weight: 700; text-align: center;
  font-weight: 700;
   padding: 10px 16px; font-size: 1.05em;
  text-align: center;
   padding: 10px 16px;
  font-size: 1.05em;
  letter-spacing: 0.02em;
}
}
.navbox-title a {
.navbox-title a { color: #fff; }
  color: #ffffff;
.navbox-title a:hover { color: #d4e8ff; text-decoration: underline; }
}
.navbox-title a:hover {
  color: #d4e8ff;
  text-decoration: underline;
}
 
/* Navbox 分组 */
.navbox-group {
.navbox-group {
   background: var(--gmtv-primary-light);
   background: var(--g-blue-pale); color: var(--g-blue);
  color: var(--gmtv-primary);
   font-weight: 600; padding: 8px 14px; text-align: right;
   font-weight: 600;
   white-space: nowrap; border-bottom: 1px solid var(--g-border-light);
  padding: 8px 14px;
  text-align: right;
   white-space: nowrap;
  width: 1%;
  border-bottom: 1px solid var(--gmtv-border-light);
}
}
/* Navbox 内容区 */
.navbox-list {
.navbox-list {
   padding: 8px 14px;
   padding: 8px 14px; border-bottom: 1px solid var(--g-border-light); line-height: 2;
  border-bottom: 1px solid var(--gmtv-border-light);
  line-height: 2;
}
.navbox-list a {
  margin: 0 2px;
}
}


/* ----------------------------------------------------------
/* ----------------------------------------------------------
   7. 目录(TOC)美化
   9. TOC 目录
   ---------------------------------------------------------- */
   ---------------------------------------------------------- */
#toc,
#toc, .toc {
.toc {
   background: var(--g-card);
   background: var(--gmtv-card);
   border: 1px solid var(--g-border);
   border: 1px solid var(--gmtv-border);
   border-radius: var(--g-radius);
   border-radius: var(--gmtv-radius);
   box-shadow: var(--g-shadow);
   box-shadow: var(--gmtv-shadow-card);
   padding: 14px 18px;
   padding: 16px 20px;
   font-size: 0.88em;
   font-size: 0.9em;
   line-height: 1.85;
   line-height: 1.8;
}
}
 
#toc #toctitle, .toc .toctitle {
#toc #toctitle,
   font-weight: 700; color: var(--g-blue);
.toc .toctitle {
   margin-bottom: 8px; padding-bottom: 6px;
   font-weight: 700;
   border-bottom: 2px solid var(--g-blue);
  font-size: 1.05em;
  color: var(--gmtv-primary);
   margin-bottom: 8px;
  padding-bottom: 8px;
   border-bottom: 2px solid var(--gmtv-primary);
}
}
#toc ul, .toc ul { list-style: none; margin: 0; padding-left: 14px; }
#toc a, .toc a { color: var(--g-text-2); }
#toc a:hover, .toc a:hover { color: var(--g-blue); }


#toc ul,
/* ----------------------------------------------------------
.toc ul {
  10. 引用块
   list-style: none;
  ---------------------------------------------------------- */
   margin: 0;
blockquote, .character-quote {
   padding-left: 16px;
   border-left: 4px solid var(--g-blue);
}
  background: var(--g-blue-pale);
 
  padding: 14px 20px;
#toc ul li,
   margin: 12px 0;
.toc ul li {
   border-radius: 0 var(--g-radius-sm) var(--g-radius-sm) 0;
   padding: 2px 0;
  font-style: italic;
   color: var(--g-text-2);
}
}
 
blockquote cite, .character-quote cite {
#toc a,
   display: block; margin-top: 8px;
.toc a {
  font-style: normal; font-size: 0.82em; color: var(--g-text-3);
   color: var(--gmtv-text-secondary);
}
#toc a:hover,
.toc a:hover {
  color: var(--gmtv-primary);
}
}


/* ----------------------------------------------------------
/* ----------------------------------------------------------
   8. 分类标签区
   11. 分类标签
   ---------------------------------------------------------- */
   ---------------------------------------------------------- */
#catlinks {
#catlinks {
   background: var(--gmtv-card);
   background: var(--g-card);
   border: 1px solid var(--gmtv-border);
   border: 1px solid var(--g-border);
   border-radius: var(--gmtv-radius);
   border-radius: var(--g-radius);
   padding: 12px 20px;
   padding: 10px 18px;
   margin-top: var(--gmtv-gap);
   margin-top: var(--g-gap);
   font-size: 0.85em;
   font-size: 0.83em;
   color: var(--gmtv-text-secondary);
   color: var(--g-text-3);
}
}
#catlinks a {
#catlinks a {
   display: inline-block;
   display: inline-block;
   background: var(--gmtv-primary-light);
   background: var(--g-blue-pale);
   color: var(--gmtv-primary);
   color: var(--g-blue);
   padding: 2px 10px;
   padding: 3px 12px;
   border-radius: 100px;
   border-radius: 100px;
   margin: 2px 3px;
   margin: 2px 3px;
   font-size: 0.92em;
   font-size: 0.9em;
   transition: background 0.15s ease, color 0.15s ease;
   transition: background .15s, color .15s;
}
}
#catlinks a:hover {
#catlinks a:hover {
   background: var(--gmtv-primary);
   background: var(--g-blue); color: #fff; text-decoration: none;
  color: #ffffff;
  text-decoration: none;
}
}


/* ----------------------------------------------------------
/* ----------------------------------------------------------
   9. 角色名言引用块
   12. 人物关系卡片
   ---------------------------------------------------------- */
   ---------------------------------------------------------- */
blockquote,
.relation-grid {
.character-quote {
   display: grid;
   border-left: 4px solid var(--gmtv-primary);
   grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
   background: var(--gmtv-primary-light);
   gap: 10px;
   padding: 14px 20px;
   margin: 12px 0;
   margin: 16px 0;
   background: var(--g-card);
   border-radius: 0 var(--gmtv-radius-sm) var(--gmtv-radius-sm) 0;
   padding: 16px 22px;
   font-style: italic;
   box-shadow: var(--g-shadow);
   color: var(--gmtv-text-secondary);
  line-height: 1.7;
}
}
blockquote cite,
.relation-card {
.character-quote cite {
   background: var(--g-border-light);
   display: block;
  border: 1px solid var(--g-border);
   margin-top: 8px;
   border-radius: var(--g-radius-sm);
   font-style: normal;
   padding: 12px 8px;
   font-size: 0.85em;
   text-align: center;
   color: var(--gmtv-text-muted);
   transition: box-shadow .2s, border-color .2s, transform .2s;
}
}
 
.relation-card:hover {
 
   border-color: var(--g-blue);
/* ----------------------------------------------------------
   box-shadow: var(--g-shadow-hover);
  10. Tabber 标签页切换美化
   transform: translateY(-2px);
  ---------------------------------------------------------- */
.tabber .tabbertab {
   border: 1px solid var(--gmtv-border);
   border-top: none;
  border-radius: 0 0 var(--gmtv-radius-sm) var(--gmtv-radius-sm);
   padding: 16px 20px;
  background: var(--gmtv-card);
}
}
 
.relation-label {
.tabber ul.tabbernav {
   font-size: 0.72em; color: var(--g-text-3);
   margin: 0;
   text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 3px;
   padding: 0;
  border-bottom: 2px solid var(--gmtv-border);
}
}
 
.relation-name { font-weight: 700; color: var(--g-blue); font-size: 0.92em; }
.tabber ul.tabbernav li {
.relation-name a { color: var(--g-blue); }
  list-style: none;
  display: inline-block;
}
 
.tabber ul.tabbernav li a {
  display: block;
  padding: 8px 18px;
  color: var(--gmtv-text-secondary);
  font-weight: 500;
  font-size: 0.92em;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color 0.15s ease, border-color 0.15s ease;
}
 
.tabber ul.tabbernav li a:hover {
  color: var(--gmtv-primary);
  text-decoration: none;
}
 
.tabber ul.tabbernav li.tabberactive a {
  color: var(--gmtv-primary);
  border-bottom-color: var(--gmtv-primary);
  font-weight: 600;
}
 


/* ----------------------------------------------------------
/* ----------------------------------------------------------
   11. 境界进度条(用在角色词条的境界历程里)
   13. 境界进度条
  用法:<div class="realm-bar"><div class="realm-fill" style="width:75%"></div></div>
   ---------------------------------------------------------- */
   ---------------------------------------------------------- */
.realm-bar {
.realm-bar {
   width: 100%;
   width: 100%; height: 8px;
  height: 10px;
   background: var(--g-border-light);
   background: var(--gmtv-border-light);
   border-radius: 100px; overflow: hidden; margin: 6px 0;
   border-radius: 100px;
  overflow: hidden;
  margin: 6px 0;
}
}
.realm-fill {
.realm-fill {
   height: 100%;
   height: 100%;
   background: linear-gradient(90deg, var(--gmtv-primary), var(--gmtv-accent));
   background: linear-gradient(90deg, var(--g-blue), var(--g-purple), var(--g-red));
   border-radius: 100px;
   border-radius: 100px;
   transition: width 0.4s ease;
   transition: width 0.5s ease;
}
}


/* ----------------------------------------------------------
/* ----------------------------------------------------------
   12. 人物关系卡片区
   14. 剧透折叠块
  用法:<div class="relation-grid">
          <div class="relation-card">
            <div class="relation-label">师父</div>
            <div class="relation-name">[[药老]]</div>
          </div>
        </div>
   ---------------------------------------------------------- */
   ---------------------------------------------------------- */
.relation-grid {
.spoiler-box {
   display: grid;
   border: 1px dashed var(--g-red);
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
   border-radius: var(--g-radius-sm);
   gap: var(--gmtv-gap-sm);
   margin: 12px 0; overflow: hidden;
   margin: 12px 0;
}
}
.relation-card {
.spoiler-box .mw-collapsible-toggle {
  background: var(--gmtv-card);
   background: var(--g-red-pale); color: var(--g-red);
  border: 1px solid var(--gmtv-border);
   padding: 9px 16px; font-weight: 600; font-size: 0.86em;
  border-radius: var(--gmtv-radius-sm);
   cursor: pointer; display: block; text-align: center;
  padding: 12px;
  text-align: center;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.relation-card:hover {
   border-color: var(--gmtv-primary);
  box-shadow: var(--gmtv-shadow-card-hover);
}
.relation-label {
  font-size: 0.78em;
  color: var(--gmtv-text-muted);
   margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.relation-name {
  font-weight: 600;
  color: var(--gmtv-primary);
  font-size: 0.95em;
}
.relation-name a {
   color: var(--gmtv-primary);
}
}


/* ----------------------------------------------------------
/* ----------------------------------------------------------
   13. 剧透折叠块
   15. Tabber
  用法:配合 Collapsible 使用
   ---------------------------------------------------------- */
   ---------------------------------------------------------- */
.spoiler-box {
.tabber .tabbertab {
   border: 1px dashed var(--gmtv-accent);
   border: 1px solid var(--g-border); border-top: none;
   border-radius: var(--gmtv-radius-sm);
   border-radius: 0 0 var(--g-radius-sm) var(--g-radius-sm);
   margin: 12px 0;
  padding: 16px 20px; background: var(--g-card);
   overflow: hidden;
}
.tabber ul.tabbernav {
   margin: 0; padding: 0;
  border-bottom: 2px solid var(--g-border);
   display: flex;
}
}
.spoiler-box .mw-collapsible-toggle {
.tabber ul.tabbernav li { list-style: none; }
   background: var(--gmtv-accent-light);
.tabber ul.tabbernav li a {
   color: var(--gmtv-accent);
   display: block; padding: 9px 18px;
  padding: 8px 16px;
   color: var(--g-text-2); font-weight: 500; font-size: 0.9em;
  font-weight: 600;
   border-bottom: 2px solid transparent; margin-bottom: -2px;
  font-size: 0.88em;
   transition: color .15s, border-color .15s;
   cursor: pointer;
  display: block;
   text-align: center;
}
}
.spoiler-box .mw-collapsible-content {
.tabber ul.tabbernav li a:hover { color: var(--g-blue); text-decoration: none; }
   padding: 12px 16px;
.tabber ul.tabbernav li.tabberactive a {
   color: var(--g-blue); border-bottom-color: var(--g-blue); font-weight: 600;
}
}


/* ----------------------------------------------------------
/* ----------------------------------------------------------
   14. 搜索框美化
   16. 搜索框
   ---------------------------------------------------------- */
   ---------------------------------------------------------- */
#searchInput,
#searchInput, .mw-searchInput {
#searchform input[type="search"],
   border: 1px solid var(--g-border);
.mw-searchInput {
   border: 1px solid var(--gmtv-border);
   border-radius: 100px;
   border-radius: 100px;
   padding: 8px 16px;
   padding: 8px 16px; font-size: 0.9em;
  font-size: 0.92em;
   background: var(--g-card);
   background: var(--gmtv-card);
   transition: border-color .2s, box-shadow .2s;
  color: var(--gmtv-text);
   transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
}
#searchInput:focus,
#searchInput:focus, .mw-searchInput:focus {
#searchform input[type="search"]:focus,
.mw-searchInput:focus {
   outline: none;
   outline: none;
   border-color: var(--gmtv-primary);
   border-color: var(--g-blue);
   box-shadow: 0 0 0 3px rgba(26, 111, 196, 0.15);
   box-shadow: 0 0 0 3px rgba(45,125,210,0.15);
}
}


/* ----------------------------------------------------------
/* ----------------------------------------------------------
   15. 杂项
   17. 杂项
   ---------------------------------------------------------- */
   ---------------------------------------------------------- */
/* 代码块 */
pre, code {
pre, code {
   font-family: var(--gmtv-font-mono);
   font-family: var(--g-font-mono); font-size: 0.86em;
  font-size: 0.88em;
   background: #f1f5f9; border-radius: var(--g-radius-sm);
   background: #f0f3f7;
  border-radius: var(--gmtv-radius-sm);
}
pre {
  padding: 14px 18px;
  overflow-x: auto;
  border: 1px solid var(--gmtv-border);
}
code {
  padding: 2px 6px;
}
}
pre { padding: 14px 18px; overflow-x: auto; border: 1px solid var(--g-border); }
code { padding: 2px 6px; }


/* 图片居中 */
.thumb {
.thumb {
   border: 1px solid var(--gmtv-border);
   border: 1px solid var(--g-border);
   border-radius: var(--gmtv-radius-sm);
   border-radius: var(--g-radius-sm);
   overflow: hidden;
   overflow: hidden; background: var(--g-card);
  background: var(--gmtv-card);
}
.thumb .thumbinner {
  padding: 4px;
}
}
.thumb .thumbcaption {
.thumb .thumbcaption {
   font-size: 0.82em;
   font-size: 0.8em; color: var(--g-text-3);
  color: var(--gmtv-text-muted);
   padding: 6px 8px; text-align: center;
   padding: 6px 8px;
  text-align: center;
}
 
/* 隐藏 MediaWiki 默认的丑边框 */
.mw-body {
  border: none;
}
/* 取消 Chameleon 对内容区的 flex 布局干扰 */
#mw-content-text,
#mw-content-text .mw-parser-output {
  display: block !important;
  overflow: visible !important;
}
 
/* 强制 Infobox 右浮动 */
.infobox {
  float: right !important;
  clear: right !important;
  margin: 0 0 20px 20px !important;
  width: 300px !important;
  position: relative;
  z-index: 10;
}
}


/* 确保正文段落环绕 Infobox */
.mw-body { border: none; }
.mw-parser-output > p,
.mw-parser-output > h2,
.mw-parser-output > .mw-heading2,
.mw-parser-output > ul,
.mw-parser-output > ol,
.mw-parser-output > blockquote {
  overflow: visible;
}
/* 目录强制全宽显示,不与 Infobox 并排 */
#toc,
.toc {
  display: block;
  float: none !important;
  clear: both !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 0 20px 0 !important;
  box-sizing: border-box;
}
 
/* 让 Infobox 前面的内容(标题引言)正常环绕 Infobox */
/* 但目录遇到 Infobox 时换行到下方 */
.mw-parser-output #toc,
.mw-parser-output .toc {
  clear: both !important;
}

2026年6月2日 (二) 20:53的版本

/* ----------------------------------------------------------
   1. CSS 变量
   ---------------------------------------------------------- */
:root {
  --g-bg: #eef1f6;
  --g-card: #ffffff;
  --g-blue: #2d7dd2;
  --g-blue-deep: #1b5eb5;
  --g-blue-pale: #e6f0fb;
  --g-red: #ef4444;
  --g-red-pale: #fef2f2;
  --g-green: #10b981;
  --g-purple: #8b5cf6;
  --g-text: #1a1d24;
  --g-text-2: #4b5563;
  --g-text-3: #9ca3af;
  --g-border: #e5e7eb;
  --g-border-light: #f3f4f6;
  --g-radius: 14px;
  --g-radius-sm: 8px;
  --g-shadow: 0 1px 3px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.03);
  --g-shadow-hover: 0 8px 25px rgba(45,125,210,0.12), 0 2px 6px rgba(0,0,0,0.04);
  --g-font: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --g-font-mono: "JetBrains Mono", "Fira Code", monospace;
  --g-gap: 16px;
}

/* ----------------------------------------------------------
   2. 全局
   ---------------------------------------------------------- */
body {
  background: var(--g-bg);
  color: var(--g-text);
  font-family: var(--g-font);
  font-size: 15px;
  line-height: 1.78;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--g-blue); text-decoration: none; transition: color .15s; }
a:hover { color: var(--g-blue-deep); }
a.new { color: var(--g-red); }

/* ----------------------------------------------------------
   3. 页面标题
   ---------------------------------------------------------- */
#firstHeading, .firstHeading, .page-header h1 {
  font-weight: 800;
  font-size: 1.85em;
  color: var(--g-text);
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin-bottom: 6px;
  border-bottom: none;
}

/* ----------------------------------------------------------
   4. 核心布局 — CSS Grid 双栏
   PC端:左内容(1fr) + 右Infobox(310px)
   手机端:单栏,Infobox在顶部
   ---------------------------------------------------------- */
.mw-parser-output {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--g-gap);
  max-width: 1060px;
}

@media (min-width: 992px) {
  .mw-parser-output {
    grid-template-columns: 1fr 310px;
    gap: 24px;
    align-items: start;
  }
  .mw-parser-output > .infobox {
    grid-column: 2;
    grid-row: 1 / span 8;
    position: sticky;
    top: 20px;
    align-self: start;
  }
  .mw-parser-output > *:not(.infobox) {
    grid-column: 1;
  }
}

/* ----------------------------------------------------------
   5. 章节卡片化
   ---------------------------------------------------------- */
.mw-parser-output > .mw-heading2,
.mw-parser-output > h2 {
  background: var(--g-card);
  padding: 16px 22px 13px;
  margin: 0;
  border-radius: var(--g-radius) var(--g-radius) 0 0;
  box-shadow: var(--g-shadow);
  font-size: 1.3em;
  font-weight: 700;
  color: var(--g-text);
  line-height: 1.35;
  border-left: 4px solid var(--g-blue);
  border-bottom: none;
}
.mw-parser-output > .mw-heading2 .mw-editsection,
.mw-parser-output > h2 .mw-editsection {
  font-size: 0.6em; font-weight: 400; color: var(--g-text-3);
}

.mw-parser-output > .mw-heading3,
.mw-parser-output > h3 {
  font-size: 1.05em;
  font-weight: 600;
  color: var(--g-blue);
  padding-left: 12px;
  border-left: 3px solid var(--g-blue);
  margin: 1em 0 0.4em;
}

.mw-parser-output > p,
.mw-parser-output > ul,
.mw-parser-output > ol,
.mw-parser-output > dl,
.mw-parser-output > blockquote,
.mw-parser-output > pre,
.mw-parser-output > .wikitable,
.mw-parser-output > div:not(.infobox):not(.navbox):not(.mw-heading2):not(.mw-heading3):not(.relation-grid) {
  background: var(--g-card);
  padding: 12px 22px;
  margin: -1px 0 0 0;
  box-shadow: var(--g-shadow);
}
.mw-parser-output > p:last-child,
.mw-parser-output > ul:last-child,
.mw-parser-output > div:last-child:not(.infobox):not(.navbox),
.mw-parser-output > .wikitable:last-child {
  border-radius: 0 0 var(--g-radius) var(--g-radius);
  padding-bottom: 18px;
}

/* ----------------------------------------------------------
   6. Infobox
   ---------------------------------------------------------- */
.infobox {
  background: var(--g-card);
  border: none;
  border-radius: var(--g-radius);
  box-shadow: var(--g-shadow);
  overflow: hidden;
  width: 100%;
  font-size: 0.88em;
  line-height: 1.6;
}
.infobox-title, .infobox caption, .infobox th[colspan] {
  background: linear-gradient(135deg, #2d7dd2 0%, #6c5ce7 100%);
  color: #fff;
  font-size: 1.2em;
  font-weight: 700;
  text-align: center;
  padding: 16px 18px;
  letter-spacing: 0.03em;
}
.infobox-image img, .infobox .image-section img {
  width: 100%; height: auto; display: block;
}
.infobox-group-header, .infobox tr.infobox-header th {
  background: linear-gradient(135deg, #2d7dd2, #1b5eb5);
  color: #fff;
  font-weight: 600;
  font-size: 0.92em;
  text-align: center;
  padding: 9px 14px;
}
.infobox th {
  background: var(--g-blue-pale);
  color: var(--g-blue);
  font-weight: 600;
  padding: 8px 12px;
  text-align: right;
  width: 36%;
  border-bottom: 1px solid var(--g-border-light);
  vertical-align: top;
}
.infobox td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--g-border-light);
  vertical-align: top;
}
.realm-highlight, .infobox .realm-current {
  color: var(--g-red);
  font-weight: 700;
}

/* ----------------------------------------------------------
   7. 表格
   ---------------------------------------------------------- */
.wikitable {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: none;
  border-radius: var(--g-radius-sm);
  overflow: hidden;
  font-size: 0.9em;
}
.wikitable th {
  background: linear-gradient(135deg, #2d7dd2 0%, #4a90d9 100%);
  color: #fff;
  font-weight: 600;
  padding: 10px 14px;
  text-align: left;
  border: none;
}
.wikitable td {
  padding: 9px 14px;
  border: none;
  border-bottom: 1px solid var(--g-border-light);
}
.wikitable tr:nth-child(even) td { background: #f8fafc; }
.wikitable tr:hover td { background: var(--g-blue-pale); transition: background .15s; }

.battle-win { color: var(--g-green); font-weight: 700; }
.battle-lose { color: var(--g-red); font-weight: 700; }
.battle-draw { color: var(--g-text-3); font-weight: 700; }

/* ----------------------------------------------------------
   8. Navbox
   ---------------------------------------------------------- */
.navbox {
  background: var(--g-card);
  border: 1px solid var(--g-border);
  border-radius: var(--g-radius);
  box-shadow: var(--g-shadow);
  overflow: hidden;
  margin-top: var(--g-gap);
  font-size: 0.86em;
  width: 100%;
}
.navbox-title {
  background: linear-gradient(135deg, #2d7dd2 0%, #6c5ce7 100%);
  color: #fff; font-weight: 700; text-align: center;
  padding: 10px 16px; font-size: 1.05em;
}
.navbox-title a { color: #fff; }
.navbox-title a:hover { color: #d4e8ff; text-decoration: underline; }
.navbox-group {
  background: var(--g-blue-pale); color: var(--g-blue);
  font-weight: 600; padding: 8px 14px; text-align: right;
  white-space: nowrap; border-bottom: 1px solid var(--g-border-light);
}
.navbox-list {
  padding: 8px 14px; border-bottom: 1px solid var(--g-border-light); line-height: 2;
}

/* ----------------------------------------------------------
   9. TOC 目录
   ---------------------------------------------------------- */
#toc, .toc {
  background: var(--g-card);
  border: 1px solid var(--g-border);
  border-radius: var(--g-radius);
  box-shadow: var(--g-shadow);
  padding: 14px 18px;
  font-size: 0.88em;
  line-height: 1.85;
}
#toc #toctitle, .toc .toctitle {
  font-weight: 700; color: var(--g-blue);
  margin-bottom: 8px; padding-bottom: 6px;
  border-bottom: 2px solid var(--g-blue);
}
#toc ul, .toc ul { list-style: none; margin: 0; padding-left: 14px; }
#toc a, .toc a { color: var(--g-text-2); }
#toc a:hover, .toc a:hover { color: var(--g-blue); }

/* ----------------------------------------------------------
   10. 引用块
   ---------------------------------------------------------- */
blockquote, .character-quote {
  border-left: 4px solid var(--g-blue);
  background: var(--g-blue-pale);
  padding: 14px 20px;
  margin: 12px 0;
  border-radius: 0 var(--g-radius-sm) var(--g-radius-sm) 0;
  font-style: italic;
  color: var(--g-text-2);
}
blockquote cite, .character-quote cite {
  display: block; margin-top: 8px;
  font-style: normal; font-size: 0.82em; color: var(--g-text-3);
}

/* ----------------------------------------------------------
   11. 分类标签
   ---------------------------------------------------------- */
#catlinks {
  background: var(--g-card);
  border: 1px solid var(--g-border);
  border-radius: var(--g-radius);
  padding: 10px 18px;
  margin-top: var(--g-gap);
  font-size: 0.83em;
  color: var(--g-text-3);
}
#catlinks a {
  display: inline-block;
  background: var(--g-blue-pale);
  color: var(--g-blue);
  padding: 3px 12px;
  border-radius: 100px;
  margin: 2px 3px;
  font-size: 0.9em;
  transition: background .15s, color .15s;
}
#catlinks a:hover {
  background: var(--g-blue); color: #fff; text-decoration: none;
}

/* ----------------------------------------------------------
   12. 人物关系卡片
   ---------------------------------------------------------- */
.relation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
  margin: 12px 0;
  background: var(--g-card);
  padding: 16px 22px;
  box-shadow: var(--g-shadow);
}
.relation-card {
  background: var(--g-border-light);
  border: 1px solid var(--g-border);
  border-radius: var(--g-radius-sm);
  padding: 12px 8px;
  text-align: center;
  transition: box-shadow .2s, border-color .2s, transform .2s;
}
.relation-card:hover {
  border-color: var(--g-blue);
  box-shadow: var(--g-shadow-hover);
  transform: translateY(-2px);
}
.relation-label {
  font-size: 0.72em; color: var(--g-text-3);
  text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 3px;
}
.relation-name { font-weight: 700; color: var(--g-blue); font-size: 0.92em; }
.relation-name a { color: var(--g-blue); }

/* ----------------------------------------------------------
   13. 境界进度条
   ---------------------------------------------------------- */
.realm-bar {
  width: 100%; height: 8px;
  background: var(--g-border-light);
  border-radius: 100px; overflow: hidden; margin: 6px 0;
}
.realm-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--g-blue), var(--g-purple), var(--g-red));
  border-radius: 100px;
  transition: width 0.5s ease;
}

/* ----------------------------------------------------------
   14. 剧透折叠块
   ---------------------------------------------------------- */
.spoiler-box {
  border: 1px dashed var(--g-red);
  border-radius: var(--g-radius-sm);
  margin: 12px 0; overflow: hidden;
}
.spoiler-box .mw-collapsible-toggle {
  background: var(--g-red-pale); color: var(--g-red);
  padding: 9px 16px; font-weight: 600; font-size: 0.86em;
  cursor: pointer; display: block; text-align: center;
}

/* ----------------------------------------------------------
   15. Tabber
   ---------------------------------------------------------- */
.tabber .tabbertab {
  border: 1px solid var(--g-border); border-top: none;
  border-radius: 0 0 var(--g-radius-sm) var(--g-radius-sm);
  padding: 16px 20px; background: var(--g-card);
}
.tabber ul.tabbernav {
  margin: 0; padding: 0;
  border-bottom: 2px solid var(--g-border);
  display: flex;
}
.tabber ul.tabbernav li { list-style: none; }
.tabber ul.tabbernav li a {
  display: block; padding: 9px 18px;
  color: var(--g-text-2); font-weight: 500; font-size: 0.9em;
  border-bottom: 2px solid transparent; margin-bottom: -2px;
  transition: color .15s, border-color .15s;
}
.tabber ul.tabbernav li a:hover { color: var(--g-blue); text-decoration: none; }
.tabber ul.tabbernav li.tabberactive a {
  color: var(--g-blue); border-bottom-color: var(--g-blue); font-weight: 600;
}

/* ----------------------------------------------------------
   16. 搜索框
   ---------------------------------------------------------- */
#searchInput, .mw-searchInput {
  border: 1px solid var(--g-border);
  border-radius: 100px;
  padding: 8px 16px; font-size: 0.9em;
  background: var(--g-card);
  transition: border-color .2s, box-shadow .2s;
}
#searchInput:focus, .mw-searchInput:focus {
  outline: none;
  border-color: var(--g-blue);
  box-shadow: 0 0 0 3px rgba(45,125,210,0.15);
}

/* ----------------------------------------------------------
   17. 杂项
   ---------------------------------------------------------- */
pre, code {
  font-family: var(--g-font-mono); font-size: 0.86em;
  background: #f1f5f9; border-radius: var(--g-radius-sm);
}
pre { padding: 14px 18px; overflow-x: auto; border: 1px solid var(--g-border); }
code { padding: 2px 6px; }

.thumb {
  border: 1px solid var(--g-border);
  border-radius: var(--g-radius-sm);
  overflow: hidden; background: var(--g-card);
}
.thumb .thumbcaption {
  font-size: 0.8em; color: var(--g-text-3);
  padding: 6px 8px; text-align: center;
}

.mw-body { border: none; }