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

MediaWiki:Citizen.css:修订间差异

MediaWiki界面页面
ETTW留言 | 贡献
无编辑摘要
ETTW留言 | 贡献
无编辑摘要
第448行: 第448行:


/* ===================================== */
/* ===================================== */
/* === Section16.13 评论流重构 (终极版) === */
/* === Section16.14 评论流极致紧凑版 === */
/* ===================================== */
/* ===================================== */


/* --- 1. 基础容器:统一背板与圆角 --- */
/* --- 1. 容器流:极致紧凑 --- */
.cs-stream {
.cs-stream {
     display: block !important;
     display: block !important;
     background-color: var(--color-surface-1) !important; /* 亮暗自动跟随 */
     background-color: var(--color-surface-1) !important;
     border: 1px solid var(--border-color-base) !important;
     border: 1px solid var(--border-color-base) !important;
     border-radius: 20px !important;
     border-radius: 12px !important; /* 缩小圆角更显硬核 */
     margin-bottom: 24px !important;
     margin-bottom: 12px !important; /* 缩小外部间距 */
    overflow: hidden !important;
    padding: 0 !important;
}
 
/* --- 2. 评论卡片:消除间距感 --- */
.cs-comment {
    background: transparent !important;
    border: none !important;
    margin: 0 !important;
     padding: 0 !important;
     padding: 0 !important;
}
}


/* --- 3. 头部适配:贴合顶部与左右 --- */
/* --- 2. 头部适配:贴合顶部 --- */
.cs-comment-header {
.cs-comment-header {
     display: flex !important;
     display: flex !important;
    align-items: center;
     padding: 6px 12px !important; /* 极窄高度 */
     padding: 12px 16px !important;
     background: rgba(128, 128, 128, 0.08) !important;  
     background: rgba(128, 128, 128, 0.05) !important; /* 微弱区分头部 */
     border-bottom: 1px solid var(--border-color-base) !important;
     border-bottom: 1px solid var(--border-color-base) !important;
}
}


/* 次级评论头部:由于在容器内,需要特殊处理贴紧 */
/* --- 3. 次级评论:解决背景颜色与间距 --- */
.cs-reply-comment .cs-comment-header {
    border-radius: 12px 12px 0 0 !important;
    background: rgba(var(--color-primary-rgb), 0.1) !important; /* 次级头部略带主题色 */
}
 
/* --- 4. 嵌套逻辑:次级回复背景与缩进修复 --- */
.cs-reply-comment {
.cs-reply-comment {
     /* 亮色下是浅色,暗色下自动变深但保持区分度 */
     /* 强行锁定背景色:亮色下极浅蓝灰,暗色下深灰 */
     background-color: var(--color-surface-2) !important;  
     background-color: var(--color-surface-2) !important;  
     border: 1px solid var(--border-color-base) !important;
     border: 1px solid var(--border-color-base) !important;
     border-radius: 12px !important;
     border-radius: 8px !important;
     margin: 10px 16px 15px 60px !important; /* 修复左边空出一块的问题 */
    /* 缩小左侧缩进,增加紧凑感 */
     padding: 0 !important; /* 让 header 能贴顶 */
     margin: 4px 12px 6px 40px !important;  
     padding: 0 !important;
     overflow: hidden;
     overflow: hidden;
}
}


/* --- 5. 正文区域:紧凑布局 --- */
/* 让次级评论的头部也贴紧 */
.cs-comment-body {
.cs-reply-comment .cs-comment-header {
     padding: 12px 16px 12px 60px !important; /* 一级对齐 */
     padding: 4px 10px !important;
     color: var(--color-text-primary) !important;
     background: rgba(0, 0, 0, 0.05) !important;
}
 
.cs-reply-comment .cs-comment-body {
    padding: 12px 16px !important; /* 二级内部不再额外缩进 */
}
}


/* --- 6. 回复按钮:彻底融入且颜色匹配 --- */
/* --- 4. 回复按钮:颜色匹配背景 --- */
.cs-stream-footer {
.cs-stream-footer {
     padding: 0 16px 16px 60px !important; /* 修复左侧留空 */
     padding: 0 12px 8px 40px !important; /* 缩减底部留白 */
     background: transparent !important;
     background: transparent !important;
}
}
第516行: 第497行:


.cs-stream-footer .oo-ui-buttonElement-button {
.cs-stream-footer .oo-ui-buttonElement-button {
     background-color: var(--color-surface-3) !important; /* 使用 Citizen 的第三层表面色 */
    /* 核心:让按钮背景完全匹配它所在的背板颜色 */
     background-color: var(--color-surface-3, rgba(128,128,128,0.1)) !important;  
     color: var(--color-primary) !important;
     color: var(--color-primary) !important;
     border: none !important;
     border: none !important;
     border-radius: 8px !important;
     border-radius: 4px !important;
     padding: 2px 12px !important;
     padding: 0px 10px !important; /* 极窄按钮 */
     transition: all 0.2s ease;
     height: 22px !important; /* 固定高度 */
}
     line-height: 22px !important;
 
.cs-stream-footer .oo-ui-buttonElement-button:hover {
    background-color: var(--color-primary) !important;
     color: white !important;
}
}


/* --- 7. 回复输入框 (Edit Box) 适配 --- */
/* --- 5. 回复输入外框:解决颜色不匹配 --- */
.cs-edit-box {
.cs-edit-box {
     background-color: var(--color-surface-3) !important;
    /* 强行匹配主卡片背景 */
     background-color: var(--color-surface-2) !important;  
     border: 1px solid var(--color-primary) !important;
     border: 1px solid var(--color-primary) !important;
     border-radius: 12px !important;
     border-radius: 8px !important;
     margin: 8px 16px 15px 60px !important;
     margin: 4px 12px 8px 40px !important;
     padding: 12px !important;
     padding: 8px !important; /* 紧凑 Padding */
}
}


/* 写字区稍微留白以保功能 */
.cs-body-edit-field {
.cs-body-edit-field {
     background-color: var(--color-surface-1) !important;
     background-color: var(--color-surface-1) !important;
     border: 1px solid var(--border-color-base) !important;
     border: 1px solid var(--border-color-base) !important;
     border-radius: 8px !important;
     min-height: 50px !important; /* 极简高度 */
     min-height: 60px !important;
    padding: 6px !important;
    margin-bottom: 6px !important;
}
 
/* --- 6. 正文间距压减 --- */
.cs-comment-body {
    padding: 8px 12px 6px 40px !important;  
}
.cs-reply-comment .cs-comment-body {
     padding: 6px 10px !important;
}
 
/* --- 7. 亮色模式强制适配补丁 --- */
html.skin-theme-clientpref-day .cs-reply-comment,
html:not(.skin-theme-clientpref-night) .cs-reply-comment {
    background-color: #f0f2f5 !important; /* 强制亮色背景 */
}
 
html.skin-theme-clientpref-day .cs-edit-box,
html:not(.skin-theme-clientpref-night) .cs-edit-box {
    background-color: #f0f2f5 !important;
}
}
/* ======================================== */
/* ======================================== */

2026年2月22日 (日) 21:09的版本

/**
 * Blockland Wiki Modern Aero UI OS26
 * 风格:Acrylic/Aero/Basic
 * 功能:全局毛玻璃、改进动效、优化搜索栏、infobox美化、评论区美化、深色模式、全局液态玻璃、全局光线追踪、自动模式兼容。
 * 版本:4.0 
 */
/* ========================= */
/* --- Section1.全局颜色 --- */
/* ========================= */
:root {
    --color-surface-0: #fafafa;
    --color-surface-1: #ffffff;
    --color-base-0: #202122;
    --color-heading: #000000;
}
html.skin-theme-clientpref-night {
    --color-surface-0: #1a1b1c !important;
    --color-surface-1: #242526 !important;
    --color-base-0: #eaecf0 !important;
    --color-heading: #ffffff !important;
    background-color: #1a1b1c !important;
}
/* =========================== */
/* --- Section2.通用毛玻璃 --- */
/* =========================== */
.citizen-menu__card,
#citizen-preferences__card,
.citizen-sticky-header-background,
.page-actions-more__card,
.citizen-dropdown .citizen-menu__card {
    background-color: rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(14px) saturate(100%) !important;
    -webkit-backdrop-filter: blur(14px) saturate(100%) !important;
    border: 1px solid rgba(128, 128, 128, 0.1) !important;
    border-radius: 12px !important;
}
html.skin-theme-clientpref-night .citizen-menu__card,
html.skin-theme-clientpref-night #citizen-preferences__card,
html.skin-theme-clientpref-night .citizen-command-palette {
    background-color: rgba(20, 20, 20, 0.3) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}
