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

MediaWiki:Citizen.css:修订间差异

MediaWiki界面页面
Admin留言 | 贡献
修复 flex 容器被 p 包裹, 补正文间距
Admin留言 | 贡献
全站改版: 切换到 Minecraft Wiki 视觉语言
第1行: 第1行:
/* ==========================================================================
/* ==========================================================================
   Kuke Wiki — Apple-inspired theme for Citizen
   Kuke Wiki — Minecraft Wiki 风格主题
   覆盖 Citizen 的 OKLCH 分量令牌,整站配色/圆角/字体随之改变。
   直角 · 2px 硬边框 · inset 立体阴影 · 3D 按压 · 紧凑栅格
   ========================================================================== */
   ========================================================================== */


/* --- 1. 字体:优先 Apple 系统字体,中文走苹方 ------------------------------ */
/* --- 1. 字体:无衬线为主,代码用等宽 -------------------------------------- */
:root {
:root {
--font-family-citizen-base: -apple-system, BlinkMacSystemFont, 'SF Pro Text',
--font-family-citizen-base: 'Segoe UI', 'Helvetica Neue', Arial,
'SF Pro Display', 'Helvetica Neue', 'Segoe UI Variable Text', 'Segoe UI';
'Noto Sans', sans-serif;
--font-family-language-base: 'PingFang SC', 'Hiragino Sans GB',
--font-family-language-base: 'Microsoft YaHei UI', 'Microsoft YaHei',
'Microsoft YaHei UI', 'Microsoft YaHei';
'PingFang SC', 'Hiragino Sans GB', 'Noto Sans CJK SC';
--font-family-citizen-serif: 'New York', 'Songti SC', 'Source Han Serif SC';
--font-family-citizen-serif: 'Georgia', 'Songti SC', serif;
--font-family-citizen-monospace: 'SF Mono', 'Menlo', 'JetBrains Mono',
--font-family-citizen-monospace: 'Consolas', 'Cascadia Mono', 'DejaVu Sans Mono',
'Cascadia Code', 'Consolas';
monospace;
 
/* Apple 的字距:大字号收紧,正文略松 */
letter-spacing: -0.003em;
}
}


/* --- 2. 配色:Apple Blue #0071e3 / 中性灰阶 -------------------------------- */
/* --- 2. 配色:草地绿主色 + 米白纸面 --------------------------------------- */
:root {
:root {
/* 主色相 = #0071e3 的 OKLCH 色相角 */
/* #3a971e 草地绿 */
--color-progressive-oklch__l: 56.3%;
--color-progressive-oklch__l: 57%;
--color-progressive-oklch__c: 0.193;
--color-progressive-oklch__c: 0.155;
--color-progressive-oklch__h: 256.16;
--color-progressive-oklch__h: 138;
--color-progressive-hsl__h: 211;
--color-progressive-hsl__h: 100;
--color-progressive-hsl__s: 100%;
--color-progressive-hsl__s: 68%;
--color-progressive-hsl__l: 45%;
--color-progressive-hsl__l: 36%;


/* 表面:接近 #ffffff / #f5f5f7,几乎无色偏(苹果的灰是中性偏冷) */
/* 表面:略带暖调的浅灰纸面,不是纯白 */
--color-surface-0-oklch__l: 100%;
--color-surface-0-oklch__l: 98.4%;
--color-surface-0-oklch__c: 0;
--color-surface-0-oklch__c: 0.002;
--color-surface-1-oklch__c: 0.003;
--color-surface-1-oklch__c: 0.003;
--color-surface-2-oklch__c: 0.004;
--color-surface-2-oklch__c: 0.004;
--color-surface-3-oklch__c: 0.005;
--color-surface-3-oklch__c: 0.005;
--color-surface-4-oklch__c: 0.006;
--color-surface-4-oklch__c: 0.006;
--delta-lightness-surface-base: -2.4%;
--delta-lightness-surface-base: -2%;
 
/* 文字:接近纯黑,MC Wiki 的正文对比度很高 */
--color-emphasized-oklch__l: 13%;
--color-emphasized-oklch__c: 0.003;
--color-base-oklch__l: 21%;
--color-base-oklch__c: 0.003;
--color-subtle-oklch__l: 45%;
--color-subtle-oklch__c: 0.006;
--color-placeholder-oklch__l: 55%;
--color-placeholder-oklch__c: 0.006;


/* 文字:#1d1d1f 正文,#6e6e73 次要 */
/* 边框:MC 用看得见的实线,不是若隐若现的分隔线 */
--color-emphasized-oklch__l: 15%;
--border-color-base: #bbb;
--color-emphasized-oklch__c: 0.004;
--border-color-subtle: #c8c8c8;
--color-base-oklch__l: 23.2%;
--border-color-muted: #d8d8d8;
--color-base-oklch__c: 0.004;
--color-subtle-oklch__l: 54%;
--color-subtle-oklch__c: 0.008;
--color-placeholder-oklch__l: 62%;
--color-placeholder-oklch__c: 0.008;


/* 边框:苹果几乎不用实线边框,用极淡的分隔线 */
--shadow-opacity: 0.12;
--border-color-base: rgb( 0 0 0 / 0.08 );
--box-shadow-color-alpha-base: rgb( 0 0 0 / 0.12 );
--border-color-subtle: rgb( 0 0 0 / 0.05 );
--border-color-muted: rgb( 0 0 0 / 0.03 );


/* 阴影:更柔、更散、几乎无色 */
/* 主题私有令牌 */
--shadow-opacity: 0.07;
--mcw-border: #bbb;
--box-shadow-color-alpha-base: rgb( 0 0 0 / 0.07 );
--mcw-section-bg: #fcfcfcb8;
--mcw-inset: inset -2px -2px #0000000f, inset 2px 2px #ffffff0d;
--mcw-green: #3a971e;
--mcw-green-dark: #2b7315;
--mcw-blue: #0b9bb8;
--mcw-purple: #7d4fb3;
--mcw-btn-border: rgb( 0 0 0 / 0.4 );
--mcw-page-bg: #f4f2ee;
}
}


/* 暗色:#000 纯黑底 + #0a84ff 提亮蓝,对齐 macOS/iOS 深色模式 */
/* 暗色 */
.skin-theme-clientpref-night,
.skin-theme-clientpref-night,
.skin-theme-clientpref-black {
.skin-theme-clientpref-black {
--color-progressive-oklch__l: 62.4%;
--color-progressive-oklch__l: 66%;
--color-progressive-oklch__c: 0.206;
--color-progressive-oklch__c: 0.16;
--color-progressive-hsl__l: 58%;
--color-progressive-hsl__l: 46%;
--color-surface-0-oklch__l: 11%;
--color-surface-0-oklch__l: 17%;
--color-surface-0-oklch__c: 0;
--color-surface-0-oklch__c: 0.004;
--delta-lightness-surface-base: 3.2%;
--delta-lightness-surface-base: 3.5%;
--color-emphasized-oklch__l: 97%;
--color-emphasized-oklch__l: 95%;
--color-emphasized-oklch__c: 0.002;
--color-emphasized-oklch__c: 0.002;
--color-base-oklch__l: 88%;
--color-base-oklch__l: 86%;
--color-base-oklch__c: 0.003;
--color-base-oklch__c: 0.003;
--color-subtle-oklch__l: 66%;
--color-subtle-oklch__l: 65%;
--color-subtle-oklch__c: 0.006;
--color-subtle-oklch__c: 0.006;
--border-color-base: rgb( 255 255 255 / 0.1 );
--border-color-base: #202125;
--border-color-subtle: rgb( 255 255 255 / 0.06 );
--border-color-subtle: #2a2b30;
--shadow-opacity: 0.5;
--border-color-muted: #33343a;
--box-shadow-color-alpha-base: rgb( 0 0 0 / 0.5 );
--shadow-opacity: 0.55;
--box-shadow-color-alpha-base: rgb( 0 0 0 / 0.55 );
 
--mcw-border: #202125;
--mcw-section-bg: #4c4e522e;
--mcw-inset: inset -2px -2px #00000026, inset 2px 2px #ffffff0a;
--mcw-green: #2eb06d;
--mcw-green-dark: #1d7a4a;
--mcw-blue: #0eb9a9;
--mcw-purple: #9b6fd4;
--mcw-page-bg: #1c1d21;
}
}


