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

MediaWiki:Common.css:修订间差异

MediaWiki界面页面
棍牧典
棍牧典留言 | 贡献 (// Edit via Wikiplus)
 
(未显示3个用户的55个中间版本)
第1行: 第1行:
/******************************************************************
/* =========================================================
*  MediaWiki:Common.css   (last update: 2024-06-XX)
* CSS 变量定义(主题无关设计)
  * – 自定义字体、基础排版、动画、轻暗模式
* ======================================================= */
  ******************************************************************/
:root {
  /* 滚动条颜色 */
  --otto-scrollbar-thumb: rgba(0,0,0,0.2);
  --otto-scrollbar-track: transparent;
 
  /* 导航框配色 */
  --otto-navbox-title-bg: #a5e4a5;
  --otto-navbox-subtitle-bg: #c0ecc0;
  --otto-navbox-subgroup-bg: #e6f6e6;
  --otto-navbox-even-bg: #f5fcf5;
  --otto-navbox-odd-bg: #fdfdfd;
 
  /* 通用间距 */
  --otto-spacing-xs: 4px;
  --otto-spacing-sm: 6px;
  --otto-spacing-md: 10px;
  --otto-spacing-lg: 1rem;
}
 
/* =========================================================
* 字体声明
* ======================================================= */
@font-face {
  font-family: "FOT-Rodin Pro";
  src: url("/resources/assets/FOT-Rodin Pro DB.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
 
@font-face {
  font-family: "WenKai";
  src: url("/resources/assets/LXGWWenKai-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
 
@font-face {
  font-family: "Merriweather";
  src: url("/resources/assets/Merriweather-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
 
@font-face {
  font-family: "JetBrains Mono";
  src: url("/resources/assets/JetBrainsMono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
 
@font-face {
  font-family: "WenKai Mono";
  src: url("/resources/assets/LXGWWenKaiMono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
 
/* =========================================================
* 全局滚动条样式
* ======================================================= */
::-webkit-scrollbar {
  width: var(--otto-spacing-sm);
  height: var(--otto-spacing-sm);
}
 
::-webkit-scrollbar-thumb {
  background: var(--otto-scrollbar-thumb);
  border-radius: calc(var(--otto-spacing-sm) / 2);
}
 
::-webkit-scrollbar-track {
  background: var(--otto-scrollbar-track);
}
 
* {
  scrollbar-width: thin;
  scrollbar-color: var(--otto-scrollbar-thumb) var(--otto-scrollbar-track);
}
 
/* =========================================================
* 编辑器样式
* ======================================================= */
.wikiEditor-ui {
  font-family: "WenKai Mono", "JetBrains Mono", monospace !important;
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-base, #1f1f1f);
  background-color: var(--background-color-neutral-subtle, #f9f9f9);
  border: 1px solid #ccc;
  padding: var(--otto-spacing-md);
  border-radius: var(--otto-spacing-sm);
  overflow: auto;
  tab-size: 4;
  white-space: pre;
  font-variant-ligatures: none;
}
 
/* =========================================================
* 代码块样式
* ======================================================= */
pre,
code,
.mw-code {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.95em;
   background-color: var(--background-color-neutral-subtle, #f9f9f9);
  color: var(--color-emphasized, #222);
  padding: var(--otto-spacing-xs) var(--otto-spacing-sm);
  border-radius: var(--otto-spacing-xs);
  overflow-x: auto;
}
 
/* =========================================================
  * 加载动画
  * ======================================================= */
#loadingIndicator img {
  animation: fadePulse 1s ease-in-out infinite;
  will-change: opacity;
}
 
@keyframes fadePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
 
/* =========================================================
* 扩展组件样式
* ======================================================= */
/* 社交扩展 */
.visualClear {
  clear: both;
}


/* ------------------------------  @font-face  ------------------ */
/* 子页面扩展 */
@font-face{font-family:"FOT-Rodin Pro";src:url("/resources/assets/FOT-Rodin Pro DB.otf") format("opentype");font-weight:700;font-style:normal;font-display:swap;}
.subpageNavigation {
@font-face{font-family:"WenKai";src:url("/resources/assets/LXGWWenKai-Regular.ttf") format("truetype");font-weight:400;font-style:normal;font-display:swap;}
  background-color: color-mix(in srgb, var(--color-surface-2) 60%, transparent) !important;
@font-face{font-family:"Merriweather";src:url("/resources/assets/Merriweather-Regular.woff2") format("woff2"),url("/resources/assets/Merriweather-Regular.ttf") format("truetype");font-weight:400;font-style:normal;font-display:swap;}
}
@font-face{font-family:"JetBrains Mono";src:url("/resources/assets/JetBrainsMono-Regular.woff2") format("woff2"),url("/resources/assets/JetBrainsMono-Regular.ttf") format("truetype");font-weight:400;font-style:normal;font-display:swap;}
@font-face{font-family:"WenKai Mono";src:url("/resources/assets/LXGWWenKaiMono-Regular.woff2") format("woff2"),url("/resources/assets/LXGWWenKaiMono-Regular.ttf") format("truetype");font-weight:400;font-style:normal;font-display:swap;}


/* ------------------------------  基础排版 --------------------- */
/* 跨wiki链接 */
body, #mw-content-text, .mw-body-content{
a.extiw:not([href*="wiki.ottohub.cn"]) {
  font-family:"WenKai","Merriweather",serif,"Songti SC","Noto Serif CJK SC";
   color: #00AF89 !important;
   font-size:16px;line-height:1.75;color:var(--color-base,#fff);
}
   word-break:break-word;overflow-wrap:break-word;text-rendering:optimizeLegibility;
a.extiw:not([href*="wiki.ottohub.cn"]):hover {
   color: #00D7A8 !important;
}
}


/* ------------------------------  Vector 页眉 ------------------ */
/* 黑幕效果 */
.vector-page-titlebar{
body:not(.skin-citizen) .heimu,
   position:relative;display:flex;align-items:center;justify-content:flex-end;
body:not(.skin-citizen) .heimu rt {
   background-color:rgba(var(--background-color-rgb),0.9);
   background-color: #252525;
   border-radius:4px 4px 0 0;padding:12px 14px;
   transition: color 0.13s linear;
   color: #252525;
  text-shadow: none;
}
}
.skin-vector .mw-logo{
 
  background-color:rgba(255,255,255,.6);border-radius:4px;padding:0 20px 0 10px;
body:not(.skin-citizen) .heimu a,
body:not(.skin-citizen) a .heimu,
body:not(.skin-citizen) a.new .heimu,
body:not(.skin-citizen) span.heimu a.new,
body:not(.skin-citizen) span.heimu a.external,
body:not(.skin-citizen) span.heimu a.extiw,
body:not(.skin-citizen) span.heimu a.mw-disambig,
body:not(.skin-citizen) span.heimu a.mw-redirect {
  color: #252525;
  text-shadow: none;
}
}
.skin-vector .mw-body-header,#p-logo-text,.vector-header{
 
   font-family:"FOT-Rodin Pro","WenKai",serif;font-weight:bold;
body:not(.skin-citizen) span.heimu:hover,
body:not(.skin-citizen) span.heimu:active {
   color: white;
}
}


/* ------------------------------  侧栏 ------------------------- */
body:not(.skin-citizen) span.heimu:hover a,
.vector-sticky-pinned-container{
body:not(.skin-citizen) a:hover span.heimu {
  overflow:hidden auto;position:sticky;margin:24px 0 0 12px;
   color: lightblue;
  max-height:calc(100vh - 48px);padding-top:16px;
   background-color:var(--background-color-base);border-radius:5px;
}
}
.vector-pinned-container{background-color:var(--background-color-base,#fff);padding:0 16px;}
 
#bodyContent{
body:not(.skin-citizen) span.heimu:hover a:visited,
  background-color:rgba(var(--background-color-rgb),0.9);
body:not(.skin-citizen) a:visited:hover span.heimu {
   padding:16px 16px 2px;border-radius:0 0 4px 4px;
   color: #C5CAE9;
}
}
.vector-page-toolbar{min-height:5px;background-color:rgba(var(--background-color-rgb),0.9);padding:0 12px;}


/* ------------------------------  搜索框 ----------------------- */
body:not(.skin-citizen) span.heimu:hover a.new,
input[type="search"],input[type="text"],.vector-search-box-input,#searchInput{
body:not(.skin-citizen) a.new:hover span.heimu {
   font-family:"WenKai",serif;font-size:14px;line-height:1;
   color: #FCC;
}
}
#searchInput::placeholder,.vector-search-box-input::placeholder{color:#999;}


/* ------------------------------ 编辑器/代码块 --------------- */
/* =========================================================
.wikiEditor-ui{
* 导航盒子 (Navbox)
   font-family:"WenKai Mono","JetBrains Mono",monospace !important;font-size:14px;
  * ======================================================= */
   line-height:1.6;color:var(--color-base,#1f1f1f);background:#f9f9f9;
table.navbox {
   border:1px solid #ccc;padding:10px;border-radius:6px;overflow:auto;tab-size:4;
   border: 1px solid #aaa;
  clear: both;
   margin: auto;
   padding: 1px;
  text-align: center;
  width: 100%;
}
}
pre,code,.mw-code{
 
   font-family:"JetBrains Mono",monospace;font-size:.95em;background:#f9f9f9;color:#222;
table.navbox + table.navbox {
  padding:4px 6px;border-radius:4px;overflow-x:auto;
   margin-top: -1px;
}
}


/* ------------------------------  分类/脚注 -------------------- */
table.navbox th,
.catlinks,.mw-references{font-size:.9em;opacity:.85;}
table.navbox .navbox-title,
table.navbox .navbox-abovebelow {
  padding: 0 1em;
  text-align: center;
}


/* ------------------------------  加载指示器 ------------------ */
table.navbox .navbox-group {
#loadingIndicator img{animation:fadePulse 1s ease-in-out infinite;will-change:opacity;}
  font-weight: 700;
@keyframes fadePulse{0%{opacity:1;}50%{opacity:.5;}100%{opacity:1;}}
  white-space: nowrap;
}


/* ------------------------------  滚动条 ----------------------- */
.navbox, .navbox-subgroup {
::-webkit-scrollbar{width:6px;height:6px;}
  background: var(--otto-navbox-odd-bg);
::-webkit-scrollbar-thumb{background:rgba(0,0,0,.2);border-radius:3px;}
}
*{scrollbar-width:thin;scrollbar-color:rgba(0,0,0,.2) transparent;}


/* ============================================================
.navbox-title, table.navbox th {
*                  ✨ 动  画  增  强
  background: var(--otto-navbox-title-bg);
* ============================================================ */
}


/* 1. 页眉滑入(仅首屏一次)*/
.navbox-abovebelow,
@keyframes slideDown{0%{transform:translateY(-24px);opacity:0;}100%{transform:translateY(0);opacity:1;}}
.navbox-group,
.vector-page-titlebar{animation:slideDown .6s cubic-bezier(.25,.8,.25,1) both;}
.navbox-subgroup .navbox-title {
  background: var(--otto-navbox-subtitle-bg);
}


/* 2. 侧栏淡入 */
.navbox-subgroup .navbox-group,
@keyframes fadeSlide{0%{transform:translateX(-10px);opacity:0;}100%{transform:translateX(0);opacity:1;}}
.navbox-subgroup .navbox-abovebelow {
.vector-sticky-pinned-container{animation:fadeSlide .5s ease-out both;}
  background: var(--otto-navbox-subgroup-bg);
}


/* 3. LOGO 悬停摇摆 */
.navbox-even {
@keyframes waggle{0%{transform:rotate(0deg);}20%{transform:rotate(6deg);}50%{transform:rotate(-6deg);}80%{transform:rotate(4deg);}100%{transform:rotate(0deg);}}
  background: var(--otto-navbox-even-bg);
.skin-vector .mw-logo{transition:transform .25s ease;}
}
.skin-vector .mw-logo:hover{animation:waggle .8s ease-in-out;}


/* 4. 正文区内链接下划线滑出(不碰到工具栏/侧边栏链接)*/
/* =========================================================
.mw-body-content a,
* 信息盒子 (Infobox)
#bodyContent a{
* ======================================================= */
   position:relative;color:var(--color-link,#7aa8ff);text-decoration:none;transition:color .2s;
.infoBox, .infoTop {
   margin: 0 auto;
  width: 80%;
  box-sizing: border-box;
}
}
.mw-body-content a::after,
 
#bodyContent a::after{
.infoBox-Title, .infoTop-Title {
   content:'';position:absolute;left:0;right:0;bottom:-2px;height:2px;background:currentColor;
   margin: 3px auto;
   transform:scaleX(0);transform-origin:left center;transition:transform .25s;
  padding: 0;
  text-align: center;
   font-weight: 700;
}
}
.mw-body-content a:hover::after,
#bodyContent a:hover::after{transform:scaleX(1);}


/* 5. 滚动条滑块呼吸(hover)*/
.infoBox-Icon, .infoTop-Icon {
@keyframes thumbPulse{from{background:rgba(0,0,0,.2);}to{background:rgba(0,0,0,.35);}}
  display: table-cell;
::-webkit-scrollbar-thumb:hover{animation:thumbPulse 1.2s infinite alternate;}
  padding: 2px 0 2px 0.5em;
*{scrollbar-color:rgba(0,0,0,.25) transparent;} /*Firefox一致*/
  vertical-align: middle;
}


/* ============================================================
.infoBox-Text, .infoTop-Text {
  *                 🌙  轻  暗  /  深  暗  模式
  display: table-cell;
  * ============================================================ */
  padding: 0.25em 0.5em 0.25em 1.3em;
  width: 100%;
  vertical-align: middle;
}
 
.infoBox-Below, .infoTop-Below {
  margin: 0 auto;
  padding: 0;
  text-align: center;
}
 
.infoBoxContent {
  border: 1px solid var(--color-surface-1);
  border-left-width: 0;
  background: var(--color-surface-0);
}
 
.infoTopContent {
  border: 1px solid var(--color-surface-0);
  border-left-width: 0;
  background: var(--color-surface-2);
}
 
/* =========================================================
  * Infobox2 样式
  * ======================================================= */
table.infobox2 {
  font-size: 89%;
  text-align: center;
  width: 280px;
  max-width: 100%;
  float: right;
  background-color: var(--color-surface-1);
  color: var(--color-base);
  border-collapse: separate;
  border-spacing: 2px;
}


/* 轻暗:默认开启 */
table.infobox2 .infobox2-header {
:root{--dim-bg-alpha:.72;} /* 改这里即可再调亮/暗 */
  background-color: var(--color-surface-4);
  color: var(--color-base);
  margin: 3px auto;
  padding: 0;
  text-align: center;
  font-weight: 700;
}


.vector-page-titlebar,
table.infobox2 .infobox2-subtitle {
#bodyContent,
   background-color: var(--color-surface-3);
.vector-page-toolbar,
  color: var(--color-base);
.vector-sticky-pinned-container,
.cn-notice,
.cn-contents{
   background-color:rgba(var(--background-color-rgb),var(--dim-bg-alpha))!important;
}
}


/* 温和文字与链接色 */
table.infobox2 .infobox2-row {
body,#mw-content-text,.mw-body-content{color:rgba(255,255,255,.85);}
  width: 80px;
.mw-body-content a,#bodyContent a{color:#7aa8ff;}
  background-color: var(--color-surface-2);
  color: var(--color-base);
}


::-webkit-scrollbar-thumb{background:rgba(255,255,255,.25);}
/* =========================================================
*{scrollbar-color:rgba(255,255,255,.25) transparent;}
* 响应式设计
* ======================================================= */
/* 设备差异显示 */
@media (max-width: 1119px) {
  .only-desktop {  
    display: none !important;  
  }
}
 
@media (min-width: 1120px) {
  .only-mobile {
    display: none !important;  
  }
}


/* 深暗:由 JS 切换 .is-dimmed 类名 */
/* 移动端信息盒子适配 */
body.is-dimmed .vector-page-titlebar,
@media (max-width: 576px) {
body.is-dimmed #bodyContent,
  .mw-parser-output > * {
body.is-dimmed .vector-page-toolbar,
    float: unset !important;
body.is-dimmed .vector-sticky-pinned-container,
  }
body.is-dimmed .cn-notice,
 
body.is-dimmed .cn-contents{
  .infotemplatebox,
  background-color:rgba(var(--background-color-rgb),.60)!important;
  table.infobox,
  table.infobox2,
  table.infoboxSpecial,
  .infoTop {
    width: 100% !important;
    float: unset !important;
    margin: var(--otto-spacing-lg) 0 !important;
  }
}
}
body.is-dimmed{color:rgba(255,255,255,.78);}
body.is-dimmed .mw-body-content a,
body.is-dimmed #bodyContent a{color:#8faeff;}

2025年6月15日 (日) 00:10的最新版本

/* =========================================================
 * CSS 变量定义(主题无关设计)
 * ======================================================= */
:root {
  /* 滚动条颜色 */
  --otto-scrollbar-thumb: rgba(0,0,0,0.2);
  --otto-scrollbar-track: transparent;
  
  /* 导航框配色 */
  --otto-navbox-title-bg: #a5e4a5;
  --otto-navbox-subtitle-bg: #c0ecc0;
  --otto-navbox-subgroup-bg: #e6f6e6;
  --otto-navbox-even-bg: #f5fcf5;
  --otto-navbox-odd-bg: #fdfdfd;
  
  /* 通用间距 */
  --otto-spacing-xs: 4px;
  --otto-spacing-sm: 6px;
  --otto-spacing-md: 10px;
  --otto-spacing-lg: 1rem;
}

/* =========================================================
 * 字体声明
 * ======================================================= */
@font-face {
  font-family: "FOT-Rodin Pro";
  src: url("/resources/assets/FOT-Rodin Pro DB.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "WenKai";
  src: url("/resources/assets/LXGWWenKai-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Merriweather";
  src: url("/resources/assets/Merriweather-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("/resources/assets/JetBrainsMono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "WenKai Mono";
  src: url("/resources/assets/LXGWWenKaiMono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* =========================================================
 * 全局滚动条样式
 * ======================================================= */
::-webkit-scrollbar {
  width: var(--otto-spacing-sm);
  height: var(--otto-spacing-sm);
}

::-webkit-scrollbar-thumb {
  background: var(--otto-scrollbar-thumb);
  border-radius: calc(var(--otto-spacing-sm) / 2);
}

::-webkit-scrollbar-track {
  background: var(--otto-scrollbar-track);
}

* {
  scrollbar-width: thin;
  scrollbar-color: var(--otto-scrollbar-thumb) var(--otto-scrollbar-track);
}

/* =========================================================
 * 编辑器样式
 * ======================================================= */
.wikiEditor-ui {
  font-family: "WenKai Mono", "JetBrains Mono", monospace !important;
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-base, #1f1f1f);
  background-color: var(--background-color-neutral-subtle, #f9f9f9);
  border: 1px solid #ccc;
  padding: var(--otto-spacing-md);
  border-radius: var(--otto-spacing-sm);
  overflow: auto;
  tab-size: 4;
  white-space: pre;
  font-variant-ligatures: none;
}

/* =========================================================
 * 代码块样式
 * ======================================================= */
pre,
code,
.mw-code {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.95em;
  background-color: var(--background-color-neutral-subtle, #f9f9f9);
  color: var(--color-emphasized, #222);
  padding: var(--otto-spacing-xs) var(--otto-spacing-sm);
  border-radius: var(--otto-spacing-xs);
  overflow-x: auto;
}

/* =========================================================
 * 加载动画
 * ======================================================= */
#loadingIndicator img {
  animation: fadePulse 1s ease-in-out infinite;
  will-change: opacity;
}

@keyframes fadePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* =========================================================
 * 扩展组件样式
 * ======================================================= */
/* 社交扩展 */
.visualClear {
  clear: both;
}

/* 子页面扩展 */
.subpageNavigation {
  background-color: color-mix(in srgb, var(--color-surface-2) 60%, transparent) !important;
}

/* 跨wiki链接 */
a.extiw:not([href*="wiki.ottohub.cn"]) {
  color: #00AF89 !important;
}
a.extiw:not([href*="wiki.ottohub.cn"]):hover {
  color: #00D7A8 !important;
}

/* 黑幕效果 */
body:not(.skin-citizen) .heimu,
body:not(.skin-citizen) .heimu rt {
  background-color: #252525;
  transition: color 0.13s linear;
  color: #252525;
  text-shadow: none;
}

body:not(.skin-citizen) .heimu a,
body:not(.skin-citizen) a .heimu,
body:not(.skin-citizen) a.new .heimu,
body:not(.skin-citizen) span.heimu a.new,
body:not(.skin-citizen) span.heimu a.external,
body:not(.skin-citizen) span.heimu a.extiw,
body:not(.skin-citizen) span.heimu a.mw-disambig,
body:not(.skin-citizen) span.heimu a.mw-redirect {
  color: #252525;
  text-shadow: none;
}

body:not(.skin-citizen) span.heimu:hover,
body:not(.skin-citizen) span.heimu:active {
  color: white;
}

body:not(.skin-citizen) span.heimu:hover a,
body:not(.skin-citizen) a:hover span.heimu {
  color: lightblue;
}

body:not(.skin-citizen) span.heimu:hover a:visited,
body:not(.skin-citizen) a:visited:hover span.heimu {
  color: #C5CAE9;
}

body:not(.skin-citizen) span.heimu:hover a.new,
body:not(.skin-citizen) a.new:hover span.heimu {
  color: #FCC;
}

/* =========================================================
 * 导航盒子 (Navbox)
 * ======================================================= */
table.navbox {
  border: 1px solid #aaa;
  clear: both;
  margin: auto;
  padding: 1px;
  text-align: center;
  width: 100%;
}

table.navbox + table.navbox {
  margin-top: -1px;
}

table.navbox th, 
table.navbox .navbox-title, 
table.navbox .navbox-abovebelow {
  padding: 0 1em;
  text-align: center;
}

table.navbox .navbox-group {
  font-weight: 700;
  white-space: nowrap;
}

.navbox, .navbox-subgroup {
  background: var(--otto-navbox-odd-bg);
}

.navbox-title, table.navbox th {
  background: var(--otto-navbox-title-bg);
}

.navbox-abovebelow, 
.navbox-group, 
.navbox-subgroup .navbox-title {
  background: var(--otto-navbox-subtitle-bg);
}

.navbox-subgroup .navbox-group,
.navbox-subgroup .navbox-abovebelow {
  background: var(--otto-navbox-subgroup-bg);
}

.navbox-even {
  background: var(--otto-navbox-even-bg);
}

/* =========================================================
 * 信息盒子 (Infobox)
 * ======================================================= */
.infoBox, .infoTop {
  margin: 0 auto;
  width: 80%;
  box-sizing: border-box;
}

.infoBox-Title, .infoTop-Title {
  margin: 3px auto;
  padding: 0;
  text-align: center;
  font-weight: 700;
}

.infoBox-Icon, .infoTop-Icon {
  display: table-cell;
  padding: 2px 0 2px 0.5em;
  vertical-align: middle;
}

.infoBox-Text, .infoTop-Text {
  display: table-cell;
  padding: 0.25em 0.5em 0.25em 1.3em;
  width: 100%;
  vertical-align: middle;
}

.infoBox-Below, .infoTop-Below {
  margin: 0 auto;
  padding: 0;
  text-align: center;
}

.infoBoxContent {
  border: 1px solid var(--color-surface-1);
  border-left-width: 0;
  background: var(--color-surface-0);
}

.infoTopContent {
  border: 1px solid var(--color-surface-0);
  border-left-width: 0;
  background: var(--color-surface-2);
}

/* =========================================================
 * Infobox2 样式
 * ======================================================= */
table.infobox2 {
  font-size: 89%;
  text-align: center;
  width: 280px;
  max-width: 100%;
  float: right;
  background-color: var(--color-surface-1);
  color: var(--color-base);
  border-collapse: separate;
  border-spacing: 2px;
}

table.infobox2 .infobox2-header {
  background-color: var(--color-surface-4);
  color: var(--color-base);
  margin: 3px auto;
  padding: 0;
  text-align: center;
  font-weight: 700;
}

table.infobox2 .infobox2-subtitle {
  background-color: var(--color-surface-3);
  color: var(--color-base);
}

table.infobox2 .infobox2-row {
  width: 80px;
  background-color: var(--color-surface-2);
  color: var(--color-base);
}

/* =========================================================
 * 响应式设计
 * ======================================================= */
/* 设备差异显示 */
@media (max-width: 1119px) {
  .only-desktop { 
    display: none !important; 
  } 
}

@media (min-width: 1120px) {
  .only-mobile { 
    display: none !important; 
  } 
}

/* 移动端信息盒子适配 */
@media (max-width: 576px) {
  .mw-parser-output > * {
    float: unset !important;
  }
  
  .infotemplatebox,
  table.infobox,
  table.infobox2,
  table.infoboxSpecial,
  .infoTop {
    width: 100% !important;
    float: unset !important;
    margin: var(--otto-spacing-lg) 0 !important;
  }
}