/* ============================= */
/* --- Section3.搜索面板背景 --- */
/* ============================= */
.citizen-command-palette-backdrop {
    background-color: rgba(0, 0, 0, 0.2) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    z-index: 9999 !important;
    animation: citizen-fade-in 0.3s ease forwards;
}
/* ============================= */
/* --- Section4.搜索面板主体 --- */
/* ============================= */
.citizen-command-palette {
    position: fixed !important;
    width: 1000px !important;
    max-width: 92vw !important;
    top: 50% !important;
    left: 50% !important;
    z-index: 10000 !important;
    isolation: isolate !important;
    background-color: rgba(255, 255, 255, 0.45) !important;
    backdrop-filter: blur(25px) saturate(100%) !important;
    -webkit-backdrop-filter: blur(25px) saturate(100%) !important;
    border-radius: 24px !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.25) !important;
    animation: citizen-pop-in 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) forwards !important;
    transform-origin: center center !important;
}
/* ================================= */
/* --- Section5.搜索列表填充优化 --- */
/* ================================= */
.citizen-command-palette-list {
    padding: 8px 0 !important;  
}
.citizen-command-palette-list-item {
    margin: 0 12px 6px 12px !important; 
    border-radius: 12px !important;
    overflow: hidden !important;
    border: none !important;
    display: block !important;
    transition: background-color 0.2s ease !important;
}
.citizen-command-palette-list-item__content {
    display: flex !important;
    padding: 12px 16px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    background: transparent !important;
    color: #202122 !important;
}
.citizen-command-palette-list-item__metadata {
    display: none !important;
}
.citizen-command-palette-list-item:hover,
.citizen-command-palette-list-item[aria-selected="true"] {
    background-color: rgba(0, 0, 0, 0.05) !important;
}
/* =========================== */
/* --- Section6.垃圾桶按钮 --- */
/* =========================== */
.citizen-command-palette-list-item__actions,
.citizen-command-palette-list-item__action {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    min-width: 32px !important; 
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin-left: auto !important;
}
.citizen-command-palette-list-item__action svg {
    fill: #202122 !important; 
    opacity: 0.85 !important; 
    transition: all 0.2s ease !important;
}
/* 悬停状态:浅粉色背景 + 变大红图标 */
.citizen-command-palette-list-item__action:hover {
    background-color: rgba(255, 192, 203, 0.6) !important;
    border-radius: 8px !important;
}
.citizen-command-palette-list-item__action:hover svg {
    fill: #d33 !important; 
    opacity: 1 !important;
    transform: scale(1.15) !important; 
}
/* ======================= */
/* --- Section7.搜索框 --- */
/* ======================= */
.citizen-command-palette__search,
.citizen-command-palette__results,
.citizen-command-palette__footer,
.cdx-text-input__input {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}
/* --- 动画定义 --- */
@keyframes citizen-pop-in {
    0% { opacity: 0; transform: translate(-50%, -45%) scale(0.85); }
    100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
@keyframes citizen-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}
/* ========================= */
/* --- Section8.深色模式 --- */
/* ========================= */
@media (prefers-color-scheme: dark) {
    html.skin-theme-clientpref-os body,
    html.skin-theme-clientpref-night body {
        background-color: #1a1b1c !important;
    }
    html.skin-theme-clientpref-os,
    html.skin-theme-clientpref-night {
        --color-surface-0: #1a1b1c !important;
        --color-surface-1: #242526 !important;
        --color-surface-2: #2d2e2f !important;
        --color-surface-3: #373839 !important;
        --color-base-0: #eaecf0 !important;
        --color-base-10: #f8f9fa !important;
        --color-base-20: #ffffff !important;
        --color-heading: #ffffff !important;
    }
}
html.skin-theme-clientpref-night {
    --color-surface-0: #1a1b1c !important;
    --color-surface-1: #202122 !important;
    --color-base-0: #eaecf0 !important;
    --color-heading: #ffffff !important;
    background-color: #1a1b1c !important;
}
html.skin-theme-clientpref-night .citizen-command-palette,
html.skin-theme-clientpref-night .citizen-menu__card,
html.skin-theme-clientpref-night .page-actions-more__card {
    background-color: rgba(30, 30, 30, 0.7) !important; /* 深色半透明 */
    border: 1px solid rgba(255, 255, 255, 0.1) !important; /* 微亮边框线 */
    backdrop-filter: blur(20px) saturate(150%) !important;
}
html.skin-theme-clientpref-night .citizen-command-palette-list-item:hover,
html.skin-theme-clientpref-night .citizen-command-palette-list-item[aria-selected="true"] {
    background-color: rgba(255, 255, 255, 0.1) !important;
}
html.skin-theme-clientpref-night body {
    background-color: #1a1b1c !important;
}
html.skin-theme-clientpref-day body {
    background-color: #fafafa !important; 
}
/* ========================= */
/* --- Section9.顶栏修复 --- */
/* ========================= */
.citizen-sticky-header-background {
    border-radius: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    top: 0 !important;
    border: none !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
    background-color: rgba(255, 255, 255, 0.4) !important;
    background-image: none !important; 
    backdrop-filter: blur(12px) saturate(100%) !important;
    -webkit-backdrop-filter: blur(12px) saturate(100%) !important;
}
html.skin-theme-clientpref-night .citizen-sticky-header-background {
    background-color: rgba(20, 20, 20, 0.4) !important; 
    background-image: none !important; 
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(20px) saturate(150%) !important; 
}
.citizen-sticky-header {
    border-radius: 0 !important;
    background: transparent !important; 
}
html.skin-theme-clientpref-night .citizen-sticky-header .cdx-button--weight-quiet {
    color: #eaecf0 !important;
}
html.skin-theme-clientpref-night .citizen-sticky-header-page-title,
html.skin-theme-clientpref-night .citizen-sticky-header-page-tagline {
    color: #ffffff !important;
}
/* ========================================== */
/* --- Section10.能效模式(aero/basic)适配 --- */
/* ========================================== */
/* 当 html 标签包含 performance-mode...-1 时,判定为能效模式开启。此时彻底干掉毛玻璃和动画。*/
html[class*="citizen-feature-performance-mode-clientpref-1"] {
    --citizen-backdrop-filter: none !important;
}
html[class*="citizen-feature-performance-mode-clientpref-1"] .citizen-menu__card,
html[class*="citizen-feature-performance-mode-clientpref-1"] #citizen-preferences__card,
html[class*="citizen-feature-performance-mode-clientpref-1"] .citizen-sticky-header-background,
html[class*="citizen-feature-performance-mode-clientpref-1"] .citizen-command-palette,
html[class*="citizen-feature-performance-mode-clientpref-1"] .page-actions-more__card {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background-color: var(--color-surface-1) !important; 
    animation: citizen-fade-in 0.1s ease forwards !important;
}
html[class*="citizen-feature-performance-mode-clientpref-1"] .citizen-command-palette {
    transform: translate(-50%, -50%) scale(1) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2) !important; 
}
.page-首页 .banner-image {
	--banner-image-url: url("https://cdn.jsdelivr.net/gh/KKBlockE/BlocklandPicturebed@main/main/d49dd42343ab1bfcf4efa67f62f4ecf8.png");
	--banner-image-height: 70vh;
	background-image: linear-gradient(to top, var(--color-surface-0) 15%, transparent 150%), var(--banner-image-url);
	background-size: cover;
	background-position: top;
	height: var(--banner-image-height);
	margin-bottom: calc(-1 * var(--banner-image-height));
}
/* ============================== */
/* --- Section11.标签文字修改 --- */
/* ============================== */
label[for="skin-client-pref-citizen-feature-performance-mode-value-1"],
label[for="skin-client-pref-citizen-feature-performance-mode-value-0"] {
    color: transparent !important; 
    position: relative !important;
    min-width: 80px !important;    
    text-align: center !important;
}
label[for="skin-client-pref-citizen-feature-performance-mode-value-0"]::after {
    content: "Aero" !important;
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    color: var(--color-base-0) !important; 
    font-size: 0.9rem !important;
    font-weight: bold !important;
    visibility: visible !important;
}

/* 注入 Basic */
label[for="skin-client-pref-citizen-feature-performance-mode-value-1"]::after {
    content: "Basic" !important;
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    color: var(--color-base-0) !important;
    font-size: 0.9rem !important;
    font-weight: bold !important;
    visibility: visible !important;
}
.citizen-menu #skin-client-pref-citizen-feature-performance-mode-group {
}
#citizen-preferences__card .mw-portlet.mw-portlet-performance-mode-group .citizen-menu__heading,
#citizen-preferences__card .citizen-menu:nth-last-child(1) .citizen-menu__heading {
    font-size: 0 !important;
}
#citizen-preferences__card .mw-portlet.mw-portlet-performance-mode-group .citizen-menu__heading::before,
#citizen-preferences__card .citizen-menu:nth-last-child(1) .citizen-menu__heading::before {
    content: "主题" !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    color: var(--color-primary) !important; 
    visibility: visible !important;
}
/* ============================ */
/* --- Section12.首页Banner --- */
/* ============================ */
/* 创建一个全宽容器的类,用于包裹Banner */
.full-width-banner {
    width: 100vw;							 /* 视口宽度 */
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    overflow: hidden;
/* 下面是 Banner 的高度和背景设置 */
    height: 400px;							 /* 你想要的高度 */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;							 /* 文字颜色 */
    text-shadow: 0 2px 10px rgba(0,0,0,0.7); /* 文字阴影,防止背景太亮看不清 */
    z-index: 1; 							 /* 确保不被底层遮挡 */
    background-repeat: no-repeat;			 /* 防止图片重复 */
    background-color: #2a2a2a;				 /* 给一个深灰色底,图片加载失败时保底 */
}
.banner-content {
    max-width: 1200px;						 /* 内容最大宽度,保持中间对齐 */
    padding: 20px;
    text-align: center;
}
/* ==================================== */
/* --- Section13.搜索页面搜索栏优化 --- */
/* ==================================== */
.page-特殊_搜索 .oo-ui-layout.oo-ui-labelElement.oo-ui-actionFieldLayout,
.page-特殊_搜索 .oo-ui-fieldLayout.oo-ui-labelElement,
.page-特殊_搜索 .mw-widgets-titleInputWidget,
.page-特殊_搜索 .mw-widget-searchInputWidget {
    max-width: none !important; 
    width: 100% !important;   
    display: flex !important;  
}
.page-特殊_搜索 .mw-search-form-wrapper, 
.page-特殊_搜索 #mw-search-top-table, 
.page-特殊_搜索 .oo-ui-fieldLayout-field {
    width: 100% !important;
    max-width: none !important;
}
.page-特殊_搜索 .oo-ui-actionFieldLayout-input {
    flex: 1 1 auto !important; 
    width: 100% !important;   
}
.page-特殊_搜索 .oo-ui-actionFieldLayout-input .oo-ui-inputWidget-input {
    height: 48px !important;
    width: 100% !important;
    padding-left: 45px !important;
    border-radius: 12px 0 0 12px !important;
    box-sizing: border-box !important;
}
.page-特殊_搜索 .oo-ui-actionFieldLayout-button {
    flex: 0 0 auto !important; 
    width: auto !important;
}
.page-特殊_搜索 .oo-ui-actionFieldLayout-button .oo-ui-buttonElement-button {
    height: 48px !important;
    min-width: 120px !important;
    padding: 0 30px !important;
    border-radius: 0 12px 12px 0 !important;
    box-sizing: border-box !important;
}
/* ================================== */
/* --- Section14.设置菜单选项重排 --- */
/* ================================== */