@media ( prefers-color-scheme: dark ) {
@media ( prefers-color-scheme: dark ) {
.skin-theme-clientpref-os {
.skin-theme-clientpref-os {
--color-progressive-oklch__l: 62.4%;
--color-progressive-oklch__l: 66%;
--color-progressive-oklch__c: 0.206;
--color-progressive-oklch__c: 0.16;
--color-progressive-hsl__l: 58%;
--color-progressive-hsl__l: 46%;
--color-surface-0-oklch__l: 11%;
--color-surface-0-oklch__l: 17%;
--color-surface-0-oklch__c: 0;
--color-surface-0-oklch__c: 0.004;
--delta-lightness-surface-base: 3.2%;
--delta-lightness-surface-base: 3.5%;
--color-emphasized-oklch__l: 97%;
--color-emphasized-oklch__l: 95%;
--color-emphasized-oklch__c: 0.002;
--color-emphasized-oklch__c: 0.002;
--color-base-oklch__l: 88%;
--color-base-oklch__l: 86%;
--color-base-oklch__c: 0.003;
--color-base-oklch__c: 0.003;
--color-subtle-oklch__l: 66%;
--color-subtle-oklch__l: 65%;
--color-subtle-oklch__c: 0.006;
--color-subtle-oklch__c: 0.006;
--border-color-base: rgb( 255 255 255 / 0.1 );
--border-color-base: #202125;
--border-color-subtle: rgb( 255 255 255 / 0.06 );
--border-color-subtle: #2a2b30;
--shadow-opacity: 0.5;
--border-color-muted: #33343a;
--box-shadow-color-alpha-base: rgb( 0 0 0 / 0.5 );
--shadow-opacity: 0.55;
--box-shadow-color-alpha-base: rgb( 0 0 0 / 0.55 );
 
--mcw-border: #202125;
--mcw-section-bg: #4c4e522e;
--mcw-inset: inset -2px -2px #00000026, inset 2px 2px #ffffff0a;
--mcw-green: #2eb06d;
--mcw-green-dark: #1d7a4a;
--mcw-blue: #0eb9a9;
--mcw-purple: #9b6fd4;
--mcw-page-bg: #1c1d21;
}
}
}
}


/* --- 3. 圆角与毛玻璃:苹果的连续曲率大圆角 -------------------------------- */
/* --- 3. 直角:把 Citizen 的圆角全部收掉 ----------------------------------- */
:root {
:root {
--border-radius-base: 8px;     /* Citizen 默认 4px */
--border-radius-base: 0;
--border-radius-pill: 980px;   /* apple.com 按钮就是 980px */
--border-radius-medium: 0;
 
--border-radius-large: 0;
/* 更强的毛玻璃,贴近 macOS 侧栏材质 */
--border-radius-pill: 0;
--backdrop-filter-frosted-glass: saturate( 180% ) blur( 20px );
--border-radius-sharp: 0;
 
--backdrop-filter-frosted-glass: none;
/* 苹果标志性缓动曲线 */
--transition-timing-function-ease: linear;
--transition-timing-function-ease: cubic-bezier( 0.4, 0, 0.2, 1 );
--transition-timing-function-ease-out: linear;
--transition-timing-function-ease-out: cubic-bezier( 0.25, 0.1, 0.25, 1 );
}
}


/* --- 4. 顶栏:磨砂玻璃 + 极细分隔线 --------------------------------------- */
/* --- 4. 顶栏:实色 + 硬分隔线 --------------------------------------------- */
.citizen-header {
.citizen-header {
background-color: color-mix( in srgb, var( --color-surface-0 ) 72%, transparent );
background-color: var( --color-surface-1 );
-webkit-backdrop-filter: var( --backdrop-filter-frosted-glass );
border-inline-end: 2px solid var( --mcw-border );
backdrop-filter: var( --backdrop-filter-frosted-glass );
-webkit-backdrop-filter: none;
border-inline-end: 1px solid var( --border-color-subtle );
backdrop-filter: none;
}
}


/* --- 5. 排版:SF 风格的标题层级 ------------------------------------------- */
.citizen-drawer__card,
.mw-body h1,
.citizen-menu__card,
.mw-body h2,
.citizen-search__card,
.mw-body h3,
.citizen-dropdown__content {
.citizen-page-heading {
border: 2px solid var( --mcw-border );
font-weight: 600;
border-radius: 0;
letter-spacing: -0.022em;
line-height: 1.14;
}
}


.mw-body h1,
/* --- 5. 排版:粗体标题 + 下划线分隔 --------------------------------------- */
#firstHeading {
#firstHeading {
font-size: 2.5rem;
font-weight: 700;
letter-spacing: -0.03em;
letter-spacing: 0;
line-height: 1.25;
}
}


/* h2 去掉 Citizen 的下划线,改用留白分隔(苹果不用横线) */
.mw-body h2 {
.mw-body h2 {
border-bottom: 0;
font-weight: 700;
margin-top: 2.2em;
font-size: 1.5em;
font-size: 1.75rem;
letter-spacing: 0;
border-bottom: 2px solid var( --mcw-border );
padding-bottom: 0.2em;
}
 
.mw-body h3,
.mw-body h4 {
font-weight: 700;
letter-spacing: 0;
}
}


.mw-body p {
.mw-body p {
line-height: 1.62;
line-height: 1.6;
}
}


/* --- 6. 链接:去下划线,hover 才出现(apple.com 的做法) ------------------ */
/* --- 6. 链接:MC Wiki 保留下划线习惯,hover 才显 -------------------------- */
.mw-body-content a:not( .mw-ui-button ):not( .cdx-button ) {
.mw-body-content a:not( .mw-ui-button ):not( .cdx-button ) {
text-decoration: none;
text-decoration: none;
transition: color 0.2s var( --transition-timing-function-ease );
}
}


.mw-body-content a:not( .mw-ui-button ):not( .cdx-button ):hover {
.mw-body-content a:not( .mw-ui-button ):not( .cdx-button ):hover {
text-decoration: underline;
text-decoration: underline;
text-underline-offset: 0.2em;
text-decoration-thickness: 1px;
}
}


/* --- 7. 按钮:药丸形 + 按压回弹 ------------------------------------------- */
/* --- 7. 按钮:3D 立体 + 按压下沉 ------------------------------------------ */
.cdx-button,
.mw-ui-button,
.mw-ui-button {
.cdx-button {
border-radius: var( --border-radius-pill );
border-radius: 0;
font-weight: 500;
border: 2px solid var( --mcw-btn-border );
letter-spacing: -0.01em;
font-weight: 700;
transition: transform 0.15s var( --transition-timing-function-ease ),
box-shadow: inset 2px 2px 0 0 rgb( 255 255 255 / 0.28 ),
background-color 0.2s var( --transition-timing-function-ease );
inset -2px -2px 0 0 rgb( 0 0 0 / 0.22 );
transition: background-color 0.1s linear, box-shadow 0.1s linear;
}
}


.cdx-button:active,
.mw-ui-button:active,
.mw-ui-button:active {
.cdx-button:active {
transform: scale( 0.96 );
box-shadow: inset 2px 2px 0 0 rgb( 0 0 0 / 0.22 ),
inset -2px -2px 0 0 rgb( 255 255 255 / 0.18 );
transform: none;
}
}


/* --- 8. 搜索框:iOS 风格圆角胶囊 ------------------------------------------ */
/* --- 8. 搜索框:直角 + 硬边框 --------------------------------------------- */
.citizen-search__input,
.citizen-typeahead__input,
.citizen-typeahead__input {
.citizen-search__input {
border-radius: var( --border-radius-pill );
border-radius: 0;
border: 2px solid var( --mcw-border );
}
}


/* --- 9. 卡片/下拉:更大圆角 + 柔和投影 ------------------------------------ */
/* --- 9. 表格:MC Wiki 的 wikitable 是经典硬边框 --------------------------- */
.citizen-menu__card,
.wikitable {
.citizen-dropdown-details .citizen-menu__card,
border: 2px solid var( --mcw-border );
.citizen-search__card {
border-radius: 0;
border-radius: 14px;
border-collapse: collapse;
box-shadow: 0 8px 32px rgb( 0 0 0 / 0.12 ), 0 2px 8px rgb( 0 0 0 / 0.06 );
background-color: var( --color-surface-1 );
}
}


/* --- 10. 表格与代码块:圆角化,去掉生硬边框 ------------------------------- */
.wikitable > * > tr > th {
.wikitable {
background-color: var( --color-surface-3 );
border-radius: 12px;
border: 1px solid var( --mcw-border );
border-collapse: separate;
font-weight: 700;
border-spacing: 0;
padding: 0.4em 0.7em;
overflow: hidden;
border: 1px solid var( --border-color-base );
}
}


