打开/关闭菜单
28
6680
50
1.4万
OGAS数据中枢
打开/关闭外观设置菜单
打开/关闭个人菜单
未登录
未登录用户的IP地址会在进行任意编辑后公开展示。

MediaWiki:Common.css:修订间差异

MediaWiki界面页面
秋绘君​(留言 | 贡献)
无编辑摘要
秋绘君​(留言 | 贡献)
测试
 
(未显示3个用户的36个中间版本)
第1行: 第1行:
/* ==================================================
/* ==========================================================================
  暂时隐藏login
  1. 系统界面清理 & 基础修正
   ================================================== */
   ========================================================================== */
 
#ca-viewsource, #ca-talk {
/* 1. 【核心】隐藏针对路人的“入口”
  解释:#pt-login 是登录连接,#pt-createaccount 是注册。
  只要隐藏这两个,路人就找不到门了。
  注意:千万不要在这里隐藏 #pt-logout 或 #pt-preferences!
*/
#pt-login, #pt-createaccount {
     display: none !important;
     display: none !important;
}
}
 
/* 2. 隐藏页面工具(讨论页等)
pre {
*/
    white-space: pre-wrap;
#ca-viewsource, #ca-history, #ca-talk {
     overflow-wrap: break-word;
     display: none !important;
}
}
 
/* 3. 隐藏侧边栏的杂项 */
.wikitable {
#t-permalink, #t-info, #t-specialpages, #t-print, #n-help {
     max-width: 100%;
     display: none !important;
     margin: 1em 0;
}
 
/* 4. 隐藏底部版权图标 (后面加回来*/
#footer-poweredbyico {
     display: none !important;
}
}
 
 
/* 一点样式代码测试 */
 