/* 激活容器布局 */
#citizen-preferences-content {
    display: flex !important;
    flex-direction: column !important;
}
/* 1. 文字 */
#skin-client-prefs-citizen-feature-custom-font-size {
    order: 1 !important;
}
/* 2. 宽度 */
#skin-client-prefs-citizen-feature-custom-width {
    order: 2 !important;
}
/* 3. 纯黑模式 (移动到颜色上方) */
#skin-client-prefs-citizen-feature-pure-black {
    order: 3 !important;
}
/* 4. 颜色 (移动到纯黑下方) */
#skin-client-prefs-skin-theme {
    order: 4 !important;
}
/* 5. 自动隐藏导航 */
#skin-client-prefs-citizen-feature-autohide-navigation {
    order: 5 !important;
}
/* 6. 效能模式 (Aero/Basic) */
#skin-client-prefs-citizen-feature-performance-mode {
    order: 6 !important;
}
/* ==================================== */
/* --- Section15.Infobox 信息框美化 --- */
/* ==================================== */
.infobox {
    background: transparent !important; 
    color: var(--color-base-0) !important;
    border: none !important;
    border-radius: 12px !important;
    backdrop-filter: blur(10px);
    border-collapse: separate !important; 
    border-spacing: 0 !important; 
}
.infobox th, 
.infobox td {
    background-color: transparent !important; 
    color: var(--color-base-0) !important;
    padding: 8px 5px !important; 
    line-height: 1.4 !important;
    border-top: none !important; 
}
.infobox tr:not(:last-child) th,
.infobox tr:not(:last-child) td {
    border-bottom: 1px solid rgba(128, 128, 128, 0.15) !important;
}
html.skin-theme-clientpref-night .infobox tr:not(:last-child) th,
html.skin-theme-clientpref-night .infobox tr:not(:last-child) td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}
.infobox th[colspan="2"] {
    background-color: var(--color-primary-opacity-10, rgba(54, 121, 204, 0.1)) !important;
    color: var(--color-primary, #36c) !important;
}
.infobox .mw-file-description img { background: transparent !important; }
.infobox {
    position: relative !important;
    z-index: 10 !important; 
}

/* ===================================== */
/* === Section16.14 评论流极致紧凑版 === */
/* ===================================== */

/* --- 1. 容器流:极致紧凑 --- */
.cs-stream {
    display: block !important;
    background-color: var(--color-surface-1) !important;
    border: 1px solid var(--border-color-base) !important;
    border-radius: 12px !important; /* 缩小圆角更显硬核 */
    margin-bottom: 12px !important; /* 缩小外部间距 */
    padding: 0 !important;
}

/* --- 2. 头部适配:贴合顶部 --- */
.cs-comment-header {
    display: flex !important;
    padding: 6px 12px !important; /* 极窄高度 */
    background: rgba(128, 128, 128, 0.08) !important; 
    border-bottom: 1px solid var(--border-color-base) !important;
}

/* --- 3. 次级评论:解决背景颜色与间距 --- */
.cs-reply-comment {
    /* 强行锁定背景色:亮色下极浅蓝灰,暗色下深灰 */
    background-color: var(--color-surface-2) !important; 
    border: 1px solid var(--border-color-base) !important;
    border-radius: 8px !important;
    /* 缩小左侧缩进,增加紧凑感 */
    margin: 4px 12px 6px 40px !important; 
    padding: 0 !important;
    overflow: hidden;
}

/* 让次级评论的头部也贴紧 */
.cs-reply-comment .cs-comment-header {
    padding: 4px 10px !important;
    background: rgba(0, 0, 0, 0.05) !important;
}

/* --- 4. 回复按钮:颜色匹配背景 --- */
.cs-stream-footer {
    padding: 0 12px 8px 40px !important; /* 缩减底部留白 */
    background: transparent !important;
}

/* 隐藏图标 */
.cs-stream-footer .oo-ui-iconElement-icon { display: none !important; }

.cs-stream-footer .oo-ui-buttonElement-button {
    /* 核心:让按钮背景完全匹配它所在的背板颜色 */
    background-color: var(--color-surface-3, rgba(128,128,128,0.1)) !important; 
    color: var(--color-primary) !important;
    border: none !important;
    border-radius: 4px !important;
    padding: 0px 10px !important; /* 极窄按钮 */
    height: 22px !important; /* 固定高度 */
    line-height: 22px !important;
}

/* --- 5. 回复输入外框:解决颜色不匹配 --- */
.cs-edit-box {
    /* 强行匹配主卡片背景 */
    background-color: var(--color-surface-2) !important; 
    border: 1px solid var(--color-primary) !important;
    border-radius: 8px !important;
    margin: 4px 12px 8px 40px !important;
    padding: 8px !important; /* 紧凑 Padding */
}

/* 写字区稍微留白以保功能 */
.cs-body-edit-field {
    background-color: var(--color-surface-1) !important;
    border: 1px solid var(--border-color-base) !important;
    min-height: 50px !important; /* 极简高度 */
    padding: 6px !important;
    margin-bottom: 6px !important;
}

/* --- 6. 正文间距压减 --- */
.cs-comment-body {
    padding: 8px 12px 6px 40px !important; 
}
.cs-reply-comment .cs-comment-body {
    padding: 6px 10px !important;
}

/* --- 7. 亮色模式强制适配补丁 --- */
html.skin-theme-clientpref-day .cs-reply-comment,
html:not(.skin-theme-clientpref-night) .cs-reply-comment {
    background-color: #f0f2f5 !important; /* 强制亮色背景 */
}

html.skin-theme-clientpref-day .cs-edit-box,
html:not(.skin-theme-clientpref-night) .cs-edit-box {
    background-color: #f0f2f5 !important;
}
/* ======================================== */
/* --- Section17.Infobox 标题卡片化补丁 --- */
/* ======================================== */
.infobox {
    display: flex !important;     
    flex-direction: column !important; 
    border: none !important;          
    background: transparent !important; 
    box-shadow: none !important;
}
.infobox .infobox-title {
    display: block !important;
    order: -1 !important;          
    width: 100% !important;       
    box-sizing: border-box !important;
    margin: 0 0 12px 0 !important;
    padding: 16px 12px !important;
    border-radius: 12px !important; 
    overflow: hidden !important; 
    border: 1px solid rgba(128, 128, 128, 0.3) !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1) !important;
    
    text-align: center !important;
    line-height: 1.5 !important;
    font-size: 1.2rem !important;
}
caption.infobox-title {
    caption-side: top !important;
}
.infobox tbody {
    display: table !important;
    width: 100% !important;
    border: 1px solid rgba(128, 128, 128, 0.3) !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    background: var(--color-surface-1) !important;
}
/* ======================================= */
/* --- Section18.暗色模式 Infobox 修复 --- */
/* ======================================= */
html.skin-theme-clientpref-night .infobox .infobox-title {
    filter: brightness(1) contrast(0.5) !important;
    color: #ffffff !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5) !important;
    opacity: 0.9;
}
html.skin-theme-clientpref-night .infobox .infobox-title[style*="background"] {
    background-blend-mode: multiply !important;
    background-color: rgba(0, 0, 0, 0.4) !important;
}
html[class*="citizen-feature-performance-mode-clientpref-1"].skin-theme-clientpref-night .infobox .infobox-title {
    filter: none !important;
    background-color: #2a2a2a !important;
    color: #eaecf0 !important;
}
/* ====================================== */
/* --- Section19.通知中心毛玻璃与动效 --- */
/* ====================================== */

/* 1. 外层容器:禁用原有动画和滤镜 */
.mw-echo-ui-notificationBadgeButtonPopupWidget-popup {
    animation: none !important;
    filter: none !important;  /* 关键修复:移除 drop-shadow */
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* 2. 主弹窗容器:毛玻璃 */
.mw-echo-ui-notificationBadgeButtonPopupWidget-popup .oo-ui-popupWidget-popup {
    background-color: rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(14px) saturate(100%) !important;
    -webkit-backdrop-filter: blur(14px) saturate(100%) !important;
    border: 1px solid rgba(128, 128, 128, 0.1) !important;
    border-radius: 16px !important;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.12), 
        0 1px 2px rgba(0, 0, 0, 0.05) !important;
    /* 删除这行:overflow: hidden !important; */
    
    /* 为光效伪元素定位 */
    position: relative !important;
}

/* 3. 液态玻璃 - 边框光效 */
.mw-echo-ui-notificationBadgeButtonPopupWidget-popup .oo-ui-popupWidget-popup::before {
    content: "" !important;
    display: block !important;
    position: absolute !important;
    inset: -1px !important;
    border: 2px solid transparent !important;
    border-radius: 17px !important;
    background: radial-gradient(
        180px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), 
        rgba(255, 255, 255, 1.0) 0%,
        rgba(255, 255, 255, 0.4) 40%, 
        transparent 80%
    ) border-box !important;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0) !important;
    -webkit-mask-clip: content-box, border-box !important;
    -webkit-mask-composite: source-out !important;
    mask-composite: subtract !important;
    mix-blend-mode: screen !important;
    z-index: 10 !important;
    pointer-events: none !important;
}

/* 4. 液态玻璃 - 面光效 */
.mw-echo-ui-notificationBadgeButtonPopupWidget-popup .oo-ui-popupWidget-popup::after {
    content: "" !important;
    display: block !important;
    position: absolute !important;
    inset: 0 !important;
    border-radius: 16px !important;
    background: radial-gradient(
        400px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), 
        rgba(255, 255, 255, 0.35) 0%,   
        transparent 70%
    ) !important;
    mix-blend-mode: soft-light !important;
    z-index: 1 !important;
    pointer-events: none !important;
}

/* 5. 内部元素透明 */
.mw-echo-ui-notificationBadgeButtonPopupWidget-popup .oo-ui-popupWidget-head,
.mw-echo-ui-notificationBadgeButtonPopupWidget-popup .oo-ui-popupWidget-body,
.mw-echo-ui-notificationBadgeButtonPopupWidget-popup .oo-ui-popupWidget-footer,
.mw-echo-ui-notificationBadgeButtonPopupWidget-popup .oo-ui-clippableElement-clippable,
.mw-echo-ui-notificationBadgeButtonPopupWidget-popup .mw-echo-ui-notificationsListWidget,
.mw-echo-ui-notificationBadgeButtonPopupWidget-popup .mw-echo-ui-placeholderItemWidget {
    background: transparent !important;
    background-color: transparent !important;
    border-color: rgba(0, 0, 0, 0.05) !important;
}
/* 5.5. 滚动容器单独设置 overflow */
.mw-echo-ui-notificationBadgeButtonPopupWidget-popup .oo-ui-popupWidget-body,
.mw-echo-ui-notificationBadgeButtonPopupWidget-popup .oo-ui-clippableElement-clippable {
    overflow-y: auto !important;
    overflow-x: hidden !important;
}
/* 6. 底部按钮 */
.mw-echo-ui-notificationBadgeButtonPopupWidget-footer-buttons .oo-ui-buttonElement-button {
    background-color: rgba(255, 255, 255, 0.3) !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-radius: 8px !important;
    transition: background-color 0.2s ease, box-shadow 0.2s ease !important;
}