.wikitable > * > tr > th,
.wikitable > * > tr > td {
.wikitable > * > tr > td {
border: 0;
border: 1px solid var( --mcw-border );
border-bottom: 1px solid var( --border-color-subtle );
padding: 0.4em 0.7em;
}
}


.wikitable > * > tr:last-child > td {
/* --- 10. 代码块 ----------------------------------------------------------- */
border-bottom: 0;
.mw-highlight pre,
pre {
border: 2px solid var( --mcw-border );
border-radius: 0;
background-color: var( --color-surface-2 );
}
}


.wikitable > * > tr > th {
code {
border: 1px solid var( --mcw-border );
border-radius: 0;
background-color: var( --color-surface-2 );
background-color: var( --color-surface-2 );
font-weight: 600;
padding: 0.1em 0.35em;
}
}


pre,
.mw-highlight pre {
border-radius: 12px;
border: 1px solid var( --border-color-subtle );
padding: 1rem 1.2rem;
}
code,
kbd {
kbd {
border-radius: 6px;
border: 2px solid var( --mcw-border );
}
border-radius: 0;
 
box-shadow: inset -2px -2px 0 0 rgb( 0 0 0 / 0.12 );
/* --- 11. 图片:圆角 + 悬停微缩放,去掉缩略图边框 -------------------------- */
.thumbinner,
figure[ typeof~='mw:File/Thumb' ] {
border-radius: 12px;
border: 0;
overflow: hidden;
}
}


/* --- 11. 图片:直角 + 硬边框缩略图 ---------------------------------------- */
.mw-body-content img {
.mw-body-content img {
border-radius: 8px;
border-radius: 0;
}
}


/* --- 12. 首页卡片(配合 首页 里的 .kuke-card) ---------------------------- */
figure[ typeof~='mw:File/Thumb' ] {
.kuke-hero {
border: 2px solid var( --mcw-border );
text-align: center;
border-radius: 0;
padding: 4rem 1rem 3rem;
}
 
.kuke-hero__title {
font-size: clamp( 2.4rem, 6vw, 3.6rem );
font-weight: 600;
letter-spacing: -0.035em;
line-height: 1.06;
margin: 0;
background: linear-gradient( 180deg, var( --color-emphasized ), var( --color-subtle ) );
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
}
 
.kuke-hero__sub {
font-size: clamp( 1.05rem, 2.2vw, 1.3rem );
color: var( --color-subtle );
margin-top: 0.7rem;
letter-spacing: -0.01em;
}
 
.kuke-grid {
display: grid;
grid-template-columns: repeat( auto-fit, minmax( 250px, 1fr ) );
gap: 1.1rem;
margin: 2rem 0;
}
 
.kuke-card {
background-color: var( --color-surface-1 );
background-color: var( --color-surface-1 );
border: 1px solid var( --border-color-subtle );
padding: 4px;
border-radius: 18px;
padding: 1.6rem 1.5rem;
transition: transform 0.3s var( --transition-timing-function-ease ),
box-shadow 0.3s var( --transition-timing-function-ease );
}
 
.kuke-card:hover {
transform: translateY( -3px );
box-shadow: 0 12px 32px rgb( 0 0 0 / 0.1 );
}
 
.kuke-card h3,
.kuke-card .kuke-card__title {
margin: 0 0 0.9rem;
font-size: 1.1rem;
font-weight: 600;
letter-spacing: -0.015em;
border: 0;
}
 
.kuke-card ul {
margin: 0;
list-style: none;
}
 
.kuke-card li {
margin: 0.45rem 0;
}
 
.kuke-card li a {
color: var( --color-progressive );
}
}


/* --- 13. 滚动条:macOS 细窄样式 ------------------------------------------- */
/* --- 12. 滚动条:细窄方形 ------------------------------------------------- */
* {
* {
scrollbar-width: thin;
scrollbar-width: thin;
scrollbar-color: var( --color-placeholder ) transparent;
}
}


::-webkit-scrollbar {
::-webkit-scrollbar {
width: 9px;
width: 10px;
height: 9px;
height: 10px;
}
 
::-webkit-scrollbar-track {
background: transparent;
}
}


::-webkit-scrollbar-thumb {
::-webkit-scrollbar-thumb {
background-color: rgb( 0 0 0 / 0.22 );
background-color: rgb( 0 0 0 / 0.28 );
border-radius: 999px;
border-radius: 0;
border: 2px solid transparent;
border: 2px solid transparent;
background-clip: content-box;
background-clip: content-box;
第323行: 第288行:


::-webkit-scrollbar-thumb:hover {
::-webkit-scrollbar-thumb:hover {
background-color: rgb( 0 0 0 / 0.38 );
background-color: rgb( 0 0 0 / 0.42 );
}
 
::-webkit-scrollbar-track {
background: transparent;
}
}


/* --- 14. 焦点环:Apple 的蓝色柔光 ---------------------------------------- */
/* --- 13. 焦点环 ----------------------------------------------------------- */
:focus-visible {
:focus-visible {
outline: 2px solid var( --color-progressive );
outline: 2px solid var( --color-progressive );
outline-offset: 2px;
outline-offset: 1px;
border-radius: 6px;
border-radius: 0;
}
}




/* ==========================================================================
/* ==========================================================================
   15. 首页布局 参考 Minecraft Wiki 的双栏结构,配色沿用本主题
   14. 首页布局层 — Minecraft Wiki 风格
  直角 / 2px 硬边框 / inset 双向立体 / 6px 紧凑间距 / 草地绿
   ========================================================================== */
   ========================================================================== */


第347行: 第309行:
}
}


/* MediaWiki 会把纯链接行包进 <p>,让它在布局树中消失 */
.mw-parser-output [class^="mp-"],
.mw-parser-output [class^="mp-"] *,
.mw-parser-output [class^="mp-"] *::before,
.mw-parser-output [class^="mp-"] *::after {
box-sizing: border-box;
}
 
/* MediaWiki 会把连续的链接行包进 <p>,破坏 flex/grid,这里让它透明化 */
.mp-portals > p,
.mp-portals > p,
.mp-icons > p,
.mp-icons > p,
第356行: 第325行:
}
}


/* --- 15.1 通栏门户标签条 --- */
.mp-layout > p:empty,
.mp-left > p:empty,
.mp-right > p:empty {
display: none;
}
 
/* --- 顶部标签栏 ---------------------------------------------------------- */
 
.mp-portals {
.mp-portals {
display: flex;
display: flex;
flex-wrap: wrap;
flex-wrap: wrap;
gap: 0.4rem;
gap: 6px;
margin-bottom: 0.9rem;
margin: 0 0 6px;
padding: 0;
}
}


.mp-portals a {
.mp-tab {
text-decoration: none !important;
display: inline-block;
color: inherit !important;
padding: 6px 14px;
border: 2px solid var( --mcw-border );
background-color: var( --mcw-section-bg );
box-shadow: var( --mcw-inset );
color: var( --color-base );
font-size: 0.9375rem;
font-weight: 600;
line-height: 1.4;
transition: background-color 0.1s linear, border-color 0.1s linear;
}
}


.mp-tab {
.mp-portals a {
display: inline-block;
text-decoration: none;
padding: 0.42rem 0.9rem;
border-radius: 980px;
background-color: var( --color-surface-2 );
color: var( --color-emphasized );
font-size: 0.8125rem;
font-weight: 500;
letter-spacing: -0.01em;
transition: background-color 0.16s var( --transition-timing-function-ease );
}
}


.mp-portals a:hover .mp-tab {
.mp-portals a:hover .mp-tab {
background-color: var( --color-surface-3 );
border-color: var( --mcw-green );
background-color: var( --background-color-progressive-subtle );
}
}


.mp-tab--active {
.mp-tab--active {
background-color: var( --color-progressive );
border-color: var( --mcw-green );
background-color: var( --mcw-green );
color: #fff;
color: #fff;
}
}


.mp-portals a:hover .mp-tab--active {
.mp-portals a:hover .mp-tab--active {
background-color: var( --color-progressive--hover );
background-color: var( --mcw-green-dark );
border-color: var( --mcw-green-dark );
color: #fff;
}
}


/* --- 15.2 主栅格:左 2fr 跨两行 / 右 1fr,990px 断点 --- */
/* --- 主栅格 -------------------------------------------------------------- */
 
.mp-layout {
.mp-layout {
display: grid;
display: grid;
gap: 6px;
grid-template-columns: 1fr;
grid-template-columns: 1fr;
grid-template-areas: 'site' 'left' 'right';
grid-template-areas:
gap: 0.9rem;
"site"
align-items: start;
"left"
}
"right";
 
@media ( min-width: 990px ) {
.mp-layout {
grid-template-columns: 2fr 1fr;
grid-template-rows: auto 1fr;
grid-template-areas: 'left site' 'left right';
}
}
}


