MediaWiki:Citizen.css:修订间差异
MediaWiki界面页面
更多操作
无编辑摘要 |
无编辑摘要 |
||
| 第154行: | 第154行: | ||
/* ======================= */ | /* ======================= */ | ||
@media (prefers-color-scheme: dark) { | @media (prefers-color-scheme: dark) { | ||
:root { | |||
--color-surface-0: #1a1b1c !important; | |||
--color-surface-0: #1a1b1c !important; | --color-surface-1: #202122 !important; | ||
--color-surface-1: # | --color-base-0: #eaecf0 !important; | ||
--color-base-0: #eaecf0 !important; | |||
--color-heading: #ffffff !important; | --color-heading: #ffffff !important; | ||
} | } | ||
} | } | ||
html.skin-theme-clientpref-night { | html.skin-theme-clientpref-night { | ||
| 第197行: | 第178行: | ||
html.skin-theme-clientpref-night .citizen-command-palette-list-item[aria-selected="true"] { | html.skin-theme-clientpref-night .citizen-command-palette-list-item[aria-selected="true"] { | ||
background-color: rgba(255, 255, 255, 0.1) !important; | 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; | |||
} | } | ||
/* =============================== */ | /* =============================== */ | ||
| 第1,319行: | 第1,306行: | ||
box-shadow: none !important; | box-shadow: none !important; | ||
border: 1px solid rgba(128, 128, 128, 0.2); /* 可选:添加一个淡淡的边框代替阴影,保持轮廓 */ | border: 1px solid rgba(128, 128, 128, 0.2); /* 可选:添加一个淡淡的边框代替阴影,保持轮廓 */ | ||
} | |||
/* ================================================= */ | |||
/* --- 最终修复补丁:自动模式同步与内联样式适配 --- */ | |||
/* ================================================= */ | |||
/* 1. 移除侧边栏最后修改时间的阴影 Bug (解决父容器截断) */ | |||
#citizen-sidebar-lastmod { | |||
box-shadow: none !important; | |||
border: 1px solid rgba(128, 128, 128, 0.2); | |||
} | |||
/* 移除可能存在的伪元素光效,防止在狭窄区域溢出 */ | |||
#citizen-sidebar-lastmod::before, | |||
#citizen-sidebar-lastmod::after { | |||
display: none !important; | |||
} | |||
/* 2. 自动模式(OS)下的深色面板与变量同步 */ | |||
@media (prefers-color-scheme: dark) { | |||
/* 仅当处于自动模式且未手动开启浅色时生效 */ | |||
html.skin-theme-clientpref-os:not(.skin-theme-clientpref-day) { | |||
--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-heading: #ffffff !important; | |||
} | |||
html.skin-theme-clientpref-os:not(.skin-theme-clientpref-day) body { | |||
background-color: #1a1b1c !important; | |||
} | |||
/* 强制自动模式下的所有 Aero 面板(含 Sticky Header 和搜索框)变深 */ | |||
html.skin-theme-clientpref-os:not(.skin-theme-clientpref-day) .citizen-menu__card, | |||
html.skin-theme-clientpref-os:not(.skin-theme-clientpref-day) .citizen-sticky-header-background, | |||
html.skin-theme-clientpref-os:not(.skin-theme-clientpref-day) .citizen-command-palette, | |||
html.skin-theme-clientpref-os:not(.skin-theme-clientpref-day) #citizen-preferences__card { | |||
background-color: rgba(36, 37, 38, 0.85) !important; | |||
color: #ffffff !important; | |||
backdrop-filter: blur(20px) saturate(180%) !important; | |||
} | |||
} | |||
/* 3. 针对 Infobox 内联背景色(如飓风强度颜色)的深度适配 */ | |||
/* 逻辑:当处于深色模式(手动或自动)时,通过滤镜压暗背景并确保文字可读 */ | |||
html.skin-theme-clientpref-night .infobox-above, | |||
html.skin-theme-clientpref-night .infobox-title, | |||
html.skin-theme-clientpref-night .infobox th[style*="background"], | |||
html.skin-theme-clientpref-night .infobox caption[style*="background"], | |||
@media (prefers-color-scheme: dark) { | |||
html.skin-theme-clientpref-os:not(.skin-theme-clientpref-day) .infobox-above, | |||
html.skin-theme-clientpref-os:not(.skin-theme-clientpref-day) .infobox-title, | |||
html.skin-theme-clientpref-os:not(.skin-theme-clientpref-day) .infobox th[style*="background"], | |||
html.skin-theme-clientpref-os:not(.skin-theme-clientpref-day) .infobox caption[style*="background"] | |||
} { | |||
/* 使用 invert 滤镜配合 hue-rotate 保持原色相但反转明度 */ | |||
/* 或者使用更稳妥的方案:压暗并强制白字 */ | |||
filter: brightness(0.7) contrast(1.1) !important; | |||
color: #ffffff !important; | |||
text-shadow: 0 1px 2px rgba(0,0,0,0.6) !important; | |||
} | |||
/* 针对你提到的 #CCEEFF (星岛) 和 #ffff80 (飓风) 这种极浅色做特殊加强 */ | |||
html.skin-theme-clientpref-night .infobox-above[style*="#CCEEFF"], | |||
html.skin-theme-clientpref-night .infobox-title[style*="#ffff80"], | |||
@media (prefers-color-scheme: dark) { | |||
html.skin-theme-clientpref-os:not(.skin-theme-clientpref-day) .infobox-above[style*="#CCEEFF"], | |||
html.skin-theme-clientpref-os:not(.skin-theme-clientpref-day) .infobox-title[style*="#ffff80"] | |||
} { | |||
/* 这种极浅色在深色模式下如果只用滤镜会灰蒙蒙的,直接强制给一个深色色值 */ | |||
background-color: rgba(0, 50, 80, 0.9) !important; /* 深蓝色 */ | |||
} | } | ||
2026年1月31日 (六) 10:08的版本
/**
* Blockland Wiki Modern Aero UI 2.0
* 风格:Acrylic/Aero/Basic
* 功能:全局毛玻璃、改进动效、优化搜索栏、infobox美化、评论区美化、深色模式、全局液态玻璃、全局光线追踪。
* 版本:3.0
*/
/* =========================== */
/* --- 1. 全局去蓝配色基础 --- */
/* =========================== */
: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;
}
/* =========================== */
/* --- 2. 通用组件毛玻璃化 --- */
/* =========================== */
.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;
}
/* =========================== */
/* --- 3. 搜索面板背景遮罩 --- */
/* =========================== */
.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;
}
/* ======================= */
/* --- 4. 搜索面板主体 --- */
/* ======================= */
.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;
}
/* ================================= */
/* --- 5. 列表项布局与全填充圆角 --- */
/* ================================= */
.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;
}
/* ========================= */
/* --- 6. 垃圾桶按钮优化 --- */
/* ========================= */
.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;
}
/* =========================== */
/* --- 7. 搜索框与底部清理 --- */
/* =========================== */
.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; }
}
/* ======================= */
/* --- 8. 深色模式适配 --- */
/* ======================= */
@media (prefers-color-scheme: dark) {
:root {
--color-surface-0: #1a1b1c !important;
--color-surface-1: #202122 !important;
--color-base-0: #eaecf0 !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;
}
/* =============================== */
/* --- 9. 顶部UI去圆角嵌套直角 --- */
/* =============================== */
.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;
}
/* ================================================ */
/* --- 10. 能效模式适配:开启后关闭毛玻璃与动画 --- */
/* ================================================ */
/* 当 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));
}
/* =============================================== */
/* --- 11. 标签美化:能效模式改名 Aero / Basic --- */
/* =============================================== */
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;
}
/* ======================== */
/* === 12. 首页专用样式 === */
/* ======================== */
/* 创建一个全宽容器的类,用于包裹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;
}
/* ============================================== */
/* --- 13. 搜索组件对齐:统一搜索框与按钮高度 --- */
/* ============================================== */
.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;
}
/* =============================================== */
/* --- 14. 菜单重排:文字 > 宽度 > 纯黑 > 颜色 --- */
/* =============================================== */
/* 激活容器布局 */
#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;
}
/* ========================================== */
/* --- 15. Infobox 信息框 Aero & 深色适配 --- */
/* ========================================== */
.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;
}
/* ======================================== */
/* === 16. SocialProfile 现代化美化补丁 === */
/* ======================================== */
/* 1. 暴力重置最外层容器,把它变成一个大卡片 */
.profile-info,
#UserProfileMasthead {
display: block !important; /* 强制取消表格属性 */
background-color: var(--color-surface-2) !important;
border: 1px solid var(--border-color-base) !important;
border-radius: var(--border-radius-base) !important;
padding: 24px !important;
margin-bottom: 20px;
box-shadow: var(--box-shadow-card);
position: relative; /* 为绝对定位元素做参照 */
overflow: hidden; /* 防止圆角溢出 */
}
/* 2. 隐藏原本杂乱的表格结构,让内容“流”出来 */
.profile-info tbody,
.profile-info tr,
.profile-info td {
display: block !important;
border: none !important;
padding: 0 !important;
background: transparent !important;
width: auto !important; /* 取消表格宽度限制 */
}
/* 3. 专门修正左侧头像区域 */
.profile-info td:first-child {
float: left; /* 让头像浮动到左边 */
margin-right: 20px;
margin-bottom: 10px;
text-align: center;
}
/* 4. 头像美化 (变圆 + 边框) */
.profile-info img,
.user-profile-image img {
border-radius: 50% !important;
width: 100px !important; /* 强制固定头像大小 */
height: 100px !important;
object-fit: cover;
border: 3px solid var(--color-surface-1) !important;
box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
/* 5. 修正右侧内容区域 */
.profile-info td:last-child {
/* 这里放名字、链接和简介 */
padding-left: 0 !important;
}
/* 6. 用户名 (KK) 放大并加粗 */
.profile-name,
.user-profile-top-name,
.profile-info h1,
.profile-info font[size="6"] { /* 兼容老旧的 font 标签 */
font-size: 2rem !important;
font-weight: 800 !important;
color: var(--color-text-primary) !important;
font-family: var(--font-family-heading) !important;
line-height: 1.2;
display: block;
margin-bottom: 8px;
}
/* 7. 那一排操作链接 (编辑个人资料 | 上传头像...) */
.profile-links,
.profile-info a {
color: var(--color-text-secondary) !important;
font-size: 0.9rem;
text-decoration: none;
margin-right: 5px;
}
.profile-info a:hover {
color: var(--color-primary) !important;
text-decoration: underline;
}
/* 8. 简介文字 (大家好啊我是...) */
.profile-bio,
.user-profile-bio {
margin-top: 15px !important;
padding: 10px !important;
background: var(--color-surface-1) !important;
border-radius: var(--border-radius-small);
color: var(--color-text-primary);
line-height: 1.6;
clear: both; /* 确保在头像下方或者旁边 */
}
/* 9. !!! 重点修正:那个丑陋的橙色“使用社交用户页”按钮 !!! */
div[style*="background-color:#FFCE28"], /* 尝试捕捉那个写死颜色的 div */
.profile-switch-button,
input[type="button"][value*="社交"] {
background-color: var(--color-primary) !important;
color: var(--color-primary-text) !important;
border: none !important;
border-radius: 20px !important; /* 胶囊按钮 */
padding: 8px 16px !important;
font-weight: bold;
cursor: pointer;
box-shadow: 0 2px 4px rgba(0,0,0,0.2);
/* 如果它原来是绝对定位,我们要调整它 */
position: absolute !important;
top: 20px;
right: 20px;
}
/* 10. 顶部的小字统计 (766次编辑...) */
.profile-stats-top {
font-size: 0.85rem;
color: var(--color-text-faint);
margin-bottom: 5px;
}
/* =============================================== */
/* --- 17. 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;
}
/* ============================================ */
/* --- 18. 暗色模式下的 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;
}
/* ============================================ */
/* --- 19. 通知中心 (Echo UI) 毛玻璃与动效 --- */
/* ============================================ */
.mw-echo-ui-notificationBadgeButtonPopupWidget-popup {
animation: aero-basic-in 0.3s cubic-bezier(0.1, 0.9, 0.2, 1) forwards !important;
background: transparent !important;
border: none !important;
box-shadow: none !important;
}
.mw-echo-ui-notificationBadgeButtonPopupWidget-popup .oo-ui-popupWidget-popup {
background-color: rgba(255, 255, 255, 0.85) !important;
border: 1px solid rgba(255, 255, 255, 0.9) !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;
}
html.skin-theme-clientpref-night .mw-echo-ui-notificationBadgeButtonPopupWidget-popup .oo-ui-popupWidget-popup {
background-color: rgba(30, 30, 30, 0.8) !important;
border: 1px solid rgba(255, 255, 255, 0.1) !important;
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4) !important;
}
.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;
}
.mw-echo-ui-notificationBadgeButtonPopupWidget-footer-buttons .oo-ui-buttonElement-button {
background-color: rgba(255, 255, 255, 0.5) !important;
border: 1px solid rgba(0, 0, 0, 0.1) !important;
border-radius: 8px !important;
transition: all 0.2s ease !important;
}
.mw-echo-ui-notificationBadgeButtonPopupWidget-footer-buttons .oo-ui-buttonElement-button:hover {
background-color: #ffffff !important;
box-shadow: 0 2px 8px rgba(0,0,0,0.1) !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;
filter: brightness(1.5);
}
@keyframes aero-basic-in {
from {
opacity: 0;
margin-top: -12px;
}
to {
opacity: 1;
margin-top: 0;
}
}
.mw-echo-ui-notificationItemWidget {
background: transparent !important;
transition: background 0.2s !important;
}
.mw-echo-ui-notificationItemWidget:hover {
background-color: rgba(0, 0, 0, 0.03) !important;
}
html.skin-theme-clientpref-night .mw-echo-ui-notificationItemWidget:hover {
background-color: rgba(255, 255, 255, 0.05) !important;
}
/* ============================================ */
/* --- 20. 首页专属:最后修改时间 Aero 挂件 --- */
/* ============================================ */
#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;
}
/* ================================================= */
/* --- 22. Infobox 全面毛玻璃化(Aero Glass 补丁) --- */
/* ================================================= */
/* 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));
}
/* ================================================= */
/* --- 23. 修复 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;
}
/* ================================================= */
/* --- 24. 恢复中段标题颜色(同步 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);
}
/* ================================================= */
/* --- 25. 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;
}
/* ================================================= */
/* --- 基于用户“最正常版”的精准修正补丁 --- */
/* ================================================= */
/* 1. 基础容器补强:解决目录阴影 Bug */
.citizen-menu__card,
.citizen-toc-card,
#mw-panel-toc, /* 锁定目录 ID 防止阴影重叠 */
.citizen-command-palette,
.infobox {
position: relative;
background-image: none !important;
opacity: 1 !important;
}
/* 2. 【核心修复:目录光效回归】 */
/* 增加 #mw-panel-toc ID 路径,确保目录面板能够显示伪元素光效 */
.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;
}
/* 1. 默认状态(亮色模式):调浓光束至 0.35 */
.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;
}
/* 2. 深色模式适配:减淡光束至 0.1 */
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%, /* 暗色模式 0.1 */
transparent 75%
) !important;
}
/* 4. 深色模式补强 */
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;
}
/* 1. 容器收敛:放弃溢出,确保稳定 */
#mw-panel-toc {
overflow: hidden !important; /* 回归 hidden,防止布局崩坏 */
box-shadow: none !important;
border: 1px solid rgba(255, 255, 255, 0.1) !important; /* 给一个极淡的底边 */
}
/* 2. 边框光回归:改用 inset: 0 并增强亮度 */
#mw-panel-toc::before {
content: "" !important;
position: absolute !important;
inset: 0px !important; /* 严格对齐边缘,不往外扩 */
border: 1.2px solid transparent !important;
/* 强制使用 screen 模式击穿亮色背景 */
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;
/* 核心修复:确保 mask 逻辑不会因为 inset 改变而失效 */
-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;
}
/* 3. 内部微光层:同步补强 */
#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 (弹出面板专项增强) --- */
/* ================================================= */
/* 1. 单独拉高弹出菜单的边缘光亮度 */
.citizen-menu__card::before {
/* 核心:将 rgba 的 alpha 调至最高,甚至可以使用 screen 模式 */
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;
}
/* 2. 单独拉高弹出菜单的内部微光 (可选) */
.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%, /* 亮色模式调浓到 0.4 */
transparent 70%
) !important;
}
/* 3. 深色模式下也要单独比目录更亮一点点 */
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 模式强力回退:彻底实体化 --- */
/* ================================================= */
/* 强制覆盖 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;
}
/* Basic 模式下物理移除所有光效 */
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;
}
/* ================================================= */
/* --- 性能模式 (Basic) 强力实体化补丁 --- */
/* ================================================= */
/* 1. 当性能模式开启 (clientpref-1) 时,强制面板完全不透明 */
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;
}
/* 2. 深色模式下的性能模式实体化 */
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;
}
/* 3. 物理级销毁伪元素,确保即使 JS 注入了坐标,CSS 也不渲染光效 */
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;
}
/* ================================================= */
/* --- 26. 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;
}
/* Basic (性能模式) 回退 - 变回实色 */
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;
}
/* ================================================= */
/* --- 27. Player Box (玩家框) 专属 Aero 样式 --- */
/* ================================================= */
/* 如果你使用了 template:玩家 (基于infobox),它会自动继承你第15/22节的样式 */
/* 但我们可以专门强化一下“玩家”这个概念的视觉 */
/* 针对玩家模板的特殊头部颜色 (假设你在Infobox里用了 header) */
.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;
}
/* ================================================= */
/* --- 28. 全局光效注册表 (更新) --- */
/* ================================================= */
/* 原本你的光效只给了 .citizen-menu__card 等。
这里我们将 .ambox 也加入到你的鼠标光效系统中!
(注意:这需要你的JS支持,如果只有CSS,它会显示静态光斑)
*/
/* 1. 注册 Ambox 到光效容器 */
table.ambox {
position: relative !important;
overflow: hidden !important; /* 必须要这个,不然光效会溢出圆角 */
}
/* 2. 注入高光 (对应你代码末尾的精准修正补丁) */
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;
}
/* 3. 注入环境光 */
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;
}
/* 4. 深色模式光效减弱 */
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;
}
/* 5. 性能模式移除光效 */
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;
}
看来特殊版和普通版在你的 CSS 逻辑里依然“捆绑”得很深。既然特殊版已经完美,我们要做的就是把普通版单独拎出来处理,不让通用设置去碰它。
之所以“一起靠内”,是因为 .infobox::before 这个选择器同时覆盖了两者。我们现在用排除法:让特殊版保持原状,只给带有原生内联样式的普通版加“缩进”。
终极分离策略
请尝试用这段代码替换之前的 Infobox 相关部分:
CSS
/* ================================================= */
/* --- 1. 基础回归:特殊 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; /* 这里直接给到 3px,强行把光效拉回内容区 */
border: 2px solid transparent !important;
}
.infobox {
border-radius: 20px !important;
border-collapse: separate !important;
border-spacing: 0 !important;
overflow: hidden !important;
}
/* 4. 边缘光效 ::before:必须同步增大半径,否则光线会变直角 */
.infobox::before,
table.infobox::before {
border-radius: 14px !important; /* 与容器严格一致 */
}
/* 强制修圆普通版那个蓝色的标题栏(.infobox-above) */
.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 {
/* 核心:同步 ::before 的缩进数值(之前是 3px) */
inset: 3px !important;
border-radius: 20px !important;
}
/* ================================================= */
/* --- 修复 Basic Infobox 中间过亮问题 --- */
/* ================================================= */
/* 1. 降低普通版在黑暗模式下的内发光强度 */
html.skin-theme-clientpref-night table.infobox[style*="background"]::after {
/* 将原本 0.2 或 0.4 的不透明度调低到 0.1 */
background: radial-gradient(
400px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
rgba(255, 255, 255, 0.2) 0%, /* 极淡的中心 */
transparent 70%
) !important;
/* 切换混合模式:soft-light 比 screen 更平滑,不会产生爆白 */
mix-blend-mode: soft-light !important;
}
/* 2. 修正普通版黑暗模式下的背景,给光效留出对比空间 */
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); /* 可选:添加一个淡淡的边框代替阴影,保持轮廓 */
}
/* ================================================= */
/* --- 最终修复补丁:自动模式同步与内联样式适配 --- */
/* ================================================= */
/* 1. 移除侧边栏最后修改时间的阴影 Bug (解决父容器截断) */
#citizen-sidebar-lastmod {
box-shadow: none !important;
border: 1px solid rgba(128, 128, 128, 0.2);
}
/* 移除可能存在的伪元素光效,防止在狭窄区域溢出 */
#citizen-sidebar-lastmod::before,
#citizen-sidebar-lastmod::after {
display: none !important;
}
/* 2. 自动模式(OS)下的深色面板与变量同步 */
@media (prefers-color-scheme: dark) {
/* 仅当处于自动模式且未手动开启浅色时生效 */
html.skin-theme-clientpref-os:not(.skin-theme-clientpref-day) {
--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-heading: #ffffff !important;
}
html.skin-theme-clientpref-os:not(.skin-theme-clientpref-day) body {
background-color: #1a1b1c !important;
}
/* 强制自动模式下的所有 Aero 面板(含 Sticky Header 和搜索框)变深 */
html.skin-theme-clientpref-os:not(.skin-theme-clientpref-day) .citizen-menu__card,
html.skin-theme-clientpref-os:not(.skin-theme-clientpref-day) .citizen-sticky-header-background,
html.skin-theme-clientpref-os:not(.skin-theme-clientpref-day) .citizen-command-palette,
html.skin-theme-clientpref-os:not(.skin-theme-clientpref-day) #citizen-preferences__card {
background-color: rgba(36, 37, 38, 0.85) !important;
color: #ffffff !important;
backdrop-filter: blur(20px) saturate(180%) !important;
}
}
/* 3. 针对 Infobox 内联背景色(如飓风强度颜色)的深度适配 */
/* 逻辑:当处于深色模式(手动或自动)时,通过滤镜压暗背景并确保文字可读 */
html.skin-theme-clientpref-night .infobox-above,
html.skin-theme-clientpref-night .infobox-title,
html.skin-theme-clientpref-night .infobox th[style*="background"],
html.skin-theme-clientpref-night .infobox caption[style*="background"],
@media (prefers-color-scheme: dark) {
html.skin-theme-clientpref-os:not(.skin-theme-clientpref-day) .infobox-above,
html.skin-theme-clientpref-os:not(.skin-theme-clientpref-day) .infobox-title,
html.skin-theme-clientpref-os:not(.skin-theme-clientpref-day) .infobox th[style*="background"],
html.skin-theme-clientpref-os:not(.skin-theme-clientpref-day) .infobox caption[style*="background"]
} {
/* 使用 invert 滤镜配合 hue-rotate 保持原色相但反转明度 */
/* 或者使用更稳妥的方案:压暗并强制白字 */
filter: brightness(0.7) contrast(1.1) !important;
color: #ffffff !important;
text-shadow: 0 1px 2px rgba(0,0,0,0.6) !important;
}
/* 针对你提到的 #CCEEFF (星岛) 和 #ffff80 (飓风) 这种极浅色做特殊加强 */
html.skin-theme-clientpref-night .infobox-above[style*="#CCEEFF"],
html.skin-theme-clientpref-night .infobox-title[style*="#ffff80"],
@media (prefers-color-scheme: dark) {
html.skin-theme-clientpref-os:not(.skin-theme-clientpref-day) .infobox-above[style*="#CCEEFF"],
html.skin-theme-clientpref-os:not(.skin-theme-clientpref-day) .infobox-title[style*="#ffff80"]
} {
/* 这种极浅色在深色模式下如果只用滤镜会灰蒙蒙的,直接强制给一个深色色值 */
background-color: rgba(0, 50, 80, 0.9) !important; /* 深蓝色 */
}