.mw-echo-ui-notificationBadgeButtonPopupWidget-footer-buttons .oo-ui-buttonElement-button:hover {
    background-color: rgba(255, 255, 255, 0.5) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

/* 7. 通知项悬停 */
.mw-echo-ui-notificationItemWidget {
    background: transparent !important;
    transition: background-color 0.2s ease !important;
}

.mw-echo-ui-notificationItemWidget:hover {
    background-color: rgba(0, 0, 0, 0.03) !important;
}

/* 8. 隐藏原版箭头(可选,如果有的话) */
.mw-echo-ui-notificationBadgeButtonPopupWidget-popup .oo-ui-popupWidget-anchor {
    display: none !important;
}

/* ====================================== */
/* --- 深色模式 --- */
/* ====================================== */

html.skin-theme-clientpref-night .mw-echo-ui-notificationBadgeButtonPopupWidget-popup .oo-ui-popupWidget-popup {
    background-color: rgba(20, 20, 20, 0.3) !important;
    backdrop-filter: blur(14px) saturate(100%) !important;
    -webkit-backdrop-filter: blur(14px) saturate(100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4) !important;
}

html.skin-theme-clientpref-night .mw-echo-ui-notificationBadgeButtonPopupWidget-popup .oo-ui-popupWidget-popup::after {
    background: radial-gradient(
        400px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), 
        rgba(255, 255, 255, 0.1) 0%,  
        transparent 70%
    ) !important;
}

html.skin-theme-clientpref-night .mw-echo-ui-notificationBadgeButtonPopupWidget-popup .oo-ui-popupWidget-popup::before {
    background: radial-gradient(
        180px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), 
        rgba(255, 255, 255, 0.8) 0%, 
        transparent 80%
    ) border-box !important;
}

html.skin-theme-clientpref-night .mw-echo-ui-notificationBadgeButtonPopupWidget-footer-buttons .oo-ui-buttonElement-button {
    background-color: rgba(255, 255, 255, 0.1) !important; 
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

html.skin-theme-clientpref-night .mw-echo-ui-notificationBadgeButtonPopupWidget-footer-buttons .oo-ui-buttonElement-button:hover {
    background-color: rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

html.skin-theme-clientpref-night .mw-echo-ui-notificationBadgeButtonPopupWidget-footer-buttons .oo-ui-labelElement-label,
html.skin-theme-clientpref-night .mw-echo-ui-notificationBadgeButtonPopupWidget-footer-buttons .oo-ui-iconElement-icon {
    color: #eaecf0 !important;
}

html.skin-theme-clientpref-night .mw-echo-ui-notificationItemWidget:hover {
    background-color: rgba(255, 255, 255, 0.05) !important;
}

/* ====================================== */
/* --- 自动深色模式 --- */
/* ====================================== */

@media (prefers-color-scheme: dark) {
    html.skin-theme-clientpref-os .mw-echo-ui-notificationBadgeButtonPopupWidget-popup .oo-ui-popupWidget-popup {
        background-color: rgba(20, 20, 20, 0.3) !important;
        backdrop-filter: blur(14px) saturate(100%) !important;
        -webkit-backdrop-filter: blur(14px) saturate(100%) !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
    }
    
    html.skin-theme-clientpref-os .mw-echo-ui-notificationBadgeButtonPopupWidget-popup .oo-ui-popupWidget-popup::after {
        background: radial-gradient(
            400px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), 
            rgba(255, 255, 255, 0.1) 0%,  
            transparent 70%
        ) !important;
    }
    
    html.skin-theme-clientpref-os .mw-echo-ui-notificationBadgeButtonPopupWidget-footer-buttons .oo-ui-buttonElement-button {
        background-color: rgba(255, 255, 255, 0.1) !important;
    }
    
    html.skin-theme-clientpref-os .mw-echo-ui-notificationItemWidget:hover {
        background-color: rgba(255, 255, 255, 0.05) !important;
    }
}

/* ====================================== */
/* --- 性能模式 --- */
/* ====================================== */

html[class*="citizen-feature-performance-mode-clientpref-1"] .mw-echo-ui-notificationBadgeButtonPopupWidget-popup .oo-ui-popupWidget-popup {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background-color: var(--color-surface-1) !important;
    border: 1px solid var(--border-color-base) !important;
}

html[class*="citizen-feature-performance-mode-clientpref-1"] .mw-echo-ui-notificationBadgeButtonPopupWidget-popup .oo-ui-popupWidget-popup::before,
html[class*="citizen-feature-performance-mode-clientpref-1"] .mw-echo-ui-notificationBadgeButtonPopupWidget-popup .oo-ui-popupWidget-popup::after {
    display: none !important;
}
/* ====================================== */
/* --- Section19.通知面板动画基础设置 --- */
/* ====================================== */

/* 移除所有可能干扰 JS 的默认过渡 */
.mw-echo-ui-notificationBadgeButtonPopupWidget-popup .oo-ui-popupWidget-popup {
    transition: none !important;
    will-change: opacity, transform;
    /* 解决毛玻璃边缘闪烁 */
    backface-visibility: hidden;
}

/* 确保容器不会剪裁掉动画过程中的阴影 */
.mw-echo-ui-notificationBadgeButtonPopupWidget-popup {
    overflow: visible !important;
}
/* ============================================ */
/* --- Section20.最后修改时间背景毛玻璃填充 --- */
/* ============================================ */
#citizen-sidebar-lastmod.citizen-menu {
    background-color: rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(12px) saturate(100%) !important;
    -webkit-backdrop-filter: blur(12px) saturate(100%) !important;
    border-radius: 12px !important;
    border: none !important;
    padding: 4px !important;
    margin-top: 5px !important;
    width: fit-content !important;
    background-image: none !important;
}
html.skin-theme-clientpref-night #citizen-sidebar-lastmod.citizen-menu {
    background-color: rgba(20, 20, 20, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}
html[class*="citizen-feature-performance-mode-clientpref-1"] #citizen-sidebar-lastmod.citizen-menu {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background-color: var(--color-surface-1) !important; 
    border: 1px solid var(--border-color-base, rgba(20,20,20,0.2)) !important;
    box-shadow: none !important;
}
#citizen-sidebar-lastmod #citizen-lastmod-relative {
    text-decoration: none !important;
    color: var(--color-base-0) !important;
    font-weight: 400;
}
/* =========================================== */
/* --- Section21.国家Infobox悬浮毛玻璃补丁 --- */
/* =========================================== */
/* 1. 穿透表格层级,强制透明背景 */
.infobox.ve-infobox-country,
.infobox.ve-infobox-country tbody,
.infobox.ve-infobox-country tr,
.infobox.ve-infobox-country th,
.infobox.ve-infobox-country td {
    background-color: transparent !important;
    border-color: rgba(128, 128, 128, 0.1) !important;
}
/* 2. 主体容器注入毛玻璃 */
.infobox.ve-infobox-country {
    background: rgba(255, 255, 255, 0.2) !important; /* 浅色半透明基底 */
    backdrop-filter: blur(15px) saturate(160%) !important;
    -webkit-backdrop-filter: blur(15px) saturate(160%) !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15) !important;
    border-radius: 16px !important;
    overflow: hidden; /* 确保毛玻璃不超出圆角 */
    padding: 0 !important;
    border-collapse: collapse !important;
}
/* 3. 针对“凯特共和国”标题行的特殊处理 */
.infobox.ve-infobox-country .infobox-above {
    background: rgba(204, 238, 255, 0.5) !important; /* 调低 HTML 里 #CCEEFF 的浓度 */
    text-shadow: 0 1px 4px rgba(255, 255, 255, 0.5);
    border-bottom: 1px solid rgba(128, 128, 128, 0.1) !important;
    font-weight: bold;
}
.infobox.ve-infobox-country .infobox-header {
    background-color: rgba(204, 238, 255, 0.2) !important; /* 极淡的遮罩区分区块 */
    backdrop-filter: brightness(1.1);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.85rem;
}
/* 深色模式适配 */
html.skin-theme-clientpref-night .infobox.ve-infobox-country {
    background: rgba(20, 20, 20, 0.2) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5) !important;
}
html.skin-theme-clientpref-night .infobox.ve-infobox-country .infobox-above {
    background: rgba(54, 121, 204, 0.3) !important;
    color: #fff !important;
}
.infobox.ve-infobox-country .infobox-image img {
    background: transparent !important;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}