第415行: 第391行:
display: flex;
display: flex;
flex-direction: column;
flex-direction: column;
gap: 0.9rem;
gap: 6px;
min-width: 0;
min-width: 0;
}
}
第423行: 第399行:
display: flex;
display: flex;
flex-direction: column;
flex-direction: column;
gap: 0.9rem;
gap: 6px;
min-width: 0;
min-width: 0;
}
}
第429行: 第405行:
.mp-site {
.mp-site {
grid-area: site;
grid-area: site;
min-width: 0;
}
@media screen and ( min-width: 990px ) {
.mp-layout {
grid-template-columns: 2fr 1fr;
grid-template-rows: auto 1fr;
grid-template-areas:
"left site"
"left right";
}
.mp-right > .mp-section:last-child {
flex: 1;
}
}
.mp-row {
display: flex;
flex-wrap: wrap;
gap: 6px;
}
.mp-row > .mp-section {
flex: 1 1 260px;
min-width: 0;
}
}


/* --- 15.3 卡片外壳 --- */
/* --- 区块卡片 ------------------------------------------------------------ */
 
.mp-section {
.mp-section {
background-color: var( --color-surface-1 );
border: 1px solid var( --border-color-subtle );
border-radius: 18px;
padding: 1.25rem 1.35rem;
display: flex;
display: flex;
flex-direction: column;
flex-direction: column;
min-width: 0;
padding: 12px;
border: 2px solid var( --mcw-border );
background-color: var( --mcw-section-bg );
box-shadow: var( --mcw-inset );
}
}


.mp-section .mp-title {
.mp-title {
margin: 0 0 0.85rem;
margin: 0 0 8px;
padding: 0 !important;
padding: 0;
border: 0 !important;
border: 0;
font-size: 1.0625rem;
font-weight: 600;
letter-spacing: -0.015em;
color: var( --color-emphasized );
color: var( --color-emphasized );
font-size: 1.2em;
font-weight: bold;
line-height: 1.3;
line-height: 1.3;
}
}
第455行: 第456行:
.mp-title__sub {
.mp-title__sub {
display: block;
display: block;
margin-top: 0.2rem;
margin-top: 2px;
font-size: 0.8125rem;
font-weight: 400;
letter-spacing: 0;
color: var( --color-subtle );
color: var( --color-subtle );
font-size: 0.75em;
font-weight: normal;
}
}


.mp-section .mp-body {
.mp-body {
flex: 1;
flex: 1;
min-width: 0;
color: var( --color-base );
font-size: 0.9375rem;
font-size: 0.9375rem;
color: var( --color-base );
line-height: 1.65;
}
}


.mp-body > p:first-child,
.mp-body > p:first-child {
.mp-body > ul:first-child,
.mp-feature__text > p:first-child {
margin-top: 0;
margin-top: 0;
}
}


.mp-body > p:last-child,
.mp-body > p:last-child {
.mp-body > ul:last-child,
.mp-feature__text > p:last-child {
margin-bottom: 0;
margin-bottom: 0;
}
}


.mp-body ul {
.mp-body ul {
margin: 0.3rem 0;
margin: 0;
padding-left: 1.1rem;
padding-left: 1.25em;
}
}


.mp-body li {
.mp-body li {
margin: 0.3rem 0;
margin-bottom: 4px;
line-height: 1.55;
}
 
.mp-section .mp-actions {
flex: 0 0 auto;
margin-top: 0.9rem;
display: flex;
flex-wrap: wrap;
gap: 0.45rem;
}
 
@media ( min-width: 990px ) {
.mp-right > .mp-section:last-child {
flex: 1;
}
}
 
.mp-row {
display: flex;
flex-wrap: wrap;
gap: 0.9rem;
}
}


.mp-row > .mp-section {
/* --- 横幅 ---------------------------------------------------------------- */
flex: 1 1 0;
min-width: 290px;
}


/* --- 15.4 出血大图 highlight --- */
.mp-highlights {
.mp-highlights {
display: flex;
display: flex;
flex-wrap: wrap;
flex-wrap: wrap;
gap: 0.9rem;
gap: 6px;
}
}


