MediaWiki:Citizen.css:修订间差异
MediaWiki界面页面
更多操作
无编辑摘要 |
无编辑摘要 |
||
| (未显示同一用户的60个中间版本) | |||
| 第1行: | 第1行: | ||
/* ============================================ | /* ============================================ | ||
Citizen 皮肤定制 | Citizen 皮肤定制 | ||
最后稳定版本:2026-10- | 最后稳定版本:2026-10-04 | ||
结构: | 结构: | ||
0. | 0. 设计令牌 | ||
1. 字体 | 1. 字体 | ||
2. 全局页面布局 | 2. 全局页面布局 | ||
3. Header | 3. Header 隐藏 | ||
4. | 4. 偏好设置面板 | ||
5. 侧边工具栏 Rail | 5. 侧边工具栏 Rail | ||
6. | 6. 全局页脚 | ||
7. 页面操作工具栏 | 7. 页面操作工具栏 | ||
8. 响应式断点 | |||
8. | 9. 评论区 + 主内容链接色 | ||
9. 评论区 | |||
10. 申请账户页面 | 10. 申请账户页面 | ||
11. | 11. 站点头部 | ||
12. 主容器外的独立侧栏 | |||
13. Citizen Sticky Header | |||
链接色规则(重要): | |||
浏览器对 :visited 链接会用默认色,不显式声明会和未访问链接 | |||
视觉不一致。所有链接规则必须同时写 a 和 a:visited。 | |||
============================================ */ | ============================================ */ | ||
| 第28行: | 第27行: | ||
/* ============================================ | /* ============================================ | ||
0. 设计令牌 | 0. 设计令牌 | ||
============================================ */ | ============================================ */ | ||
:root { | :root { | ||
/* ---- 主色系 ---- */ | /* ---- 主色系 ---- */ | ||
--c-primary: #56000d; | --c-primary: #56000d; | ||
--c-primary-hover: #8b1a2b; | --c-primary-hover: #8b1a2b; | ||
--c-primary-night: #6b1010; | --c-primary-night: #6b1010; | ||
--c-primary-rgb: 86, 0, 13; | --c-primary-rgb: 86, 0, 13; | ||
/* ---- 状态色 ---- */ | /* ---- 状态色 ---- */ | ||
--c-danger: #bf0017; | --c-danger: #bf0017; | ||
--c-danger-night: #ff8fa3; | --c-danger-night: #ff8fa3; | ||
/* ---- 夜间模式强调色 ---- */ | /* ---- 夜间模式强调色 ---- */ | ||
--c-night-accent: #d4a5b0; | --c-night-accent: #d4a5b0; | ||
--c-night-accent-rgb: 212, 165, 176; /* | --c-night-accent-rgb: 212, 165, 176; | ||
/* ---- 链接色系 ---- */ | |||
--c-link: #a52a2a; /* 白底可跳转链接(深红,主色亮 2 档) */ | |||
--c-link-hover: #c73e3e; /* 白底 hover(更亮的红) */ | |||
--c-link-new: #6b6b6b; /* 白底空页面链接(中性灰) */ | |||
--c-link-night: #e8a0a0; /* 暗底可跳转链接(淡珊瑚) */ | |||
--c-link-night-hover: #f5c0c0; /* 暗底 hover(更亮珊瑚) */ | |||
--c-link-new-night: #9a9a9a; /* 暗底空页面链接(中灰) */ | |||
/* ---- 通用过渡时长 ---- */ | /* ---- 通用过渡时长 ---- */ | ||
| 第54行: | 第58行: | ||
/* ---- 圆角 ---- */ | /* ---- 圆角 ---- */ | ||
--radius-card: 0.25rem; | --radius-card: 0.25rem; | ||
} | } | ||
| 第61行: | 第65行: | ||
1. 字体 | 1. 字体 | ||
============================================ */ | ============================================ */ | ||
/* --- 2026-10-05 替换:六个展示字体全部换为 OFL / MIT / CC 授权字体 --- */ | |||
@font-face { | |||
font-family: 'LXGW WenKai'; | |||
src: url('/fonts/LXGWWenKai-Light.woff2') format('woff2'); | |||
font-weight: 300; | |||
font-style: normal; | |||
font-display: swap; | |||
} | |||
@font-face { | @font-face { | ||
font-family: 'LXGW WenKai | font-family: 'LXGW WenKai'; | ||
src: url('/fonts/LXGWWenKai-Regular.woff2') format('woff2'); | |||
font-weight: 400; | |||
font-style: normal; | |||
font-display: swap; | |||
} | |||
@font-face { | |||
font-family: 'LXGW WenKai'; | |||
src: url('/fonts/LXGWWenKai-Medium.woff2') format('woff2'); | src: url('/fonts/LXGWWenKai-Medium.woff2') format('woff2'); | ||
font-weight: | font-weight: 500; | ||
font-style: normal; | font-style: normal; | ||
font-display: swap; | font-display: swap; | ||
| 第71行: | 第91行: | ||
@font-face { | @font-face { | ||
font-family: ' | font-family: 'LXGW WenKai'; | ||
src: url('/fonts/ | src: url('/fonts/LXGWWenKai-Medium.woff2') format('woff2'); | ||
font-weight: | font-weight: 700; | ||
font-style: normal; | font-style: normal; | ||
font-display: swap; | font-display: swap; | ||
| 第79行: | 第99行: | ||
@font-face { | @font-face { | ||
font-family: ' | font-family: 'Noto Sans SC'; | ||
src: url('/fonts/ | src: url('/fonts/NotoSansSC-Variable.woff2') format('woff2-variations'); | ||
font-weight: | font-weight: 100 900; | ||
font-style: normal; | font-style: normal; | ||
font-display: swap; | font-display: swap; | ||
| 第87行: | 第107行: | ||
@font-face { | @font-face { | ||
font-family: ' | font-family: 'JetBrains Mono'; | ||
src: url('/fonts/ | src: url('/fonts/JetBrainsMono-Variable.woff2') format('woff2-variations'); | ||
font-weight: | font-weight: 100 800; | ||
font-style: normal; | font-style: normal; | ||
font-display: swap; | font-display: swap; | ||
| 第95行: | 第115行: | ||
@font-face { | @font-face { | ||
font-family: ' | font-family: 'JetBrains Mono'; | ||
src: url('/fonts/ | src: url('/fonts/JetBrainsMono-Italic-Variable.woff2') format('woff2-variations'); | ||
font-weight: 100 800; | |||
font-style: italic; | |||
font-display: swap; | |||
} | |||
@font-face { | |||
font-family: 'Rubik'; | |||
src: url('/fonts/Rubik-Variable.woff2') format('woff2-variations'); | |||
font-weight: 100 900; | font-weight: 100 900; | ||
font-style: normal; | font-style: normal; | ||
| 第103行: | 第131行: | ||
@font-face { | @font-face { | ||
font-family: ' | font-family: 'Rubik'; | ||
src: url('/fonts/ | src: url('/fonts/Rubik-Italic-Variable.woff2') format('woff2-variations'); | ||
font-weight: normal; | font-weight: 100 900; | ||
font-style: italic; | |||
font-display: swap; | |||
} | |||
@font-face { | |||
font-family: 'College'; | |||
src: url('/fonts/College-Regular.woff2') format('woff2'); | |||
font-weight: 400; | |||
font-style: normal; | |||
font-display: swap; | |||
} | |||
@font-face { | |||
font-family: 'College'; | |||
src: url('/fonts/College-Bold.woff2') format('woff2'); | |||
font-weight: 700; | |||
font-style: normal; | |||
font-display: swap; | |||
} | |||
@font-face { | |||
font-family: 'Cinzel Decorative'; | |||
src: url('/fonts/CinzelDecorative-Regular.woff2') format('woff2'); | |||
font-weight: 400; | |||
font-style: normal; | |||
font-display: swap; | |||
} | |||
@font-face { | |||
font-family: 'Cinzel Decorative'; | |||
src: url('/fonts/CinzelDecorative-Bold.woff2') format('woff2'); | |||
font-weight: 700; | |||
font-style: normal; | |||
font-display: swap; | |||
} | |||
@font-face { | |||
font-family: 'Cinzel Decorative'; | |||
src: url('/fonts/CinzelDecorative-Black.woff2') format('woff2'); | |||
font-weight: 900; | |||
font-style: normal; | |||
font-display: swap; | |||
} | |||
@font-face { | |||
font-family: 'Ballet'; | |||
src: url('/fonts/Ballet-Variable.woff2') format('woff2-variations'); | |||
font-weight: 400; | |||
font-style: normal; | font-style: normal; | ||
font-display: swap; | font-display: swap; | ||
} | } | ||
@font-face { | @font-face { | ||
font-family: ' | font-family: 'TESLA'; | ||
src: url('/fonts/ | src: url('/fonts/Tesla-Regular.woff2') format('woff2'); | ||
font-weight: | font-weight: 400; | ||
font-style: normal; | font-style: normal; | ||
font-display: swap; | font-display: swap; | ||
} | } | ||
@font-face { | @font-face { | ||
font-family: ' | font-family: 'Chrontor'; | ||
src: url('/fonts/ | src: url('/fonts/Chrontor-Regular.woff2') format('woff2'); | ||
font-weight: | font-weight: 400; | ||
font-style: normal; | font-style: normal; | ||
font-display: swap; | font-display: swap; | ||
} | } | ||
:root { | :root { | ||
--font-family-base: | --font-family-base: 'LXGW WenKai', system-ui, sans-serif; | ||
--font-family- | --font-family-noto: 'Noto Sans SC', system-ui, sans-serif; | ||
--font-family- | --font-family-college: 'College', 'LXGW WenKai', system-ui, sans-serif; | ||
--font-family- | --font-family-chrontor: 'Chrontor', 'LXGW WenKai', system-ui, sans-serif; | ||
--font-family- | --font-family-cinzel: 'Cinzel Decorative', 'LXGW WenKai', system-ui, sans-serif; | ||
--font-family- | --font-family-ballet: 'Ballet', 'LXGW WenKai', system-ui, sans-serif; | ||
--font-family- | --font-family-tesla: 'TESLA', 'LXGW WenKai', system-ui, sans-serif; | ||
--font-family- | --font-family-mono: 'JetBrains Mono', 'LXGW WenKai', system-ui, monospace; | ||
--font-family-rubik: 'Rubik', 'LXGW WenKai', system-ui, sans-serif; | |||
} | } | ||
html, body, .mw-body, .mw-parser-output { | html, body, .mw-body, .mw-parser-output { | ||
font-family: var(--font-family-base); | font-family: var(--font-family-base); | ||
font-weight: 500; | |||
-webkit-text-stroke: 0.015em currentColor; | |||
} | } | ||
.font- | .font-college { font-family: var(--font-family-college); } | ||
.font- | .font-chrontor { font-family: var(--font-family-chrontor); } | ||
.font- | .font-cinzel { font-family: var(--font-family-cinzel); } | ||
.font- | .font-ballet { font-family: var(--font-family-ballet); } | ||
.font- | .font-tesla { font-family: var(--font-family-tesla); } | ||
.font- | .font-noto { font-family: var(--font-family-noto); } | ||
.font- | .font-mono { font-family: var(--font-family-mono); } | ||
.font-rubik { font-family: var(--font-family-rubik); } | |||
/* ============================================ | /* ============================================ | ||
2. 全局页面布局 | 2. 全局页面布局 | ||
============================================ */ | ============================================ */ | ||
/* 2.1 固定背景 */ | /* 2.1 固定背景 */ | ||
body { | body { | ||
background-image: | /* 兜底色:图片加载前/失败时显示,避免白色闪烁 */ | ||
background-color: #1a0508; | |||
background-image: url('/index.php?title=Special:FilePath/红花1.jpg'); | |||
background-attachment: fixed; | background-attachment: fixed; | ||
background-size: cover; | background-size: cover; | ||
| 第163行: | 第239行: | ||
} | } | ||
/* 夜间模式:换成另一张背景图 + 更深的兜底色 */ | |||
html.skin-theme-clientpref-night body, | html.skin-theme-clientpref-night body, | ||
html.skin-theme-clientpref-pureblack body { | html.skin-theme-clientpref-pureblack body { | ||
background-image: | background-color: #050202; | ||
background-image: url('/index.php?title=Special:FilePath/红花1.jpg'); | |||
} | } | ||
/* 2.2 | /* 2.2 页面容器:flex column,让 mw-body 吸收短页面剩余空间 */ | ||
.citizen-page-container { | .citizen-page-container { | ||
padding: 1.5rem 1.5rem 0 1.5rem; | padding: 1.5rem 1.5rem 0 1.5rem; | ||
| 第187行: | 第265行: | ||
margin: 0 auto; | margin: 0 auto; | ||
box-sizing: border-box; | box-sizing: border-box; | ||
flex: | |||
/* 短页面时吸收剩余空间;长页面保持自然高度 */ | |||
flex: 1 0 auto; | |||
background: rgba(255, 255, 255, 0.97); | background: rgba(255, 255, 255, 0.97); | ||
} | } | ||
html.skin-theme-clientpref-night .mw-body { | html.skin-theme-clientpref-night .mw-body { | ||
background: rgba(30, 22, 24, 0.95); | background: rgba(30, 22, 24, 0.95); | ||
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6); | box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6); | ||
} | } | ||
html.skin-theme-clientpref-pureblack .mw-body { | html.skin-theme-clientpref-pureblack .mw-body { | ||
background: rgba(0, 0, 0, 0.95); | background: rgba(0, 0, 0, 0.95); | ||
| 第201行: | 第280行: | ||
} | } | ||
/* 2.4 | /* 2.4 宽度偏好 */ | ||
html.citizen-feature-custom-width-clientpref-narrow .mw-body { | html.citizen-feature-custom-width-clientpref-narrow .mw-body { | ||
max-width: 55rem !important; | max-width: 55rem !important; | ||
| 第251行: | 第330行: | ||
/* ============================================ | /* ============================================ | ||
4. 偏好设置面板 | 4. 偏好设置面板 | ||
============================================ */ | ============================================ */ | ||
body:not(.page-Special_Preferences) #citizen-preferences-dropdown__card { | body:not(.page-Special_Preferences) #citizen-preferences-dropdown__card { | ||
position: fixed !important; | position: fixed !important; | ||
| 第276行: | 第349行: | ||
display: none; | display: none; | ||
} | } | ||
body:not(.page-Special_Preferences) #citizen-preferences-details[open] + #citizen-preferences-dropdown__card, | body:not(.page-Special_Preferences) #citizen-preferences-details[open] + #citizen-preferences-dropdown__card, | ||
body:not(.page-Special_Preferences).citizen-preferences-shown #citizen-preferences-dropdown__card { | body:not(.page-Special_Preferences).citizen-preferences-shown #citizen-preferences-dropdown__card { | ||
| 第282行: | 第354行: | ||
} | } | ||
.citizen-preferences-close { | .citizen-preferences-close { | ||
position: absolute; | position: absolute; | ||
| 第300行: | 第371行: | ||
} | } | ||
@media (max-width: 700px) { | @media (max-width: 700px) { | ||
body:not(.page-Special_Preferences) #citizen-preferences-dropdown__card { | body:not(.page-Special_Preferences) #citizen-preferences-dropdown__card { | ||
| 第323行: | 第393行: | ||
/* ============================================ | /* ============================================ | ||
5. 侧边工具栏 Rail | 5. 侧边工具栏 Rail | ||
面板内链接用主色系(红),与暗红标题栏同系统。 | |||
必须同时声明 a 和 a:visited,否则浏览器会用默认色。 | |||
============================================ */ | ============================================ */ | ||
| 第335行: | 第408行: | ||
transition: transform var(--t-slow) ease; | transition: transform var(--t-slow) ease; | ||
} | } | ||
body.rail-open .rail-container { | body.rail-open .rail-container { | ||
transform: translateX(-19.5rem); | transform: translateX(-19.5rem); | ||
| 第426行: | 第498行: | ||
} | } | ||
/* 隐藏 parser 自动生成的目录 */ | |||
.rail-panel__content .toc, | |||
.rail-panel__content #toc { | |||
display: none !important; | |||
} | |||
/* 面板内的排版(模板渲染的 HTML) */ | |||
.rail-panel__content .mw-parser-output h3 { | .rail-panel__content .mw-parser-output h3 { | ||
font-size: 1rem; | font-size: 1rem; | ||
| 第444行: | 第523行: | ||
margin-bottom: 0.25rem; | margin-bottom: 0.25rem; | ||
} | } | ||
.rail-panel__content .mw-parser-output a { | |||
/* 面板内链接(红) */ | |||
.rail-panel__content .mw-parser-output a, | |||
.rail-panel__content .mw-parser-output a:visited { | |||
display: block; | display: block; | ||
padding: 0.5rem 0.75rem; | padding: 0.5rem 0.75rem; | ||
color: | color: var(--c-primary); | ||
text-decoration: none; | text-decoration: none; | ||
border-radius: 0.4rem; | border-radius: 0.4rem; | ||
transition: background var(--t-fast), color var(--t-fast); | transition: background var(--t-fast), color var(--t-fast); | ||
} | } | ||
.rail-panel__content .mw-parser-output a:hover { | .rail-panel__content .mw-parser-output a:hover, | ||
.rail-panel__content .mw-parser-output a:visited:hover { | |||
background: rgba(var(--c-primary-rgb), 0.08); | background: rgba(var(--c-primary-rgb), 0.08); | ||
color: var(--c-primary); | color: var(--c-primary-hover); | ||
} | |||
.rail-panel__content .mw-parser-output a.new, | |||
.rail-panel__content .mw-parser-output a.new:visited { | |||
color: var(--c-danger); | |||
} | |||
.rail-panel__content .mw-parser-output a.new:hover, | |||
.rail-panel__content .mw-parser-output a.new:visited:hover { | |||
color: var(--c-danger); | |||
text-decoration: underline; | |||
} | } | ||
| 第491行: | 第583行: | ||
font-size: 0.85rem; | font-size: 0.85rem; | ||
} | } | ||
.rail-group-tag { | a.rail-group-tag, | ||
a.rail-group-tag:visited { | |||
display: inline-block; | display: inline-block; | ||
padding: 0.15rem 0.5rem; | padding: 0.15rem 0.5rem; | ||
| 第502行: | 第595行: | ||
transition: background var(--t-fast); | transition: background var(--t-fast); | ||
} | } | ||
a.rail-group-tag:hover { | a.rail-group-tag:hover, | ||
a.rail-group-tag:visited:hover { | |||
background: rgba(var(--c-primary-rgb), 0.22); | background: rgba(var(--c-primary-rgb), 0.22); | ||
} | |||
/* ---- 5.1 夜间模式 ---- */ | |||
html.skin-theme-clientpref-night .rail-panel { | |||
background: rgba(30, 22, 24, 0.98); | |||
box-shadow: -4px 0 20px rgba(0, 0, 0, 0.6); | |||
} | |||
html.skin-theme-clientpref-pureblack .rail-panel { | |||
background: rgba(0, 0, 0, 0.98); | |||
box-shadow: -4px 0 20px rgba(0, 0, 0, 0.8); | |||
} | |||
html.skin-theme-clientpref-night .rail-panel__header, | |||
html.skin-theme-clientpref-pureblack .rail-panel__header { | |||
background: var(--c-primary-night); | |||
} | |||
html.skin-theme-clientpref-night .rail-panel__loading { | |||
color: #777; | |||
} | |||
html.skin-theme-clientpref-night .rail-panel__content .mw-parser-output h3 { | |||
color: var(--c-night-accent); | |||
border-left-color: var(--c-night-accent); | |||
} | |||
html.skin-theme-clientpref-night .rail-panel__content .mw-parser-output a, | |||
html.skin-theme-clientpref-night .rail-panel__content .mw-parser-output a:visited { | |||
color: var(--c-night-accent); | |||
} | |||
html.skin-theme-clientpref-night .rail-panel__content .mw-parser-output a:hover, | |||
html.skin-theme-clientpref-night .rail-panel__content .mw-parser-output a:visited:hover { | |||
background: rgba(var(--c-night-accent-rgb), 0.12); | |||
color: #fff; | |||
} | |||
html.skin-theme-clientpref-night .rail-panel__content .mw-parser-output a.new, | |||
html.skin-theme-clientpref-night .rail-panel__content .mw-parser-output a.new:visited { | |||
color: var(--c-danger-night); | |||
} | |||
html.skin-theme-clientpref-night .rail-account-groups { | |||
color: #bbb; | |||
} | |||
html.skin-theme-clientpref-night .rail-account-groups__label { | |||
color: #888; | |||
} | |||
html.skin-theme-clientpref-night a.rail-group-tag, | |||
html.skin-theme-clientpref-night a.rail-group-tag:visited { | |||
background: rgba(var(--c-night-accent-rgb), 0.15); | |||
color: var(--c-night-accent); | |||
} | |||
html.skin-theme-clientpref-night a.rail-group-tag:hover, | |||
html.skin-theme-clientpref-night a.rail-group-tag:visited:hover { | |||
background: rgba(var(--c-night-accent-rgb), 0.28); | |||
} | |||
html.skin-theme-clientpref-night .rail-button { | |||
background: var(--c-primary-night); | |||
} | |||
html.skin-theme-clientpref-night .rail-button:hover, | |||
html.skin-theme-clientpref-night .rail-button.is-active { | |||
background: var(--c-primary-hover); | |||
} | } | ||
/* ============================================ | /* ============================================ | ||
6. | 6. 全局页脚(暗色玻璃) | ||
与 mw-body 的间距固定为 2rem。 | |||
短页面的空白由 .mw-body 吸收(flex-grow),footer 贴底。 | |||
============================================ */ | ============================================ */ | ||
| 第516行: | 第669行: | ||
width: calc(100% + 3rem); | width: calc(100% + 3rem); | ||
box-sizing: border-box; | box-sizing: border-box; | ||
background: | |||
background: rgba(42, 0, 6, 0.65); | |||
-webkit-backdrop-filter: blur(16px); | |||
backdrop-filter: blur(16px); | |||
border-top: 1px solid rgba(255, 255, 255, 0.12); | |||
color: rgba(255, 255, 255, 0.85); | color: rgba(255, 255, 255, 0.85); | ||
flex-shrink: 0; | flex-shrink: 0; | ||
} | } | ||
| 第558行: | 第715行: | ||
.citizen-footer__sitetitle .mw-logo-wordmark { | .citizen-footer__sitetitle .mw-logo-wordmark { | ||
color: #fff; | color: #fff; | ||
font-family: var(--font-family- | font-family: var(--font-family-cinzel); | ||
text-transform: uppercase; | text-transform: uppercase; | ||
} | } | ||
| 第586行: | 第743行: | ||
letter-spacing: 0.15em; | letter-spacing: 0.15em; | ||
text-transform: uppercase; | text-transform: uppercase; | ||
} | |||
/* footer 内的链接:暗底用亮金 + 粉红 */ | |||
.citizen-footer a, | |||
.citizen-footer a:visited { | |||
color: var(--c-link-night) !important; | |||
text-decoration: none; | |||
transition: color var(--t-fast); | |||
} | |||
.citizen-footer a:hover, | |||
.citizen-footer a:visited:hover { | |||
color: var(--c-link-night-hover) !important; | |||
text-decoration: underline; | |||
} | |||
.citizen-footer a.new, | |||
.citizen-footer a.new:visited { | |||
color: var(--c-link-new-night) !important; | |||
} | |||
html.skin-theme-clientpref-night .citizen-footer, | |||
html.skin-theme-clientpref-pureblack .citizen-footer { | |||
background: rgba(0, 0, 0, 0.7); | |||
border-top-color: rgba(255, 255, 255, 0.08); | |||
} | } | ||
| 第591行: | 第771行: | ||
/* ============================================ | /* ============================================ | ||
7. 页面操作工具栏 | 7. 页面操作工具栏 | ||
============================================ */ | ============================================ */ | ||
| 第597行: | 第776行: | ||
.citizen-page-header-inner { | .citizen-page-header-inner { | ||
position: static !important; | position: static !important; | ||
} | |||
.citizen-page-header-inner { | |||
display: flex !important; | |||
align-items: center !important; | |||
justify-content: space-between !important; | |||
gap: 1rem !important; | |||
flex-wrap: wrap !important; | |||
} | |||
.citizen-page-heading { | |||
flex: 1 1 auto !important; | |||
min-width: 0 !important; | |||
} | |||
#siteSub { | |||
display: none !important; | |||
} | } | ||
.citizen-page-actions { | .citizen-page-actions { | ||
position: | position: static !important; | ||
display: flex !important; | display: flex !important; | ||
flex-direction: | flex-direction: row !important; | ||
align-items: flex- | align-items: center !important; | ||
gap: 0. | flex-wrap: wrap !important; | ||
gap: 0.25rem !important; | |||
margin: 0 !important; | margin: 0 !important; | ||
padding: 0 !important; | padding: 0 !important; | ||
flex: 0 0 auto !important; | |||
} | } | ||
.citizen-page-actions .citizen-menu__heading { | .citizen-page-actions .citizen-menu__heading { | ||
display: none !important; | display: none !important; | ||
} | } | ||
.citizen-page-actions .citizen-menu, | .citizen-page-actions .citizen-menu, | ||
.citizen-page-actions .citizen-menu__content, | .citizen-page-actions .citizen-menu__content, | ||
.citizen-page-actions .citizen-menu__content-list { | .citizen-page-actions .citizen-menu__content-list { | ||
display: flex !important; | display: flex !important; | ||
flex-direction: | flex-direction: row !important; | ||
align-items: flex- | align-items: center !important; | ||
gap: 0. | flex-wrap: wrap !important; | ||
gap: 0.25rem !important; | |||
margin: 0 !important; | margin: 0 !important; | ||
padding: 0 !important; | padding: 0 !important; | ||
list-style: none !important; | list-style: none !important; | ||
} | } | ||
.citizen-page-actions .mw-list-item, | .citizen-page-actions .mw-list-item, | ||
.citizen-page-actions .citizen-share-trigger, | .citizen-page-actions .citizen-share-trigger, | ||
| 第647行: | 第840行: | ||
.citizen-page-actions .mw-list-item > a, | .citizen-page-actions .mw-list-item > a, | ||
.citizen-page-actions .mw-list-item > a:visited, | |||
.citizen-page-actions .citizen-share, | .citizen-page-actions .citizen-share, | ||
.citizen-page-actions .citizen-dropdown-summary { | .citizen-page-actions .citizen-dropdown-summary { | ||
all: unset !important; | all: unset !important; | ||
display: flex !important; | display: inline-flex !important; | ||
align-items: center !important; | align-items: center !important; | ||
justify-content: center !important; | justify-content: center !important; | ||
gap: 0.35rem !important; | |||
height: | height: 2rem !important; | ||
padding: 0 !important; | padding: 0 0.6rem !important; | ||
margin: 0 !important; | margin: 0 !important; | ||
border: none !important; | border: none !important; | ||
border-radius: 0. | border-radius: 0.4rem !important; | ||
background: | background: transparent !important; | ||
color: | color: var(--c-primary) !important; | ||
font-size: 0.82rem !important; | |||
font-size: | |||
line-height: 1 !important; | line-height: 1 !important; | ||
cursor: pointer !important; | cursor: pointer !important; | ||
text-decoration: none !important; | text-decoration: none !important; | ||
transition: background var(--t- | box-sizing: border-box !important; | ||
white-space: nowrap !important; | |||
transition: background var(--t-fast), color var(--t-fast) !important; | |||
} | } | ||
.citizen-page-actions .mw-list-item > a:hover, | .citizen-page-actions .mw-list-item > a:hover, | ||
.citizen-page-actions .citizen-share:hover, | .citizen-page-actions .citizen-share:hover, | ||
.citizen-page-actions .citizen-dropdown-summary:hover { | .citizen-page-actions .citizen-dropdown-summary:hover { | ||
background: var(--c-primary-hover) !important; | background: rgba(var(--c-primary-rgb), 0.08) !important; | ||
color: var(--c-primary-hover) !important; | |||
} | |||
.citizen-page-actions .mw-list-item.selected > a { | |||
background: rgba(var(--c-primary-rgb), 0.12) !important; | |||
font-weight: bold !important; | |||
} | |||
.citizen-page-actions .citizen-ui-icon { | |||
font-size: 1rem !important; | |||
flex-shrink: 0 !important; | |||
} | } | ||
.citizen-page-actions > .citizen-menu .citizen-keyboard-hint-keys, | .citizen-page-actions > .citizen-menu .citizen-keyboard-hint-keys, | ||
.citizen-page-actions > .citizen-menu kbd { | .citizen-page-actions > .citizen-menu kbd { | ||
| 第691行: | 第888行: | ||
.citizen-page-actions #citizen-page-actions-more__card { | .citizen-page-actions #citizen-page-actions-more__card { | ||
position: absolute !important; | position: absolute !important; | ||
top: calc(100% + 0.5rem) !important; | |||
right: | right: 0 !important; | ||
left: auto !important; | |||
min-width: 12rem !important; | min-width: 12rem !important; | ||
max-width: calc(100vw - | max-width: calc(100vw - 4rem) !important; | ||
background: #fff !important; | background: #fff !important; | ||
border-radius: 0.5rem !important; | border-radius: 0.5rem !important; | ||
| 第702行: | 第899行: | ||
z-index: 100 !important; | z-index: 100 !important; | ||
} | } | ||
.citizen-page-actions #citizen-page-actions-more__card .mw-list-item > a, | |||
.citizen-page-actions #citizen-page-actions-more__card .mw-list-item > a { | .citizen-page-actions #citizen-page-actions-more__card .mw-list-item > a:visited { | ||
all: unset !important; | all: unset !important; | ||
display: flex !important; | display: flex !important; | ||
| 第710行: | 第907行: | ||
gap: 0.6rem !important; | gap: 0.6rem !important; | ||
width: 100% !important; | width: 100% !important; | ||
height: auto !important; | |||
padding: 0.5rem 0.75rem !important; | padding: 0.5rem 0.75rem !important; | ||
border-radius: 0.4rem !important; | border-radius: 0.4rem !important; | ||
color: | color: var(--c-primary) !important; | ||
font-size: 0.9rem !important; | font-size: 0.9rem !important; | ||
cursor: pointer !important; | cursor: pointer !important; | ||
text-decoration: none !important; | text-decoration: none !important; | ||
box-sizing: border-box !important; | box-sizing: border-box !important; | ||
white-space: normal !important; | |||
} | } | ||
.citizen-page-actions #citizen-page-actions-more__card .mw-list-item > a:hover { | .citizen-page-actions #citizen-page-actions-more__card .mw-list-item > a:hover, | ||
.citizen-page-actions #citizen-page-actions-more__card .mw-list-item > a:visited:hover { | |||
background: rgba(var(--c-primary-rgb), 0.08) !important; | background: rgba(var(--c-primary-rgb), 0.08) !important; | ||
color: var(--c-primary) !important; | color: var(--c-primary-hover) !important; | ||
} | } | ||
.citizen-page-actions #citizen-page-actions-more__card .mw-list-item > a > span:not(.citizen-ui-icon), | .citizen-page-actions #citizen-page-actions-more__card .mw-list-item > a > span:not(.citizen-ui-icon), | ||
| 第726行: | 第926行: | ||
.citizen-page-actions #citizen-page-actions-more__card kbd { | .citizen-page-actions #citizen-page-actions-more__card kbd { | ||
display: inline !important; | display: inline !important; | ||
} | } | ||
html.skin-theme-clientpref-night .citizen-page-actions .mw-list-item > a, | html.skin-theme-clientpref-night .citizen-page-actions .mw-list-item > a, | ||
html.skin-theme-clientpref-night .citizen-page-actions .mw-list-item > a:visited, | |||
html.skin-theme-clientpref-night .citizen-page-actions .citizen-share, | html.skin-theme-clientpref-night .citizen-page-actions .citizen-share, | ||
html.skin-theme-clientpref-night .citizen-page-actions .citizen-dropdown-summary { | html.skin-theme-clientpref-night .citizen-page-actions .citizen-dropdown-summary { | ||
color: var(--c-night-accent) !important; | |||
} | } | ||
html.skin-theme-clientpref-night .citizen-page-actions .mw-list-item > a:hover, | html.skin-theme-clientpref-night .citizen-page-actions .mw-list-item > a:hover, | ||
html.skin-theme-clientpref-night .citizen-page-actions .citizen-share:hover, | html.skin-theme-clientpref-night .citizen-page-actions .citizen-share:hover, | ||
html.skin-theme-clientpref-night .citizen-page-actions .citizen-dropdown-summary:hover { | html.skin-theme-clientpref-night .citizen-page-actions .citizen-dropdown-summary:hover { | ||
background: var(--c- | background: rgba(var(--c-night-accent-rgb), 0.12) !important; | ||
color: #fff !important; | |||
} | |||
html.skin-theme-clientpref-night .citizen-page-actions .mw-list-item.selected > a { | |||
background: rgba(var(--c-night-accent-rgb), 0.16) !important; | |||
} | } | ||
html.skin-theme-clientpref-night .citizen-page-actions #citizen-page-actions-more__card { | html.skin-theme-clientpref-night .citizen-page-actions #citizen-page-actions-more__card { | ||
background: #2a2022 !important; | background: #2a2022 !important; | ||
} | } | ||
html.skin-theme-clientpref-night .citizen-page-actions #citizen-page-actions-more__card .mw-list-item > a { | html.skin-theme-clientpref-night .citizen-page-actions #citizen-page-actions-more__card .mw-list-item > a, | ||
html.skin-theme-clientpref-night .citizen-page-actions #citizen-page-actions-more__card .mw-list-item > a:visited { | |||
color: #ddd !important; | color: #ddd !important; | ||
} | } | ||
html.skin-theme-clientpref-night .citizen-page-actions #citizen-page-actions-more__card .mw-list-item > a:hover { | |||
background: rgba(var(--c-night-accent-rgb), 0.12) !important; | |||
background: var(--c- | |||
color: #fff !important; | color: #fff !important; | ||
} | } | ||
/* ============================================ | /* ============================================ | ||
8. | 8. 响应式断点 | ||
============================================ */ | ============================================ */ | ||
@media (max-width: 1100px) { | @media (max-width: 1100px) { | ||
.citizen-page-actions .mw-list-item > a, | |||
.citizen-page- | .citizen-page-actions .citizen-share, | ||
.citizen-page-actions .citizen-dropdown-summary { | |||
width: 2rem !important; | |||
padding: 0 !important; | |||
height: 2rem !important; | |||
} | |||
.citizen-page-actions .mw-list-item > a > span:not(.citizen-ui-icon), | |||
.citizen-page-actions .citizen-share > span:not(.citizen-ui-icon), | |||
.citizen-page-actions .citizen-dropdown-summary > span:not(.citizen-ui-icon) { | |||
display: none !important; | display: none !important; | ||
} | } | ||
| 第893行: | 第1,000行: | ||
} | } | ||
@media (max-width: 700px) { | @media (max-width: 700px) { | ||
.citizen-page-container { | .citizen-page-container { | ||
padding: 0.75rem 0.75rem 0 0.75rem; | padding: 0.75rem 0.75rem 0 0.75rem; | ||
| 第903行: | 第1,008行: | ||
border-radius: 0.375rem; | border-radius: 0.375rem; | ||
} | } | ||
.rail-panel { | .rail-panel { | ||
width: 80vw; | width: 80vw; | ||
| 第913行: | 第1,017行: | ||
transform: translateX(calc(-80vw + 0.5rem)); | transform: translateX(calc(-80vw + 0.5rem)); | ||
} | } | ||
.citizen-footer { | .citizen-footer { | ||
margin: 1rem -0.75rem 0 -0.75rem; | margin: 1rem -0.75rem 0 -0.75rem; | ||
| 第923行: | 第1,026行: | ||
/* ============================================ | /* ============================================ | ||
9. 评论区 | 9. 评论区 + 主内容链接色 | ||
============================================ */ | ============================================ */ | ||
.comments-body.comments-body--page-level { | .comments-body.comments-body--page-level { | ||
margin: 2rem auto 0 auto !important; | margin: 2rem auto 0 auto !important; | ||
| 第956行: | 第1,038行: | ||
width: 100% !important; | width: 100% !important; | ||
max-width: 100% !important; | max-width: 100% !important; | ||
flex-shrink: 0; | |||
} | } | ||
html.citizen-feature-custom-width-clientpref-narrow .comments-body.comments-body--page-level { | html.citizen-feature-custom-width-clientpref-narrow .comments-body.comments-body--page-level { | ||
max-width: 55rem !important; | max-width: 55rem !important; | ||
| 第972行: | 第1,054行: | ||
} | } | ||
.comments-body .c-item.full { | .comments-body .c-item.full { | ||
display: flow-root !important; | display: flow-root !important; | ||
| 第1,005行: | 第1,086行: | ||
} | } | ||
.comments-body .c-item.reply, | .comments-body .c-item.reply, | ||
.comments-body .c-item.nested-in-parent { | .comments-body .c-item.nested-in-parent { | ||
| 第1,021行: | 第1,101行: | ||
} | } | ||
.comments-body .c-avatar { | .comments-body .c-avatar { | ||
display: none !important; | display: none !important; | ||
} | } | ||
.comments-body .c-user { | .comments-body .c-user { | ||
display: flex !important; | display: flex !important; | ||
| 第1,037行: | 第1,115行: | ||
color: #666 !important; | color: #666 !important; | ||
} | } | ||
.comments-body .c-user a { | .comments-body .c-user a, | ||
color: var(--c- | .comments-body .c-user a:visited { | ||
color: var(--c-link) !important; | |||
font-weight: bold !important; | font-weight: bold !important; | ||
text-decoration: none !important; | text-decoration: none !important; | ||
} | } | ||
.comments-body .c-user a:hover { | .comments-body .c-user a:hover, | ||
.comments-body .c-user a:visited:hover { | |||
color: var(--c-link-hover) !important; | |||
text-decoration: underline !important; | text-decoration: underline !important; | ||
} | |||
.comments-body .c-user a.new, | |||
.comments-body .c-user a.new:visited { | |||
color: var(--c-link-new) !important; | |||
} | } | ||
.comments-body .c-time, | .comments-body .c-time, | ||
| 第1,053行: | 第1,138行: | ||
} | } | ||
.comments-body .c-comment { | .comments-body .c-comment { | ||
width: 100% !important; | width: 100% !important; | ||
| 第1,068行: | 第1,152行: | ||
} | } | ||
.comments-body .c-actions { | .comments-body .c-actions { | ||
display: flex !important; | display: flex !important; | ||
| 第1,088行: | 第1,171行: | ||
.comments-body .c-actions a, | .comments-body .c-actions a, | ||
.comments-body .c-actions a:visited, | |||
.comments-body .c-actions > span { | .comments-body .c-actions > span { | ||
display: inline-flex !important; | display: inline-flex !important; | ||
| 第1,107行: | 第1,191行: | ||
font-family: inherit !important; | font-family: inherit !important; | ||
} | } | ||
.comments-body .c-actions a:hover { | .comments-body .c-actions a:hover, | ||
.comments-body .c-actions a:visited:hover { | |||
background: var(--c-primary) !important; | background: var(--c-primary) !important; | ||
color: #fff !important; | color: #fff !important; | ||
| 第1,133行: | 第1,218行: | ||
} | } | ||
.comments-body textarea, | .comments-body textarea, | ||
.comments-body #comment { | .comments-body #comment { | ||
| 第1,196行: | 第1,280行: | ||
} | } | ||
.comments-body .c-order { | .comments-body .c-order { | ||
font-size: 0.85rem; | font-size: 0.85rem; | ||
| 第1,209行: | 第1,292行: | ||
font-size: 0.85rem; | font-size: 0.85rem; | ||
} | } | ||
.comments-body .c-spy a { | .comments-body .c-spy a, | ||
color: var(--c- | .comments-body .c-spy a:visited { | ||
color: var(--c-link); | |||
text-decoration: none; | text-decoration: none; | ||
font-size: 0.85rem; | font-size: 0.85rem; | ||
} | } | ||
.comments-body .c-spy a:hover { | .comments-body .c-spy a:hover, | ||
.comments-body .c-spy a:visited:hover { | |||
color: var(--c-link-hover); | |||
text-decoration: underline; | text-decoration: underline; | ||
} | } | ||
.mw-body-content > .printfooter { | .mw-body-content > .printfooter { | ||
display: none !important; | display: none !important; | ||
} | } | ||
/* | /* ---- 9.1 移动端适配 ---- */ | ||
@media (max-width: 700px) { | @media (max-width: 700px) { | ||
.comments-body.comments-body--page-level { | .comments-body.comments-body--page-level { | ||
| 第1,259行: | 第1,344行: | ||
} | } | ||
/* | /* ---- 9.2 夜间模式 ---- */ | ||
html.skin-theme-clientpref-night .comments-body.comments-body--page-level { | html.skin-theme-clientpref-night .comments-body.comments-body--page-level { | ||
background: rgba(30, 22, 24, 0.95) !important; | background: rgba(30, 22, 24, 0.95) !important; | ||
| 第1,288行: | 第1,373行: | ||
color: #999 !important; | color: #999 !important; | ||
} | } | ||
html.skin-theme-clientpref-night .comments-body .c-user a { | html.skin-theme-clientpref-night .comments-body .c-user a, | ||
color: var(--c-night- | html.skin-theme-clientpref-night .comments-body .c-user a:visited { | ||
color: var(--c-link-night) !important; | |||
} | |||
html.skin-theme-clientpref-night .comments-body .c-user a:hover, | |||
html.skin-theme-clientpref-night .comments-body .c-user a:visited:hover { | |||
color: var(--c-link-night-hover) !important; | |||
} | |||
html.skin-theme-clientpref-night .comments-body .c-user a.new, | |||
html.skin-theme-clientpref-night .comments-body .c-user a.new:visited { | |||
color: var(--c-link-new-night) !important; | |||
} | } | ||
html.skin-theme-clientpref-night .comments-body .c-actions { | html.skin-theme-clientpref-night .comments-body .c-actions { | ||
| 第1,314行: | 第1,408行: | ||
html.skin-theme-clientpref-night .comments-body .c-actions .comments-edit { | html.skin-theme-clientpref-night .comments-body .c-actions .comments-edit { | ||
color: var(--c-night-accent) !important; | color: var(--c-night-accent) !important; | ||
} | |||
/* ---- 9.3 主内容区链接色(金色 / 暗红)---- */ | |||
.mw-body-content a, | |||
.mw-body-content a:visited, | |||
.mw-parser-output a, | |||
.mw-parser-output a:visited { | |||
color: var(--c-link); | |||
text-decoration: none; | |||
transition: color var(--t-fast); | |||
} | |||
.mw-body-content a:hover, | |||
.mw-body-content a:visited:hover, | |||
.mw-parser-output a:hover, | |||
.mw-parser-output a:visited:hover { | |||
color: var(--c-link-hover); | |||
text-decoration: underline; | |||
} | |||
.mw-body-content a.new, | |||
.mw-body-content a.new:visited, | |||
.mw-parser-output a.new, | |||
.mw-parser-output a.new:visited { | |||
color: var(--c-link-new); | |||
} | |||
.mw-body-content a.new:hover, | |||
.mw-body-content a.new:visited:hover, | |||
.mw-parser-output a.new:hover, | |||
.mw-parser-output a.new:visited:hover { | |||
color: var(--c-link-new); | |||
text-decoration: underline; | |||
} | |||
html.skin-theme-clientpref-night .mw-body-content a, | |||
html.skin-theme-clientpref-night .mw-body-content a:visited, | |||
html.skin-theme-clientpref-night .mw-parser-output a, | |||
html.skin-theme-clientpref-night .mw-parser-output a:visited, | |||
html.skin-theme-clientpref-pureblack .mw-body-content a, | |||
html.skin-theme-clientpref-pureblack .mw-body-content a:visited, | |||
html.skin-theme-clientpref-pureblack .mw-parser-output a, | |||
html.skin-theme-clientpref-pureblack .mw-parser-output a:visited { | |||
color: var(--c-link-night); | |||
} | |||
html.skin-theme-clientpref-night .mw-body-content a:hover, | |||
html.skin-theme-clientpref-night .mw-parser-output a:hover, | |||
html.skin-theme-clientpref-pureblack .mw-body-content a:hover, | |||
html.skin-theme-clientpref-pureblack .mw-parser-output a:hover { | |||
color: var(--c-link-night-hover); | |||
} | |||
html.skin-theme-clientpref-night .mw-body-content a.new, | |||
html.skin-theme-clientpref-night .mw-parser-output a.new, | |||
html.skin-theme-clientpref-pureblack .mw-body-content a.new, | |||
html.skin-theme-clientpref-pureblack .mw-parser-output a.new { | |||
color: var(--c-link-new-night); | |||
} | } | ||
| 第1,319行: | 第1,466行: | ||
/* ============================================ | /* ============================================ | ||
10. 申请账户页面(Special:RequestAccount) | 10. 申请账户页面(Special:RequestAccount) | ||
============================================ */ | ============================================ */ | ||
form[name="accountrequest"], | |||
form[name="accountrequest"] { | form[name="accountrequest"] fieldset, | ||
form[name="accountrequest"] table, | |||
form[name="accountrequest"] input, | |||
form[name="accountrequest"] select, | |||
form[name="accountrequest"] textarea { | |||
max-width: 100%; | max-width: 100%; | ||
box-sizing: border-box; | box-sizing: border-box; | ||
} | } | ||
form[name="accountrequest"] table { | form[name="accountrequest"] table { | ||
width: 100%; | width: 100%; | ||
} | } | ||
@media (max-width: 700px) { | @media (max-width: 700px) { | ||
form[name="accountrequest"] table, | form[name="accountrequest"] table, | ||
form[name="accountrequest"] tbody, | form[name="accountrequest"] tbody, | ||
| 第1,367行: | 第1,490行: | ||
box-sizing: border-box; | box-sizing: border-box; | ||
} | } | ||
form[name="accountrequest"] tr { | form[name="accountrequest"] tr { | ||
margin-bottom: 0.75rem; | margin-bottom: 0.75rem; | ||
} | } | ||
form[name="accountrequest"] td:first-child { | form[name="accountrequest"] td:first-child { | ||
font-weight: bold; | font-weight: bold; | ||
padding-bottom: 0.25rem; | padding-bottom: 0.25rem; | ||
} | } | ||
form[name="accountrequest"] td:empty { | form[name="accountrequest"] td:empty { | ||
display: none; | display: none; | ||
} | } | ||
form[name="accountrequest"] input:not([type="submit"]), | |||
form[name="accountrequest"] input[type=" | |||
form[name="accountrequest"] select, | form[name="accountrequest"] select, | ||
form[name="accountrequest"] textarea { | form[name="accountrequest"] textarea { | ||
| 第1,390行: | 第1,506行: | ||
max-width: 100% !important; | max-width: 100% !important; | ||
box-sizing: border-box; | box-sizing: border-box; | ||
font-size: 1rem; | font-size: 1rem; | ||
} | } | ||
form[name="accountrequest"] input[type="submit"] { | form[name="accountrequest"] input[type="submit"] { | ||
width: 100%; | width: 100%; | ||
| 第1,399行: | 第1,513行: | ||
font-size: 1rem; | font-size: 1rem; | ||
} | } | ||
form[name="accountrequest"] textarea { | form[name="accountrequest"] textarea { | ||
min-height: 6rem; | min-height: 6rem; | ||
} | } | ||
form[name="accountrequest"] div[style*="overflow:scroll"] table, | form[name="accountrequest"] div[style*="overflow:scroll"] table, | ||
form[name="accountrequest"] div[style*="overflow:scroll"] tbody, | form[name="accountrequest"] div[style*="overflow:scroll"] tbody, | ||
| 第1,422行: | 第1,531行: | ||
/* ============================================ | /* ============================================ | ||
11. 站点头部(Logo + 站点名) | 11. 站点头部(Logo + 站点名) | ||
============================================ */ | ============================================ */ | ||
| 第1,436行: | 第1,542行: | ||
max-width: 100%; | max-width: 100%; | ||
box-sizing: border-box; | box-sizing: border-box; | ||
flex-shrink: 0; | |||
} | } | ||
.site-header__brand { | .site-header__brand { | ||
display: inline-flex; | display: inline-flex; | ||
align-items: center; | align-items: center; | ||
gap: 6rem; | gap: 6rem; | ||
text-decoration: none; | text-decoration: none; | ||
color: inherit; | color: inherit; | ||
| 第1,453行: | 第1,557行: | ||
} | } | ||
.site-header__logo { | .site-header__logo { | ||
height: 4rem; | height: 4rem; | ||
| 第1,461行: | 第1,564行: | ||
} | } | ||
.site-header__name { | .site-header__name { | ||
font-family: var(--font-family- | font-family: var(--font-family-cinzel); | ||
font-size: 2.5rem; | font-size: 2.5rem; | ||
font-weight: normal; | font-weight: normal; | ||
| 第1,472行: | 第1,574行: | ||
} | } | ||
html.citizen-feature-custom-width-clientpref-narrow .site-header { | html.citizen-feature-custom-width-clientpref-narrow .site-header { | ||
max-width: 55rem !important; | max-width: 55rem !important; | ||
| 第1,486行: | 第1,587行: | ||
} | } | ||
@media (max-width: 700px) { | @media (max-width: 700px) { | ||
.site-header { | .site-header { | ||
| 第1,505行: | 第1,605行: | ||
/* ============================================ | /* ============================================ | ||
12. | 12. 主容器外的独立侧栏 | ||
============================================ */ | ============================================ */ | ||
@media (min-width: 1101px) { | @media (min-width: 1101px) { | ||
body:not(.anachronism-aside-open) .anachronism-side-column { | |||
opacity: 0; | |||
visibility: hidden; | |||
transform: translateY(-50%) translateX(1.5rem); | |||
pointer-events: none; | |||
transition: | |||
opacity var(--t-slow) ease, | |||
transform var(--t-slow) ease, | |||
visibility 0s var(--t-slow); | |||
} | |||
} | |||
.citizen-body-container { | |||
display: contents !important; | |||
} | |||
@media (min-width: 1101px) { | |||
.anachronism-side-column { | |||
position: fixed; | |||
top: 50%; | |||
left: 24px; | |||
right: auto; | |||
width: 20rem; | |||
max-width: 20rem; | |||
max-height: calc(100vh - 2rem); | |||
overflow-y: auto; | |||
box-sizing: border-box; | |||
z-index: 5; | |||
transform: translateY(-50%); | |||
transition: | |||
opacity var(--t-slow) ease, | |||
transform var(--t-slow) ease, | |||
visibility 0s; | |||
background: rgba(255, 255, 255, 0.97); | |||
border-radius: var(--radius-card); | |||
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25); | |||
padding: 1.25rem; | |||
overflow-wrap: break-word; | |||
word-break: break-word; | |||
} | |||
.anachronism-side-column::-webkit-scrollbar { | |||
width: 6px; | |||
} | |||
.anachronism-side-column::-webkit-scrollbar-thumb { | |||
background: rgba(var(--c-primary-rgb), 0.25); | |||
border-radius: 3px; | |||
} | |||
.anachronism-side-column::-webkit-scrollbar-track { | |||
background: transparent; | |||
} | |||
.citizen- | .anachronism-side-column .citizen-page-aside { | ||
display: | display: contents !important; | ||
} | } | ||
.anachronism-side-column .citizen-page-footer { | |||
display: block !important; | |||
position: static !important; | |||
width: auto !important; | |||
max-width: none !important; | |||
margin: 0.75rem 0 0 0 !important; | |||
padding: 0.75rem 0 0 0 !important; | |||
background: transparent !important; | |||
box-shadow: none !important; | |||
border-radius: 0 !important; | |||
border-top: 1px solid rgba(var(--c-primary-rgb), 0.1); | |||
box-sizing: border-box !important; | |||
} | } | ||
.anachronism-side-column .citizen-page-aside__heading { | |||
. | font-size: 0.85rem; | ||
color: #888; | |||
margin-bottom: 0.4rem; | |||
} | |||
.anachronism-side-column .citizen-page-aside__link { | |||
font-size: 0.85rem; | |||
word-break: break-word; | |||
} | } | ||
.anachronism-side-column .citizen-page-footer #catlinks { | |||
. | font-size: 0.85rem; | ||
line-height: 1.6; | |||
} | |||
.anachronism-side-column .citizen-page-footer #catlinks ul { | |||
display: flex; | |||
flex-wrap: wrap; | |||
gap: 0.25rem 0.5rem; | |||
padding: 0; | |||
margin: 0.25rem 0 0 0; | |||
list-style: none; | |||
} | |||
.anachronism-side-column .citizen-page-footer #catlinks li { | |||
margin: 0; | |||
} | } | ||
.anachronism-side-column .citizen-page-footer .page-info { | |||
margin-top: 0.75rem; | |||
padding-top: 0.75rem; | |||
border-top: 1px solid rgba(var(--c-primary-rgb), 0.1); | |||
} | |||
.anachronism-side-column .citizen-page-footer .page-info__item { | |||
display: block; | |||
margin-bottom: 0.5rem; | |||
} | |||
.anachronism-side-column .citizen-page-footer .page-info__label { | |||
font-size: 0.75rem; | |||
color: #888; | |||
margin-bottom: 0.15rem; | |||
} | } | ||
.anachronism-side-column .citizen-page-footer .page-info__text { | |||
font-size: 0.85rem; | |||
line-height: 1.5; | |||
color: #444; | |||
} | |||
/* ============================================ | |||
TOC 修复 | |||
============================================ */ | |||
.anachronism-side-column .citizen-page-aside__sticky { | |||
position: static !important; | |||
top: auto !important; | |||
display: block !important; | |||
height: auto !important; | |||
max-height: none !important; | |||
overflow: visible !important; | |||
} | |||
.anachronism-side-column #citizen-toc { | |||
display: block !important; | |||
position: static !important; | |||
height: auto !important; | |||
max-height: none !important; | |||
overflow: visible !important; | |||
opacity: 1 !important; | |||
visibility: visible !important; | |||
} | |||
.anachronism-side-column #citizen-toc > .citizen-dropdown-details { | |||
display: none !important; | display: none !important; | ||
} | |||
.anachronism-side-column #citizen-page-aside-toc-heading { | |||
margin-top: 1rem; | |||
} | |||
.anachronism-side-column #mw-panel-toc { | |||
display: contents !important; | |||
position: static !important; | |||
opacity: 1 !important; | |||
visibility: visible !important; | |||
} | |||
.anachronism-side-column #mw-panel-toc .citizen-menu__card-content { | |||
display: block !important; | |||
position: static !important; | |||
height: auto !important; | |||
max-height: none !important; | |||
padding: 0 !important; | |||
margin: 0 !important; | |||
overflow: visible !important; | |||
transform: none !important; | |||
background: transparent !important; | |||
box-shadow: none !important; | |||
opacity: 1 !important; | |||
visibility: visible !important; | |||
} | |||
.anachronism-side-column #mw-panel-toc-list { | |||
display: block !important; | |||
position: static !important; | |||
height: auto !important; | |||
max-height: none !important; | |||
overflow: visible !important; | |||
} | |||
.anachronism-side-column #mw-panel-toc .citizen-toc-link, | |||
.anachronism-side-column #mw-panel-toc .citizen-toc-top { | |||
opacity: 1 !important; | |||
height: auto !important; | |||
min-height: 1.75rem !important; | |||
max-height: none !important; | |||
overflow: visible !important; | |||
padding: 0.35rem 0.5rem !important; | |||
line-height: 1.4 !important; | |||
align-items: center !important; | |||
} | |||
.anachronism-side-column #mw-panel-toc .citizen-toc-content, | |||
.anachronism-side-column #mw-panel-toc .citizen-toc-text, | |||
.anachronism-side-column #mw-panel-toc .citizen-toc-numb, | |||
.anachronism-side-column #mw-panel-toc .citizen-toc-heading { | |||
display: inline !important; | |||
height: auto !important; | |||
max-height: none !important; | |||
overflow: visible !important; | |||
line-height: 1.4 !important; | |||
opacity: 1 !important; | |||
} | |||
.anachronism-side-column #mw-panel-toc .citizen-toc-indicator { | |||
opacity: 1 !important; | |||
} | |||
.anachronism-side-column #mw-panel-toc .citizen-toc-list-item { | |||
height: auto !important; | |||
min-height: 0 !important; | |||
max-height: none !important; | |||
overflow: visible !important; | |||
} | |||
.anachronism-side-column #mw-panel-toc .citizen-toc-text { | |||
overflow-wrap: break-word; | |||
word-break: break-word; | |||
} | |||
/* 侧栏内的链接:白色卡片底,用主色系红 */ | |||
.anachronism-side-column .citizen-page-aside__link, | |||
.anachronism-side-column .citizen-page-aside__link:visited, | |||
.anachronism-side-column #mw-panel-toc .citizen-toc-link, | |||
.anachronism-side-column #mw-panel-toc .citizen-toc-link:visited { | |||
color: var(--c-primary) !important; | |||
} | |||
.anachronism-side-column .citizen-page-aside__link:hover, | |||
.anachronism-side-column .citizen-page-aside__link:visited:hover, | |||
.anachronism-side-column #mw-panel-toc .citizen-toc-link:hover, | |||
.anachronism-side-column #mw-panel-toc .citizen-toc-link:visited:hover { | |||
color: var(--c-primary-hover) !important; | |||
} | } | ||
} | } | ||
/* ---- 12. | /* ---- 12.4 触发按钮:屏幕右侧正中的独立伪 Rail ---- */ | ||
.anachronism-aside-toggle { | .anachronism-aside-toggle { | ||
position: | position: fixed; | ||
top: | top: calc(50vh - 1.5rem); | ||
left: | right: 0; | ||
z-index: | left: auto; | ||
width: | z-index: 70; | ||
height: | |||
width: 3rem; | |||
height: 3rem; | |||
padding: 0; | padding: 0; | ||
border: none; | border: none; | ||
border-radius: | border-radius: 0.5rem 0 0 0.5rem; | ||
background: var(--c-primary); | background: var(--c-primary-hover); | ||
color: #fff; | color: #fff; | ||
cursor: pointer; | cursor: pointer; | ||
| 第1,573行: | 第1,863行: | ||
align-items: center; | align-items: center; | ||
justify-content: center; | justify-content: center; | ||
font-size: | font-size: 1.25rem; | ||
line-height: 1; | line-height: 1; | ||
box-shadow: 0 | box-shadow: -3px 0 12px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.08) inset; | ||
transition: background | transition: background var(--t-normal); | ||
} | } | ||
.anachronism-aside-toggle:hover { | .anachronism-aside-toggle:hover { | ||
background: var(--c-primary | background: var(--c-primary); | ||
} | |||
body.anachronism-aside-open .anachronism-aside-toggle { | |||
background: var(--c-primary); | |||
} | } | ||
.anachronism-aside-toggle__icon { | .anachronism-aside-toggle__icon { | ||
display: inline-block; | display: inline-block; | ||
transition: transform var(--t-normal); | transition: transform var(--t-normal); | ||
} | } | ||
body.anachronism-aside-open .anachronism-aside-toggle__icon { | body.anachronism-aside-open .anachronism-aside-toggle__icon { | ||
transform: rotate( | transform: rotate(180deg); | ||
} | } | ||
/* ---- 12.5 移动端 ---- */ | |||
/* ---- 12. | |||
@media (max-width: 1100px) { | @media (max-width: 1100px) { | ||
.anachronism-side-column { | |||
position: static; | |||
width: auto; | |||
max-width: none; | |||
max-height: none; | |||
overflow: visible; | |||
background: transparent; | |||
box-shadow: none; | |||
border-radius: 0; | |||
padding: 0; | |||
transform: none; | |||
opacity: 1; | |||
visibility: visible; | |||
pointer-events: auto; | |||
transition: none; | |||
} | |||
.anachronism-side-column .citizen-page-aside, | |||
.anachronism-side-column .citizen-page-footer { | |||
background: transparent !important; | |||
box-shadow: none !important; | |||
border-radius: 0 !important; | |||
padding: 0 !important; | |||
margin: 0 !important; | |||
} | |||
.anachronism-aside-toggle { | .anachronism-aside-toggle { | ||
display: none !important; | display: none !important; | ||
| 第1,604行: | 第1,913行: | ||
} | } | ||
/* ---- 12. | /* ---- 12.6 夜间模式 ---- */ | ||
html.skin-theme-clientpref-night .anachronism-side-column { | |||
background: rgba(30, 22, 24, 0.95) !important; | |||
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6) !important; | |||
} | |||
html.skin-theme-clientpref-pureblack .anachronism-side-column { | |||
background: rgba(0, 0, 0, 0.95) !important; | |||
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8) !important; | |||
} | |||
html.skin-theme-clientpref-night .anachronism-side-column .citizen-page-aside__link, | |||
html.skin-theme-clientpref-night .anachronism-side-column .citizen-page-aside__link:visited, | |||
html.skin-theme-clientpref-night .anachronism-side-column #mw-panel-toc .citizen-toc-link, | |||
html.skin-theme-clientpref-night .anachronism-side-column #mw-panel-toc .citizen-toc-link:visited { | |||
color: var(--c-night-accent) !important; | |||
} | |||
html.skin-theme-clientpref-night .anachronism-side-column .citizen-page-aside__link:hover, | |||
html.skin-theme-clientpref-night .anachronism-side-column #mw-panel-toc .citizen-toc-link:hover { | |||
color: #fff !important; | |||
} | |||
html.skin-theme-clientpref-night .anachronism-aside-toggle { | html.skin-theme-clientpref-night .anachronism-aside-toggle { | ||
background: var(--c-primary-night); | background: var(--c-primary-night); | ||
| 第1,611行: | 第1,938行: | ||
html.skin-theme-clientpref-night body.anachronism-aside-open .anachronism-aside-toggle { | html.skin-theme-clientpref-night body.anachronism-aside-open .anachronism-aside-toggle { | ||
background: var(--c-primary-hover); | background: var(--c-primary-hover); | ||
} | |||
/* ============================================ | |||
13. Citizen Sticky Header(滚动后浮层) | |||
============================================ */ | |||
.citizen-sticky-header-background { | |||
background: rgba(255, 255, 255, 0.25) !important; | |||
-webkit-backdrop-filter: blur(12px); | |||
backdrop-filter: blur(12px); | |||
border-bottom: 1px solid rgba(var(--c-primary-rgb), 0.12) !important; | |||
box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06) !important; | |||
} | |||
.citizen-sticky-header-page-title { | |||
color: var(--c-primary) !important; | |||
font-weight: bold !important; | |||
} | |||
.citizen-sticky-header-page-tagline { | |||
display: none !important; | |||
} | |||
.citizen-sticky-header-backtotop { | |||
color: var(--c-primary) !important; | |||
} | |||
.citizen-sticky-header-backtotop:hover { | |||
background: rgba(var(--c-primary-rgb), 0.08) !important; | |||
color: var(--c-primary-hover) !important; | |||
} | |||
.citizen-sticky-header .citizen-sticky-header-fake-button { | |||
color: var(--c-primary) !important; | |||
background: transparent !important; | |||
border: none !important; | |||
} | |||
.citizen-sticky-header .citizen-sticky-header-fake-button:hover { | |||
background: rgba(var(--c-primary-rgb), 0.08) !important; | |||
color: var(--c-primary-hover) !important; | |||
} | |||
.citizen-sticky-header .citizen-dropdown-summary { | |||
color: var(--c-primary) !important; | |||
} | |||
.citizen-sticky-header .citizen-dropdown-summary:hover { | |||
background: rgba(var(--c-primary-rgb), 0.08) !important; | |||
color: var(--c-primary-hover) !important; | |||
} | |||
.citizen-sticky-header .citizen-menu__card { | |||
background: #fff !important; | |||
border-radius: 0.5rem !important; | |||
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2) !important; | |||
border: none !important; | |||
} | |||
.citizen-sticky-header .citizen-menu__card .mw-list-item > a, | |||
.citizen-sticky-header .citizen-menu__card .mw-list-item > a:visited { | |||
color: var(--c-link) !important; | |||
} | |||
.citizen-sticky-header .citizen-menu__card .mw-list-item > a:hover, | |||
.citizen-sticky-header .citizen-menu__card .mw-list-item > a:visited:hover { | |||
background: rgba(var(--c-primary-rgb), 0.08) !important; | |||
color: var(--c-link-hover) !important; | |||
} | |||
.citizen-sticky-header .citizen-menu__card .mw-list-item > a.new, | |||
.citizen-sticky-header .citizen-menu__card .mw-list-item > a.new:visited { | |||
color: var(--c-link-new) !important; | |||
} | |||
html.skin-theme-clientpref-night .citizen-sticky-header-background { | |||
background: rgba(30, 22, 24, 0.25) !important; | |||
border-bottom-color: rgba(var(--c-night-accent-rgb), 0.15) !important; | |||
box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4) !important; | |||
} | |||
html.skin-theme-clientpref-pureblack .citizen-sticky-header-background { | |||
background: rgba(0, 0, 0, 0.25) !important; | |||
box-shadow: 0 2px 12px rgba(0, 0, 0, 0.6) !important; | |||
} | |||
html.skin-theme-clientpref-night .citizen-sticky-header-page-title, | |||
html.skin-theme-clientpref-night .citizen-sticky-header-backtotop, | |||
html.skin-theme-clientpref-night .citizen-sticky-header .citizen-sticky-header-fake-button, | |||
html.skin-theme-clientpref-night .citizen-sticky-header .citizen-dropdown-summary { | |||
color: var(--c-night-accent) !important; | |||
} | |||
html.skin-theme-clientpref-night .citizen-sticky-header-backtotop:hover, | |||
html.skin-theme-clientpref-night .citizen-sticky-header .citizen-sticky-header-fake-button:hover, | |||
html.skin-theme-clientpref-night .citizen-sticky-header .citizen-dropdown-summary:hover { | |||
background: rgba(var(--c-night-accent-rgb), 0.12) !important; | |||
color: #fff !important; | |||
} | |||
html.skin-theme-clientpref-night .citizen-sticky-header .citizen-menu__card { | |||
background: #2a2022 !important; | |||
} | |||
html.skin-theme-clientpref-night .citizen-sticky-header .citizen-menu__card .mw-list-item > a, | |||
html.skin-theme-clientpref-night .citizen-sticky-header .citizen-menu__card .mw-list-item > a:visited { | |||
color: var(--c-link-night) !important; | |||
} | |||
html.skin-theme-clientpref-night .citizen-sticky-header .citizen-menu__card .mw-list-item > a:hover, | |||
html.skin-theme-clientpref-night .citizen-sticky-header .citizen-menu__card .mw-list-item > a:visited:hover { | |||
background: rgba(var(--c-night-accent-rgb), 0.12) !important; | |||
color: var(--c-link-night-hover) !important; | |||
} | |||
html.skin-theme-clientpref-night .citizen-sticky-header .citizen-menu__card .mw-list-item > a.new, | |||
html.skin-theme-clientpref-night .citizen-sticky-header .citizen-menu__card .mw-list-item > a.new:visited { | |||
color: var(--c-link-new-night) !important; | |||
} | } | ||
2026年10月6日 (二) 00:29的最新版本
/* ============================================
Citizen 皮肤定制
最后稳定版本:2026-10-04
结构:
0. 设计令牌
1. 字体
2. 全局页面布局
3. Header 隐藏
4. 偏好设置面板
5. 侧边工具栏 Rail
6. 全局页脚
7. 页面操作工具栏
8. 响应式断点
9. 评论区 + 主内容链接色
10. 申请账户页面
11. 站点头部
12. 主容器外的独立侧栏
13. Citizen Sticky Header
链接色规则(重要):
浏览器对 :visited 链接会用默认色,不显式声明会和未访问链接
视觉不一致。所有链接规则必须同时写 a 和 a:visited。
============================================ */
/* ============================================
0. 设计令牌
============================================ */
:root {
/* ---- 主色系 ---- */
--c-primary: #56000d;
--c-primary-hover: #8b1a2b;
--c-primary-night: #6b1010;
--c-primary-rgb: 86, 0, 13;
/* ---- 状态色 ---- */
--c-danger: #bf0017;
--c-danger-night: #ff8fa3;
/* ---- 夜间模式强调色 ---- */
--c-night-accent: #d4a5b0;
--c-night-accent-rgb: 212, 165, 176;
/* ---- 链接色系 ---- */
--c-link: #a52a2a; /* 白底可跳转链接(深红,主色亮 2 档) */
--c-link-hover: #c73e3e; /* 白底 hover(更亮的红) */
--c-link-new: #6b6b6b; /* 白底空页面链接(中性灰) */
--c-link-night: #e8a0a0; /* 暗底可跳转链接(淡珊瑚) */
--c-link-night-hover: #f5c0c0; /* 暗底 hover(更亮珊瑚) */
--c-link-new-night: #9a9a9a; /* 暗底空页面链接(中灰) */
/* ---- 通用过渡时长 ---- */
--t-fast: 0.15s;
--t-normal: 0.2s;
--t-slow: 0.3s;
/* ---- 圆角 ---- */
--radius-card: 0.25rem;
}
/* ============================================
1. 字体
============================================ */
/* --- 2026-10-05 替换:六个展示字体全部换为 OFL / MIT / CC 授权字体 --- */
@font-face {
font-family: 'LXGW WenKai';
src: url('/fonts/LXGWWenKai-Light.woff2') format('woff2');
font-weight: 300;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: 'LXGW WenKai';
src: url('/fonts/LXGWWenKai-Regular.woff2') format('woff2');
font-weight: 400;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: 'LXGW WenKai';
src: url('/fonts/LXGWWenKai-Medium.woff2') format('woff2');
font-weight: 500;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: 'LXGW WenKai';
src: url('/fonts/LXGWWenKai-Medium.woff2') format('woff2');
font-weight: 700;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: 'Noto Sans SC';
src: url('/fonts/NotoSansSC-Variable.woff2') format('woff2-variations');
font-weight: 100 900;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: 'JetBrains Mono';
src: url('/fonts/JetBrainsMono-Variable.woff2') format('woff2-variations');
font-weight: 100 800;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: 'JetBrains Mono';
src: url('/fonts/JetBrainsMono-Italic-Variable.woff2') format('woff2-variations');
font-weight: 100 800;
font-style: italic;
font-display: swap;
}
@font-face {
font-family: 'Rubik';
src: url('/fonts/Rubik-Variable.woff2') format('woff2-variations');
font-weight: 100 900;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: 'Rubik';
src: url('/fonts/Rubik-Italic-Variable.woff2') format('woff2-variations');
font-weight: 100 900;
font-style: italic;
font-display: swap;
}
@font-face {
font-family: 'College';
src: url('/fonts/College-Regular.woff2') format('woff2');
font-weight: 400;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: 'College';
src: url('/fonts/College-Bold.woff2') format('woff2');
font-weight: 700;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: 'Cinzel Decorative';
src: url('/fonts/CinzelDecorative-Regular.woff2') format('woff2');
font-weight: 400;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: 'Cinzel Decorative';
src: url('/fonts/CinzelDecorative-Bold.woff2') format('woff2');
font-weight: 700;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: 'Cinzel Decorative';
src: url('/fonts/CinzelDecorative-Black.woff2') format('woff2');
font-weight: 900;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: 'Ballet';
src: url('/fonts/Ballet-Variable.woff2') format('woff2-variations');
font-weight: 400;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: 'TESLA';
src: url('/fonts/Tesla-Regular.woff2') format('woff2');
font-weight: 400;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: 'Chrontor';
src: url('/fonts/Chrontor-Regular.woff2') format('woff2');
font-weight: 400;
font-style: normal;
font-display: swap;
}
:root {
--font-family-base: 'LXGW WenKai', system-ui, sans-serif;
--font-family-noto: 'Noto Sans SC', system-ui, sans-serif;
--font-family-college: 'College', 'LXGW WenKai', system-ui, sans-serif;
--font-family-chrontor: 'Chrontor', 'LXGW WenKai', system-ui, sans-serif;
--font-family-cinzel: 'Cinzel Decorative', 'LXGW WenKai', system-ui, sans-serif;
--font-family-ballet: 'Ballet', 'LXGW WenKai', system-ui, sans-serif;
--font-family-tesla: 'TESLA', 'LXGW WenKai', system-ui, sans-serif;
--font-family-mono: 'JetBrains Mono', 'LXGW WenKai', system-ui, monospace;
--font-family-rubik: 'Rubik', 'LXGW WenKai', system-ui, sans-serif;
}
html, body, .mw-body, .mw-parser-output {
font-family: var(--font-family-base);
font-weight: 500;
-webkit-text-stroke: 0.015em currentColor;
}
.font-college { font-family: var(--font-family-college); }
.font-chrontor { font-family: var(--font-family-chrontor); }
.font-cinzel { font-family: var(--font-family-cinzel); }
.font-ballet { font-family: var(--font-family-ballet); }
.font-tesla { font-family: var(--font-family-tesla); }
.font-noto { font-family: var(--font-family-noto); }
.font-mono { font-family: var(--font-family-mono); }
.font-rubik { font-family: var(--font-family-rubik); }
/* ============================================
2. 全局页面布局
============================================ */
/* 2.1 固定背景 */
body {
/* 兜底色:图片加载前/失败时显示,避免白色闪烁 */
background-color: #1a0508;
background-image: url('/index.php?title=Special:FilePath/红花1.jpg');
background-attachment: fixed;
background-size: cover;
background-position: center;
background-repeat: no-repeat;
min-height: 100vh;
}
/* 夜间模式:换成另一张背景图 + 更深的兜底色 */
html.skin-theme-clientpref-night body,
html.skin-theme-clientpref-pureblack body {
background-color: #050202;
background-image: url('/index.php?title=Special:FilePath/红花1.jpg');
}
/* 2.2 页面容器:flex column,让 mw-body 吸收短页面剩余空间 */
.citizen-page-container {
padding: 1.5rem 1.5rem 0 1.5rem;
box-sizing: border-box;
min-height: 100vh;
display: flex;
flex-direction: column;
}
/* 2.3 主内容卡片 */
.mw-body {
position: relative;
border-radius: var(--radius-card);
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
padding: 2rem 2.5rem;
width: 100%;
max-width: 100%;
margin: 0 auto;
box-sizing: border-box;
/* 短页面时吸收剩余空间;长页面保持自然高度 */
flex: 1 0 auto;
background: rgba(255, 255, 255, 0.97);
}
html.skin-theme-clientpref-night .mw-body {
background: rgba(30, 22, 24, 0.95);
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
}
html.skin-theme-clientpref-pureblack .mw-body {
background: rgba(0, 0, 0, 0.95);
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8);
}
/* 2.4 宽度偏好 */
html.citizen-feature-custom-width-clientpref-narrow .mw-body {
max-width: 55rem !important;
}
html.citizen-feature-custom-width-clientpref-standard .mw-body {
max-width: 80rem !important;
}
html.citizen-feature-custom-width-clientpref-wide .mw-body {
max-width: 110rem !important;
}
html.citizen-feature-custom-width-clientpref-full .mw-body {
max-width: 100% !important;
}
/* ============================================
3. Citizen Header 隐藏(保留偏好设置)
============================================ */
.citizen-header {
position: fixed !important;
top: 0 !important;
left: 0 !important;
width: 0 !important;
height: 0 !important;
overflow: visible !important;
background: transparent !important;
border: none !important;
box-shadow: none !important;
z-index: 9999;
pointer-events: none;
}
.citizen-header__logo,
.citizen-search,
.citizen-drawer,
.citizen-header__start,
.citizen-userMenu,
.citizen-preferences-dropdown > details {
display: none !important;
}
.citizen-preferences-dropdown {
display: block !important;
pointer-events: auto;
}
/* ============================================
4. 偏好设置面板
============================================ */
body:not(.page-Special_Preferences) #citizen-preferences-dropdown__card {
position: fixed !important;
top: 50% !important;
left: 50% !important;
transform: translate(-50%, -50%) !important;
width: 32rem !important;
max-width: 92vw !important;
min-height: 20rem !important;
max-height: 80vh !important;
overflow-y: auto !important;
background: #fff !important;
border-radius: 0.75rem !important;
box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35) !important;
padding: 1rem !important;
z-index: 100000 !important;
display: none;
}
body:not(.page-Special_Preferences) #citizen-preferences-details[open] + #citizen-preferences-dropdown__card,
body:not(.page-Special_Preferences).citizen-preferences-shown #citizen-preferences-dropdown__card {
display: block !important;
}
.citizen-preferences-close {
position: absolute;
top: 0.5rem;
right: 0.75rem;
background: transparent;
border: none;
font-size: 1.5rem;
line-height: 1;
color: var(--c-primary);
cursor: pointer;
padding: 0.25rem 0.5rem;
z-index: 10;
}
.citizen-preferences-close:hover {
color: var(--c-primary-hover);
}
@media (max-width: 700px) {
body:not(.page-Special_Preferences) #citizen-preferences-dropdown__card {
top: 0 !important;
left: 0 !important;
right: 0 !important;
bottom: 0 !important;
width: 100vw !important;
max-width: 100vw !important;
height: 100vh !important;
min-height: 100vh !important;
max-height: 100vh !important;
transform: none !important;
border-radius: 0 !important;
padding: 1rem !important;
overflow-y: auto !important;
z-index: 100000 !important;
}
}
/* ============================================
5. 侧边工具栏 Rail
面板内链接用主色系(红),与暗红标题栏同系统。
必须同时声明 a 和 a:visited,否则浏览器会用默认色。
============================================ */
.rail-container {
position: fixed;
top: 5rem;
right: 0;
z-index: 1000;
display: flex;
flex-direction: column;
gap: 0.25rem;
transition: transform var(--t-slow) ease;
}
body.rail-open .rail-container {
transform: translateX(-19.5rem);
}
.rail-button {
width: 2.5rem;
height: 2.5rem;
border: none;
border-radius: 0.5rem 0 0 0.5rem;
background: var(--c-primary);
color: #fff;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
font-size: 1.15rem;
box-shadow: -2px 0 8px rgba(0, 0, 0, 0.2);
transition: background var(--t-normal), transform var(--t-normal);
padding: 0;
}
.rail-button:hover {
background: var(--c-primary-hover);
transform: translateX(-2px);
}
.rail-button.is-active {
background: var(--c-primary-hover);
transform: translateX(-4px);
}
.rail-button__icon {
line-height: 1;
pointer-events: none;
}
.rail-panel {
position: fixed;
top: 0;
right: 0;
width: 20rem;
height: 100vh;
background: #fff;
box-shadow: -4px 0 20px rgba(0, 0, 0, 0.25);
z-index: 1001;
transform: translateX(100%);
transition: transform var(--t-slow) ease;
display: flex;
flex-direction: column;
overflow: hidden;
}
body.rail-open .rail-panel {
transform: translateX(0);
}
.rail-panel__header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 1rem 1.25rem;
background: var(--c-primary);
color: #fff;
flex-shrink: 0;
}
.rail-panel__title {
font-size: 1.1rem;
font-weight: bold;
letter-spacing: 0.1em;
}
.rail-panel__close {
background: transparent;
border: none;
color: #fff;
font-size: 1.5rem;
line-height: 1;
cursor: pointer;
padding: 0 0.25rem;
}
.rail-panel__close:hover {
opacity: 0.7;
}
.rail-panel__content {
padding: 1.25rem;
overflow-y: auto;
flex: 1;
}
.rail-panel__loading {
color: #888;
text-align: center;
padding: 2rem 0;
}
/* 隐藏 parser 自动生成的目录 */
.rail-panel__content .toc,
.rail-panel__content #toc {
display: none !important;
}
/* 面板内的排版(模板渲染的 HTML) */
.rail-panel__content .mw-parser-output h3 {
font-size: 1rem;
color: var(--c-primary);
border-left: 3px solid var(--c-primary);
padding-left: 0.5rem;
margin: 1rem 0 0.5rem 0;
}
.rail-panel__content .mw-parser-output h3:first-child {
margin-top: 0;
}
.rail-panel__content .mw-parser-output ul {
list-style: none;
padding: 0;
margin: 0 0 0.75rem 0;
}
.rail-panel__content .mw-parser-output li {
margin-bottom: 0.25rem;
}
/* 面板内链接(红) */
.rail-panel__content .mw-parser-output a,
.rail-panel__content .mw-parser-output a:visited {
display: block;
padding: 0.5rem 0.75rem;
color: var(--c-primary);
text-decoration: none;
border-radius: 0.4rem;
transition: background var(--t-fast), color var(--t-fast);
}
.rail-panel__content .mw-parser-output a:hover,
.rail-panel__content .mw-parser-output a:visited:hover {
background: rgba(var(--c-primary-rgb), 0.08);
color: var(--c-primary-hover);
}
.rail-panel__content .mw-parser-output a.new,
.rail-panel__content .mw-parser-output a.new:visited {
color: var(--c-danger);
}
.rail-panel__content .mw-parser-output a.new:hover,
.rail-panel__content .mw-parser-output a.new:visited:hover {
color: var(--c-danger);
text-decoration: underline;
}
.rail-overlay {
position: fixed;
top: 0;
right: 0;
bottom: 0;
left: 0;
background: rgba(0, 0, 0, 0.4);
z-index: 999;
opacity: 0;
pointer-events: none;
transition: opacity var(--t-slow);
}
body.rail-open .rail-overlay {
opacity: 1;
pointer-events: auto;
}
/* 工具栏账户区的权限组标签 */
.rail-account-groups {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 0.35rem;
font-size: 0.9rem;
color: #555;
margin-bottom: 0.75rem;
line-height: 1.4;
}
.rail-account-groups__label {
flex: 0 0 100%;
margin-bottom: 0.2rem;
color: #888;
font-size: 0.85rem;
}
a.rail-group-tag,
a.rail-group-tag:visited {
display: inline-block;
padding: 0.15rem 0.5rem;
background: rgba(var(--c-primary-rgb), 0.1);
color: var(--c-primary);
border-radius: 0.25rem;
text-decoration: none;
font-size: 0.85rem;
white-space: nowrap;
transition: background var(--t-fast);
}
a.rail-group-tag:hover,
a.rail-group-tag:visited:hover {
background: rgba(var(--c-primary-rgb), 0.22);
}
/* ---- 5.1 夜间模式 ---- */
html.skin-theme-clientpref-night .rail-panel {
background: rgba(30, 22, 24, 0.98);
box-shadow: -4px 0 20px rgba(0, 0, 0, 0.6);
}
html.skin-theme-clientpref-pureblack .rail-panel {
background: rgba(0, 0, 0, 0.98);
box-shadow: -4px 0 20px rgba(0, 0, 0, 0.8);
}
html.skin-theme-clientpref-night .rail-panel__header,
html.skin-theme-clientpref-pureblack .rail-panel__header {
background: var(--c-primary-night);
}
html.skin-theme-clientpref-night .rail-panel__loading {
color: #777;
}
html.skin-theme-clientpref-night .rail-panel__content .mw-parser-output h3 {
color: var(--c-night-accent);
border-left-color: var(--c-night-accent);
}
html.skin-theme-clientpref-night .rail-panel__content .mw-parser-output a,
html.skin-theme-clientpref-night .rail-panel__content .mw-parser-output a:visited {
color: var(--c-night-accent);
}
html.skin-theme-clientpref-night .rail-panel__content .mw-parser-output a:hover,
html.skin-theme-clientpref-night .rail-panel__content .mw-parser-output a:visited:hover {
background: rgba(var(--c-night-accent-rgb), 0.12);
color: #fff;
}
html.skin-theme-clientpref-night .rail-panel__content .mw-parser-output a.new,
html.skin-theme-clientpref-night .rail-panel__content .mw-parser-output a.new:visited {
color: var(--c-danger-night);
}
html.skin-theme-clientpref-night .rail-account-groups {
color: #bbb;
}
html.skin-theme-clientpref-night .rail-account-groups__label {
color: #888;
}
html.skin-theme-clientpref-night a.rail-group-tag,
html.skin-theme-clientpref-night a.rail-group-tag:visited {
background: rgba(var(--c-night-accent-rgb), 0.15);
color: var(--c-night-accent);
}
html.skin-theme-clientpref-night a.rail-group-tag:hover,
html.skin-theme-clientpref-night a.rail-group-tag:visited:hover {
background: rgba(var(--c-night-accent-rgb), 0.28);
}
html.skin-theme-clientpref-night .rail-button {
background: var(--c-primary-night);
}
html.skin-theme-clientpref-night .rail-button:hover,
html.skin-theme-clientpref-night .rail-button.is-active {
background: var(--c-primary-hover);
}
/* ============================================
6. 全局页脚(暗色玻璃)
与 mw-body 的间距固定为 2rem。
短页面的空白由 .mw-body 吸收(flex-grow),footer 贴底。
============================================ */
.citizen-footer {
margin: 2rem -1.5rem 0 -1.5rem;
padding: 3rem 2rem 2rem;
width: calc(100% + 3rem);
box-sizing: border-box;
background: rgba(42, 0, 6, 0.65);
-webkit-backdrop-filter: blur(16px);
backdrop-filter: blur(16px);
border-top: 1px solid rgba(255, 255, 255, 0.12);
color: rgba(255, 255, 255, 0.85);
flex-shrink: 0;
}
.citizen-footer > * {
max-width: 80rem;
margin-left: auto;
margin-right: auto;
}
.citizen-footer__content {
display: block;
text-align: center;
padding-bottom: 2rem;
border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}
.citizen-footer__siteinfo {
display: inline-block;
text-align: center;
margin: 0 auto;
}
.citizen-footer__sitetitle {
display: flex;
align-items: center;
justify-content: center;
gap: 0.75rem;
font-size: 1.5rem;
font-weight: bold;
color: #fff;
letter-spacing: 0.05em;
margin-bottom: 0.75rem;
}
.citizen-footer__sitetitle .mw-logo-icon {
width: 2.5rem;
height: 2.5rem;
filter: brightness(0) invert(1);
}
.citizen-footer__sitetitle .mw-logo-wordmark {
color: #fff;
font-family: var(--font-family-cinzel);
text-transform: uppercase;
}
.citizen-footer__desc {
color: rgba(255, 255, 255, 0.75);
font-size: 0.95rem;
line-height: 1.7;
margin: 0 auto;
max-width: 40rem;
}
#footer-places-privacy,
#footer-places-about,
#footer-places-disclaimers,
#footer-places {
display: none;
}
.citizen-footer__bottom {
padding-top: 1.5rem;
text-align: center;
}
#footer-tagline {
color: rgba(255, 255, 255, 0.6);
font-size: 0.85rem;
letter-spacing: 0.15em;
text-transform: uppercase;
}
/* footer 内的链接:暗底用亮金 + 粉红 */
.citizen-footer a,
.citizen-footer a:visited {
color: var(--c-link-night) !important;
text-decoration: none;
transition: color var(--t-fast);
}
.citizen-footer a:hover,
.citizen-footer a:visited:hover {
color: var(--c-link-night-hover) !important;
text-decoration: underline;
}
.citizen-footer a.new,
.citizen-footer a.new:visited {
color: var(--c-link-new-night) !important;
}
html.skin-theme-clientpref-night .citizen-footer,
html.skin-theme-clientpref-pureblack .citizen-footer {
background: rgba(0, 0, 0, 0.7);
border-top-color: rgba(255, 255, 255, 0.08);
}
/* ============================================
7. 页面操作工具栏
============================================ */
.citizen-page-header,
.citizen-page-header-inner {
position: static !important;
}
.citizen-page-header-inner {
display: flex !important;
align-items: center !important;
justify-content: space-between !important;
gap: 1rem !important;
flex-wrap: wrap !important;
}
.citizen-page-heading {
flex: 1 1 auto !important;
min-width: 0 !important;
}
#siteSub {
display: none !important;
}
.citizen-page-actions {
position: static !important;
display: flex !important;
flex-direction: row !important;
align-items: center !important;
flex-wrap: wrap !important;
gap: 0.25rem !important;
margin: 0 !important;
padding: 0 !important;
flex: 0 0 auto !important;
}
.citizen-page-actions .citizen-menu__heading {
display: none !important;
}
.citizen-page-actions .citizen-menu,
.citizen-page-actions .citizen-menu__content,
.citizen-page-actions .citizen-menu__content-list {
display: flex !important;
flex-direction: row !important;
align-items: center !important;
flex-wrap: wrap !important;
gap: 0.25rem !important;
margin: 0 !important;
padding: 0 !important;
list-style: none !important;
}
.citizen-page-actions .mw-list-item,
.citizen-page-actions .citizen-share-trigger,
.citizen-page-actions .citizen-dropdown-details {
flex: 0 0 auto !important;
width: auto !important;
margin: 0 !important;
padding: 0 !important;
}
.citizen-page-actions .citizen-share-trigger { order: 0 !important; }
.citizen-page-actions #ca-view { order: 1 !important; }
.citizen-page-actions #ca-ve-edit { order: 2 !important; }
.citizen-page-actions #ca-edit { order: 3 !important; }
.citizen-page-actions #ca-history { order: 4 !important; }
.citizen-page-actions #ca-nstab-main { order: 5 !important; }
.citizen-page-actions #ca-talk { order: 6 !important; }
.citizen-page-actions #citizen-page-more-dropdown { order: 7 !important; }
.citizen-page-actions .mw-list-item > a,
.citizen-page-actions .mw-list-item > a:visited,
.citizen-page-actions .citizen-share,
.citizen-page-actions .citizen-dropdown-summary {
all: unset !important;
display: inline-flex !important;
align-items: center !important;
justify-content: center !important;
gap: 0.35rem !important;
height: 2rem !important;
padding: 0 0.6rem !important;
margin: 0 !important;
border: none !important;
border-radius: 0.4rem !important;
background: transparent !important;
color: var(--c-primary) !important;
font-size: 0.82rem !important;
line-height: 1 !important;
cursor: pointer !important;
text-decoration: none !important;
box-sizing: border-box !important;
white-space: nowrap !important;
transition: background var(--t-fast), color var(--t-fast) !important;
}
.citizen-page-actions .mw-list-item > a:hover,
.citizen-page-actions .citizen-share:hover,
.citizen-page-actions .citizen-dropdown-summary:hover {
background: rgba(var(--c-primary-rgb), 0.08) !important;
color: var(--c-primary-hover) !important;
}
.citizen-page-actions .mw-list-item.selected > a {
background: rgba(var(--c-primary-rgb), 0.12) !important;
font-weight: bold !important;
}
.citizen-page-actions .citizen-ui-icon {
font-size: 1rem !important;
flex-shrink: 0 !important;
}
.citizen-page-actions > .citizen-menu .citizen-keyboard-hint-keys,
.citizen-page-actions > .citizen-menu kbd {
display: none !important;
}
.citizen-page-actions .citizen-share-trigger,
.citizen-page-actions .citizen-dropdown-details {
position: relative !important;
}
.citizen-page-actions #citizen-page-actions-more__card {
position: absolute !important;
top: calc(100% + 0.5rem) !important;
right: 0 !important;
left: auto !important;
min-width: 12rem !important;
max-width: calc(100vw - 4rem) !important;
background: #fff !important;
border-radius: 0.5rem !important;
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2) !important;
padding: 0.5rem !important;
z-index: 100 !important;
}
.citizen-page-actions #citizen-page-actions-more__card .mw-list-item > a,
.citizen-page-actions #citizen-page-actions-more__card .mw-list-item > a:visited {
all: unset !important;
display: flex !important;
align-items: center !important;
justify-content: flex-start !important;
gap: 0.6rem !important;
width: 100% !important;
height: auto !important;
padding: 0.5rem 0.75rem !important;
border-radius: 0.4rem !important;
color: var(--c-primary) !important;
font-size: 0.9rem !important;
cursor: pointer !important;
text-decoration: none !important;
box-sizing: border-box !important;
white-space: normal !important;
}
.citizen-page-actions #citizen-page-actions-more__card .mw-list-item > a:hover,
.citizen-page-actions #citizen-page-actions-more__card .mw-list-item > a:visited:hover {
background: rgba(var(--c-primary-rgb), 0.08) !important;
color: var(--c-primary-hover) !important;
}
.citizen-page-actions #citizen-page-actions-more__card .mw-list-item > a > span:not(.citizen-ui-icon),
.citizen-page-actions #citizen-page-actions-more__card .citizen-keyboard-hint-keys,
.citizen-page-actions #citizen-page-actions-more__card kbd {
display: inline !important;
}
html.skin-theme-clientpref-night .citizen-page-actions .mw-list-item > a,
html.skin-theme-clientpref-night .citizen-page-actions .mw-list-item > a:visited,
html.skin-theme-clientpref-night .citizen-page-actions .citizen-share,
html.skin-theme-clientpref-night .citizen-page-actions .citizen-dropdown-summary {
color: var(--c-night-accent) !important;
}
html.skin-theme-clientpref-night .citizen-page-actions .mw-list-item > a:hover,
html.skin-theme-clientpref-night .citizen-page-actions .citizen-share:hover,
html.skin-theme-clientpref-night .citizen-page-actions .citizen-dropdown-summary:hover {
background: rgba(var(--c-night-accent-rgb), 0.12) !important;
color: #fff !important;
}
html.skin-theme-clientpref-night .citizen-page-actions .mw-list-item.selected > a {
background: rgba(var(--c-night-accent-rgb), 0.16) !important;
}
html.skin-theme-clientpref-night .citizen-page-actions #citizen-page-actions-more__card {
background: #2a2022 !important;
}
html.skin-theme-clientpref-night .citizen-page-actions #citizen-page-actions-more__card .mw-list-item > a,
html.skin-theme-clientpref-night .citizen-page-actions #citizen-page-actions-more__card .mw-list-item > a:visited {
color: #ddd !important;
}
html.skin-theme-clientpref-night .citizen-page-actions #citizen-page-actions-more__card .mw-list-item > a:hover {
background: rgba(var(--c-night-accent-rgb), 0.12) !important;
color: #fff !important;
}
/* ============================================
8. 响应式断点
============================================ */
@media (max-width: 1100px) {
.citizen-page-actions .mw-list-item > a,
.citizen-page-actions .citizen-share,
.citizen-page-actions .citizen-dropdown-summary {
width: 2rem !important;
padding: 0 !important;
height: 2rem !important;
}
.citizen-page-actions .mw-list-item > a > span:not(.citizen-ui-icon),
.citizen-page-actions .citizen-share > span:not(.citizen-ui-icon),
.citizen-page-actions .citizen-dropdown-summary > span:not(.citizen-ui-icon) {
display: none !important;
}
.citizen-page-actions #citizen-page-actions-more__card {
position: fixed !important;
top: 50% !important;
left: 50% !important;
right: auto !important;
bottom: auto !important;
transform: translate(-50%, -50%) !important;
width: 85vw !important;
max-width: 22rem !important;
max-height: 70vh !important;
overflow-y: auto !important;
z-index: 2000 !important;
}
.citizen-page-actions #citizen-page-actions-more__card .citizen-menu,
.citizen-page-actions #citizen-page-actions-more__card .citizen-menu__content,
.citizen-page-actions #citizen-page-actions-more__card .citizen-menu__content-list {
flex-direction: column !important;
align-items: stretch !important;
flex-wrap: nowrap !important;
}
.citizen-page-actions #citizen-page-actions-more__card .mw-list-item,
.citizen-page-actions #citizen-page-actions-more__card .mw-list-item > a {
width: 100% !important;
}
}
@media (max-width: 700px) {
.citizen-page-container {
padding: 0.75rem 0.75rem 0 0.75rem;
}
.mw-body {
padding: 1.25rem 1rem;
border-radius: 0.375rem;
}
.rail-panel {
width: 80vw;
}
.rail-container {
top: 4rem;
}
body.rail-open .rail-container {
transform: translateX(calc(-80vw + 0.5rem));
}
.citizen-footer {
margin: 1rem -0.75rem 0 -0.75rem;
width: calc(100% + 1.5rem);
padding: 2rem 1rem 1.5rem;
}
}
/* ============================================
9. 评论区 + 主内容链接色
============================================ */
.comments-body.comments-body--page-level {
margin: 2rem auto 0 auto !important;
padding: 2rem 2.5rem !important;
background: rgba(255, 255, 255, 0.97) !important;
border-radius: var(--radius-card) !important;
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25) !important;
box-sizing: border-box !important;
width: 100% !important;
max-width: 100% !important;
flex-shrink: 0;
}
html.citizen-feature-custom-width-clientpref-narrow .comments-body.comments-body--page-level {
max-width: 55rem !important;
}
html.citizen-feature-custom-width-clientpref-standard .comments-body.comments-body--page-level {
max-width: 80rem !important;
}
html.citizen-feature-custom-width-clientpref-wide .comments-body.comments-body--page-level {
max-width: 110rem !important;
}
html.citizen-feature-custom-width-clientpref-full .comments-body.comments-body--page-level {
max-width: 100% !important;
}
.comments-body .c-item.full {
display: flow-root !important;
width: 100% !important;
max-width: 100% !important;
margin: 0 0 1rem 0 !important;
padding: 1rem !important;
background: rgba(var(--c-primary-rgb), 0.03) !important;
border: none !important;
border-radius: 0.75rem !important;
box-sizing: border-box !important;
}
.comments-body .c-item.full:last-child {
margin-bottom: 0 !important;
}
.comments-body .c-container {
display: flow-root !important;
width: 100% !important;
max-width: 100% !important;
padding: 0 !important;
margin: 0 !important;
border: none !important;
box-sizing: border-box !important;
}
.comments-body .visualClear {
clear: both !important;
height: 0 !important;
margin: 0 !important;
padding: 0 !important;
}
.comments-body .c-item.reply,
.comments-body .c-item.nested-in-parent {
display: flow-root !important;
margin: 2rem 0 0 1.5rem !important;
width: calc(100% - 1.5rem) !important;
max-width: calc(100% - 1.5rem) !important;
background: rgba(var(--c-primary-rgb), 0.08) !important;
border-left: 3px solid rgba(var(--c-primary-rgb), 0.35) !important;
border-radius: 0 0.75rem 0.75rem 0 !important;
padding: 0.875rem 1rem 0.875rem calc(1rem - 3px) !important;
box-sizing: border-box !important;
position: relative !important;
z-index: 1 !important;
}
.comments-body .c-avatar {
display: none !important;
}
.comments-body .c-user {
display: flex !important;
flex-wrap: wrap !important;
align-items: center !important;
gap: 0.5rem !important;
font-size: 0.85rem !important;
margin: 0 0 0.5rem 0 !important;
padding: 0 !important;
color: #666 !important;
}
.comments-body .c-user a,
.comments-body .c-user a:visited {
color: var(--c-link) !important;
font-weight: bold !important;
text-decoration: none !important;
}
.comments-body .c-user a:hover,
.comments-body .c-user a:visited:hover {
color: var(--c-link-hover) !important;
text-decoration: underline !important;
}
.comments-body .c-user a.new,
.comments-body .c-user a.new:visited {
color: var(--c-link-new) !important;
}
.comments-body .c-time,
.comments-body .c-score,
.comments-body .c-score-title {
font-size: 0.8rem !important;
color: #999 !important;
font-weight: normal !important;
}
.comments-body .c-comment {
width: 100% !important;
max-width: 100% !important;
box-sizing: border-box !important;
overflow-wrap: break-word !important;
word-wrap: break-word !important;
word-break: break-word !important;
font-size: 0.9rem !important;
line-height: 1.6 !important;
padding: 0 !important;
margin: 0 !important;
border: none !important;
}
.comments-body .c-actions {
display: flex !important;
flex-wrap: wrap !important;
align-items: center !important;
gap: 0.4rem !important;
margin: 0.75rem 0 1rem 0 !important;
padding: 0.35rem 0.6rem !important;
background: rgba(var(--c-primary-rgb), 0.06) !important;
border: 1px solid rgba(var(--c-primary-rgb), 0.1) !important;
border-radius: 0.5rem !important;
box-sizing: border-box !important;
font-size: 0 !important;
line-height: 0 !important;
color: transparent !important;
position: relative !important;
z-index: 5 !important;
}
.comments-body .c-actions a,
.comments-body .c-actions a:visited,
.comments-body .c-actions > span {
display: inline-flex !important;
align-items: center !important;
justify-content: center !important;
padding: 0.3rem 0.75rem !important;
background: transparent !important;
color: var(--c-primary) !important;
text-decoration: none !important;
border-radius: 0.4rem !important;
font-size: 0.8rem !important;
line-height: 1.2 !important;
white-space: nowrap !important;
transition: background var(--t-fast), color var(--t-fast) !important;
border: none !important;
margin: 0 !important;
box-sizing: border-box !important;
flex: 0 0 auto !important;
font-family: inherit !important;
}
.comments-body .c-actions a:hover,
.comments-body .c-actions a:visited:hover {
background: var(--c-primary) !important;
color: #fff !important;
}
.comments-body .c-actions a[href*="action=delete"],
.comments-body .c-actions a[href*="delete"],
.comments-body .c-actions .comment-delete-link,
.comments-body .c-actions .c-delete a {
color: var(--c-danger) !important;
}
.comments-body .c-actions a[href*="action=delete"]:hover,
.comments-body .c-actions a[href*="delete"]:hover,
.comments-body .c-actions .comment-delete-link:hover,
.comments-body .c-actions .c-delete a:hover {
background: var(--c-danger) !important;
color: #fff !important;
}
.comments-body .c-actions .comments-edit {
color: var(--c-primary-hover) !important;
}
.comments-body .c-actions .comments-edit:hover {
background: var(--c-primary-hover) !important;
color: #fff !important;
}
.comments-body textarea,
.comments-body #comment {
width: 100% !important;
max-width: 100% !important;
height: auto !important;
min-height: 5rem !important;
font-size: 0.95rem !important;
padding: 0.5rem 0.75rem !important;
border: 1px solid rgba(var(--c-primary-rgb), 0.2) !important;
border-radius: 0.4rem !important;
background: #fff !important;
box-sizing: border-box !important;
resize: vertical !important;
font-family: inherit !important;
line-height: 1.6 !important;
display: block !important;
}
.comments-body .c-form-title {
font-size: 1rem;
font-weight: bold;
color: var(--c-primary);
margin-bottom: 0.75rem;
}
.comments-body .site-button {
background: var(--c-primary);
color: #fff;
border: none;
padding: 0.5rem 1.2rem;
border-radius: 0.4rem;
font-size: 0.9rem;
cursor: pointer;
margin-right: 0.5rem;
margin-top: 0.75rem;
font-family: inherit;
transition: background var(--t-normal);
}
.comments-body .site-button:hover {
background: var(--c-primary-hover);
}
.comments-body .c-comment-edit-form-save,
.comments-body .c-comment-edit-form-cancel {
font-size: 0.85rem;
padding: 0.35rem 0.9rem;
margin-right: 0.5rem;
border-radius: 0.4rem;
border: none;
cursor: pointer;
font-family: inherit;
}
.comments-body .c-comment-edit-form-save {
background: var(--c-primary);
color: #fff;
}
.comments-body .c-comment-edit-form-save:hover {
background: var(--c-primary-hover);
}
.comments-body .c-comment-edit-form-cancel {
background: transparent;
color: var(--c-primary);
border: 1px solid rgba(var(--c-primary-rgb), 0.2);
}
.comments-body .c-order {
font-size: 0.85rem;
color: #666;
margin-bottom: 0.5rem;
}
.comments-body .c-order select {
padding: 0.25rem 0.5rem;
border: 1px solid rgba(var(--c-primary-rgb), 0.2);
border-radius: 0.3rem;
font-family: inherit;
font-size: 0.85rem;
}
.comments-body .c-spy a,
.comments-body .c-spy a:visited {
color: var(--c-link);
text-decoration: none;
font-size: 0.85rem;
}
.comments-body .c-spy a:hover,
.comments-body .c-spy a:visited:hover {
color: var(--c-link-hover);
text-decoration: underline;
}
.mw-body-content > .printfooter {
display: none !important;
}
/* ---- 9.1 移动端适配 ---- */
@media (max-width: 700px) {
.comments-body.comments-body--page-level {
padding: 1.25rem 1rem !important;
border-radius: 0.375rem !important;
}
.comments-body .c-item.full {
padding: 0.75rem !important;
margin-bottom: 0.75rem !important;
}
.comments-body .c-item.reply,
.comments-body .c-item.nested-in-parent {
margin: 1.5rem 0 0 0.75rem !important;
width: calc(100% - 0.75rem) !important;
max-width: calc(100% - 0.75rem) !important;
padding: 0.7rem 0.7rem 0.7rem calc(0.7rem - 3px) !important;
}
.comments-body .c-actions {
padding: 0.25rem 0.4rem !important;
gap: 0.25rem !important;
}
.comments-body .c-actions a,
.comments-body .c-actions > span {
padding: 0.25rem 0.6rem !important;
font-size: 0.75rem !important;
}
.comments-body .c-user {
font-size: 0.8rem !important;
gap: 0.35rem !important;
}
.comments-body .c-time,
.comments-body .c-score {
font-size: 0.75rem !important;
}
}
/* ---- 9.2 夜间模式 ---- */
html.skin-theme-clientpref-night .comments-body.comments-body--page-level {
background: rgba(30, 22, 24, 0.95) !important;
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6) !important;
}
html.skin-theme-clientpref-pureblack .comments-body.comments-body--page-level {
background: rgba(0, 0, 0, 0.95) !important;
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8) !important;
}
html.skin-theme-clientpref-night .comments-body .c-item.full {
background: rgba(60, 40, 45, 0.4) !important;
}
html.skin-theme-clientpref-night .comments-body .c-item.reply,
html.skin-theme-clientpref-night .comments-body .c-item.nested-in-parent {
background: rgba(60, 40, 45, 0.65) !important;
border-left-color: rgba(var(--c-night-accent-rgb), 0.4) !important;
}
html.skin-theme-clientpref-night .comments-body textarea,
html.skin-theme-clientpref-night .comments-body #comment {
background: rgba(30, 22, 24, 0.6) !important;
border-color: rgba(var(--c-night-accent-rgb), 0.25) !important;
color: #ddd !important;
}
html.skin-theme-clientpref-night .comments-body .c-form-title {
color: var(--c-night-accent);
}
html.skin-theme-clientpref-night .comments-body .c-user {
color: #999 !important;
}
html.skin-theme-clientpref-night .comments-body .c-user a,
html.skin-theme-clientpref-night .comments-body .c-user a:visited {
color: var(--c-link-night) !important;
}
html.skin-theme-clientpref-night .comments-body .c-user a:hover,
html.skin-theme-clientpref-night .comments-body .c-user a:visited:hover {
color: var(--c-link-night-hover) !important;
}
html.skin-theme-clientpref-night .comments-body .c-user a.new,
html.skin-theme-clientpref-night .comments-body .c-user a.new:visited {
color: var(--c-link-new-night) !important;
}
html.skin-theme-clientpref-night .comments-body .c-actions {
background: rgba(60, 40, 45, 0.5) !important;
border-color: rgba(var(--c-night-accent-rgb), 0.2) !important;
}
html.skin-theme-clientpref-night .comments-body .c-actions a,
html.skin-theme-clientpref-night .comments-body .c-actions > span {
color: var(--c-night-accent) !important;
}
html.skin-theme-clientpref-night .comments-body .c-actions a:hover {
background: var(--c-primary-hover) !important;
color: #fff !important;
}
html.skin-theme-clientpref-night .comments-body .c-actions .comment-delete-link,
html.skin-theme-clientpref-night .comments-body .c-actions .c-delete a {
color: var(--c-danger-night) !important;
}
html.skin-theme-clientpref-night .comments-body .c-actions .comment-delete-link:hover,
html.skin-theme-clientpref-night .comments-body .c-actions .c-delete a:hover {
background: var(--c-danger) !important;
color: #fff !important;
}
html.skin-theme-clientpref-night .comments-body .c-actions .comments-edit {
color: var(--c-night-accent) !important;
}
/* ---- 9.3 主内容区链接色(金色 / 暗红)---- */
.mw-body-content a,
.mw-body-content a:visited,
.mw-parser-output a,
.mw-parser-output a:visited {
color: var(--c-link);
text-decoration: none;
transition: color var(--t-fast);
}
.mw-body-content a:hover,
.mw-body-content a:visited:hover,
.mw-parser-output a:hover,
.mw-parser-output a:visited:hover {
color: var(--c-link-hover);
text-decoration: underline;
}
.mw-body-content a.new,
.mw-body-content a.new:visited,
.mw-parser-output a.new,
.mw-parser-output a.new:visited {
color: var(--c-link-new);
}
.mw-body-content a.new:hover,
.mw-body-content a.new:visited:hover,
.mw-parser-output a.new:hover,
.mw-parser-output a.new:visited:hover {
color: var(--c-link-new);
text-decoration: underline;
}
html.skin-theme-clientpref-night .mw-body-content a,
html.skin-theme-clientpref-night .mw-body-content a:visited,
html.skin-theme-clientpref-night .mw-parser-output a,
html.skin-theme-clientpref-night .mw-parser-output a:visited,
html.skin-theme-clientpref-pureblack .mw-body-content a,
html.skin-theme-clientpref-pureblack .mw-body-content a:visited,
html.skin-theme-clientpref-pureblack .mw-parser-output a,
html.skin-theme-clientpref-pureblack .mw-parser-output a:visited {
color: var(--c-link-night);
}
html.skin-theme-clientpref-night .mw-body-content a:hover,
html.skin-theme-clientpref-night .mw-parser-output a:hover,
html.skin-theme-clientpref-pureblack .mw-body-content a:hover,
html.skin-theme-clientpref-pureblack .mw-parser-output a:hover {
color: var(--c-link-night-hover);
}
html.skin-theme-clientpref-night .mw-body-content a.new,
html.skin-theme-clientpref-night .mw-parser-output a.new,
html.skin-theme-clientpref-pureblack .mw-body-content a.new,
html.skin-theme-clientpref-pureblack .mw-parser-output a.new {
color: var(--c-link-new-night);
}
/* ============================================
10. 申请账户页面(Special:RequestAccount)
============================================ */
form[name="accountrequest"],
form[name="accountrequest"] fieldset,
form[name="accountrequest"] table,
form[name="accountrequest"] input,
form[name="accountrequest"] select,
form[name="accountrequest"] textarea {
max-width: 100%;
box-sizing: border-box;
}
form[name="accountrequest"] table {
width: 100%;
}
@media (max-width: 700px) {
form[name="accountrequest"] table,
form[name="accountrequest"] tbody,
form[name="accountrequest"] tr,
form[name="accountrequest"] td {
display: block;
width: 100%;
box-sizing: border-box;
}
form[name="accountrequest"] tr {
margin-bottom: 0.75rem;
}
form[name="accountrequest"] td:first-child {
font-weight: bold;
padding-bottom: 0.25rem;
}
form[name="accountrequest"] td:empty {
display: none;
}
form[name="accountrequest"] input:not([type="submit"]),
form[name="accountrequest"] select,
form[name="accountrequest"] textarea {
width: 100% !important;
max-width: 100% !important;
box-sizing: border-box;
font-size: 1rem;
}
form[name="accountrequest"] input[type="submit"] {
width: 100%;
padding: 0.75rem 1rem;
font-size: 1rem;
}
form[name="accountrequest"] textarea {
min-height: 6rem;
}
form[name="accountrequest"] div[style*="overflow:scroll"] table,
form[name="accountrequest"] div[style*="overflow:scroll"] tbody,
form[name="accountrequest"] div[style*="overflow:scroll"] tr {
display: table;
width: auto;
}
form[name="accountrequest"] div[style*="overflow:scroll"] td {
display: table-cell;
width: auto;
}
}
/* ============================================
11. 站点头部(Logo + 站点名)
============================================ */
.site-header {
display: flex;
align-items: center;
justify-content: flex-start;
padding: 0.5rem 0;
margin: 0 auto 1rem auto;
width: 100%;
max-width: 100%;
box-sizing: border-box;
flex-shrink: 0;
}
.site-header__brand {
display: inline-flex;
align-items: center;
gap: 6rem;
text-decoration: none;
color: inherit;
transition: opacity var(--t-fast);
}
.site-header__brand:hover {
opacity: 0.85;
}
.site-header__logo {
height: 4rem;
width: auto;
display: block;
flex-shrink: 0;
}
.site-header__name {
font-family: var(--font-family-cinzel);
font-size: 2.5rem;
font-weight: normal;
line-height: 1;
color: #fff;
letter-spacing: 0.1em;
text-transform: uppercase;
}
html.citizen-feature-custom-width-clientpref-narrow .site-header {
max-width: 55rem !important;
}
html.citizen-feature-custom-width-clientpref-standard .site-header {
max-width: 80rem !important;
}
html.citizen-feature-custom-width-clientpref-wide .site-header {
max-width: 110rem !important;
}
html.citizen-feature-custom-width-clientpref-full .site-header {
max-width: 100% !important;
}
@media (max-width: 700px) {
.site-header {
padding: 0.25rem 0;
margin-bottom: 0.75rem;
}
.site-header__brand {
gap: 0.75rem;
}
.site-header__logo {
height: 1.75rem;
}
.site-header__name {
font-size: 1.75rem;
}
}
/* ============================================
12. 主容器外的独立侧栏
============================================ */
@media (min-width: 1101px) {
body:not(.anachronism-aside-open) .anachronism-side-column {
opacity: 0;
visibility: hidden;
transform: translateY(-50%) translateX(1.5rem);
pointer-events: none;
transition:
opacity var(--t-slow) ease,
transform var(--t-slow) ease,
visibility 0s var(--t-slow);
}
}
.citizen-body-container {
display: contents !important;
}
@media (min-width: 1101px) {
.anachronism-side-column {
position: fixed;
top: 50%;
left: 24px;
right: auto;
width: 20rem;
max-width: 20rem;
max-height: calc(100vh - 2rem);
overflow-y: auto;
box-sizing: border-box;
z-index: 5;
transform: translateY(-50%);
transition:
opacity var(--t-slow) ease,
transform var(--t-slow) ease,
visibility 0s;
background: rgba(255, 255, 255, 0.97);
border-radius: var(--radius-card);
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
padding: 1.25rem;
overflow-wrap: break-word;
word-break: break-word;
}
.anachronism-side-column::-webkit-scrollbar {
width: 6px;
}
.anachronism-side-column::-webkit-scrollbar-thumb {
background: rgba(var(--c-primary-rgb), 0.25);
border-radius: 3px;
}
.anachronism-side-column::-webkit-scrollbar-track {
background: transparent;
}
.anachronism-side-column .citizen-page-aside {
display: contents !important;
}
.anachronism-side-column .citizen-page-footer {
display: block !important;
position: static !important;
width: auto !important;
max-width: none !important;
margin: 0.75rem 0 0 0 !important;
padding: 0.75rem 0 0 0 !important;
background: transparent !important;
box-shadow: none !important;
border-radius: 0 !important;
border-top: 1px solid rgba(var(--c-primary-rgb), 0.1);
box-sizing: border-box !important;
}
.anachronism-side-column .citizen-page-aside__heading {
font-size: 0.85rem;
color: #888;
margin-bottom: 0.4rem;
}
.anachronism-side-column .citizen-page-aside__link {
font-size: 0.85rem;
word-break: break-word;
}
.anachronism-side-column .citizen-page-footer #catlinks {
font-size: 0.85rem;
line-height: 1.6;
}
.anachronism-side-column .citizen-page-footer #catlinks ul {
display: flex;
flex-wrap: wrap;
gap: 0.25rem 0.5rem;
padding: 0;
margin: 0.25rem 0 0 0;
list-style: none;
}
.anachronism-side-column .citizen-page-footer #catlinks li {
margin: 0;
}
.anachronism-side-column .citizen-page-footer .page-info {
margin-top: 0.75rem;
padding-top: 0.75rem;
border-top: 1px solid rgba(var(--c-primary-rgb), 0.1);
}
.anachronism-side-column .citizen-page-footer .page-info__item {
display: block;
margin-bottom: 0.5rem;
}
.anachronism-side-column .citizen-page-footer .page-info__label {
font-size: 0.75rem;
color: #888;
margin-bottom: 0.15rem;
}
.anachronism-side-column .citizen-page-footer .page-info__text {
font-size: 0.85rem;
line-height: 1.5;
color: #444;
}
/* ============================================
TOC 修复
============================================ */
.anachronism-side-column .citizen-page-aside__sticky {
position: static !important;
top: auto !important;
display: block !important;
height: auto !important;
max-height: none !important;
overflow: visible !important;
}
.anachronism-side-column #citizen-toc {
display: block !important;
position: static !important;
height: auto !important;
max-height: none !important;
overflow: visible !important;
opacity: 1 !important;
visibility: visible !important;
}
.anachronism-side-column #citizen-toc > .citizen-dropdown-details {
display: none !important;
}
.anachronism-side-column #citizen-page-aside-toc-heading {
margin-top: 1rem;
}
.anachronism-side-column #mw-panel-toc {
display: contents !important;
position: static !important;
opacity: 1 !important;
visibility: visible !important;
}
.anachronism-side-column #mw-panel-toc .citizen-menu__card-content {
display: block !important;
position: static !important;
height: auto !important;
max-height: none !important;
padding: 0 !important;
margin: 0 !important;
overflow: visible !important;
transform: none !important;
background: transparent !important;
box-shadow: none !important;
opacity: 1 !important;
visibility: visible !important;
}
.anachronism-side-column #mw-panel-toc-list {
display: block !important;
position: static !important;
height: auto !important;
max-height: none !important;
overflow: visible !important;
}
.anachronism-side-column #mw-panel-toc .citizen-toc-link,
.anachronism-side-column #mw-panel-toc .citizen-toc-top {
opacity: 1 !important;
height: auto !important;
min-height: 1.75rem !important;
max-height: none !important;
overflow: visible !important;
padding: 0.35rem 0.5rem !important;
line-height: 1.4 !important;
align-items: center !important;
}
.anachronism-side-column #mw-panel-toc .citizen-toc-content,
.anachronism-side-column #mw-panel-toc .citizen-toc-text,
.anachronism-side-column #mw-panel-toc .citizen-toc-numb,
.anachronism-side-column #mw-panel-toc .citizen-toc-heading {
display: inline !important;
height: auto !important;
max-height: none !important;
overflow: visible !important;
line-height: 1.4 !important;
opacity: 1 !important;
}
.anachronism-side-column #mw-panel-toc .citizen-toc-indicator {
opacity: 1 !important;
}
.anachronism-side-column #mw-panel-toc .citizen-toc-list-item {
height: auto !important;
min-height: 0 !important;
max-height: none !important;
overflow: visible !important;
}
.anachronism-side-column #mw-panel-toc .citizen-toc-text {
overflow-wrap: break-word;
word-break: break-word;
}
/* 侧栏内的链接:白色卡片底,用主色系红 */
.anachronism-side-column .citizen-page-aside__link,
.anachronism-side-column .citizen-page-aside__link:visited,
.anachronism-side-column #mw-panel-toc .citizen-toc-link,
.anachronism-side-column #mw-panel-toc .citizen-toc-link:visited {
color: var(--c-primary) !important;
}
.anachronism-side-column .citizen-page-aside__link:hover,
.anachronism-side-column .citizen-page-aside__link:visited:hover,
.anachronism-side-column #mw-panel-toc .citizen-toc-link:hover,
.anachronism-side-column #mw-panel-toc .citizen-toc-link:visited:hover {
color: var(--c-primary-hover) !important;
}
}
/* ---- 12.4 触发按钮:屏幕右侧正中的独立伪 Rail ---- */
.anachronism-aside-toggle {
position: fixed;
top: calc(50vh - 1.5rem);
right: 0;
left: auto;
z-index: 70;
width: 3rem;
height: 3rem;
padding: 0;
border: none;
border-radius: 0.5rem 0 0 0.5rem;
background: var(--c-primary-hover);
color: #fff;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
font-size: 1.25rem;
line-height: 1;
box-shadow: -3px 0 12px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
transition: background var(--t-normal);
}
.anachronism-aside-toggle:hover {
background: var(--c-primary);
}
body.anachronism-aside-open .anachronism-aside-toggle {
background: var(--c-primary);
}
.anachronism-aside-toggle__icon {
display: inline-block;
transition: transform var(--t-normal);
}
body.anachronism-aside-open .anachronism-aside-toggle__icon {
transform: rotate(180deg);
}
/* ---- 12.5 移动端 ---- */
@media (max-width: 1100px) {
.anachronism-side-column {
position: static;
width: auto;
max-width: none;
max-height: none;
overflow: visible;
background: transparent;
box-shadow: none;
border-radius: 0;
padding: 0;
transform: none;
opacity: 1;
visibility: visible;
pointer-events: auto;
transition: none;
}
.anachronism-side-column .citizen-page-aside,
.anachronism-side-column .citizen-page-footer {
background: transparent !important;
box-shadow: none !important;
border-radius: 0 !important;
padding: 0 !important;
margin: 0 !important;
}
.anachronism-aside-toggle {
display: none !important;
}
}
/* ---- 12.6 夜间模式 ---- */
html.skin-theme-clientpref-night .anachronism-side-column {
background: rgba(30, 22, 24, 0.95) !important;
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6) !important;
}
html.skin-theme-clientpref-pureblack .anachronism-side-column {
background: rgba(0, 0, 0, 0.95) !important;
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8) !important;
}
html.skin-theme-clientpref-night .anachronism-side-column .citizen-page-aside__link,
html.skin-theme-clientpref-night .anachronism-side-column .citizen-page-aside__link:visited,
html.skin-theme-clientpref-night .anachronism-side-column #mw-panel-toc .citizen-toc-link,
html.skin-theme-clientpref-night .anachronism-side-column #mw-panel-toc .citizen-toc-link:visited {
color: var(--c-night-accent) !important;
}
html.skin-theme-clientpref-night .anachronism-side-column .citizen-page-aside__link:hover,
html.skin-theme-clientpref-night .anachronism-side-column #mw-panel-toc .citizen-toc-link:hover {
color: #fff !important;
}
html.skin-theme-clientpref-night .anachronism-aside-toggle {
background: var(--c-primary-night);
}
html.skin-theme-clientpref-night .anachronism-aside-toggle:hover,
html.skin-theme-clientpref-night body.anachronism-aside-open .anachronism-aside-toggle {
background: var(--c-primary-hover);
}
/* ============================================
13. Citizen Sticky Header(滚动后浮层)
============================================ */
.citizen-sticky-header-background {
background: rgba(255, 255, 255, 0.25) !important;
-webkit-backdrop-filter: blur(12px);
backdrop-filter: blur(12px);
border-bottom: 1px solid rgba(var(--c-primary-rgb), 0.12) !important;
box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06) !important;
}
.citizen-sticky-header-page-title {
color: var(--c-primary) !important;
font-weight: bold !important;
}
.citizen-sticky-header-page-tagline {
display: none !important;
}
.citizen-sticky-header-backtotop {
color: var(--c-primary) !important;
}
.citizen-sticky-header-backtotop:hover {
background: rgba(var(--c-primary-rgb), 0.08) !important;
color: var(--c-primary-hover) !important;
}
.citizen-sticky-header .citizen-sticky-header-fake-button {
color: var(--c-primary) !important;
background: transparent !important;
border: none !important;
}
.citizen-sticky-header .citizen-sticky-header-fake-button:hover {
background: rgba(var(--c-primary-rgb), 0.08) !important;
color: var(--c-primary-hover) !important;
}
.citizen-sticky-header .citizen-dropdown-summary {
color: var(--c-primary) !important;
}
.citizen-sticky-header .citizen-dropdown-summary:hover {
background: rgba(var(--c-primary-rgb), 0.08) !important;
color: var(--c-primary-hover) !important;
}
.citizen-sticky-header .citizen-menu__card {
background: #fff !important;
border-radius: 0.5rem !important;
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2) !important;
border: none !important;
}
.citizen-sticky-header .citizen-menu__card .mw-list-item > a,
.citizen-sticky-header .citizen-menu__card .mw-list-item > a:visited {
color: var(--c-link) !important;
}
.citizen-sticky-header .citizen-menu__card .mw-list-item > a:hover,
.citizen-sticky-header .citizen-menu__card .mw-list-item > a:visited:hover {
background: rgba(var(--c-primary-rgb), 0.08) !important;
color: var(--c-link-hover) !important;
}
.citizen-sticky-header .citizen-menu__card .mw-list-item > a.new,
.citizen-sticky-header .citizen-menu__card .mw-list-item > a.new:visited {
color: var(--c-link-new) !important;
}
html.skin-theme-clientpref-night .citizen-sticky-header-background {
background: rgba(30, 22, 24, 0.25) !important;
border-bottom-color: rgba(var(--c-night-accent-rgb), 0.15) !important;
box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4) !important;
}
html.skin-theme-clientpref-pureblack .citizen-sticky-header-background {
background: rgba(0, 0, 0, 0.25) !important;
box-shadow: 0 2px 12px rgba(0, 0, 0, 0.6) !important;
}
html.skin-theme-clientpref-night .citizen-sticky-header-page-title,
html.skin-theme-clientpref-night .citizen-sticky-header-backtotop,
html.skin-theme-clientpref-night .citizen-sticky-header .citizen-sticky-header-fake-button,
html.skin-theme-clientpref-night .citizen-sticky-header .citizen-dropdown-summary {
color: var(--c-night-accent) !important;
}
html.skin-theme-clientpref-night .citizen-sticky-header-backtotop:hover,
html.skin-theme-clientpref-night .citizen-sticky-header .citizen-sticky-header-fake-button:hover,
html.skin-theme-clientpref-night .citizen-sticky-header .citizen-dropdown-summary:hover {
background: rgba(var(--c-night-accent-rgb), 0.12) !important;
color: #fff !important;
}
html.skin-theme-clientpref-night .citizen-sticky-header .citizen-menu__card {
background: #2a2022 !important;
}
html.skin-theme-clientpref-night .citizen-sticky-header .citizen-menu__card .mw-list-item > a,
html.skin-theme-clientpref-night .citizen-sticky-header .citizen-menu__card .mw-list-item > a:visited {
color: var(--c-link-night) !important;
}
html.skin-theme-clientpref-night .citizen-sticky-header .citizen-menu__card .mw-list-item > a:hover,
html.skin-theme-clientpref-night .citizen-sticky-header .citizen-menu__card .mw-list-item > a:visited:hover {
background: rgba(var(--c-night-accent-rgb), 0.12) !important;
color: var(--c-link-night-hover) !important;
}
html.skin-theme-clientpref-night .citizen-sticky-header .citizen-menu__card .mw-list-item > a.new,
html.skin-theme-clientpref-night .citizen-sticky-header .citizen-menu__card .mw-list-item > a.new:visited {
color: var(--c-link-new-night) !important;
}