/* ================================================= */
/* --- Section22.修复 Infobox 顶栏间隙与露底问题 --- */
/* ================================================= */
.infobox.ve-infobox-country tbody {
    background-color: transparent !important;
    border: none !important;
}
.infobox.ve-infobox-country {
    border-spacing: 0 !important;
    border-collapse: separate !important; 
    background-color: transparent !important;
}
.infobox.ve-infobox-country .infobox-above {
    margin: 0 !important;
    border-top-left-radius: 12px !important; 
    border-top-right-radius: 12px !important;
    border: none !important;
    display: table-cell !important; 
}
.infobox.ve-infobox-country tr:first-child th,
.infobox.ve-infobox-country tr:first-child td {
    border-top: none !important;
}
/* ================================================= */
/* --- Section23.恢复中段标题颜色(Section 15 17) --- */
/* ================================================= */
.infobox.ve-infobox-country .infobox-header {
    background-color: rgba(54, 121, 204, 0.1) !important; 
    color: var(--color-primary, #36c) !important;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    font-weight: bold !important;
    text-align: center !important;
    border-top: 1px solid rgba(128, 128, 128, 0.1) !important;
    border-bottom: 1px solid rgba(128, 128, 128, 0.1) !important;
}
html.skin-theme-clientpref-night .infobox.ve-infobox-country .infobox-header {
    background-color: rgba(54, 121, 204, 0.1) !important;
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}
/* ==================================== */
/* --- Section24.Basic 模式扩展补丁 --- */
/* ==================================== */
html[class*="citizen-feature-performance-mode-clientpref-1"] .infobox.ve-infobox-country {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background-color: var(--color-surface-1, #ffffff) !important;
    border: 1px solid rgba(128, 128, 128, 0.3) !important;
    box-shadow: none !important;
}
html[class*="citizen-feature-performance-mode-clientpref-1"] .infobox.ve-infobox-country .infobox-above {
    background-color: #CCEEFF !important;
    color: #004466 !important;
    text-shadow: none !important;
}
html[class*="citizen-feature-performance-mode-clientpref-1"] .infobox.ve-infobox-country .infobox-header {
    background-color: #F3F3F3 !important;
    color: var(--color-base-0) !important;
    backdrop-filter: none !important;
    border-top: 1px solid #ddd !important;
    border-bottom: 1px solid #ddd !important;
}
html[class*="citizen-feature-performance-mode-clientpref-1"].skin-theme-clientpref-night .infobox.ve-infobox-country {
    background-color: #242526 !important; 
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}
html[class*="citizen-feature-performance-mode-clientpref-1"].skin-theme-clientpref-night .infobox.ve-infobox-country .infobox-above {
    background-color: #1a3a5a !important; 
    color: #ffffff !important;
}
html[class*="citizen-feature-performance-mode-clientpref-1"].skin-theme-clientpref-night .infobox.ve-infobox-country .infobox-header {
    background-color: #2a2a2a !important;
    color: #eaecf0 !important;
}
html[class*="citizen-feature-performance-mode-clientpref-1"].skin-theme-clientpref-night .infobox.ve-infobox-country tr th,
html[class*="citizen-feature-performance-mode-clientpref-1"].skin-theme-clientpref-night .infobox.ve-infobox-country tr td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}
html[class*="citizen-feature-performance-mode-clientpref-1"].skin-theme-clientpref-night .infobox.ve-infobox-country tr:last-child th,
html[class*="citizen-feature-performance-mode-clientpref-1"].skin-theme-clientpref-night .infobox.ve-infobox-country tr:last-child td {
    border-bottom: none !important;
}
html[class*="citizen-feature-performance-mode-clientpref-1"].skin-theme-clientpref-night .infobox.ve-infobox-country .infobox-header {
    border-top: 1px solid rgba(0, 0, 0, 0.3) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.3) !important;
}
/* ================================================= */
/* --- 液态玻璃实现基础代码基于mediawiki兼容代码 --- */
/* ================================================= */
.citizen-menu__card, 
.citizen-toc-card, 
#mw-panel-toc, 
.citizen-command-palette, 
.infobox {
    position: relative;
    background-image: none !important;
    opacity: 1 !important;
}
.citizen-menu__card::before,
.citizen-toc-card::before,
#mw-panel-toc::before, 
.citizen-command-palette::before,
.infobox::before {
    content: "" !important;
    position: absolute;
    inset: -1px;
    border: 2px solid transparent;
    background: radial-gradient(
        200px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), 
        rgba(255, 255, 255, 0.9) 0%,   
        rgba(255, 255, 255, 0.3) 40%, 
        transparent 80%
    ) border-box !important;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-clip: content-box, border-box;
    -webkit-mask-composite: source-out; 
    mask-composite: subtract;
    mix-blend-mode: overlay; 
    z-index: 10;
    pointer-events: none;
}
.citizen-menu__card::after,
.citizen-toc-card::after,
#mw-panel-toc::after,
.citizen-command-palette::after,
.infobox::after {
    content: "" !important;
    position: absolute;
    inset: 0;
    background: radial-gradient(
        500px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), 
        rgba(255, 255, 255, 0.35) 0%,   /* 亮色模式 0.35 */
        transparent 75%
    ) !important;
    mix-blend-mode: soft-light;
    z-index: 1;
    pointer-events: none;
}
html.skin-theme-clientpref-night .citizen-menu__card::after,
html.skin-theme-clientpref-night .citizen-toc-card::after,
html.skin-theme-clientpref-night #mw-panel-toc::after,
html.skin-theme-clientpref-night .citizen-command-palette::after,
html.skin-theme-clientpref-night .infobox::after {
    background: radial-gradient(
        500px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), 
        rgba(255, 255, 255, 0.1) 0%,  
        transparent 75%
    ) !important;
}
html.skin-theme-clientpref-night #mw-panel-toc,
html.skin-theme-clientpref-night .citizen-menu__card {
    background-color: rgba(20, 20, 20, 0.7) !important;
}
#mw-panel-toc {
    overflow: hidden !important; 
    box-shadow: none !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important; 
}
#mw-panel-toc::before {
    content: "" !important;
    position: absolute !important;
    inset: 0px !important;     
    border: 1.2px solid transparent !important;
    mix-blend-mode: screen !important; 
    background: radial-gradient(
        150px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), 
        rgba(255, 255, 255, 1) 0%, 
        rgba(255, 255, 255, 0.4) 60%, 
        transparent 100%
    ) border-box !important;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-clip: content-box, border-box;
    -webkit-mask-composite: source-out; 
    mask-composite: subtract;
    z-index: 10 !important;
    pointer-events: none;
}
#mw-panel-toc::after {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    background: radial-gradient(
        250px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), 
        rgba(255, 255, 255, 0.25) 0%, 
        transparent 80%
    ) !important;
    mix-blend-mode: soft-light !important;
    z-index: 1 !important;
}
/* ===================================================== */
/* --- Panel Specific Light Boost (弹出面板专项增强) --- */
/* ===================================================== */
.citizen-menu__card::before {
    mix-blend-mode: screen !important; 
    background: radial-gradient(
        180px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), 
        rgba(255, 255, 255, 1.0) 0%,
        rgba(255, 255, 255, 0.6) 40%, 
        transparent 80%
    ) border-box !important;
    opacity: 1 !important;
}
.citizen-menu__card::after {
    background: radial-gradient(
        400px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), 
        rgba(255, 255, 255, 0.4) 0%,   
        transparent 70%
    ) !important;
}
html.skin-theme-clientpref-night .citizen-menu__card::before {
    background: radial-gradient(
        200px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), 
        rgba(255, 255, 255, 0.8) 0%, 
        transparent 80%
    ) border-box !important;
}
#citizen-sidebar-lastmod {
    position: relative;
    overflow: hidden; 
    background: rgba(255, 255, 255, 0.4) !important;
    backdrop-filter: blur(20px) saturate(160%) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 16px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1) !important;
}
html.skin-theme-clientpref-night #citizen-sidebar-lastmod {
    background: rgba(20, 20, 20, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}
#citizen-sidebar-lastmod::before {
    content: "" !important;
    position: absolute;
    inset: -1px;
    border: 2.4px solid transparent;
    background: radial-gradient(
        150px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), 
        rgba(255, 255, 255, 1) 0%,    
        rgba(255, 255, 255, 0.4) 60%, 
        transparent 100%
    ) border-box !important;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-clip: content-box, border-box;
    -webkit-mask-composite: source-out; 
    mask-composite: subtract;
    mix-blend-mode: screen; 
    z-index: 10;
    pointer-events: none;
}
html.citizen-feature-performance-mode-clientpref-1 #citizen-sidebar-lastmod::before {
    display: none !important;
}
/* ====================================== */
/* --- Basic 模式强力回退:彻底实体化 --- */
/* ====================================== */
html.skin-citizen-basic #mw-panel-toc,
html.skin-citizen-basic .citizen-menu__card,
html.skin-citizen-basic .citizen-toc-card {
    background-color: var(--color-surface-2) !important; 
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    opacity: 1 !important;
    box-shadow: var(--box-shadow-card) !important;
}
html.skin-citizen-basic #mw-panel-toc::before,
html.skin-citizen-basic #mw-panel-toc::after,
html.skin-citizen-basic .citizen-menu__card::before,
html.skin-citizen-basic .citizen-menu__card::after {
    display: none !important;
    content: none !important;
}
html.citizen-feature-performance-mode-clientpref-1 #mw-panel-toc,
html.citizen-feature-performance-mode-clientpref-1 .citizen-menu__card,
html.citizen-feature-performance-mode-clientpref-1 .citizen-toc-card,
html.citizen-feature-performance-mode-clientpref-1 .citizen-command-palette,
html.citizen-feature-performance-mode-clientpref-1 .infobox {
    background-color: #ffffff !important; 
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    opacity: 1 !important;
    border: 1px solid var(--color-border) !important;
    box-shadow: var(--box-shadow-card) !important;
}
html.citizen-feature-performance-mode-clientpref-1.skin-theme-clientpref-night #mw-panel-toc,
html.citizen-feature-performance-mode-clientpref-1.skin-theme-clientpref-night .citizen-menu__card {
    background-color: #1a1a1a !important; 
}
html.citizen-feature-performance-mode-clientpref-1 #mw-panel-toc::before,
html.citizen-feature-performance-mode-clientpref-1 #mw-panel-toc::after,
html.citizen-feature-performance-mode-clientpref-1 .citizen-menu__card::before,
html.citizen-feature-performance-mode-clientpref-1 .citizen-menu__card::after,
html.citizen-feature-performance-mode-clientpref-1 .citizen-toc-card::before,
html.citizen-feature-performance-mode-clientpref-1 .citizen-toc-card::after {
    display: none !important;
    content: none !important;
    visibility: hidden !important;
}
/* ============================================ */
/* --- Section25.Ambox 通知框 Aero 适配补丁 --- */
/* ============================================ */
table.ambox {
    background-color: rgba(255, 255, 255, 0.25) !important; 
    backdrop-filter: blur(12px) saturate(120%) !important;
    -webkit-backdrop-filter: blur(12px) saturate(120%) !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    border-left-width: 8px !important; 
    border-radius: 12px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
    margin: 10px 10% !important; 
    width: 80% !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
table.ambox:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1) !important;
}
html.skin-theme-clientpref-night table.ambox {
    background-color: rgba(30, 30, 30, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-left-width: 8px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
}
html[class*="citizen-feature-performance-mode-clientpref-1"] table.ambox {
    backdrop-filter: none !important;
    background-color: var(--color-surface-2) !important;
    border: 1px solid var(--border-color-base) !important;
    border-left-width: 8px !important;
    box-shadow: none !important;
    transform: none !important;
}
table.ambox td.ambox-text {
    color: var(--color-base-0) !important;
}
/* ===================================== */
/* --- Section26.Player Box ero 样式 --- */
/* ===================================== */
.infobox-player-header {
    background: linear-gradient(90deg, rgba(54, 121, 204, 0.1), transparent) !important;
    border-radius: 8px;
    padding: 5px !important;
    margin-bottom: 5px !important;
}

/* ================================ */
/* --- Section27.全局光效注册表 --- */
/* ================================ */
table.ambox {
    position: relative !important;
    overflow: hidden !important; 
}
table.ambox::before {
    content: "" !important;
    position: absolute;
    inset: -1px;
    border: 2px solid transparent;
    background: radial-gradient(
        200px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), 
        rgba(255, 255, 255, 0.8) 0%,    
        rgba(255, 255, 255, 0.2) 40%, 
        transparent 80%
    ) border-box !important;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-clip: content-box, border-box;
    -webkit-mask-composite: source-out; 
    mask-composite: subtract;
    mix-blend-mode: overlay; 
    z-index: 10;
    pointer-events: none;
}
table.ambox::after {
    content: "" !important;
    position: absolute;
    inset: 0;
    background: radial-gradient(
        400px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), 
        rgba(255, 255, 255, 0.2) 0%, 
        transparent 70%
    ) !important;
    mix-blend-mode: soft-light;
    z-index: 1;
    pointer-events: none;
}
html.skin-theme-clientpref-night table.ambox::after {
    background: radial-gradient(
        400px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), 
        rgba(255, 255, 255, 0.08) 0%, 
        transparent 70%
    ) !important;
}
html[class*="citizen-feature-performance-mode-clientpref-1"] table.ambox::before,
html[class*="citizen-feature-performance-mode-clientpref-1"] table.ambox::after {
    display: none !important;
}
/* ================================= */
/* --- 特殊 Infobox 保持边缘贴合 --- */
/* ================================= */
.infobox::before {
    inset: 0 !important; 
    border-radius: 14px !important;
    border: 1.5px solid transparent !important;
}
table.infobox[style*="background"]::before,
table.infobox[style*="width"]::before {
    inset: 3px !important;
    border: 2px solid transparent !important;
}
.infobox {
    border-radius: 20px !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    overflow: hidden !important;
}
.infobox::before,
table.infobox::before {
    border-radius: 14px !important; 
}
.infobox .infobox-above,
.infobox tr:first-child th,
.infobox tr:first-child td {
    border-top-left-radius: 12px !important;
    border-top-right-radius: 12px !important;
}