.mp-highlight {
.mp-highlight {
flex: 1 1 0;
flex: 1 1 280px;
min-width: 300px;
min-width: 0;
min-height: calc( 150px + 5vh );
padding: 12px;
max-height: 300px;
border: 2px solid var( --mcw-btn-border );
position: relative;
background-image: linear-gradient( to bottom, #81bb5b, #3a971e );
display: flex;
box-shadow: inset 0 4px #ffffff2e, inset 0 -6px #0000002e;
flex-direction: column;
justify-content: space-between;
padding: 1.1rem 1.25rem;
border-radius: 18px;
overflow: hidden;
color: #fff;
color: #fff;
background-image: linear-gradient( 135deg, #0071e3 0%, #42a5f5 55%, #5ac8fa 100% );
text-shadow: 0 1px 10px rgb( 0 0 0 / 0.35 );
transition: transform 0.3s var( --transition-timing-function-ease ), box-shadow 0.3s var( --transition-timing-function-ease );
}
.mp-highlight:hover {
transform: translateY( -3px );
box-shadow: 0 14px 34px rgb( 0 0 0 / 0.18 );
}
}


.mp-highlight--alt {
.mp-highlight--alt {
background-image: linear-gradient( 135deg, #5e5ce6 0%, #7d5fff 55%, #bf5af2 100% );
background-image: linear-gradient( to bottom, #50adff, #0b78b8 );
}
}


第554行: 第512行:
flex-wrap: wrap;
flex-wrap: wrap;
align-items: center;
align-items: center;
gap: 0.5rem;
gap: 8px;
margin-bottom: 4px;
}
}


.mp-highlight__title {
.mp-highlight__title {
font-size: 1.25rem;
font-size: 1.15em;
font-weight: 600;
font-weight: bold;
letter-spacing: -0.02em;
text-shadow: 0 1px 0 rgb( 0 0 0 / 0.25 );
color: #fff;
}
}


.mp-highlight__tag {
.mp-highlight__tag {
padding: 0.16rem 0.6rem;
padding: 1px 8px;
border-radius: 980px;
border: 2px solid rgb( 255 255 255 / 0.45 );
background-color: rgb( 255 255 255 / 0.22 );
background-color: rgb( 0 0 0 / 0.18 );
-webkit-backdrop-filter: blur( 6px );
font-size: 0.75em;
backdrop-filter: blur( 6px );
font-weight: bold;
font-size: 0.6875rem;
white-space: nowrap;
font-weight: 600;
letter-spacing: 0.02em;
text-shadow: none;
}
}


.mp-highlight__meta {
.mp-highlight__meta {
font-size: 0.8125rem;
font-size: 0.9375rem;
opacity: 0.92;
line-height: 1.6;
opacity: 0.95;
}
}


.mp-highlight a,
.mp-highlight a {
.mp-highlight__meta a {
color: #fff;
color: #fff !important;
font-weight: bold;
text-decoration: underline;
text-underline-offset: 2px;
}
}


/* --- 15.5 图标网格 --- */
/* --- 图标网格 ------------------------------------------------------------ */
 
.mp-icons {
.mp-icons {
display: flex;
display: flex;
flex-wrap: wrap;
flex-wrap: wrap;
justify-content: center;
justify-content: center;
gap: 0.5rem;
gap: 8px;
--mp-icon-w: 92px;
margin: auto;
--icon-base-width: 84px;
--icon-max-width: 140px;
}
}


.mp-icons > a {
.mp-icons a {
flex: 1 auto;
flex: 1 auto;
width: var( --mp-icon-w );
width: var( --icon-base-width );
max-width: 170px;
max-width: var( --icon-max-width );
text-decoration: none !important;
text-decoration: none;
color: inherit !important;
}
}


.mp-icon {
.mp-icon {
height: 100%;
display: flex;
display: flex;
flex-direction: column;
flex-direction: column;
align-items: center;
align-items: center;
gap: 0.4rem;
gap: 4px;
padding: 0.85rem 0.4rem;
height: 100%;
border-radius: 14px;
background-color: var( --color-surface-2 );
color: var( --color-emphasized );
text-align: center;
transition: background-color 0.16s var( --transition-timing-function-ease ), transform 0.16s var( --transition-timing-function-ease );
}
}


.mp-icons > a:hover .mp-icon {
.mp-icon__glyph {
background-color: var( --color-surface-3 );
display: flex;
transform: translateY( -2px );
align-items: center;
justify-content: center;
width: 100%;
aspect-ratio: 1;
max-height: 72px;
border: 2px solid var( --mcw-btn-border );
background-color: #00000030;
box-shadow: inset 0 4px #00000030, inset 0 -4px #ffffff40;
font-size: 1.75rem;
line-height: 1;
transition: background-color 0.1s linear;
}
}


.mp-icons > a:active .mp-icon {
.mp-icons a:hover .mp-icon__glyph {
transform: scale( 0.96 );
background-color: #ffffff26;
}
}


.mp-icon__glyph {
.mp-icon__label {
font-size: 1.5rem;
flex: 1;
line-height: 1;
color: var( --color-base );
font-size: 14px;
line-height: 1.3;
text-align: center;
}
}


.mp-icon__label {
.mp-icons a:hover .mp-icon__label {
font-size: 0.8125rem;
color: var( --mcw-green );
font-weight: 500;
text-decoration: underline;
letter-spacing: -0.01em;
line-height: 1.25;
}
}


@media ( min-width: 1200px ) {
@media screen and ( max-width: 640px ) {
.mp-icons {
.mp-icons {
--mp-icon-w: 6vw;
--icon-base-width: 68px;
--icon-max-width: 100px;
}
}
}


@media ( max-width: 950px ) {
.mp-icon__glyph {
.mp-icons {
font-size: 1.375rem;
--mp-icon-w: 74px;
}
}
}
}


/* --- 15.6 特色文章 --- */
/* --- 按钮(MC 3D 按压) -------------------------------------------------- */
.mp-feature {
 
.mp-actions {
display: flex;
display: flex;
flex-wrap: wrap;
flex-wrap: wrap;
gap: 0.9rem;
gap: 6px;
align-items: flex-start;
margin-top: 10px;
}
}


.mp-feature__text {
.mp-actions a {
flex: 1 1 0;
text-decoration: none;
min-width: 190px;
}
}


.mp-feature__text p {
.mp-button {
margin: 0;
position: relative;
display: inline-block;
padding: 8px 16px;
border: 2px solid var( --mcw-btn-border );
background-color: var( --mcw-green );
color: #fff;
font-size: 0.9375rem;
font-size: 0.9375rem;
line-height: 1.6;
font-weight: bold;
color: var( --color-subtle );
line-height: 1.4;
transition: background-color 0.1s linear, transform 0.1s linear;
}
}


.mp-feature__media {
.mp-button::after {
flex: 0 1 240px;
content: "";
max-width: 270px;
position: absolute;
border-radius: 12px;
top: 0;
overflow: hidden;
right: 0;
}
bottom: 0;
 
left: 0;
.mp-feature__media img {
box-shadow:
display: block;
0 -6px 0 0 rgb( 104 104 104 ) inset,
width: 100%;
2px 2px 0 0 rgb( 178 178 178 / 0.5 ) inset,
height: auto;
-2px -8px 0 0 rgb( 153 153 153 / 0.5 ) inset;
border-radius: 12px;
mix-blend-mode: hard-light;
pointer-events: none;
}
}


/* --- 15.7 时间线 --- */
.mp-actions a:hover .mp-button::after {
.mp-timeline {
background-color: #ffffff1a;
border-left: 2px solid var( --border-color-base );
margin: 0 0 0 0.6rem;
padding-left: 1.1rem;
display: flex;
flex-direction: column;
gap: 0.85rem;
}
}


.mp-timeline__item {
.mp-actions a:active .mp-button {
position: relative;
transform: translateY( 3px );
display: flex;
flex-wrap: wrap;
align-items: baseline;
gap: 0 0.5rem;
}
}


.mp-timeline__item::before {
.mp-actions a:active .mp-button::after {
content: '';
box-shadow:
position: absolute;
2px 2px 0 0 rgb( 178 178 178 / 0.5 ) inset,
left: -1.58rem;
-2px -2px 0 0 rgb( 153 153 153 / 0.5 ) inset;
top: 0.36rem;
background-color: #0000001a;
width: 11px;
height: 11px;
border-radius: 3px;
background-color: var( --color-progressive );
box-shadow: 0 0 0 3px var( --color-surface-1 );
}
}


.mp-timeline__name {
.mp-button--quiet {
font-size: 0.9375rem;
background-color: var( --mcw-section-bg );
font-weight: 500;
border-color: var( --mcw-border );
letter-spacing: -0.01em;
color: var( --color-base );
}
}


.mp-timeline__date {
/* --- 站点卡片 ------------------------------------------------------------ */
font-size: 0.8125rem;
color: var( --color-subtle );
}


/* --- 15.8 站点欢迎块 / 统计 --- */
.mp-site__welcome {
.mp-site__welcome {
margin-bottom: 10px;
font-size: 0.9375rem;
font-size: 0.9375rem;
line-height: 1.6;
line-height: 1.65;
color: var( --color-subtle );
margin: 0;
}
}


第736行: 第687行:
display: grid;
display: grid;
grid-template-columns: repeat( 2, 1fr );
grid-template-columns: repeat( 2, 1fr );
gap: 0.5rem;
gap: 6px;
margin-top: 0.95rem;
}
}


.mp-stat {
.mp-stat {
padding: 0.7rem 0.5rem;
display: flex;
border-radius: 12px;
flex-direction: column;
background-color: var( --color-surface-2 );
align-items: center;
text-align: center;
padding: 8px 4px;
border: 2px solid var( --mcw-border );
background-color: var( --background-color-interactive-subtle );
box-shadow: var( --mcw-inset );
}
}


.mp-stat__num {
.mp-stat__num {
display: block;
color: var( --mcw-green );
font-size: 1.375rem;
font-size: 1.35rem;
font-weight: 600;
font-weight: bold;
letter-spacing: -0.022em;
line-height: 1.2;
line-height: 1.1;
font-variant-numeric: tabular-nums;
color: var( --color-progressive );
}
}


.mp-stat__label {
.mp-stat__label {
display: block;
margin-top: 2px;
margin-top: 0.15rem;
color: var( --color-subtle );
font-size: 0.75rem;
font-size: 0.75rem;
color: var( --color-subtle );
}
}


/* --- 15.9 新闻列表 --- */
/* --- 特色条目 ------------------------------------------------------------ */
.mp-news {
 
.mp-feature__text p:first-child {
margin-top: 0;
}
 
.mp-feature__text p:last-child {
margin-bottom: 0;
}
 
/* --- 时间线 -------------------------------------------------------------- */
 
.mp-timeline {
display: flex;
display: flex;
flex-direction: column;
flex-direction: column;
gap: 0.75rem;
justify-content: space-around;
gap: 10px;
margin-left: 8px;
padding-left: 15px;
border-left: 2px solid var( --mcw-border );
}
}


.mp-news__item {
.mp-timeline__item {
position: relative;
display: flex;
display: flex;
flex-direction: column;
flex-wrap: wrap;
gap: 0.15rem;
align-items: baseline;
gap: 0 0.5em;
}
}


.mp-news__date {
.mp-timeline__item::before {
font-size: 0.75rem;
content: "";
color: var( --color-placeholder );
position: absolute;
letter-spacing: 0;
top: 4px;
left: -23px;
width: 14px;
height: 14px;
border: 2px solid var( --color-base );
background-color: var( --mcw-green );
}
}


.mp-news__title {
.mp-timeline__name {
flex: 1 1 auto;
color: var( --color-base );
font-size: 0.9375rem;
font-size: 0.9375rem;
line-height: 1.45;
line-height: 1.5;
letter-spacing: -0.01em;
}
 
.mp-timeline__date {
color: var( --color-subtle );
font-size: 0.75rem;
white-space: nowrap;
opacity: 0.8;
}
}


/* --- 15.10 多列链接组 --- */
/* --- 新闻列表 ------------------------------------------------------------ */
.mp-cols {
 
.mp-news {
display: flex;
display: flex;
flex-wrap: wrap;
flex-direction: column;
gap: 0.9rem;
gap: 8px;
}
}


.mp-cols > div {
.mp-news__item {
flex: 1 1 0;
display: flex;
min-width: 130px;
align-items: baseline;
gap: 8px;
padding-bottom: 8px;
border-bottom: 2px solid var( --mcw-border );
}
}


.mp-colhead {
.mp-news__item:last-child {
margin: 0 0 0.4rem;
padding-bottom: 0;
font-size: 0.6875rem;
border-bottom: 0;
font-weight: 600;
letter-spacing: 0.06em;
text-transform: uppercase;
color: var( --color-placeholder );
border: 0;
}
}