/* ==========================================================================
/* ==========================================================================
   1. 黑幕测试
   2. 交互组件:黑幕 (Heimu)
   ========================================================================== */
   .heimu, .heimu rt {
.heimu, .heimu rt {
     background-color: var(--color-base, #252525);
     background-color: #252525;
     color: var(--color-base, #252525);
     transition: color 0.13s linear;
    color: #252525; /* 初始颜色与背景一致 */
     text-shadow: none;
     text-shadow: none;
    transition: color 0.13s linear, background-color 0.13s linear;
    user-select: none;
}
}
.heimu a, a .heimu, .new .heimu {
.heimu a, a .heimu, .new .heimu {
     transition: color 0.13s linear;
     color: var(--color-base, #252525);
     color: #252525;
}
span.heimu:hover, span.heimu:active {
    background-color: transparent;
     color: var(--color-base--inverted, #ffffff) !important;
    user-select: text;
}
}
/* 鼠标悬停显示 */
span.heimu:hover a, a:hover span.heimu { color: var(--color-primary, #add8e6) !important; }
span.heimu:hover, span.heimu:active { color: #ffffff !important; }
  ========================================================================== */
span.heimu:hover a, a:hover span.heimu { color: #add8e6 !important; }
span.heimu:hover a:visited { color: #c5cae9 !important; }
 
/* ==========================================================================
/* ==========================================================================
   2. 选项卡组件 (Tabs)
   3. 现代矩形自适应导航 (核心逻辑 - 彻底净化版)
  用于切换“立绘/重创/心智升级”
   ========================================================================== */
   ========================================================================== */
/* 容器 */
.Tabs { display: block; margin: 1em 0; clear: both; }
/* 3.1 基础显隐逻辑 */
 
.adaptive-nav input[type="radio"] { display: none !important; }
/* 标签栏 */
.nav-content {
.TabLabel { display: flex; flex-wrap: wrap; border-bottom: 2px solid #aaa; }
    display: none;
 
    overflow: hidden;
/* 标签:让它看起来像个按钮 */
    background: var(--color-surface-2, rgba(0, 0, 0, 0.05));
.TabLabelText {
    border-radius: 10px;
     padding: 8px 16px;
    margin-bottom: 10px;
}
/* 强制显示展开的内容 */
.nav-content:not(.mw-collapsed) { display: block !important; }
/* 3.2 矩形卡片 (彻底清洗 Citizen 皮肤样式) */
.nav-text-btn.mw-customtoggle {
     all: unset !important; /* 抹除皮肤默认按钮样式 */
    position: relative;
     cursor: pointer;
     cursor: pointer;
     border: 1px solid #aaa;
    display: flex !important;
     border-bottom: none;
    align-items: center;
     margin-right: 4px;
    justify-content: flex-start;
     background: #f8f9fa;
    height: 64px;
    padding: 0 24px !important;
    font-weight: bold;
    font-size: 18px;
    color: var(--color-base, #333) !important; /* 没图时文字深色 */
    border-radius: 10px;
    background-color: transparent !important; /* 默认背景透明 */
     border: 1px solid var(--border-color-base, rgba(0,0,0,0.1)) !important;
     border-bottom: 4px solid rgba(0, 0, 0, 0.15) !important;
    transition: all 0.2s ease;
    overflow: hidden;
    box-sizing: border-box !important;
}
/* 杀死文字内部可能的任何蓝色背景 */
.nav-text-btn span {
    background: transparent !important;
    padding: 0 !important;
    border: none !important;
     box-shadow: none !important;
     z-index: 2;
}
}
 
/* 选中状态 */
/* 只有带 has-bg-image 类名时才显示的遮罩 */
.TabLabelText.selected {
.nav-text-btn.has-bg-image::before {
     background: #fff;
     content: "";
     font-weight: bold;
     position: absolute;
     margin-bottom: -2px;
     top: 0; left: 0; width: 100%; height: 100%;
     border-bottom: 2px solid #fff;
     background: linear-gradient(to right, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 60%, rgba(0,0,0,0) 100%);
     /* 这里的颜色可以通过模板参数控制,或者手动加个 border-top */
     z-index: 1;
}
}
 
.nav-text-btn.has-bg-image { color: #fff !important; }
/* 内容显示控制 */
.nav-text-btn.has-bg-image span { text-shadow: 2px 2px 4px rgba(0,0,0,0.8); }
.TabContent { border: 1px solid #aaa; border-top: none; padding: 15px; }
.TabContentText { display: none; }
/* 3.3 交互反馈 */
.TabContentText.selected { display: block; }
.nav-text-btn:hover { border-color: var(--color-primary, #36c) !important; background-color: rgba(0,0,0,0.02) !important; }
 
.nav-text-btn:active { transform: translateY(2px); border-bottom-width: 1px !important; }
 
.TabContent {
/* 3.4 背景预留区 */
    min-height: 50px; /* 根据少前立绘的平均高度设置 */
.btn-bg-1, .btn-bg-2, .btn-bg-3, .btn-bg-4 { background-size: cover; background-position: center; }
    transition: min-height 0.3s ease; /* 增加平滑过渡 */
}  
 
 
 
/* ==========================================================================
/* ==========================================================================
   2. 导航箱 (Navbox) - 仅保留布局,颜色交给模板
   4. 自适应逻辑 (PC网格 vs 移动端手风琴)
   ========================================================================== */
   ========================================================================== */
table.navbox {
@media (min-width: 769px) {
     border: 1px solid #aaa;
     .adaptive-nav { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 20px 0; }
    width: 100%;
     .nav-module { display: contents; }
    margin: auto;
     .nav-text-btn { grid-row: 1; }
     clear: both;
     .nav-content { grid-row: 2; grid-column: 1 / 5; margin-top: 10px; }
     font-size: 88%;
     text-align: center;
    border-collapse: collapse;
}
}
 
@media (max-width: 768px) {
/* 移除原本固定的 background 设置,允许模板参数生效 */
    .adaptive-nav { display: block; }
.navbox-title,
    .nav-module { margin-bottom: 8px; }
table.navbox th {
     .nav-text-btn { width: 100%; }
     padding-left: 1em; /* [cite: 82] */
     .nav-content { border-radius: 0 0 10px 10px; margin-top: -4px; border: 1px solid rgba(0, 0, 0, 0.1); border-top: none; }
     padding-right: 1em; /* [cite: 82] */
    text-align: center; /* [cite: 82] */
}
}
 
/* ==========================================================================
.navbox-group {
  4. 自适应分屏逻辑 (PC网格 vs 移动端手风琴)
     font-weight: bold; /* [cite: 82] */
  ========================================================================== */
     white-space: nowrap; /* [cite: 82] */
     padding: 0 10px;
/* PC端:横向排列按钮,内容横跨整行 */
@media (min-width: 769px) {
     .adaptive-nav {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
        margin: 20px 0;
    }
    .nav-module { display: contents; }
    .nav-text-btn { grid-row: 1; }
     .nav-content {
        grid-row: 2;  
        grid-column: 1 / 5;
        margin-top: 10px;
        border: 1px solid var(--border-color-base, rgba(255, 255, 255, 0.1));
    }
    #game-1:checked ~ .nav-module #content-1,
    #game-2:checked ~ .nav-module #content-2,
    #game-3:checked ~ .nav-module #content-3,
     #game-4:checked ~ .nav-module #content-4 {
        display: block;
    }
}
}
 
.navbox-list {
/* 移动端:按钮堆叠,内容就地展开 */
     border-color: #fdfdfd; /* [cite: 83] */
@media (max-width: 768px) {
    .adaptive-nav { display: block; padding: 0 5px; }
    .nav-module { margin-bottom: 8px; }
     .nav-text-btn { width: 100%; }
    .nav-content {
        border-radius: 0 0 10px 10px;
        margin-top: -4px;
        border: 1px solid rgba(0, 0, 0, 0.1);
        border-top: none;
    }
    /* 移动端特殊:由于 display: contents 失效,直接按顺序显示内容 */
    #game-1:checked ~ .nav-module:nth-of-type(1) #content-1,
    #game-2:checked ~ .nav-module:nth-of-type(2) #content-2,
    #game-3:checked ~ .nav-module:nth-of-type(3) #content-3,
    #game-4:checked ~ .nav-module:nth-of-type(4) #content-4 {
        display: block;
    }
}
}
/* ==========================================================================
/* ==========================================================================
   4. 侧边信息栏 (InfoBox)
   5. 首页网格与内容样式 (原本保留)
  角色属性、数值面板基础
   ========================================================================== */
   ========================================================================== */
.infotemplatebox {
.home-grid {
     float: right;
     display: grid;
     width: 280px;
     grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
     font-size: 90%;
    gap: 16px;
     margin: 0 0 1em 1em;
}
     background: #f9f9f9;
     border: 1px solid #999;
.home-card {
     border-collapse: collapse;
    background: var(--color-surface-1);
     clear: right;
     border: 1px solid var(--border-color-base);
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s ease;
}
.nav-sub-text {
     margin-top: 12px;
     font-weight: 600;
     font-size: 14px;
     color: var(--color-base);
}
@keyframes slideIn {
    from { opacity: 0; transform: translateY(-5px); }
     to { opacity: 1; transform: translateY(0); }
}
}
.infoBoxTitle {
     background: #deede0;
#custom-notetip-popup {
     color: #228b22;
    position: absolute;
     text-align: center;
    display: none;
     font-weight: bold;
    z-index: 10000;
     padding: 5px;
     background: #fff;
     border: 1px solid #a2a9b1;
     padding: 6px 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
     font-size: 14px;
    pointer-events: none;
     max-width: 300px;
    line-height: 1.5;
}
}
 
/* ==========================================================================
/* ==========================================================================
   5. 通用修正
   6. 图鉴筛选面板(橘 / 白主色调)
   防止图片溢出、强制换行等运维小优化
   由 MediaWiki:Common.js 中的 __mwFilterLoaded 生成 DOM
   ========================================================================== */
   ========================================================================== */
pre {
.AnnTools-MWFilter {
     white-space: pre-wrap;
     margin: 1em 0;
    overflow-wrap: break-word;
}
}
.wikitable {
.mwfilter {
    --mf-orange: #f5a200;
    --mf-orange-deep: #dd8b00;
    --mf-orange-light: #ffb733;
    --mf-line: #f2dcb8;
    --mf-cream: #fffaf2;
    --mf-text: #3a2a12;
    --mf-muted: #a89070;
     max-width: 100%;
     max-width: 100%;
     margin: 1em 0;
     overflow: hidden;
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--mf-text);
    background: #fff;
    border: 1px solid var(--mf-line);
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(196, 128, 20, 0.12);
}
/* 顶部标题栏 */
.mwfilter-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 16px;
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.02em;
    background: linear-gradient(135deg, var(--mf-orange-light) 0%, var(--mf-orange) 55%, var(--mf-orange-deep) 100%);
}
.mwfilter-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}
.mwfilter-title::before {
    content: "";
    flex: 0 0 auto;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.35);
}
.mwfilter-count {
    flex: 0 0 auto;
    padding: 1px 10px;
    font-size: 12px;
    font-weight: 400;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
    white-space: nowrap;
}
/* 筛选行 */
.mwfilter-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 11px 16px 7px;
}
.mwfilter-row {
    display: grid;
    grid-template-columns: 58px 1fr;
    align-items: start;
    gap: 10px;
}
.mwfilter-label {
    padding-top: 4px;
    font-weight: 600;
    font-size: 12.5px;
    color: var(--mf-orange-deep);
    white-space: nowrap;
}
.mwfilter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-width: 0;
}
/* 筛选按钮 */
.mwfilter-chip {
    -webkit-appearance: none;
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 26px;
    padding: 0 12px;
    font-size: 13px;
    line-height: 1;
    color: #8a5a00;
    background: #fff;
    border: 1px solid #efd0a1;
    border-radius: 999px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease,
        box-shadow 0.15s ease, transform 0.1s ease;
}
.mwfilter-chip:hover {
    color: #c07000;
    background: #fff6e8;
    border-color: var(--mf-orange);
}
.mwfilter-chip:active {
    transform: translateY(1px);
}
.mwfilter-chip:focus-visible {
    outline: 2px solid var(--mf-orange);
    outline-offset: 2px;
}
.mwfilter-chip.is-active {
    color: #fff;
    background: linear-gradient(180deg, var(--mf-orange-light), var(--mf-orange));
    border-color: var(--mf-orange);
    box-shadow: 0 2px 6px rgba(245, 162, 0, 0.35);
}
.mwfilter-chip--star {
    padding: 0 10px;
    letter-spacing: 1px;
    color: #d69a00;
}
.mwfilter-chip--star.is-active {
    color: #fff;
}
/* 搜索框 */
.mwfilter-input {
    flex: 1 1 240px;
    min-width: 180px;
    max-width: 380px;
    height: 28px;
    padding: 0 11px;
    font-size: 13px;
    color: var(--mf-text);
    background: #fff;
    border: 1px solid #efd0a1;
    border-radius: 8px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.mwfilter-input::placeholder {
    color: #bda37e;
}
}
 
/* 隐藏单选框本身 */
.mwfilter-input:focus {
.tab-container input[type="radio"] {
     outline: none;
     display: none;
    border-color: var(--mf-orange);
    box-shadow: 0 0 0 3px rgba(245, 162, 0, 0.18);
}
}
 
/* 标签栏容器 */
/* 底部操作条 */
.tab-labels {
.mwfilter-foot {
     display: flex;
     display: flex;
     border-bottom: 2px solid #36c;
     align-items: center;
     margin-bottom: 10px;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 16px;
     background: var(--mf-cream);
    border-top: 1px dashed var(--mf-line);
}
}
 
/* 单个标签样式 */
.mwfilter-reset {
.tab-labels label {
    -webkit-appearance: none;
     padding: 10px 20px;
    appearance: none;
    height: 26px;
     padding: 0 14px;
    font-size: 12.5px;
    color: #c07000;
    background: #fff;
    border: 1px solid #f0b95e;
    border-radius: 999px;
     cursor: pointer;
     cursor: pointer;
     background: #f8f9fa;
     transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
     border: 1px solid #ddd;
}
     border-bottom: none;
     margin-right: 5px;
.mwfilter-reset:hover {
     transition: 0.3s;
    color: #fff;
    background: var(--mf-orange);
     border-color: var(--mf-orange);
}
.mwfilter-reset:focus-visible {
    outline: 2px solid var(--mf-orange);
    outline-offset: 2px;
}
.mwfilter-hint {
    font-size: 12px;
    color: var(--mf-muted);
}
/* 窄屏:标签换行到上方 */
@media (max-width: 600px) {
    .mwfilter-row {
        grid-template-columns: 1fr;
        gap: 2px;
    }
    .mwfilter-label {
        padding-top: 0;
    }
    .mwfilter-input {
        max-width: none;
    }
}
/* 深色模式(Citizen 皮肤) */
@media (prefers-color-scheme: dark) {
    html.skin-theme-clientpref-os .mwfilter {
        --mf-line: #4a3517;
        --mf-cream: #221a0f;
        --mf-text: #f3e9da;
        --mf-muted: #9c8564;
        background: #1b150d;
     }
    html.skin-theme-clientpref-os .mwfilter-chip,
    html.skin-theme-clientpref-os .mwfilter-input,
    html.skin-theme-clientpref-os .mwfilter-reset {
        background: #241a0d;
        border-color: #5b431f;
        color: #f0c477;
    }
    html.skin-theme-clientpref-os .mwfilter-chip:hover {
        background: #2e2210;
    }
}
html.skin-theme-clientpref-night .mwfilter {
    --mf-line: #4a3517;
    --mf-cream: #221a0f;
    --mf-text: #f3e9da;
    --mf-muted: #9c8564;
    background: #1b150d;
}
html.skin-theme-clientpref-night .mwfilter-chip,
html.skin-theme-clientpref-night .mwfilter-input,
html.skin-theme-clientpref-night .mwfilter-reset {
    background: #241a0d;
     border-color: #5b431f;
     color: #f0c477;
}
html.skin-theme-clientpref-night .mwfilter-chip:hover {
    background: #2e2210;
}
}
 
.tab-labels label:hover {
/* ==========================================================================
     background: #eaecf0;
  7. 少女前线图鉴网格(从 Template:少女前线图鉴/style.css 移植并加 .gfindex 作用域)
  异步注入的分页有时拿不到 TemplateStyles,放在全站 CSS 里最稳
  ========================================================================== */
.gfindex {
width:130px;
display:inline-block;
vertical-align: top;
line-height:0;
    position: relative;
    margin-bottom:10px;
    box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);}
.gfindex .gf-poc {
background-color:#FFFFFF;
background-image:url('https://img.moegirl.org.cn/common/e/e8/GF-enemy-bg.png');
    background-size: 130px 200px;
     background-repeat:no-repeat;}
.gfindex .gf-enemy {
background-color:#242424;}
.gfindex .gfimg {
    position: relative;
    overflow: hidden;
    display: inline-block;
    width:130px;
    height:200px;}
.gfindex .gfimg img {
    position: absolute;}
.gfindex .gfimg-em {
width: 130px;
height: 200px;
overflow: hidden;
display: flex;
justify-content: center;}
.gfindex .gfimg-em img {
height: 100% !important;
width: auto !important;
max-width:unset!important;
margin-left: -35px; 
margin-right: -35px;}
.gfindex .sprite {
position: absolute;
    top: 0;
    left: 0;
    width: 130px;
    height: 25px;
    background-image:url('https://img.moegirl.org.cn/common/d/dc/GFtype-sprite-3.png');
    background-size: 390px 300px;
    background-repeat: no-repeat;}
.gfindex .AR-2 {
    background-position: 0px 0px;}
.gfindex .AR-3 {
    background-position: -130px 0px;}
.gfindex .AR-4 {
    background-position: -260px 0px;}
.gfindex .AR-5 {
    background-position: 0px -25px;}
.gfindex .AR-6 {
    background-position: -130px -25px;}
.gfindex .AR-1 {
    background-position: -260px -25px;}
.gfindex .HG-2 {
    background-position: 0px -50px;}
.gfindex .HG-3 {
    background-position: -130px -50px;}
.gfindex .HG-4 {
    background-position: -260px -50px;}
.gfindex .HG-5 {
    background-position: 0px -75px;}
.gfindex .HG-6 {
    background-position: -130px -75px;}
.gfindex .HG-1 {
    background-position: -260px -75px;}
.gfindex .MG-2 {
    background-position: 0px -100px;}
.gfindex .MG-3 {
    background-position: -130px -100px;}
.gfindex .MG-4 {
    background-position: -260px -100px;}
.gfindex .MG-5 {
    background-position: 0px -125px;}
.gfindex .MG-6 {
    background-position: -130px -125px;}
.gfindex .MG-1 {
    background-position: -260px -125px;}
.gfindex .RF-2 {
    background-position: 0px -150px;}
.gfindex .RF-3 {
    background-position: -130px -150px;}
.gfindex .RF-4 {
    background-position: -260px -150px;}
.gfindex .RF-5 {
    background-position: 0px -175px;}
.gfindex .RF-6 {
    background-position: -130px -175px;}
.gfindex .RF-1 {
    background-position: -260px -175px;}
.gfindex .SG-2 {
    background-position: 0px -200px;}
.gfindex .SG-3 {
    background-position: -130px -200px;}
.gfindex .SG-4 {
    background-position: -260px -200px;}
.gfindex .SG-5 {
    background-position: 0px -225px;}
.gfindex .SG-6 {
    background-position: -130px -225px;}
.gfindex .SG-1 {
    background-position: -260px -225px;}
.gfindex .SMG-2 {
    background-position: 0px -250px;}
.gfindex .SMG-3 {
    background-position: -130px -250px;}
.gfindex .SMG-4 {
    background-position: -260px -250px;}
.gfindex .SMG-5 {
    background-position: 0px -275px;}
.gfindex .SMG-6 {
    background-position: -130px -275px;}
.gfindex .SMG-1 {
    background-position: -260px -275px;}
.gfindex .rare {
width:100%;
padding:5px 0;
display:inline-block;
vertical-align:top;
line-height:14px;
text-align:center;}
.gfindex .rare-1 {
background-color:#D4A2FC;}
.gfindex .rare-2 {
background-color:white;}
.gfindex .rare-3 {
background-color:#5CD8C2;}
.gfindex .rare-4 {
background-color:#D5E259;}
.gfindex .rare-5 {
background-color:#FCA708;}
.gfindex .rare-6 {
background-color:#FD4402;}
.gfindex .rare-em {
background-color:#D61F1E;
color:white;}
.gfindex .enemy-sprite {
position: absolute;
    top: 0;
    left: 0;
    width: 130px;
    height: 25px;
    background-image:url('https://img.moegirl.org.cn/common/e/e4/GFenemy-sprite.png');
    background-size: 260px 100px;
    background-repeat: no-repeat;}
.gfindex .other {
    background-position: 0px 0px;}
.gfindex .em-other {
    background-position: -130px 0px;}
.gfindex .military {
    background-position: 0px -25px;}
.gfindex .em-military {
    background-position: -130px -25px;}
.gfindex .paradise {
    background-position: 0px -50px;}
.gfindex .em-paradise {
    background-position: -130px -50px;}
.gfindex .sf {
    background-position: 0px -75px;}
.gfindex .em-sf {
    background-position: -130px -75px;}
/* 缩略图缺失时的占位(本站 _S.jpg 缩略图基本都没上传) */
.gfindex .mw-broken-media,
.gfindex .mw-file-element[typeof],
.gfindex a.new > .mw-file-element {
display: flex !important;
align-items: center;
justify-content: center;
width: 130px;
height: 200px;
box-sizing: border-box;
padding: 10px;
line-height: 1.4;
font-size: 12.5px;
color: #9a6a12;
text-align: center;
word-break: break-word;
background:
repeating-linear-gradient(135deg, #fffdf8 0 9px, #fff6e6 9px 18px);
border: 1px dashed #f0cfa0;
}
}
 
/* 选中状态的样式 */
.gfindex a.new {
#tab1:checked ~ .tab-labels label[for="tab1"],
color: #9a6a12 !important;
#tab2:checked ~ .tab-labels label[for="tab2"],
text-decoration: none !important;
#tab3:checked ~ .tab-labels label[for="tab3"] {
}
    background: #36c;
    color: white;
.gfindex a.new:hover {
    font-weight: bold;
text-decoration: none !important;
}
/* 名称条:固定两行高度,避免长短名字把网格撑歪 */
.gfindex .rare {
box-sizing: border-box;
min-height: 24px;
display: flex;
align-items: center;
justify-content: center;
}
}
 
/* 内容区域默认隐藏 */
/* 回退到整张立绘时,按 130×200 裁切,保持网格整齐 */
.tab-content {
.gfindex .gfimg img {
    display: none;
width: 130px;
    padding: 15px;
height: 200px;
    border: 1px solid #ddd;
object-fit: cover;
    border-top: none;
object-position: top center;
}
}
 
/* 根据选中的 radio 显示对应的内容 */
/* ==========================================================================
#tab1:checked ~ #content1,
  8. 图鉴分段导航(Tabs)
#tab2:checked ~ #content2,
  标签条由 MediaWiki:Common.js 生成:.TabLabel > .TabLabelText
#tab3:checked ~ #content3 {
  内容面板:.TabContent > .TabContentText(.selected 为当前页)
     display: block;
  ========================================================================== */
.Tabs.tabs-initialized .TabLabel {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 16px 0 12px;
    padding-bottom: 10px;
     border-bottom: 1px solid #f2dcb8;
}
}
/* 1. 隐藏系统默认的黑三角,并让鼠标放上去变成小手 */
.home-game-fold summary {
.Tabs.tabs-initialized .TabLabelText {
     list-style: none; /* 隐藏标准浏览器的三角 */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 30px;
    padding: 0 14px;
    font-size: 12.5px;
    font-weight: 600;
    color: #8a5a00;
    background: #fff;
    border: 1px solid #efd0a1;
     border-radius: 999px;
     cursor: pointer;
     cursor: pointer;
     margin-bottom: 10px; /* 图标之间留点空隙 */
     user-select: none;
    white-space: nowrap;
    transition: background 0.15s ease, border-color 0.15s ease,
        color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}
.Tabs.tabs-initialized .TabLabelText > div {
    display: inline;
    text-align: inherit;
}
.Tabs.tabs-initialized .TabLabelText b {
    font-weight: 600;
}
.Tabs.tabs-initialized .TabLabelText:hover {
    color: #c07000;
    background: #fff6e8;
    border-color: #f5a200;
}
.Tabs.tabs-initialized .TabLabelText:active {
    transform: translateY(1px);
}
.Tabs.tabs-initialized .TabLabelText.selected {
    color: #fff;
    background: linear-gradient(180deg, #ffb733, #f5a200);
    border-color: #f5a200;
    box-shadow: 0 2px 8px rgba(245, 162, 0, 0.35);
}
}
.home-game-fold summary::-webkit-details-marker {
     display: none; /* 隐藏苹果/谷歌浏览器的三角 */
/* 只有初始化之后才隐藏非当前页,避免 JS 未执行时页面一片空白 */
.Tabs.tabs-initialized .TabContentText {
     display: none;
}
}
 
/* 2. 给展开的内容加上丝滑的浮现动画 */
.Tabs.tabs-initialized .TabContentText.selected {
.home-game-fold[open] .fold-content {
     display: block;
     animation: slideDownFade 0.3s ease-out; /* 0.3秒的动画时间 */
     animation: mfFadeIn 0.18s ease;
     padding: 10px;
    margin-bottom: 20px;
    background: rgba(0, 0, 0, 0.03); /* 给展开的区域加个极淡的背景色,区分层次(不需要可删除) */
    border-radius: 8px; /* 加个圆角更像 App */
}
}
 
/* 3. 定义具体的动画过程:从上面稍微滑下来,并从透明变清晰 */
@keyframes mfFadeIn {
@keyframes slideDownFade {
     from {
     from {
         opacity: 0;
         opacity: 0;
         transform: translateY(-10px);
         transform: translateY(2px);
     }
     }
     to {
     to {
         opacity: 1;
         opacity: 1;
         transform: translateY(0);
         transform: none;
     }
     }
}
}
/* ================================== */
/* 1. 全站固定背景图 */
/* 单页分段(特典人形 / 心智升级人形)不需要标签条 */
/* ================================== */
.Tabs.tabs-initialized.tabs-single .TabLabel {
html, body {
     display: none;
     background-image: url([[File:背景备选.png|direct]]) !important;
}
    background-size: cover !important;
    background-attachment: fixed !important;
/* 网格容器别再无限拉高 */
     background-position: center !important;
.Tabs .TabContentText > div {
     max-height: 72vh;
}
}
 
/* ================================== */
/* 2. 扒掉 Citizen 的底层纯色外衣 */
/* ==========================================================================
/* ================================== */
  9. 深色模式适配:图鉴分段导航、注释提示弹窗、图鉴缩略图占位
/* 必须把这两个专属框架的底色变透明,卡片才能显现 */
  ========================================================================== */
.citizen-layout,
html.skin-theme-clientpref-night .Tabs.tabs-initialized .TabLabel {
.citizen-layout__main {
     border-bottom-color: #2c3039;
     background: transparent !important;
}
}
 
/* ================================== */
html.skin-theme-clientpref-night .Tabs.tabs-initialized .TabLabelText {
/* 3. 悬浮卡片(毛玻璃区) */
     color: #f7a21b;
/* ================================== */
     background: #14161b;
/* 锁定真正的正文容器 #content */
     border-color: #3a3f4a;
#content.mw-body {
     background-color: rgba(255, 255, 255, 0.80) !important; /* 白色半透明 */
     backdrop-filter: blur(16px) !important; /* 毛玻璃模糊度 */
    -webkit-backdrop-filter: blur(12px) !important;  
   
    max-width: 1300px !important;        /* 卡片宽度 */
    margin: 120px auto 40px !important; /* 顶部留出超大空隙 */
     border-radius: 10px !important;    /* 圆角 */
    box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important; /* 悬浮阴影 */
    padding: 30px 40px !important;     /* 内部留白 */
}
}
 
/* ================================== */
html.skin-theme-clientpref-night .Tabs.tabs-initialized .TabLabelText:hover {
/* 4. 首页专用自由网格排版系统 */
     color: #ffc35c;
/* ================================== */
     background: #1c1f26;
 
     border-color: #f7a21b;
/* 这是大棋盘容器 */
.home-grid {
     display: grid;
     /* 核心魔法:自动计算列数,每个卡片最小 250px。手机上自动变1列,电脑上自动变多列 */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px; /* 卡片之间的间隔 */
     width: 100%;
}
}
 
/* 这是每一个积木块(小卡片)的默认样式 */
html.skin-theme-clientpref-night .Tabs.tabs-initialized .TabLabelText.selected {
.home-card {
     color: #fff;
     background: rgba(0, 0, 0, 0.04); /* 给小卡片加一层极淡的底色,和外层的白玻璃区分开 */
     background: linear-gradient(180deg, #ffb733, #f5a200);
     border: 1px solid rgba(0, 0, 0, 0.05); /* 加个很细的边框显得更精致 */
     border-color: #f5a200;
     border-radius: 12px; /* 小卡片的圆角 */
    padding: 20px;
    box-sizing: border-box;
    transition: transform 0.2s, box-shadow 0.2s; /* 为鼠标悬停动画做准备 */
}
}
 
 
html.skin-theme-clientpref-night .gfindex .mw-broken-media,
/* 特殊积木:如果想让某个卡片特别长,横跨两格 */
html.skin-theme-clientpref-night .gfindex .mw-file-element[typeof],
@media (min-width: 600px) {
html.skin-theme-clientpref-night .gfindex a.new > .mw-file-element {
    .home-card--wide {
    color: #9aa0aa;
        grid-column: span 2;
    background: repeating-linear-gradient(135deg, #1a1d24 0 9px, #15171d 9px 18px);
     }
     border-color: #3a3f4a;
}
}
 
/* 特殊积木:直接横跨铺满整行(比如顶部的欢迎语或大横幅) */
html.skin-theme-clientpref-night .gfindex a.new {
.home-card--full {
     color: #9aa0aa !important;
     grid-column: 1 / -1;
}
}
/* ================================== */
/* 6. 首页专属:左大图 + 右文字 比例排版 */
html.skin-theme-clientpref-night #custom-notetip-popup {
/* ================================== */
     background: #1c1f26;
.home-top-row {
     border-color: #3a3f4a;
     display: grid;
     color: #eceae4;
     grid-template-columns: 2fr 1fr; /* 核心魔法:左边占2份(约66%),右边占1份(约33%) */
     box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
     gap: 15px;
     margin: 15px 0; /* 和上下积木保持距离 */
}
}
 
/* 手机端保护机制:屏幕变窄时,自动变成上下两块,防止挤在一起 */
@media (prefers-color-scheme: dark) {
@media (max-width: 768px) {
     html.skin-theme-clientpref-os .Tabs.tabs-initialized .TabLabel {
     .home-top-row {
        border-bottom-color: #2c3039;
         grid-template-columns: 1fr;  
    }
    html.skin-theme-clientpref-os .Tabs.tabs-initialized .TabLabelText {
        color: #f7a21b;
        background: #14161b;
        border-color: #3a3f4a;
    }
    html.skin-theme-clientpref-os .Tabs.tabs-initialized .TabLabelText:hover {
        color: #ffc35c;
        background: #1c1f26;
        border-color: #f7a21b;
    }
    html.skin-theme-clientpref-os .Tabs.tabs-initialized .TabLabelText.selected {
        color: #fff;
        background: linear-gradient(180deg, #ffb733, #f5a200);
        border-color: #f5a200;
    }
    html.skin-theme-clientpref-os .gfindex .mw-broken-media,
    html.skin-theme-clientpref-os .gfindex .mw-file-element[typeof],
    html.skin-theme-clientpref-os .gfindex a.new > .mw-file-element {
         color: #9aa0aa;
        background: repeating-linear-gradient(135deg, #1a1d24 0 9px, #15171d 9px 18px);
        border-color: #3a3f4a;
     }
     }
   
     .home-flex-container {
     html.skin-theme-clientpref-os .gfindex a.new {
    flex-direction: column;
        color: #9aa0aa !important;
     }
     }
     .home-flex-card {
    width:100%!important;
     html.skin-theme-clientpref-os #custom-notetip-popup {
        background: #1c1f26;
        border-color: #3a3f4a;
        color: #eceae4;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
     }
     }
}
}

2026年11月11日 (三) 22:36的最新版本

/* ==========================================================================
   1. 系统界面清理 & 基础修正
   ========================================================================== */
#ca-viewsource, #ca-talk {
    display: none !important;
}
 
pre {
    white-space: pre-wrap;
    overflow-wrap: break-word;
}
 
.wikitable {
    max-width: 100%;
    margin: 1em 0;
}
 
/* ==========================================================================
   2. 交互组件:黑幕 (Heimu)
   .heimu, .heimu rt {
    background-color: var(--color-base, #252525);
    color: var(--color-base, #252525);
    text-shadow: none;
    transition: color 0.13s linear, background-color 0.13s linear;
    user-select: none;
}
.heimu a, a .heimu, .new .heimu {
    color: var(--color-base, #252525);
}
span.heimu:hover, span.heimu:active {
    background-color: transparent;
    color: var(--color-base--inverted, #ffffff) !important;
    user-select: text;
}
span.heimu:hover a, a:hover span.heimu { color: var(--color-primary, #add8e6) !important; }
   ========================================================================== */
 
 
/* ==========================================================================
   3. 现代矩形自适应导航 (核心逻辑 - 彻底净化版)
   ========================================================================== */
 
/* 3.1 基础显隐逻辑 */
.adaptive-nav input[type="radio"] { display: none !important; }
.nav-content {
    display: none;
    overflow: hidden;
    background: var(--color-surface-2, rgba(0, 0, 0, 0.05));
    border-radius: 10px;
    margin-bottom: 10px;
}
/* 强制显示展开的内容 */
.nav-content:not(.mw-collapsed) { display: block !important; }
 
/* 3.2 矩形卡片 (彻底清洗 Citizen 皮肤样式) */
.nav-text-btn.mw-customtoggle {
    all: unset !important; /* 抹除皮肤默认按钮样式 */
    position: relative;
    cursor: pointer;
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    height: 64px;
    padding: 0 24px !important;
    font-weight: bold;
    font-size: 18px;
    color: var(--color-base, #333) !important; /* 没图时文字深色 */
    border-radius: 10px;
    background-color: transparent !important; /* 默认背景透明 */
    border: 1px solid var(--border-color-base, rgba(0,0,0,0.1)) !important;
    border-bottom: 4px solid rgba(0, 0, 0, 0.15) !important;
    transition: all 0.2s ease;
    overflow: hidden;
    box-sizing: border-box !important;
}
 
/* 杀死文字内部可能的任何蓝色背景 */
.nav-text-btn span {
    background: transparent !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
    z-index: 2;
}
 
/* 只有带 has-bg-image 类名时才显示的遮罩 */
.nav-text-btn.has-bg-image::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 60%, rgba(0,0,0,0) 100%);
    z-index: 1;
}
.nav-text-btn.has-bg-image { color: #fff !important; }
.nav-text-btn.has-bg-image span { text-shadow: 2px 2px 4px rgba(0,0,0,0.8); }
 
/* 3.3 交互反馈 */
.nav-text-btn:hover { border-color: var(--color-primary, #36c) !important; background-color: rgba(0,0,0,0.02) !important; }
.nav-text-btn:active { transform: translateY(2px); border-bottom-width: 1px !important; }
 
/* 3.4 背景预留区 */
.btn-bg-1, .btn-bg-2, .btn-bg-3, .btn-bg-4 { background-size: cover; background-position: center; }
 
/* ==========================================================================
   4. 自适应逻辑 (PC网格 vs 移动端手风琴)
   ========================================================================== */
@media (min-width: 769px) {
    .adaptive-nav { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 20px 0; }
    .nav-module { display: contents; }
    .nav-text-btn { grid-row: 1; }
    .nav-content { grid-row: 2; grid-column: 1 / 5; margin-top: 10px; }
}
@media (max-width: 768px) {
    .adaptive-nav { display: block; }
    .nav-module { margin-bottom: 8px; }
    .nav-text-btn { width: 100%; }
    .nav-content { border-radius: 0 0 10px 10px; margin-top: -4px; border: 1px solid rgba(0, 0, 0, 0.1); border-top: none; }
}
/* ==========================================================================
   4. 自适应分屏逻辑 (PC网格 vs 移动端手风琴)
   ========================================================================== */
 
/* PC端:横向排列按钮,内容横跨整行 */
@media (min-width: 769px) {
    .adaptive-nav {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
        margin: 20px 0;
    }
    .nav-module { display: contents; }
    .nav-text-btn { grid-row: 1; }
    .nav-content { 
        grid-row: 2; 
        grid-column: 1 / 5; 
        margin-top: 10px;
        border: 1px solid var(--border-color-base, rgba(255, 255, 255, 0.1));
    }
 
    #game-1:checked ~ .nav-module #content-1,
    #game-2:checked ~ .nav-module #content-2,
    #game-3:checked ~ .nav-module #content-3,
    #game-4:checked ~ .nav-module #content-4 {
        display: block;
    }
}
 
/* 移动端:按钮堆叠,内容就地展开 */
@media (max-width: 768px) {
    .adaptive-nav { display: block; padding: 0 5px; }
    .nav-module { margin-bottom: 8px; }
    .nav-text-btn { width: 100%; }
    .nav-content {
        border-radius: 0 0 10px 10px;
        margin-top: -4px;
        border: 1px solid rgba(0, 0, 0, 0.1);
        border-top: none;
    }
 
    /* 移动端特殊:由于 display: contents 失效,直接按顺序显示内容 */
    #game-1:checked ~ .nav-module:nth-of-type(1) #content-1,
    #game-2:checked ~ .nav-module:nth-of-type(2) #content-2,
    #game-3:checked ~ .nav-module:nth-of-type(3) #content-3,
    #game-4:checked ~ .nav-module:nth-of-type(4) #content-4 {
        display: block;
    }
}
 
/* ==========================================================================
   5. 首页网格与内容样式 (原本保留)
   ========================================================================== */
.home-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}
 
.home-card {
    background: var(--color-surface-1);
    border: 1px solid var(--border-color-base);
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s ease;
}
 
.nav-sub-text {
    margin-top: 12px;
    font-weight: 600;
    font-size: 14px;
    color: var(--color-base);
}
 
@keyframes slideIn { 
    from { opacity: 0; transform: translateY(-5px); } 
    to { opacity: 1; transform: translateY(0); } 
}
 
#custom-notetip-popup {
    position: absolute;
    display: none;
    z-index: 10000;
    background: #fff;
    border: 1px solid #a2a9b1;
    padding: 6px 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    font-size: 14px;
    pointer-events: none;
    max-width: 300px;
    line-height: 1.5;
}
 
/* ==========================================================================
   6. 图鉴筛选面板(橘 / 白主色调)
   由 MediaWiki:Common.js 中的 __mwFilterLoaded 生成 DOM
   ========================================================================== */
.AnnTools-MWFilter {
    margin: 1em 0;
}
 
.mwfilter {
    --mf-orange: #f5a200;
    --mf-orange-deep: #dd8b00;
    --mf-orange-light: #ffb733;
    --mf-line: #f2dcb8;
    --mf-cream: #fffaf2;
    --mf-text: #3a2a12;
    --mf-muted: #a89070;
 
    max-width: 100%;
    overflow: hidden;
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--mf-text);
    background: #fff;
    border: 1px solid var(--mf-line);
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(196, 128, 20, 0.12);
}
 
/* 顶部标题栏 */
.mwfilter-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 16px;
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.02em;
    background: linear-gradient(135deg, var(--mf-orange-light) 0%, var(--mf-orange) 55%, var(--mf-orange-deep) 100%);
}
 
.mwfilter-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}
 
.mwfilter-title::before {
    content: "";
    flex: 0 0 auto;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.35);
}
 
.mwfilter-count {
    flex: 0 0 auto;
    padding: 1px 10px;
    font-size: 12px;
    font-weight: 400;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
    white-space: nowrap;
}
 
/* 筛选行 */
.mwfilter-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 11px 16px 7px;
}
 
.mwfilter-row {
    display: grid;
    grid-template-columns: 58px 1fr;
    align-items: start;
    gap: 10px;
}
 
.mwfilter-label {
    padding-top: 4px;
    font-weight: 600;
    font-size: 12.5px;
    color: var(--mf-orange-deep);
    white-space: nowrap;
}
 
.mwfilter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-width: 0;
}
 
/* 筛选按钮 */
.mwfilter-chip {
    -webkit-appearance: none;
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 26px;
    padding: 0 12px;
    font-size: 13px;
    line-height: 1;
    color: #8a5a00;
    background: #fff;
    border: 1px solid #efd0a1;
    border-radius: 999px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease,
        box-shadow 0.15s ease, transform 0.1s ease;
}
 
.mwfilter-chip:hover {
    color: #c07000;
    background: #fff6e8;
    border-color: var(--mf-orange);
}
 
.mwfilter-chip:active {
    transform: translateY(1px);
}
 
.mwfilter-chip:focus-visible {
    outline: 2px solid var(--mf-orange);
    outline-offset: 2px;
}
 
.mwfilter-chip.is-active {
    color: #fff;
    background: linear-gradient(180deg, var(--mf-orange-light), var(--mf-orange));
    border-color: var(--mf-orange);
    box-shadow: 0 2px 6px rgba(245, 162, 0, 0.35);
}
 
.mwfilter-chip--star {
    padding: 0 10px;
    letter-spacing: 1px;
    color: #d69a00;
}
 
.mwfilter-chip--star.is-active {
    color: #fff;
}
 
/* 搜索框 */
.mwfilter-input {
    flex: 1 1 240px;
    min-width: 180px;
    max-width: 380px;
    height: 28px;
    padding: 0 11px;
    font-size: 13px;
    color: var(--mf-text);
    background: #fff;
    border: 1px solid #efd0a1;
    border-radius: 8px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
 
.mwfilter-input::placeholder {
    color: #bda37e;
}
 
.mwfilter-input:focus {
    outline: none;
    border-color: var(--mf-orange);
    box-shadow: 0 0 0 3px rgba(245, 162, 0, 0.18);
}
 
/* 底部操作条 */
.mwfilter-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 16px;
    background: var(--mf-cream);
    border-top: 1px dashed var(--mf-line);
}
 
.mwfilter-reset {
    -webkit-appearance: none;
    appearance: none;
    height: 26px;
    padding: 0 14px;
    font-size: 12.5px;
    color: #c07000;
    background: #fff;
    border: 1px solid #f0b95e;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
 
.mwfilter-reset:hover {
    color: #fff;
    background: var(--mf-orange);
    border-color: var(--mf-orange);
}
 
.mwfilter-reset:focus-visible {
    outline: 2px solid var(--mf-orange);
    outline-offset: 2px;
}
 
.mwfilter-hint {
    font-size: 12px;
    color: var(--mf-muted);
}
 
/* 窄屏:标签换行到上方 */
@media (max-width: 600px) {
    .mwfilter-row {
        grid-template-columns: 1fr;
        gap: 2px;
    }
 
    .mwfilter-label {
        padding-top: 0;
    }
 
    .mwfilter-input {
        max-width: none;
    }
}
 
/* 深色模式(Citizen 皮肤) */
@media (prefers-color-scheme: dark) {
    html.skin-theme-clientpref-os .mwfilter {
        --mf-line: #4a3517;
        --mf-cream: #221a0f;
        --mf-text: #f3e9da;
        --mf-muted: #9c8564;
        background: #1b150d;
    }
 
    html.skin-theme-clientpref-os .mwfilter-chip,
    html.skin-theme-clientpref-os .mwfilter-input,
    html.skin-theme-clientpref-os .mwfilter-reset {
        background: #241a0d;
        border-color: #5b431f;
        color: #f0c477;
    }
 
    html.skin-theme-clientpref-os .mwfilter-chip:hover {
        background: #2e2210;
    }
}
 
html.skin-theme-clientpref-night .mwfilter {
    --mf-line: #4a3517;
    --mf-cream: #221a0f;
    --mf-text: #f3e9da;
    --mf-muted: #9c8564;
    background: #1b150d;
}
 
html.skin-theme-clientpref-night .mwfilter-chip,
html.skin-theme-clientpref-night .mwfilter-input,
html.skin-theme-clientpref-night .mwfilter-reset {
    background: #241a0d;
    border-color: #5b431f;
    color: #f0c477;
}
 
html.skin-theme-clientpref-night .mwfilter-chip:hover {
    background: #2e2210;
}
 
/* ==========================================================================
   7. 少女前线图鉴网格(从 Template:少女前线图鉴/style.css 移植并加 .gfindex 作用域)
   异步注入的分页有时拿不到 TemplateStyles,放在全站 CSS 里最稳
   ========================================================================== */
.gfindex {
	width:130px;
	display:inline-block;
	vertical-align: top;
	line-height:0;
    position: relative;
    margin-bottom:10px;
    box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);}
.gfindex .gf-poc {
	background-color:#FFFFFF;
	background-image:url('https://img.moegirl.org.cn/common/e/e8/GF-enemy-bg.png');
    background-size: 130px 200px;
    background-repeat:no-repeat;}
.gfindex .gf-enemy {
	background-color:#242424;}
.gfindex .gfimg {
    position: relative;
    overflow: hidden;
    display: inline-block;
    width:130px;
    height:200px;}
.gfindex .gfimg img {
    position: absolute;}
.gfindex .gfimg-em {
	width: 130px;
	height: 200px;
	overflow: hidden;
	display: flex;
	justify-content: center;}
.gfindex .gfimg-em img {
	height: 100% !important;
	width: auto !important;
	max-width:unset!important;
	
	margin-left: -35px;  
	margin-right: -35px;}
.gfindex .sprite {
	position: absolute; 
    top: 0; 
    left: 0; 
    width: 130px; 
    height: 25px; 
    background-image:url('https://img.moegirl.org.cn/common/d/dc/GFtype-sprite-3.png');
    background-size: 390px 300px;
    background-repeat: no-repeat;}
.gfindex .AR-2 {
    background-position: 0px 0px;}
.gfindex .AR-3 {
    background-position: -130px 0px;}
.gfindex .AR-4 {
    background-position: -260px 0px;}
.gfindex .AR-5 {
    background-position: 0px -25px;}
.gfindex .AR-6 {
    background-position: -130px -25px;}
.gfindex .AR-1 {
    background-position: -260px -25px;}
.gfindex .HG-2 {
    background-position: 0px -50px;}
.gfindex .HG-3 {
    background-position: -130px -50px;}
.gfindex .HG-4 {
    background-position: -260px -50px;}
.gfindex .HG-5 {
    background-position: 0px -75px;}
.gfindex .HG-6 {
    background-position: -130px -75px;}
.gfindex .HG-1 {
    background-position: -260px -75px;}
.gfindex .MG-2 {
    background-position: 0px -100px;}
.gfindex .MG-3 {
    background-position: -130px -100px;}
.gfindex .MG-4 {
    background-position: -260px -100px;}
.gfindex .MG-5 {
    background-position: 0px -125px;}
.gfindex .MG-6 {
    background-position: -130px -125px;}
.gfindex .MG-1 {
    background-position: -260px -125px;}
.gfindex .RF-2 {
    background-position: 0px -150px;}
.gfindex .RF-3 {
    background-position: -130px -150px;}
.gfindex .RF-4 {
    background-position: -260px -150px;}
.gfindex .RF-5 {
    background-position: 0px -175px;}
.gfindex .RF-6 {
    background-position: -130px -175px;}
.gfindex .RF-1 {
    background-position: -260px -175px;}
.gfindex .SG-2 {
    background-position: 0px -200px;}
.gfindex .SG-3 {
    background-position: -130px -200px;}
.gfindex .SG-4 {
    background-position: -260px -200px;}
.gfindex .SG-5 {
    background-position: 0px -225px;}
.gfindex .SG-6 {
    background-position: -130px -225px;}
.gfindex .SG-1 {
    background-position: -260px -225px;}
.gfindex .SMG-2 {
    background-position: 0px -250px;}
.gfindex .SMG-3 {
    background-position: -130px -250px;}
.gfindex .SMG-4 {
    background-position: -260px -250px;}
.gfindex .SMG-5 {
    background-position: 0px -275px;}
.gfindex .SMG-6 {
    background-position: -130px -275px;}
.gfindex .SMG-1 {
    background-position: -260px -275px;}
.gfindex .rare {
	width:100%;
	padding:5px 0;
	display:inline-block;
	vertical-align:top;
	line-height:14px;
	text-align:center;}
.gfindex .rare-1 {
	background-color:#D4A2FC;}
.gfindex .rare-2 {
	background-color:white;}
.gfindex .rare-3 {
	background-color:#5CD8C2;}
.gfindex .rare-4 {
	background-color:#D5E259;}
.gfindex .rare-5 {
	background-color:#FCA708;}
.gfindex .rare-6 {
	background-color:#FD4402;}
.gfindex .rare-em {
	background-color:#D61F1E;
	color:white;}
.gfindex .enemy-sprite {
	position: absolute; 
    top: 0; 
    left: 0; 
    width: 130px; 
    height: 25px; 
    background-image:url('https://img.moegirl.org.cn/common/e/e4/GFenemy-sprite.png');
    background-size: 260px 100px;
    background-repeat: no-repeat;}
.gfindex .other {
    background-position: 0px 0px;}
.gfindex .em-other {
    background-position: -130px 0px;}
.gfindex .military {
    background-position: 0px -25px;}
.gfindex .em-military {
    background-position: -130px -25px;}
.gfindex .paradise {
    background-position: 0px -50px;}
.gfindex .em-paradise {
    background-position: -130px -50px;}
.gfindex .sf {
    background-position: 0px -75px;}
.gfindex .em-sf {
    background-position: -130px -75px;}
 
/* 缩略图缺失时的占位(本站 _S.jpg 缩略图基本都没上传) */
.gfindex .mw-broken-media,
.gfindex .mw-file-element[typeof],
.gfindex a.new > .mw-file-element {
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: 130px;
	height: 200px;
	box-sizing: border-box;
	padding: 10px;
	line-height: 1.4;
	font-size: 12.5px;
	color: #9a6a12;
	text-align: center;
	word-break: break-word;
	background:
		repeating-linear-gradient(135deg, #fffdf8 0 9px, #fff6e6 9px 18px);
	border: 1px dashed #f0cfa0;
}
 
.gfindex a.new {
	color: #9a6a12 !important;
	text-decoration: none !important;
}
 
.gfindex a.new:hover {
	text-decoration: none !important;
}
 
/* 名称条:固定两行高度,避免长短名字把网格撑歪 */
.gfindex .rare {
	box-sizing: border-box;
	min-height: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
}
 
/* 回退到整张立绘时,按 130×200 裁切,保持网格整齐 */
.gfindex .gfimg img {
	width: 130px;
	height: 200px;
	object-fit: cover;
	object-position: top center;
}
 
/* ==========================================================================
   8. 图鉴分段导航(Tabs)
   标签条由 MediaWiki:Common.js 生成:.TabLabel > .TabLabelText
   内容面板:.TabContent > .TabContentText(.selected 为当前页)
   ========================================================================== */
.Tabs.tabs-initialized .TabLabel {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 16px 0 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f2dcb8;
}
 
.Tabs.tabs-initialized .TabLabelText {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 30px;
    padding: 0 14px;
    font-size: 12.5px;
    font-weight: 600;
    color: #8a5a00;
    background: #fff;
    border: 1px solid #efd0a1;
    border-radius: 999px;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
    transition: background 0.15s ease, border-color 0.15s ease,
        color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}
 
.Tabs.tabs-initialized .TabLabelText > div {
    display: inline;
    text-align: inherit;
}
 
.Tabs.tabs-initialized .TabLabelText b {
    font-weight: 600;
}
 
.Tabs.tabs-initialized .TabLabelText:hover {
    color: #c07000;
    background: #fff6e8;
    border-color: #f5a200;
}
 
.Tabs.tabs-initialized .TabLabelText:active {
    transform: translateY(1px);
}
 
.Tabs.tabs-initialized .TabLabelText.selected {
    color: #fff;
    background: linear-gradient(180deg, #ffb733, #f5a200);
    border-color: #f5a200;
    box-shadow: 0 2px 8px rgba(245, 162, 0, 0.35);
}
 
/* 只有初始化之后才隐藏非当前页,避免 JS 未执行时页面一片空白 */
.Tabs.tabs-initialized .TabContentText {
    display: none;
}
 
.Tabs.tabs-initialized .TabContentText.selected {
    display: block;
    animation: mfFadeIn 0.18s ease;
}
 
@keyframes mfFadeIn {
    from {
        opacity: 0;
        transform: translateY(2px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}
 
/* 单页分段(特典人形 / 心智升级人形)不需要标签条 */
.Tabs.tabs-initialized.tabs-single .TabLabel {
    display: none;
}
 
/* 网格容器别再无限拉高 */
.Tabs .TabContentText > div {
    max-height: 72vh;
}
 
 
/* ==========================================================================
   9. 深色模式适配:图鉴分段导航、注释提示弹窗、图鉴缩略图占位
   ========================================================================== */
html.skin-theme-clientpref-night .Tabs.tabs-initialized .TabLabel {
    border-bottom-color: #2c3039;
}
 
html.skin-theme-clientpref-night .Tabs.tabs-initialized .TabLabelText {
    color: #f7a21b;
    background: #14161b;
    border-color: #3a3f4a;
}
 
html.skin-theme-clientpref-night .Tabs.tabs-initialized .TabLabelText:hover {
    color: #ffc35c;
    background: #1c1f26;
    border-color: #f7a21b;
}
 
html.skin-theme-clientpref-night .Tabs.tabs-initialized .TabLabelText.selected {
    color: #fff;
    background: linear-gradient(180deg, #ffb733, #f5a200);
    border-color: #f5a200;
}
 
html.skin-theme-clientpref-night .gfindex .mw-broken-media,
html.skin-theme-clientpref-night .gfindex .mw-file-element[typeof],
html.skin-theme-clientpref-night .gfindex a.new > .mw-file-element {
    color: #9aa0aa;
    background: repeating-linear-gradient(135deg, #1a1d24 0 9px, #15171d 9px 18px);
    border-color: #3a3f4a;
}
 
html.skin-theme-clientpref-night .gfindex a.new {
    color: #9aa0aa !important;
}
 
html.skin-theme-clientpref-night #custom-notetip-popup {
    background: #1c1f26;
    border-color: #3a3f4a;
    color: #eceae4;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}
 
@media (prefers-color-scheme: dark) {
    html.skin-theme-clientpref-os .Tabs.tabs-initialized .TabLabel {
        border-bottom-color: #2c3039;
    }
 
    html.skin-theme-clientpref-os .Tabs.tabs-initialized .TabLabelText {
        color: #f7a21b;
        background: #14161b;
        border-color: #3a3f4a;
    }
 
    html.skin-theme-clientpref-os .Tabs.tabs-initialized .TabLabelText:hover {
        color: #ffc35c;
        background: #1c1f26;
        border-color: #f7a21b;
    }
 
    html.skin-theme-clientpref-os .Tabs.tabs-initialized .TabLabelText.selected {
        color: #fff;
        background: linear-gradient(180deg, #ffb733, #f5a200);
        border-color: #f5a200;
    }
 
    html.skin-theme-clientpref-os .gfindex .mw-broken-media,
    html.skin-theme-clientpref-os .gfindex .mw-file-element[typeof],
    html.skin-theme-clientpref-os .gfindex a.new > .mw-file-element {
        color: #9aa0aa;
        background: repeating-linear-gradient(135deg, #1a1d24 0 9px, #15171d 9px 18px);
        border-color: #3a3f4a;
    }
 
    html.skin-theme-clientpref-os .gfindex a.new {
        color: #9aa0aa !important;
    }
 
    html.skin-theme-clientpref-os #custom-notetip-popup {
        background: #1c1f26;
        border-color: #3a3f4a;
        color: #eceae4;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    }
}