.infobox tr:last-child td,
.infobox tr:last-child th {
    border-bottom-left-radius: 12px !important;
    border-bottom-right-radius: 12px !important;
}
table.infobox[style*="background"]::after,
table.infobox[style*="width"]::after {
    inset: 3px !important; 
    border-radius: 20px !important;
}
/* ======================================= */
/* --- 修复 Basic Infobox 中间过亮问题 --- */
/* ======================================= */
html.skin-theme-clientpref-night table.infobox[style*="background"]::after {
    background: radial-gradient(
        400px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), 
        rgba(255, 255, 255, 0.2) 0%, 
        transparent 70%
    ) !important;
    mix-blend-mode: soft-light !important; 
}
html.skin-theme-clientpref-night table.infobox {
    background-color: rgba(40, 40, 40, 0.0) !important; 
}
#citizen-sidebar-lastmod,
#citizen-sidebar-lastmod .citizen-menu__card {
    box-shadow: none !important;
    border: 1px solid rgba(128, 128, 128, 0.2);
}
/* ==================== */
/* ==================== */
/* --- 自动模式修复 --- */
/* ==================== */
/* ==================== */
@media (prefers-color-scheme: dark) {
    html.skin-theme-clientpref-os {
        --color-surface-0: #1a1b1c !important;
        --color-surface-1: #242526 !important;
        --color-base-0: #eaecf0 !important;
        --color-heading: #ffffff !important;
        background-color: #1a1b1c !important;
    }
    html.skin-theme-clientpref-os .citizen-menu__card,
    html.skin-theme-clientpref-os #citizen-preferences__card,
    html.skin-theme-clientpref-os .citizen-sticky-header-background,
    html.skin-theme-clientpref-os .citizen-command-palette,
    html.skin-theme-clientpref-os #citizen-sidebar-lastmod,
    html.skin-theme-clientpref-os #mw-panel-toc {
        background-color: rgba(30, 31, 32, 0.6) !important;
        color: #ffffff !important;
        backdrop-filter: blur(20px) !important;
    }
    html.skin-theme-clientpref-os .citizen-command-palette__input input,
    html.skin-theme-clientpref-os .citizen-command-palette-list-item__text__label,
    html.skin-theme-clientpref-os .citizen-command-palette-list-item__text__description bdi {
        color: #ffffff !important;
    }
    html.skin-theme-clientpref-os .infobox-above,
    html.skin-theme-clientpref-os .infobox-title,
    html.skin-theme-clientpref-os .infobox caption,
    html.skin-theme-clientpref-os .infobox th[style*="background"] {
        background-color: rgba(26, 58, 90, 0.4) !important;
        color: #ffffff !important;
        background-image: none !important;
        filter: none !important;
    }
}
@media (prefers-color-scheme: dark) {
    html.citizen-feature-performance-mode-clientpref-1.skin-theme-clientpref-os .infobox,
    html.citizen-feature-performance-mode-clientpref-1.skin-theme-clientpref-os .infobox-above,
    html.citizen-feature-performance-mode-clientpref-1.skin-theme-clientpref-os .infobox-title,
    html.citizen-feature-performance-mode-clientpref-1.skin-theme-clientpref-os caption.infobox-title {
        background-color: #2c2c2c !important;
        color: #ffffff !important;
    }
    html.citizen-feature-performance-mode-clientpref-1.skin-theme-clientpref-os #mw-panel-toc {
        background-color: #1e1f20 !important;
    }
}
@media (prefers-color-scheme: dark) {
    html.skin-theme-clientpref-os[class*="citizen-feature-performance-mode-clientpref-1"] .infobox.ve-infobox-country .infobox-above {
        background-color: #1a3a5a !important; 
        color: #CCEEFF !important;   
        text-shadow: none !important;
    }
}
@media (prefers-color-scheme: dark) {
    html.skin-theme-clientpref-os[class*="citizen-feature-performance-mode-clientpref-1"] .infobox .infobox-header,
    html.skin-theme-clientpref-os[class*="citizen-feature-performance-mode-clientpref-1"] .infobox th[style*="background-color: #F3F3F3"],
    html.skin-theme-clientpref-os[class*="citizen-feature-performance-mode-clientpref-1"] .infobox th[style*="background-color:#F3F3F3"] {
        background-color: #333333 !important; 
        color: #eeeeee !important; 
        text-shadow: none !important;
    }
}
@media (prefers-color-scheme: dark) {
    html.skin-theme-clientpref-os[class*="citizen-feature-performance-mode-clientpref-1"] .infobox .infobox-header,
    html.skin-theme-clientpref-os[class*="citizen-feature-performance-mode-clientpref-1"] .infobox th[style*="background-color: #F3F3F3"],
    html.skin-theme-clientpref-os[class*="citizen-feature-performance-mode-clientpref-1"] .infobox th[style*="background-color:#F3F3F3"],
    html.skin-theme-clientpref-os[class*="citizen-feature-performance-mode-clientpref-1"] .infobox th[style*="background:#F3F3F3"] {
        background-color: #333333 !important; 
        color: #eeeeee !important; 
        border-color: #444444 !important;  
        text-shadow: none !important;
    }
    html.skin-theme-clientpref-os[class*="citizen-feature-performance-mode-clientpref-1"] .infobox th.infobox-label {
        border-color: rgba(255, 255, 255, 0.1) !important;
        color: #cccccc !important;
    }
}
@media (prefers-color-scheme: dark) {
    html.skin-theme-clientpref-os .infobox {
        border-color: rgba(255, 255, 255, 0.15) !important;
    }

    html.skin-theme-clientpref-os .infobox th,
    html.skin-theme-clientpref-os .infobox td {
        border-color: rgba(255, 255, 255, 0.1) !important;
    }
    html.skin-theme-clientpref-os .infobox .infobox-header {
        border-top: 1px solid rgba(255, 255, 255, 0.15) !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
    }
    html.skin-theme-clientpref-os .catlinks {
        border-color: rgba(255, 255, 255, 0.15) !important;
        background-color: rgba(0, 0, 0, 0.2) !important;
    }
    html.skin-theme-clientpref-os .wikitable,
    html.skin-theme-clientpref-os .wikitable th,
    html.skin-theme-clientpref-os .wikitable td {
        border-color: rgba(255, 255, 255, 0.2) !important;
    }
}
@media (prefers-color-scheme: dark) {
    html.citizen-feature-performance-mode-clientpref-1.skin-theme-clientpref-os #citizen-preferences__card,
    html.citizen-feature-performance-mode-clientpref-1.skin-theme-clientpref-os .citizen-menu__card,
    html.citizen-feature-performance-mode-clientpref-1.skin-theme-clientpref-os .citizen-menu__card-content {
        background-color: #1e1f20 !important;
        backdrop-filter: none !important; 
        -webkit-backdrop-filter: none !important;
        box-shadow: none !important;
    }
    html.citizen-feature-performance-mode-clientpref-1.skin-theme-clientpref-os .citizen-client-prefs-radio__icon {
        background-color: #333333 !important;
        border-color: #555555 !important;
    }
}
/* ================================================ */
/* --- 修复:手动深色Night+Basic模式下的搜索面板 --- */
/* ================================================ */
html.citizen-feature-performance-mode-clientpref-1.skin-theme-clientpref-night .citizen-command-palette {
    background-color: #1e1f20 !important; 
    color: #ffffff !important;
    border: 1px solid #3c3d3e !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5) !important;
}
html.citizen-feature-performance-mode-clientpref-1.skin-theme-clientpref-night .citizen-command-palette__input {
    background-color: #2c2c2c !important;
    border-bottom: 1px solid #3c3d3e !important;
}