.mp-cols ul {
.mp-news__date {
margin: 0;
flex: none;
padding: 0;
padding: 1px 6px;
list-style: none;
border: 2px solid var( --mcw-btn-border );
background-color: var( --mcw-green );
color: #fff;
font-size: 0.6875rem;
font-weight: bold;
white-space: nowrap;
}
}


.mp-cols li {
.mp-news__title {
margin: 0.28rem 0;
flex: 1;
color: var( --color-base );
font-size: 0.875rem;
font-size: 0.875rem;
line-height: 1.5;
}
}


/* --- 15.11 按钮 --- */
/* --- 更多入口分栏 -------------------------------------------------------- */
.mp-actions a,
 
.mp-highlight a,
.mp-cols {
.mp-feature a {
display: grid;
text-decoration: none !important;
grid-template-columns: repeat( auto-fit, minmax( 120px, 1fr ) );
color: inherit !important;
gap: 10px;
}
}


.mp-button {
.mp-cols ul {
display: inline-block;
margin: 0;
padding: 0.5rem 1.05rem;
padding-left: 1.1em;
border-radius: 980px;
background-color: var( --color-progressive );
color: #fff;
font-size: 0.875rem;
font-size: 0.875rem;
font-weight: 500;
letter-spacing: -0.01em;
transition: background-color 0.16s var( --transition-timing-function-ease ), transform 0.12s var( --transition-timing-function-ease );
}
}


.mp-button:hover {
.mp-cols li {
background-color: var( --color-progressive--hover );
margin-bottom: 3px;
}
}


.mp-button:active {
.mp-colhead {
transform: scale( 0.96 );
margin-bottom: 4px;
}
padding-bottom: 3px;
 
border-bottom: 2px solid var( --mcw-border );
.mp-button--quiet {
background-color: var( --color-surface-2 );
color: var( --color-emphasized );
color: var( --color-emphasized );
font-size: 0.75rem;
font-weight: bold;
letter-spacing: 0.04em;
}
}


.mp-button--quiet:hover {
/* --- 页脚语言条 ---------------------------------------------------------- */
background-color: var( --color-surface-3 );
}


/* --- 15.12 通栏语言条 --- */
.mp-languages {
.mp-languages {
display: flex;
display: flex;
flex-wrap: wrap;
flex-wrap: wrap;
gap: 0.4rem;
justify-content: center;
margin-top: 0.9rem;
gap: 6px;
margin-top: 6px;
padding: 8px 12px;
border: 2px solid var( --mcw-border );
background-color: var( --mcw-section-bg );
box-shadow: var( --mcw-inset );
font-size: 0.8125rem;
}
}


.mp-languages a {
.mp-languages a {
flex: 1 1 90px;
padding: 2px 8px;
max-width: 180px;
border: 2px solid transparent;
padding: 0.42rem 0.7rem;
text-decoration: none;
border-radius: 10px;
background-color: var( --color-surface-2 );
color: var( --color-emphasized ) !important;
font-size: 0.8125rem;
text-align: center;
text-decoration: none !important;
transition: background-color 0.16s var( --transition-timing-function-ease );
}
}


.mp-languages a:hover {
.mp-languages a:hover {
background-color: var( --color-surface-3 );
border-color: var( --mcw-border );
}
background-color: var( --background-color-interactive-subtle );
 
 
 
@media ( prefers-reduced-motion: reduce ) {
.mp-highlight,
.mp-icon,
.mp-button {
transition: none;
}
 
.mp-highlight:hover,
.mp-icon:hover {
transform: none;
}
}
}

2026年8月19日 (三) 16:28的版本

/* ==========================================================================
   Kuke Wiki — Minecraft Wiki 风格主题
   直角 · 2px 硬边框 · inset 立体阴影 · 3D 按压 · 紧凑栅格
   ========================================================================== */

/* --- 1. 字体:无衬线为主,代码用等宽 -------------------------------------- */
:root {
	--font-family-citizen-base: 'Segoe UI', 'Helvetica Neue', Arial,
		'Noto Sans', sans-serif;
	--font-family-language-base: 'Microsoft YaHei UI', 'Microsoft YaHei',
		'PingFang SC', 'Hiragino Sans GB', 'Noto Sans CJK SC';
	--font-family-citizen-serif: 'Georgia', 'Songti SC', serif;
	--font-family-citizen-monospace: 'Consolas', 'Cascadia Mono', 'DejaVu Sans Mono',
		monospace;
}

/* --- 2. 配色:草地绿主色 + 米白纸面 --------------------------------------- */
:root {
	/* #3a971e 草地绿 */
	--color-progressive-oklch__l: 57%;
	--color-progressive-oklch__c: 0.155;
	--color-progressive-oklch__h: 138;
	--color-progressive-hsl__h: 100;
	--color-progressive-hsl__s: 68%;
	--color-progressive-hsl__l: 36%;

	/* 表面:略带暖调的浅灰纸面,不是纯白 */
	--color-surface-0-oklch__l: 98.4%;
	--color-surface-0-oklch__c: 0.002;
	--color-surface-1-oklch__c: 0.003;
	--color-surface-2-oklch__c: 0.004;
	--color-surface-3-oklch__c: 0.005;
	--color-surface-4-oklch__c: 0.006;
	--delta-lightness-surface-base: -2%;

	/* 文字:接近纯黑,MC Wiki 的正文对比度很高 */
	--color-emphasized-oklch__l: 13%;
	--color-emphasized-oklch__c: 0.003;
	--color-base-oklch__l: 21%;
	--color-base-oklch__c: 0.003;
	--color-subtle-oklch__l: 45%;
	--color-subtle-oklch__c: 0.006;
	--color-placeholder-oklch__l: 55%;
	--color-placeholder-oklch__c: 0.006;

	/* 边框:MC 用看得见的实线,不是若隐若现的分隔线 */
	--border-color-base: #bbb;
	--border-color-subtle: #c8c8c8;
	--border-color-muted: #d8d8d8;

	--shadow-opacity: 0.12;
	--box-shadow-color-alpha-base: rgb( 0 0 0 / 0.12 );

	/* 主题私有令牌 */
	--mcw-border: #bbb;
	--mcw-section-bg: #fcfcfcb8;
	--mcw-inset: inset -2px -2px #0000000f, inset 2px 2px #ffffff0d;
	--mcw-green: #3a971e;
	--mcw-green-dark: #2b7315;
	--mcw-blue: #0b9bb8;
	--mcw-purple: #7d4fb3;
	--mcw-btn-border: rgb( 0 0 0 / 0.4 );
	--mcw-page-bg: #f4f2ee;
}

/* 暗色 */
.skin-theme-clientpref-night,
.skin-theme-clientpref-black {
	--color-progressive-oklch__l: 66%;
	--color-progressive-oklch__c: 0.16;
	--color-progressive-hsl__l: 46%;
	--color-surface-0-oklch__l: 17%;
	--color-surface-0-oklch__c: 0.004;
	--delta-lightness-surface-base: 3.5%;
	--color-emphasized-oklch__l: 95%;
	--color-emphasized-oklch__c: 0.002;
	--color-base-oklch__l: 86%;
	--color-base-oklch__c: 0.003;
	--color-subtle-oklch__l: 65%;
	--color-subtle-oklch__c: 0.006;
	--border-color-base: #202125;
	--border-color-subtle: #2a2b30;
	--border-color-muted: #33343a;
	--shadow-opacity: 0.55;
	--box-shadow-color-alpha-base: rgb( 0 0 0 / 0.55 );

	--mcw-border: #202125;
	--mcw-section-bg: #4c4e522e;
	--mcw-inset: inset -2px -2px #00000026, inset 2px 2px #ffffff0a;
	--mcw-green: #2eb06d;
	--mcw-green-dark: #1d7a4a;
	--mcw-blue: #0eb9a9;
	--mcw-purple: #9b6fd4;
	--mcw-page-bg: #1c1d21;
}

@media ( prefers-color-scheme: dark ) {
	.skin-theme-clientpref-os {
		--color-progressive-oklch__l: 66%;
		--color-progressive-oklch__c: 0.16;
		--color-progressive-hsl__l: 46%;
		--color-surface-0-oklch__l: 17%;
		--color-surface-0-oklch__c: 0.004;
		--delta-lightness-surface-base: 3.5%;
		--color-emphasized-oklch__l: 95%;
		--color-emphasized-oklch__c: 0.002;
		--color-base-oklch__l: 86%;
		--color-base-oklch__c: 0.003;
		--color-subtle-oklch__l: 65%;
		--color-subtle-oklch__c: 0.006;
		--border-color-base: #202125;
		--border-color-subtle: #2a2b30;
		--border-color-muted: #33343a;
		--shadow-opacity: 0.55;
		--box-shadow-color-alpha-base: rgb( 0 0 0 / 0.55 );

		--mcw-border: #202125;
		--mcw-section-bg: #4c4e522e;
		--mcw-inset: inset -2px -2px #00000026, inset 2px 2px #ffffff0a;
		--mcw-green: #2eb06d;
		--mcw-green-dark: #1d7a4a;
		--mcw-blue: #0eb9a9;
		--mcw-purple: #9b6fd4;
		--mcw-page-bg: #1c1d21;
	}
}

/* --- 3. 直角:把 Citizen 的圆角全部收掉 ----------------------------------- */
:root {
	--border-radius-base: 0;
	--border-radius-medium: 0;
	--border-radius-large: 0;
	--border-radius-pill: 0;
	--border-radius-sharp: 0;
	--backdrop-filter-frosted-glass: none;
	--transition-timing-function-ease: linear;
	--transition-timing-function-ease-out: linear;
}

/* --- 4. 顶栏:实色 + 硬分隔线 --------------------------------------------- */
.citizen-header {
	background-color: var( --color-surface-1 );
	border-inline-end: 2px solid var( --mcw-border );
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
}

.citizen-drawer__card,
.citizen-menu__card,
.citizen-search__card,
.citizen-dropdown__content {
	border: 2px solid var( --mcw-border );
	border-radius: 0;
}

/* --- 5. 排版:粗体标题 + 下划线分隔 --------------------------------------- */
#firstHeading {
	font-weight: 700;
	letter-spacing: 0;
	line-height: 1.25;
}

.mw-body h2 {
	font-weight: 700;
	font-size: 1.5em;
	letter-spacing: 0;
	border-bottom: 2px solid var( --mcw-border );
	padding-bottom: 0.2em;
}

.mw-body h3,
.mw-body h4 {
	font-weight: 700;
	letter-spacing: 0;
}

.mw-body p {
	line-height: 1.6;
}

/* --- 6. 链接:MC Wiki 保留下划线习惯,hover 才显 -------------------------- */
.mw-body-content a:not( .mw-ui-button ):not( .cdx-button ) {
	text-decoration: none;
}

.mw-body-content a:not( .mw-ui-button ):not( .cdx-button ):hover {
	text-decoration: underline;
}

/* --- 7. 按钮:3D 立体 + 按压下沉 ------------------------------------------ */
.mw-ui-button,
.cdx-button {
	border-radius: 0;
	border: 2px solid var( --mcw-btn-border );
	font-weight: 700;
	box-shadow: inset 2px 2px 0 0 rgb( 255 255 255 / 0.28 ),
		inset -2px -2px 0 0 rgb( 0 0 0 / 0.22 );
	transition: background-color 0.1s linear, box-shadow 0.1s linear;
}

.mw-ui-button:active,
.cdx-button:active {
	box-shadow: inset 2px 2px 0 0 rgb( 0 0 0 / 0.22 ),
		inset -2px -2px 0 0 rgb( 255 255 255 / 0.18 );
	transform: none;
}

/* --- 8. 搜索框:直角 + 硬边框 --------------------------------------------- */
.citizen-typeahead__input,
.citizen-search__input {
	border-radius: 0;
	border: 2px solid var( --mcw-border );
}

/* --- 9. 表格:MC Wiki 的 wikitable 是经典硬边框 --------------------------- */
.wikitable {
	border: 2px solid var( --mcw-border );
	border-radius: 0;
	border-collapse: collapse;
	background-color: var( --color-surface-1 );
}

.wikitable > * > tr > th {
	background-color: var( --color-surface-3 );
	border: 1px solid var( --mcw-border );
	font-weight: 700;
	padding: 0.4em 0.7em;
}

.wikitable > * > tr > td {
	border: 1px solid var( --mcw-border );
	padding: 0.4em 0.7em;
}

/* --- 10. 代码块 ----------------------------------------------------------- */
.mw-highlight pre,
pre {
	border: 2px solid var( --mcw-border );
	border-radius: 0;
	background-color: var( --color-surface-2 );
}

code {
	border: 1px solid var( --mcw-border );
	border-radius: 0;
	background-color: var( --color-surface-2 );
	padding: 0.1em 0.35em;
}

kbd {
	border: 2px solid var( --mcw-border );
	border-radius: 0;
	box-shadow: inset -2px -2px 0 0 rgb( 0 0 0 / 0.12 );
}

/* --- 11. 图片:直角 + 硬边框缩略图 ---------------------------------------- */
.mw-body-content img {
	border-radius: 0;
}

figure[ typeof~='mw:File/Thumb' ] {
	border: 2px solid var( --mcw-border );
	border-radius: 0;
	background-color: var( --color-surface-1 );
	padding: 4px;
}

/* --- 12. 滚动条:细窄方形 ------------------------------------------------- */
* {
	scrollbar-width: thin;
}

::-webkit-scrollbar {
	width: 10px;
	height: 10px;
}

::-webkit-scrollbar-track {
	background: transparent;
}

::-webkit-scrollbar-thumb {
	background-color: rgb( 0 0 0 / 0.28 );
	border-radius: 0;
	border: 2px solid transparent;
	background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
	background-color: rgb( 0 0 0 / 0.42 );
}

/* --- 13. 焦点环 ----------------------------------------------------------- */
:focus-visible {
	outline: 2px solid var( --color-progressive );
	outline-offset: 1px;
	border-radius: 0;
}


/* ==========================================================================
   14. 首页布局层 — Minecraft Wiki 风格
   直角 / 2px 硬边框 / inset 双向立体 / 6px 紧凑间距 / 草地绿
   ========================================================================== */

.page-首页 .mw-parser-output,
.page-Main_Page .mw-parser-output {
	max-width: none;
}

.mw-parser-output [class^="mp-"],
.mw-parser-output [class^="mp-"] *,
.mw-parser-output [class^="mp-"] *::before,
.mw-parser-output [class^="mp-"] *::after {
	box-sizing: border-box;
}

/* MediaWiki 会把连续的链接行包进 <p>,破坏 flex/grid,这里让它透明化 */
.mp-portals > p,
.mp-icons > p,
.mp-actions > p,
.mp-languages > p {
	display: contents;
	margin: 0;
}

.mp-layout > p:empty,
.mp-left > p:empty,
.mp-right > p:empty {
	display: none;
}

/* --- 顶部标签栏 ---------------------------------------------------------- */

.mp-portals {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0 0 6px;
	padding: 0;
}

.mp-tab {
	display: inline-block;
	padding: 6px 14px;
	border: 2px solid var( --mcw-border );
	background-color: var( --mcw-section-bg );
	box-shadow: var( --mcw-inset );
	color: var( --color-base );
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.4;
	transition: background-color 0.1s linear, border-color 0.1s linear;
}

.mp-portals a {
	text-decoration: none;
}

.mp-portals a:hover .mp-tab {
	border-color: var( --mcw-green );
	background-color: var( --background-color-progressive-subtle );
}

.mp-tab--active {
	border-color: var( --mcw-green );
	background-color: var( --mcw-green );
	color: #fff;
}

.mp-portals a:hover .mp-tab--active {
	background-color: var( --mcw-green-dark );
	border-color: var( --mcw-green-dark );
	color: #fff;
}

/* --- 主栅格 -------------------------------------------------------------- */

.mp-layout {
	display: grid;
	gap: 6px;
	grid-template-columns: 1fr;
	grid-template-areas:
		"site"
		"left"
		"right";
}