html.citizen-feature-performance-mode-clientpref-1.skin-theme-clientpref-night .citizen-command-palette__input input {
    color: #ffffff !important;
}
html.citizen-feature-performance-mode-clientpref-1.skin-theme-clientpref-night .citizen-command-palette-list-item__text__label,
html.citizen-feature-performance-mode-clientpref-1.skin-theme-clientpref-night .citizen-command-palette-list-item__text__description bdi {
    color: #eeeeee !important;
}
html.citizen-feature-performance-mode-clientpref-1.skin-theme-clientpref-night .citizen-command-palette-list-item[aria-selected="true"] {
    background-color: #363738 !important;
}
html.citizen-feature-performance-mode-clientpref-1.skin-theme-clientpref-night .citizen-command-palette__footer {
    background-color: #161718 !important;
    color: #888888 !important;
    border-top: 1px solid #3c3d3e !important;
}
@media (prefers-color-scheme: dark) {
    html.citizen-feature-performance-mode-clientpref-1.skin-theme-clientpref-os .citizen-command-palette {
        background-color: #1e1f20 !important; 
        backdrop-filter: none !important;   
        -webkit-backdrop-filter: none !important;
        border: 1px solid #3c3d3e !important;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5) !important;
    }
    html.citizen-feature-performance-mode-clientpref-1.skin-theme-clientpref-os .citizen-command-palette__input {
        background-color: #2c2c2c !important;
        border-bottom: 1px solid #3c3d3e !important;
    }
    html.citizen-feature-performance-mode-clientpref-1.skin-theme-clientpref-os .citizen-command-palette-list-item__text__label {
        color: #ffffff !important;
    }
    html.citizen-feature-performance-mode-clientpref-1.skin-theme-clientpref-os .citizen-command-palette__footer {
        background-color: #161718 !important;
        backdrop-filter: none !important;
        border-top: 1px solid #3c3d3e !important;
    }
}
/* ================================================ */
/* --- Section 32. Navbox 极致扁平补丁 (无嵌套) --- */
/* ================================================ */
.navbox, .navbox-inner, .navbox-subgroup { background: transparent !important; border: none !important; border-collapse: separate !important; border-spacing: 0 !important; border-radius: 16px !important; }
.navbox { overflow: hidden !important; margin: 1.5em 0 !important; box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.08) !important; }
.navbox-title { background: rgba(204, 238, 255, 0.5) !important; color: #004466 !important; font-weight: bold !important; }
.navbox-group { background: rgba(54, 121, 204, 0.1) !important; color: #3366cc !important; font-weight: bold !important; }
html.skin-theme-clientpref-night .navbox-inner { background: rgba(20, 20, 20, 0.2) !important; backdrop-filter: blur(15px) saturate(160%) !important; }
html.skin-theme-clientpref-night .navbox-title { background: rgba(54, 121, 204, 0.3) !important; color: #ffffff !important; }
html.skin-theme-clientpref-night .navbox-group { background: rgba(54, 121, 204, 0.15) !important; color: #ffffff !important; }
html.skin-theme-clientpref-night .navbox-list, 
html.skin-theme-clientpref-night .navbox-list > div { background: transparent !important; color: #eeeeee !important; }
html.citizen-feature-performance-mode-clientpref-1.skin-theme-clientpref-night .navbox { box-shadow: none !important; }
html.citizen-feature-performance-mode-clientpref-1.skin-theme-clientpref-night .navbox-inner { background-color: #1a1b1c !important; backdrop-filter: none !important; }
@media (prefers-color-scheme: dark) {
    html.skin-theme-clientpref-os .navbox-inner { background: rgba(20, 20, 20, 0.2) !important; backdrop-filter: blur(15px) saturate(160%) !important; }
    html.skin-theme-clientpref-os .navbox-title { background: rgba(54, 121, 204, 0.3) !important; color: #ffffff !important; }
    html.skin-theme-clientpref-os .navbox-group { background: rgba(54, 121, 204, 0.15) !important; color: #ffffff !important; }
    html.skin-theme-clientpref-os .navbox-list { background: transparent !important; color: #eeeeee !important; }
    html.skin-theme-clientpref-os .navbox { box-shadow: 0 4px 15px 0 rgba(0, 0, 0, 0.3) !important; }
    html.citizen-feature-performance-mode-clientpref-1.skin-theme-clientpref-os .navbox { box-shadow: none !important; padding: 0 !important; border: 1px solid #3c3d3e !important; }
    html.citizen-feature-performance-mode-clientpref-1.skin-theme-clientpref-os .navbox-inner { background-color: #1a1b1c !important; backdrop-filter: none !important; border-collapse: collapse !important; }
    html.citizen-feature-performance-mode-clientpref-1.skin-theme-clientpref-os .navbox-title { background-color: #004466 !important; padding: 2px 8px !important; }
    html.citizen-feature-performance-mode-clientpref-1.skin-theme-clientpref-os .navbox-group { background-color: #242526 !important; padding: 2px 8px !important; border: 1px solid #3c3d3e !important; }
    html.citizen-feature-performance-mode-clientpref-1.skin-theme-clientpref-os .navbox-list { padding: 0 !important; border: 1px solid #3c3d3e !important; }
    html.citizen-feature-performance-mode-clientpref-1.skin-theme-clientpref-os .navbox-list > div { padding: 2px 6px !important; line-height: 1.2 !important; }
}
/* ======================================= */
/* --- Section33. Infobox 标题阴影修复 --- */
/* ======================================= */
.infobox .infobox-title,
.infobox.ve-infobox-country .infobox-above {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05) !important;
    text-shadow: none !important;
}
html.skin-theme-clientpref-night .infobox .infobox-title,
html.skin-theme-clientpref-night .infobox.ve-infobox-country .infobox-above {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
    text-shadow: none !important;
    filter: none !important;
}
@media (prefers-color-scheme: dark) {
    html.skin-theme-clientpref-os .infobox .infobox-title {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
        text-shadow: none !important;
        filter: none !important;
    }
    html.skin-theme-clientpref-os .infobox.ve-infobox-country .infobox-above {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
        text-shadow: none !important;
    }
}
html[class*="citizen-feature-performance-mode-clientpref-1"] .infobox .infobox-title,
html[class*="citizen-feature-performance-mode-clientpref-1"] .infobox.ve-infobox-country .infobox-above {
    box-shadow: none !important;
    text-shadow: none !important;
    border: 1px solid rgba(128, 128, 128, 0.3) !important;
}
/* ================================================== */
/* --- Section 34 & 35: 表格与缩略图终极修复方案 --- */
/* ================================================== */

/* ================================================== */
/* --- 终极解法:缩略图与表格 (绝对兼容可视化编辑器) --- */
/* ================================================== */

/* ======================================= */
/* --- 1. 缩略图 (完美换行 + 拯救编辑器) --- */
/* ======================================= */

/* 【神级护盾:html:not(.ve-active)】
   确保我们在前台阅读时享受绝美的毛玻璃和自动换行,
   一旦点开编辑,立刻把图片控制权还给编辑器,绝不隐身! */
html:not(.ve-active) .mw-parser-output figure[typeof*="mw:File/Thumb"],
html:not(.ve-active) .mw-parser-output .thumbinner {
    width: min-content !important; 
    background-color: rgba(255, 255, 255, 0.4) !important;
    backdrop-filter: blur(12px) saturate(120%) !important;
    -webkit-backdrop-filter: blur(12px) saturate(120%) !important;
    border: 1px solid rgba(128, 128, 128, 0.2) !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
    padding: 10px !important;
    box-sizing: content-box !important;
}

html:not(.ve-active) .mw-parser-output figure[typeof*="mw:File/Thumb"] img,
html:not(.ve-active) .mw-parser-output .thumbimage {
    display: block !important;
    border-radius: 6px !important;
    border: none !important;
    max-width: none !important; 
    height: auto !important;
    margin: 0 auto !important;
}

html:not(.ve-active) .mw-parser-output figure[typeof*="mw:File/Thumb"] figcaption,
html:not(.ve-active) .mw-parser-output .thumbcaption {
    display: block !important;
    width: 100% !important; 
    text-align: left !important;
    color: var(--color-base-0) !important;
    margin-top: 8px !important;
    font-size: 0.9em !important;
    line-height: 1.5 !important;
    white-space: normal !important;
    word-wrap: break-word !important;
}

/* =============================================== */
/* --- 同步更新夜间与 Basic 模式下的缩略图护盾 --- */
/* =============================================== */
html.skin-theme-clientpref-night:not(.ve-active) .mw-parser-output figure[typeof*="mw:File/Thumb"], 
html.skin-theme-clientpref-night:not(.ve-active) .mw-parser-output .thumbinner {
    background-color: rgba(30, 30, 30, 0.4) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
}

html[class*="citizen-feature-performance-mode-clientpref-1"]:not(.ve-active) .mw-parser-output figure[typeof*="mw:File/Thumb"], 
html[class*="citizen-feature-performance-mode-clientpref-1"]:not(.ve-active) .mw-parser-output .thumbinner {
    backdrop-filter: none !important; 
    -webkit-backdrop-filter: none !important;
    background-color: var(--color-surface-1) !important; 
    box-shadow: none !important;
}

/* ======================================= */
/* --- 2. Wikitable (空间魔法,防切割版) --- */
/* ======================================= */

/* 【魔法核心】:外壳透明化。
   我们给外壳增加 15px 的 padding,在内部“撑”出一个画板,让阴影有地方渲染;
   同时给外壳加上 -15px 的左右 margin 把位置拉回来,让表格依然和文本对齐!
   这样不管它怎么 overflow,阴影都在安全区内,绝不会被切掉! */
.citizen-table-wrapper {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    padding: 15px !important; 
    margin: 1em -15px !important; 
}

/* 把所有的外观特效,全部绑定在表格本体上 */
.mw-parser-output table.wikitable {
    background-color: rgba(255, 255, 255, 0.4) !important;
    backdrop-filter: blur(12px) saturate(120%) !important;
    -webkit-backdrop-filter: blur(12px) saturate(120%) !important;
    border: 1px solid rgba(128, 128, 128, 0.2) !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1) !important; /* 阴影完美复活 */
    
    /* 必须使用 separate,才能让表格本体拥有圆角 */
    border-collapse: separate !important;
    border-spacing: 0 !important;
    width: 100% !important;
    margin: 1.5em 0 !important;
}

/* 如果表格被 wrapper 包裹,重置内部 margin 防止双重边距 */
.citizen-table-wrapper > table.wikitable {
    margin: 0 !important;
}

/* --- 内部网格线:彻底告别双重框线 --- */
.mw-parser-output table.wikitable th,
.mw-parser-output table.wikitable td {
    border: 1px solid rgba(128, 128, 128, 0.15) !important;
    padding: 10px 16px !important;
}
.mw-parser-output table.wikitable th {
    background-color: rgba(54, 121, 204, 0.15) !important;
    color: var(--color-primary, #36c) !important;
}

/* 强行擦除表格最外圈的网格线,绝对不允许它和圆角外框打架! */
.mw-parser-output table.wikitable tr:first-child th,
.mw-parser-output table.wikitable tr:first-child td { border-top: none !important; }
.mw-parser-output table.wikitable tr:last-child th,
.mw-parser-output table.wikitable tr:last-child td { border-bottom: none !important; }
.mw-parser-output table.wikitable tr th:first-child,
.mw-parser-output table.wikitable tr td:first-child { border-left: none !important; }
.mw-parser-output table.wikitable tr th:last-child,
.mw-parser-output table.wikitable tr td:last-child { border-right: none !important; }

/* --- 手动修圆角 --- */
/* 因为去掉了 overflow: hidden,我们需要手动把四个角落的单元格磨圆,完美填入 12px 的圆角外框 */
.mw-parser-output table.wikitable tr:first-child th:first-child,
.mw-parser-output table.wikitable tr:first-child td:first-child { border-top-left-radius: 11px !important; }
.mw-parser-output table.wikitable tr:first-child th:last-child,
.mw-parser-output table.wikitable tr:first-child td:last-child { border-top-right-radius: 11px !important; }
.mw-parser-output table.wikitable tr:last-child th:first-child,
.mw-parser-output table.wikitable tr:last-child td:first-child { border-bottom-left-radius: 11px !important; }
.mw-parser-output table.wikitable tr:last-child th:last-child,
.mw-parser-output table.wikitable tr:last-child td:last-child { border-bottom-right-radius: 11px !important; }


/* ======================================= */
/* --- 夜间模式与 Basic 能效模式同步更新 --- */
/* ======================================= */
html.skin-theme-clientpref-night .mw-parser-output table.wikitable {
    background-color: rgba(30, 30, 30, 0.4) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3) !important;
}
html.skin-theme-clientpref-night .mw-parser-output table.wikitable th { background-color: rgba(54, 121, 204, 0.2) !important; color: #fff !important; }
html.skin-theme-clientpref-night .mw-parser-output table.wikitable th, 
html.skin-theme-clientpref-night .mw-parser-output table.wikitable td { border-color: rgba(255,255,255,0.05) !important; }

html[class*="citizen-feature-performance-mode-clientpref-1"] .mw-parser-output table.wikitable {
    backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
    background-color: var(--color-surface-1) !important; box-shadow: none !important;
}
/* ============================================== */
/* --- Section25.Wiki 弹出预览菜单毛玻璃美化 --- */
/* ============================================== */

/* 1. 禁用原有动画 */
.mwe-popups,
.mwe-popups.mwe-popups-fade-in-up,
.mwe-popups.mwe-popups-fade-in-down,
.mwe-popups.mwe-popups-fade-out-up,
.mwe-popups.mwe-popups-fade-out-down {
    animation: none !important;
    transition: none !important;
}

/* 只对伪元素禁用 transition */
.mwe-popups::before,
.mwe-popups::after {
    animation: none !important;
    transition: none !important;
    display: none !important;
}

/* 2. 外层容器 */
.mwe-popups {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    isolation: auto !important;
}

/* 3. 移除原版箭头伪元素(我们要用伪元素做光效) */
.mwe-popups::before,
.mwe-popups::after {
    display: none !important;
}

/* 4. 毛玻璃容器 */
.mwe-popups .mwe-popups-container {
    overflow: visible !important;
    clip-path: none !important;
    -webkit-clip-path: none !important;
    
    /* 为光效伪元素定位 */
    position: relative !important;
    overflow: hidden !important;
    
    /* 核心毛玻璃 */
    background-color: rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(14px) saturate(100%) !important;
    -webkit-backdrop-filter: blur(14px) saturate(100%) !important;
    background-image: none !important;
    
    border-radius: 12px !important;
    border: 1px solid rgba(128, 128, 128, 0.1) !important;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        0 2px 8px rgba(0, 0, 0, 0.06) !important;
}

/* 5. 液态玻璃 - 边框光效 */
.mwe-popups .mwe-popups-container::before {
    content: "" !important;
    display: block !important;
    position: absolute !important;
    inset: -1px !important;
    border: 2px solid transparent !important;
    border-radius: 13px !important;
    background: radial-gradient(
        180px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), 
        rgba(255, 255, 255, 1.0) 0%,
        rgba(255, 255, 255, 0.4) 40%, 
        transparent 80%
    ) border-box !important;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0) !important;
    -webkit-mask-clip: content-box, border-box !important;
    -webkit-mask-composite: source-out !important;
    mask-composite: subtract !important;
    mix-blend-mode: screen !important;
    z-index: 10 !important;
    pointer-events: none !important;
}

/* 6. 液态玻璃 - 面光效 */
.mwe-popups .mwe-popups-container::after {
    content: "" !important;
    display: block !important;
    position: absolute !important;
    inset: 0 !important;
    border-radius: 12px !important;
    background: radial-gradient(
        400px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), 
        rgba(255, 255, 255, 0.35) 0%,   
        transparent 70%
    ) !important;
    mix-blend-mode: soft-light !important;
    z-index: 1 !important;
    pointer-events: none !important;
}

/* 7. 内部元素 */
.mwe-popups .mwe-popups-extract,
.mwe-popups .mwe-popups-scroll {
    background: transparent !important;
    overflow: hidden !important;
}

.mwe-popups .mwe-popups-extract::after {
    display: none !important;
}

/* 8. 页脚 */
.mwe-popups footer {
    background: rgba(255, 255, 255, 0.1) !important;
    border-top: 1px solid rgba(128, 128, 128, 0.08) !important;
}

/* 9. 文字颜色 */
.mwe-popups .mwe-popups-extract,
.mwe-popups .mwe-popups-title,
.mwe-popups footer a {
    color: var(--color-base) !important;
}

/* 10. 带图片弹窗 */
.mwe-popups-is-tall .mwe-popups-container,
.mwe-popups:not(.mwe-popups-no-image-pointer) .mwe-popups-container {
    clip-path: none !important;
}

.mwe-popups .mwe-popups-discreet {
    background: transparent !important;
}

.mwe-popups .mwe-popups-thumbnail {
    border-radius: 12px 12px 0 0 !important;
}

/* ============================================== */
/* --- 深色模式 --- */
/* ============================================== */

html.skin-theme-clientpref-night .mwe-popups .mwe-popups-container {
    background-color: rgba(20, 20, 20, 0.3) !important;
    backdrop-filter: blur(14px) saturate(100%) !important;
    -webkit-backdrop-filter: blur(14px) saturate(100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 2px 8px rgba(0, 0, 0, 0.2) !important;
}

/* 深色模式 - 面光效降低亮度 */
html.skin-theme-clientpref-night .mwe-popups .mwe-popups-container::after {
    background: radial-gradient(
        400px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), 
        rgba(255, 255, 255, 0.1) 0%,  
        transparent 70%
    ) !important;
}

/* 深色模式 - 边框光效调弱 */
html.skin-theme-clientpref-night .mwe-popups .mwe-popups-container::before {
    background: radial-gradient(
        180px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), 
        rgba(255, 255, 255, 0.8) 0%, 
        transparent 80%
    ) border-box !important;
}

html.skin-theme-clientpref-night .mwe-popups footer {
    background: rgba(0, 0, 0, 0.15) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
}

html.skin-theme-clientpref-night .mwe-popups.mwe-popups-type-generic .mwe-popups-container {
    background-color: rgba(20, 20, 20, 0.4) !important;
    backdrop-filter: blur(14px) saturate(100%) !important;
    -webkit-backdrop-filter: blur(14px) saturate(100%) !important;
}

/* ============================================== */
/* --- 自动深色模式 --- */
/* ============================================== */

@media (prefers-color-scheme: dark) {
    html.skin-theme-clientpref-os .mwe-popups .mwe-popups-container {
        background-color: rgba(20, 20, 20, 0.3) !important;
        backdrop-filter: blur(14px) saturate(100%) !important;
        -webkit-backdrop-filter: blur(14px) saturate(100%) !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        box-shadow: 
            0 8px 32px rgba(0, 0, 0, 0.3),
            0 2px 8px rgba(0, 0, 0, 0.2) !important;
    }

    html.skin-theme-clientpref-os .mwe-popups .mwe-popups-container::after {
        background: radial-gradient(
            400px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), 
            rgba(255, 255, 255, 0.1) 0%,  
            transparent 70%
        ) !important;
    }

    html.skin-theme-clientpref-os .mwe-popups .mwe-popups-container::before {
        background: radial-gradient(
            180px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), 
            rgba(255, 255, 255, 0.8) 0%, 
            transparent 80%
        ) border-box !important;
    }

    html.skin-theme-clientpref-os .mwe-popups footer {
        background: rgba(0, 0, 0, 0.15) !important;
        border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
    }
    
    html.skin-theme-clientpref-os .mwe-popups.mwe-popups-type-generic .mwe-popups-container {
        background-color: rgba(20, 20, 20, 0.4) !important;
        backdrop-filter: blur(14px) saturate(100%) !important;
        -webkit-backdrop-filter: blur(14px) saturate(100%) !important;
    }
}

/* ============================================== */
/* --- 性能模式 - 关闭所有特效 --- */
/* ============================================== */

html[class*="citizen-feature-performance-mode-clientpref-1"] .mwe-popups .mwe-popups-container {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background-color: var(--color-surface-1) !important;
    border: 1px solid var(--border-color-base) !important;
}

/* Basic 模式关闭光效 */
html[class*="citizen-feature-performance-mode-clientpref-1"] .mwe-popups .mwe-popups-container::before,
html[class*="citizen-feature-performance-mode-clientpref-1"] .mwe-popups .mwe-popups-container::after {
    display: none !important;
    content: none !important;
    visibility: hidden !important;
}

html[class*="citizen-feature-performance-mode-clientpref-1"] .mwe-popups footer {
    background: var(--color-surface-2) !important;
}

html[class*="citizen-feature-performance-mode-clientpref-1"] .mwe-popups.mwe-popups-type-generic .mwe-popups-container {
    background-color: var(--color-surface-1) !important;
}

/* ============================================== */
/* --- 错误状态 --- */
/* ============================================== */

.mwe-popups.mwe-popups-type-generic .mwe-popups-container {
    background-color: rgba(255, 255, 255, 0.25) !important;
    backdrop-filter: blur(14px) saturate(100%) !important;
    -webkit-backdrop-filter: blur(14px) saturate(100%) !important;
}