.mp-left {
	grid-area: left;
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

.mp-right {
	grid-area: right;
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

.mp-site {
	grid-area: site;
	min-width: 0;
}

@media screen and ( min-width: 990px ) {
	.mp-layout {
		grid-template-columns: 2fr 1fr;
		grid-template-rows: auto 1fr;
		grid-template-areas:
			"left site"
			"left right";
	}

	.mp-right > .mp-section:last-child {
		flex: 1;
	}
}

.mp-row {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.mp-row > .mp-section {
	flex: 1 1 260px;
	min-width: 0;
}

/* --- 区块卡片 ------------------------------------------------------------ */

.mp-section {
	display: flex;
	flex-direction: column;
	padding: 12px;
	border: 2px solid var( --mcw-border );
	background-color: var( --mcw-section-bg );
	box-shadow: var( --mcw-inset );
}

.mp-title {
	margin: 0 0 8px;
	padding: 0;
	border: 0;
	color: var( --color-emphasized );
	font-size: 1.2em;
	font-weight: bold;
	line-height: 1.3;
}

.mp-title__sub {
	display: block;
	margin-top: 2px;
	color: var( --color-subtle );
	font-size: 0.75em;
	font-weight: normal;
}

.mp-body {
	flex: 1;
	color: var( --color-base );
	font-size: 0.9375rem;
	line-height: 1.65;
}

.mp-body > p:first-child {
	margin-top: 0;
}

.mp-body > p:last-child {
	margin-bottom: 0;
}

.mp-body ul {
	margin: 0;
	padding-left: 1.25em;
}

.mp-body li {
	margin-bottom: 4px;
}

/* --- 横幅 ---------------------------------------------------------------- */

.mp-highlights {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.mp-highlight {
	flex: 1 1 280px;
	min-width: 0;
	padding: 12px;
	border: 2px solid var( --mcw-btn-border );
	background-image: linear-gradient( to bottom, #81bb5b, #3a971e );
	box-shadow: inset 0 4px #ffffff2e, inset 0 -6px #0000002e;
	color: #fff;
}

.mp-highlight--alt {
	background-image: linear-gradient( to bottom, #50adff, #0b78b8 );
}

.mp-highlight__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-bottom: 4px;
}

.mp-highlight__title {
	font-size: 1.15em;
	font-weight: bold;
	text-shadow: 0 1px 0 rgb( 0 0 0 / 0.25 );
}

.mp-highlight__tag {
	padding: 1px 8px;
	border: 2px solid rgb( 255 255 255 / 0.45 );
	background-color: rgb( 0 0 0 / 0.18 );
	font-size: 0.75em;
	font-weight: bold;
	white-space: nowrap;
}

.mp-highlight__meta {
	font-size: 0.9375rem;
	line-height: 1.6;
	opacity: 0.95;
}

.mp-highlight a {
	color: #fff;
	font-weight: bold;
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* --- 图标网格 ------------------------------------------------------------ */

.mp-icons {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin: auto;
	--icon-base-width: 84px;
	--icon-max-width: 140px;
}

.mp-icons a {
	flex: 1 auto;
	width: var( --icon-base-width );
	max-width: var( --icon-max-width );
	text-decoration: none;
}

.mp-icon {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	height: 100%;
}

.mp-icon__glyph {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	aspect-ratio: 1;
	max-height: 72px;
	border: 2px solid var( --mcw-btn-border );
	background-color: #00000030;
	box-shadow: inset 0 4px #00000030, inset 0 -4px #ffffff40;
	font-size: 1.75rem;
	line-height: 1;
	transition: background-color 0.1s linear;
}

.mp-icons a:hover .mp-icon__glyph {
	background-color: #ffffff26;
}

.mp-icon__label {
	flex: 1;
	color: var( --color-base );
	font-size: 14px;
	line-height: 1.3;
	text-align: center;
}

.mp-icons a:hover .mp-icon__label {
	color: var( --mcw-green );
	text-decoration: underline;
}

@media screen and ( max-width: 640px ) {
	.mp-icons {
		--icon-base-width: 68px;
		--icon-max-width: 100px;
	}

	.mp-icon__glyph {
		font-size: 1.375rem;
	}
}

/* --- 按钮(MC 3D 按压) -------------------------------------------------- */

.mp-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 10px;
}

.mp-actions a {
	text-decoration: none;
}

.mp-button {
	position: relative;
	display: inline-block;
	padding: 8px 16px;
	border: 2px solid var( --mcw-btn-border );
	background-color: var( --mcw-green );
	color: #fff;
	font-size: 0.9375rem;
	font-weight: bold;
	line-height: 1.4;
	transition: background-color 0.1s linear, transform 0.1s linear;
}

.mp-button::after {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	box-shadow:
		0 -6px 0 0 rgb( 104 104 104 ) inset,
		2px 2px 0 0 rgb( 178 178 178 / 0.5 ) inset,
		-2px -8px 0 0 rgb( 153 153 153 / 0.5 ) inset;
	mix-blend-mode: hard-light;
	pointer-events: none;
}

.mp-actions a:hover .mp-button::after {
	background-color: #ffffff1a;
}

.mp-actions a:active .mp-button {
	transform: translateY( 3px );
}

.mp-actions a:active .mp-button::after {
	box-shadow:
		2px 2px 0 0 rgb( 178 178 178 / 0.5 ) inset,
		-2px -2px 0 0 rgb( 153 153 153 / 0.5 ) inset;
	background-color: #0000001a;
}

.mp-button--quiet {
	background-color: var( --mcw-section-bg );
	border-color: var( --mcw-border );
	color: var( --color-base );
}

/* --- 站点卡片 ------------------------------------------------------------ */

.mp-site__welcome {
	margin-bottom: 10px;
	font-size: 0.9375rem;
	line-height: 1.65;
}

.mp-stats {
	display: grid;
	grid-template-columns: repeat( 2, 1fr );
	gap: 6px;
}

.mp-stat {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 8px 4px;
	border: 2px solid var( --mcw-border );
	background-color: var( --background-color-interactive-subtle );
	box-shadow: var( --mcw-inset );
}

.mp-stat__num {
	color: var( --mcw-green );
	font-size: 1.35rem;
	font-weight: bold;
	line-height: 1.2;
	font-variant-numeric: tabular-nums;
}

.mp-stat__label {
	margin-top: 2px;
	color: var( --color-subtle );
	font-size: 0.75rem;
}

/* --- 特色条目 ------------------------------------------------------------ */

.mp-feature__text p:first-child {
	margin-top: 0;
}

.mp-feature__text p:last-child {
	margin-bottom: 0;
}

/* --- 时间线 -------------------------------------------------------------- */

.mp-timeline {
	display: flex;
	flex-direction: column;
	justify-content: space-around;
	gap: 10px;
	margin-left: 8px;
	padding-left: 15px;
	border-left: 2px solid var( --mcw-border );
}

.mp-timeline__item {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0 0.5em;
}

.mp-timeline__item::before {
	content: "";
	position: absolute;
	top: 4px;
	left: -23px;
	width: 14px;
	height: 14px;
	border: 2px solid var( --color-base );
	background-color: var( --mcw-green );
}

.mp-timeline__name {
	flex: 1 1 auto;
	color: var( --color-base );
	font-size: 0.9375rem;
	line-height: 1.5;
}

.mp-timeline__date {
	color: var( --color-subtle );
	font-size: 0.75rem;
	white-space: nowrap;
	opacity: 0.8;
}

/* --- 新闻列表 ------------------------------------------------------------ */

.mp-news {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.mp-news__item {
	display: flex;
	align-items: baseline;
	gap: 8px;
	padding-bottom: 8px;
	border-bottom: 2px solid var( --mcw-border );
}

.mp-news__item:last-child {
	padding-bottom: 0;
	border-bottom: 0;
}

.mp-news__date {
	flex: none;
	padding: 1px 6px;
	border: 2px solid var( --mcw-btn-border );
	background-color: var( --mcw-green );
	color: #fff;
	font-size: 0.6875rem;
	font-weight: bold;
	white-space: nowrap;
}

.mp-news__title {
	flex: 1;
	color: var( --color-base );
	font-size: 0.875rem;
	line-height: 1.5;
}

/* --- 更多入口分栏 -------------------------------------------------------- */

.mp-cols {
	display: grid;
	grid-template-columns: repeat( auto-fit, minmax( 120px, 1fr ) );
	gap: 10px;
}

.mp-cols ul {
	margin: 0;
	padding-left: 1.1em;
	font-size: 0.875rem;
}

.mp-cols li {
	margin-bottom: 3px;
}

.mp-colhead {
	margin-bottom: 4px;
	padding-bottom: 3px;
	border-bottom: 2px solid var( --mcw-border );
	color: var( --color-emphasized );
	font-size: 0.75rem;
	font-weight: bold;
	letter-spacing: 0.04em;
}

/* --- 页脚语言条 ---------------------------------------------------------- */

.mp-languages {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
	margin-top: 6px;
	padding: 8px 12px;
	border: 2px solid var( --mcw-border );
	background-color: var( --mcw-section-bg );
	box-shadow: var( --mcw-inset );
	font-size: 0.8125rem;
}

.mp-languages a {
	padding: 2px 8px;
	border: 2px solid transparent;
	text-decoration: none;
}

.mp-languages a:hover {
	border-color: var( --mcw-border );
	background-color: var( --background-color-interactive-subtle );
}