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

MediaWiki:Citizen.css:修订间差异

MediaWiki界面页面
Admin留言 | 贡献
顶部导航: 分隔线由右边框改为下边框
Admin留言 | 贡献
全站改版: 参考 kuke.ink 官网视觉语言
第1行: 第1行:
/* ==========================================================================
/* ==========================================================================
   Kuke Wiki — Minecraft Wiki 风格主题
   Kuke Wiki 主题 参考 kuke.ink 官网视觉语言
   直角 · 2px 硬边框 · inset 立体阴影 · 3D 按压 · 紧凑栅格
   天蓝品牌色 / slate 冷灰中性 / 16px 圆角 / 柔和扩散阴影 / 毛玻璃
   ========================================================================== */
   ========================================================================== */


/* --- 1. 字体:无衬线为主,代码用等宽 -------------------------------------- */
/* --- 1. 字体 -------------------------------------------------------------- */
 
:root {
:root {
--font-family-citizen-base: 'Segoe UI', 'Helvetica Neue', Arial,
--font-family-base: Inter, system-ui, -apple-system, "Segoe UI",
'Noto Sans', sans-serif;
"Noto Sans SC", "Microsoft YaHei", sans-serif;
--font-family-language-base: 'Microsoft YaHei UI', 'Microsoft YaHei',
--font-family-heading: var( --font-family-base );
'PingFang SC', 'Hiragino Sans GB', 'Noto Sans CJK SC';
--font-family-monospace: ui-monospace, SFMono-Regular, Menlo, Monaco,
--font-family-citizen-serif: 'Georgia', 'Songti SC', serif;
Consolas, "Liberation Mono", "Courier New", monospace;
--font-family-citizen-monospace: 'Consolas', 'Cascadia Mono', 'DejaVu Sans Mono',
}
monospace;
 
body {
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
}


/* --- 2. 配色:草地绿主色 + 米白纸面 --------------------------------------- */
/* --- 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%;


/* 表面:略带暖调的浅灰纸面,不是纯白 */
:root,
--color-surface-0-oklch__l: 98.4%;
.skin-theme-clientpref-day {
--color-surface-0-oklch__c: 0.002;
/* Citizen 的主色管线(oklch + hsl 双写) -> sky-600 #0284c7 */
--color-surface-1-oklch__c: 0.003;
--color-progressive-oklch__l: 58%;
--color-surface-2-oklch__c: 0.004;
--color-progressive-oklch__c: 0.135;
--color-surface-3-oklch__c: 0.005;
--color-progressive-oklch__h: 236;
--color-surface-4-oklch__c: 0.006;
--color-progressive-hsl__h: 201;
--delta-lightness-surface-base: -2%;
--color-progressive-hsl__s: 96%;
--color-progressive-hsl__l: 39%;


/* 文字:接近纯黑,MC Wiki 的正文对比度很高 */
/* slate 冷灰中性色 */
--color-emphasized-oklch__l: 13%;
--color-base: #0f172b;
--color-emphasized-oklch__c: 0.003;
--color-emphasized: #020618;
--color-base-oklch__l: 21%;
--color-subtle: #45556c;
--color-base-oklch__c: 0.003;
--color-subtle--hover: #0f172b;
--color-subtle-oklch__l: 45%;
--color-subtle-oklch__c: 0.006;
--color-placeholder-oklch__l: 55%;
--color-placeholder-oklch__c: 0.006;


/* 边框:MC 用看得见的实线,不是若隐若现的分隔线 */
--color-surface-0: #f8fafc;
--border-color-base: #bbb;
--color-surface-1: #ffffff;
--border-color-subtle: #c8c8c8;
--color-surface-2: #f1f5f9;
--border-color-muted: #d8d8d8;
--color-surface-3: #e2e8f0;
--color-surface-4: #cbd5e1;


--shadow-opacity: 0.12;
--border-color-base: rgb( 226 232 240 / 0.6 );
--box-shadow-color-alpha-base: rgb( 0 0 0 / 0.12 );
--border-color-subtle: rgb( 226 232 240 / 0.9 );
--border-color-interactive: #cbd5e1;


/* 主题私有令牌 */
/* 私有令牌 */
--mcw-border: #bbb;
--kuke-brand: #0ea5e9;
--mcw-section-bg: #fcfcfcb8;
--kuke-brand-hover: #38bdf8;
--mcw-inset: inset -2px -2px #0000000f, inset 2px 2px #ffffff0d;
--kuke-brand-strong: #0284c7;
--mcw-green: #3a971e;
--kuke-brand-light: #7dd3fc;
--mcw-green-dark: #2b7315;
--kuke-brand-pale: #e0f2fe;
--mcw-blue: #0b9bb8;
--kuke-card-bg: #ffffff;
--mcw-purple: #7d4fb3;
--kuke-card-border: rgb( 226 232 240 / 0.6 );
--mcw-btn-border: rgb( 0 0 0 / 0.4 );
--kuke-card-border-hover: rgb( 14 165 233 / 0.3 );
--mcw-page-bg: #f4f2ee;
--kuke-shadow: 0 10px 15px -3px rgb( 0 0 0 / 0.1 ),
0 4px 6px -4px rgb( 0 0 0 / 0.1 );
--kuke-shadow-glow: 0 25px 50px -12px rgb( 14 165 233 / 0.2 );
--kuke-glass: rgb( 255 255 255 / 0.8 );
--kuke-glass-border: rgb( 226 232 240 / 0.5 );
--kuke-ease: cubic-bezier( 0.4, 0, 0.2, 1 );
--kuke-overlay: linear-gradient(
to top,
rgb( 15 23 43 / 0.9 ),
rgb( 15 23 43 / 0.2 ),
transparent
);
--kuke-glow-a: rgb( 56 189 248 / 0.2 );
--kuke-glow-b: rgb( 192 132 252 / 0.2 );
}
}


/* 暗色 */
.skin-theme-clientpref-night,
.skin-theme-clientpref-night,
.skin-theme-clientpref-black {
.skin-theme-clientpref-black {
--color-progressive-oklch__l: 66%;
--color-progressive-oklch__l: 74%;
--color-progressive-oklch__c: 0.16;
--color-progressive-oklch__c: 0.13;
--color-progressive-hsl__l: 46%;
--color-progressive-hsl__l: 60%;
--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;
--color-base: #e2e8f0;
--mcw-section-bg: #4c4e522e;
--color-emphasized: #ffffff;
--mcw-inset: inset -2px -2px #00000026, inset 2px 2px #ffffff0a;
--color-subtle: #90a1b9;
--mcw-green: #2eb06d;
--color-subtle--hover: #cbd5e1;
--mcw-green-dark: #1d7a4a;
 
--mcw-blue: #0eb9a9;
--color-surface-0: #020618;
--mcw-purple: #9b6fd4;
--color-surface-1: #0f172b;
--mcw-page-bg: #1c1d21;
--color-surface-2: #1d293d;
--color-surface-3: #314158;
--color-surface-4: #45556c;
 
--border-color-base: rgb( 49 65 88 / 0.5 );
--border-color-subtle: rgb( 49 65 88 / 0.8 );
--border-color-interactive: #45556c;
 
--kuke-brand: #38bdf8;
--kuke-brand-hover: #7dd3fc;
--kuke-brand-strong: #0ea5e9;
--kuke-brand-light: #7dd3fc;
--kuke-brand-pale: #075985;
--kuke-card-bg: rgb( 29 41 61 / 0.5 );
--kuke-card-border: rgb( 49 65 88 / 0.5 );
--kuke-card-border-hover: rgb( 56 189 248 / 0.35 );
--kuke-shadow: 0 10px 15px -3px rgb( 0 0 0 / 0.3 ),
0 4px 6px -4px rgb( 0 0 0 / 0.3 );
--kuke-shadow-glow: 0 25px 50px -12px rgb( 56 189 248 / 0.25 );
--kuke-glass: rgb( 15 23 43 / 0.8 );
--kuke-glass-border: rgb( 49 65 88 / 0.5 );
--kuke-glow-a: rgb( 2 132 199 / 0.12 );
--kuke-glow-b: rgb( 147 51 234 / 0.12 );
}
}


@media ( prefers-color-scheme: dark ) {
@media ( prefers-color-scheme: dark ) {
.skin-theme-clientpref-os {
.skin-theme-clientpref-os {
--color-progressive-oklch__l: 66%;
--color-progressive-oklch__l: 74%;
--color-progressive-oklch__c: 0.16;
--color-progressive-oklch__c: 0.13;
--color-progressive-hsl__l: 46%;
--color-progressive-hsl__l: 60%;
--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;
--color-base: #e2e8f0;
--mcw-section-bg: #4c4e522e;
--color-emphasized: #ffffff;
--mcw-inset: inset -2px -2px #00000026, inset 2px 2px #ffffff0a;
--color-subtle: #90a1b9;
--mcw-green: #2eb06d;
--color-subtle--hover: #cbd5e1;
--mcw-green-dark: #1d7a4a;
 
--mcw-blue: #0eb9a9;
--color-surface-0: #020618;
--mcw-purple: #9b6fd4;
--color-surface-1: #0f172b;
--mcw-page-bg: #1c1d21;
--color-surface-2: #1d293d;
--color-surface-3: #314158;
--color-surface-4: #45556c;
 
--border-color-base: rgb( 49 65 88 / 0.5 );
--border-color-subtle: rgb( 49 65 88 / 0.8 );
--border-color-interactive: #45556c;
 
--kuke-brand: #38bdf8;
--kuke-brand-hover: #7dd3fc;
--kuke-brand-strong: #0ea5e9;
--kuke-brand-light: #7dd3fc;
--kuke-brand-pale: #075985;
--kuke-card-bg: rgb( 29 41 61 / 0.5 );
--kuke-card-border: rgb( 49 65 88 / 0.5 );
--kuke-card-border-hover: rgb( 56 189 248 / 0.35 );
--kuke-shadow: 0 10px 15px -3px rgb( 0 0 0 / 0.3 ),
0 4px 6px -4px rgb( 0 0 0 / 0.3 );
--kuke-shadow-glow: 0 25px 50px -12px rgb( 56 189 248 / 0.25 );
--kuke-glass: rgb( 15 23 43 / 0.8 );
--kuke-glass-border: rgb( 49 65 88 / 0.5 );
--kuke-glow-a: rgb( 2 132 199 / 0.12 );
--kuke-glow-b: rgb( 147 51 234 / 0.12 );
}
}
}
}


/* --- 3. 直角:把 Citizen 的圆角全部收掉 ----------------------------------- */
/* --- 3. 圆角与缓动 -------------------------------------------------------- */
 
:root {
:root {
--border-radius-base: 0;
--border-radius-base: 12px;
--border-radius-medium: 0;
--border-radius-medium: 16px;
--border-radius-large: 0;
--border-radius-large: 24px;
--border-radius-pill: 0;
--border-radius-pill: 9999px;
--border-radius-sharp: 0;
--border-radius-sharp: 8px;
--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.4, 0, 0.2, 1 );
--transition-duration-base: 0.3s;
}
 
/* --- 4. 背景氛围光斑 ------------------------------------------------------ */
 
body::before,
body::after {
content: "";
position: fixed;
z-index: 0;
width: 40%;
height: 40%;
border-radius: 9999px;
filter: blur( 100px );
pointer-events: none;
}
}


/* --- 4. 顶栏:实色 + 硬分隔线 --------------------------------------------- */
body::before {
top: -10%;
left: -10%;
background-color: var( --kuke-glow-a );
}
 
body::after {
right: -10%;
bottom: -10%;
background-color: var( --kuke-glow-b );
}
 
.citizen-body-container,
.citizen-header,
.citizen-sticky-header {
position: relative;
z-index: 1;
}
 
/* --- 5. 顶栏:毛玻璃 ------------------------------------------------------ */
 
.citizen-header {
.citizen-header {
background-color: var( --color-surface-1 );
background-color: var( --kuke-glass );
-webkit-backdrop-filter: none;
-webkit-backdrop-filter: blur( 24px );
backdrop-filter: none;
backdrop-filter: blur( 24px );
}
}


.citizen-header-position-top .citizen-header,
.citizen-header-position-top .citizen-header,
.citizen-header-position-mobile-top .citizen-header {
.citizen-header-position-mobile-top .citizen-header {
border-block-end: 2px solid var( --mcw-border );
border-block-end: 1px solid var( --kuke-glass-border );
border-inline-end: 0;
border-inline-end: 0;
}
}


.citizen-header-position-left .citizen-header {
.citizen-header-position-left .citizen-header {
border-inline-end: 2px solid var( --mcw-border );
border-inline-end: 1px solid var( --kuke-glass-border );
}
}


.citizen-sticky-header,
.citizen-sticky-header,
.citizen-sticky-header-background {
.citizen-sticky-header-background {
border-block-end: 2px solid var( --mcw-border );
background-color: var( --kuke-glass );
-webkit-backdrop-filter: none;
border-block-end: 1px solid var( --kuke-glass-border );
backdrop-filter: none;
-webkit-backdrop-filter: blur( 24px );
backdrop-filter: blur( 24px );
}
}


第166行: 第226行:
.citizen-search__card,
.citizen-search__card,
.citizen-dropdown__content {
.citizen-dropdown__content {
border: 2px solid var( --mcw-border );
border: 1px solid var( --kuke-card-border );
border-radius: 0;
border-radius: 16px;
box-shadow: var( --kuke-shadow );
}
 
.citizen-header__item a:hover,
.citizen-menu__content-list a:hover {
border-radius: 12px;
}
}


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


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


第188行: 第254行:
.mw-body h4 {
.mw-body h4 {
font-weight: 700;
font-weight: 700;
letter-spacing: 0;
letter-spacing: -0.01em;
}
}


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


/* --- 6. 链接:MC Wiki 保留下划线习惯,hover 才显 -------------------------- */
/* --- 7. 链接 -------------------------------------------------------------- */
.mw-body-content a:not( .mw-ui-button ):not( .cdx-button ) {
 
.mw-parser-output a:not( .mp-portals a ):not( .mp-icons a ):not( .mp-actions a ) {
text-decoration: none;
text-decoration: none;
transition: color 0.2s var( --kuke-ease );
}
}


.mw-body-content a:not( .mw-ui-button ):not( .cdx-button ):hover {
.mw-parser-output a:not( .mp-portals a ):not( .mp-icons a ):not( .mp-actions a ):hover {
text-decoration: underline;
text-decoration: underline;
text-underline-offset: 3px;
text-decoration-thickness: 1.5px;
}
}


/* --- 7. 按钮:3D 立体 + 按压下沉 ------------------------------------------ */
::selection {
background-color: rgb( 14 165 233 / 0.3 );
}
 
/* --- 8. 按钮 -------------------------------------------------------------- */
 
.cdx-button,
.mw-ui-button,
.mw-ui-button,
.cdx-button {
.oo-ui-buttonElement-button {
border-radius: 0;
border-radius: 12px;
border: 2px solid var( --mcw-btn-border );
font-weight: 600;
font-weight: 700;
transition: background-color 0.3s var( --kuke-ease ),
box-shadow: inset 2px 2px 0 0 rgb( 255 255 255 / 0.28 ),
box-shadow 0.3s var( --kuke-ease ), transform 0.3s var( --kuke-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--action-progressive.cdx-button--weight-primary,
.mw-ui-button.mw-ui-progressive {
background-color: var( --kuke-brand-strong );
border-color: var( --kuke-brand-strong );
box-shadow: 0 10px 30px -10px rgb( 14 165 233 / 0.5 );
}
 
.cdx-button--action-progressive.cdx-button--weight-primary:hover,
.mw-ui-button.mw-ui-progressive:hover {
background-color: var( --kuke-brand );
border-color: var( --kuke-brand );
}
}


.mw-ui-button:active,
/* --- 9. 搜索框 ------------------------------------------------------------ */
.cdx-button:active {
 
box-shadow: inset 2px 2px 0 0 rgb( 0 0 0 / 0.22 ),
.citizen-search-box,
inset -2px -2px 0 0 rgb( 255 255 255 / 0.18 );
.citizen-search__form,
transform: none;
.citizen-typeahead {
border-radius: 12px;
}
}


/* --- 8. 搜索框:直角 + 硬边框 --------------------------------------------- */
.citizen-search__form:focus-within {
.citizen-typeahead__input,
border-color: var( --kuke-brand );
.citizen-search__input {
box-shadow: 0 0 0 4px rgb( 14 165 233 / 0.2 );
border-radius: 0;
border: 2px solid var( --mcw-border );
}
}


/* --- 9. 表格:MC Wiki 的 wikitable 是经典硬边框 --------------------------- */
/* --- 10. 表格 ------------------------------------------------------------- */
 
.wikitable {
.wikitable {
border: 2px solid var( --mcw-border );
border: 1px solid var( --kuke-card-border );
border-radius: 0;
border-radius: 16px;
border-collapse: collapse;
border-collapse: separate;
background-color: var( --color-surface-1 );
border-spacing: 0;
overflow: hidden;
box-shadow: var( --kuke-shadow );
}
 
.wikitable > * > tr > th,
.wikitable > * > tr > td {
border: 0;
border-bottom: 1px solid var( --border-color-base );
padding: 0.6em 0.9em;
}
 
.wikitable > * > tr:last-child > th,
.wikitable > * > tr:last-child > td {
border-bottom: 0;
}
}


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


.wikitable > * > tr > td {
.wikitable > tbody > tr:hover > td {
border: 1px solid var( --mcw-border );
background-color: var( --color-surface-2 );
padding: 0.4em 0.7em;
}
}


/* --- 10. 代码块 ----------------------------------------------------------- */
/* --- 11. 代码 ------------------------------------------------------------- */
.mw-highlight pre,
 
pre {
code,
border: 2px solid var( --mcw-border );
kbd,
border-radius: 0;
samp,
tt {
border: 1px solid var( --kuke-card-border );
border-radius: 8px;
background-color: var( --color-surface-2 );
background-color: var( --color-surface-2 );
font-family: var( --font-family-monospace );
font-size: 0.875em;
}
}


code {
pre,
border: 1px solid var( --mcw-border );
.mw-code {
border-radius: 0;
border: 1px solid var( --kuke-card-border );
border-radius: 16px;
background-color: var( --color-surface-2 );
background-color: var( --color-surface-2 );
padding: 0.1em 0.35em;
padding: 1em 1.2em;
box-shadow: var( --kuke-shadow );
}
 
/* --- 12. 图片 ------------------------------------------------------------- */
 
.thumbinner,
.mw-halign-left,
.mw-halign-right {
border-radius: 16px;
}
}


kbd {
.thumbinner {
border: 2px solid var( --mcw-border );
border: 1px solid var( --kuke-card-border );
border-radius: 0;
background-color: var( --kuke-card-bg );
box-shadow: inset -2px -2px 0 0 rgb( 0 0 0 / 0.12 );
padding: 8px;
box-shadow: var( --kuke-shadow );
transition: box-shadow 0.3s var( --kuke-ease ),
border-color 0.3s var( --kuke-ease );
}
}


/* --- 11. 图片:直角 + 硬边框缩略图 ---------------------------------------- */
.thumbinner:hover {
.mw-body-content img {
border-color: var( --kuke-card-border-hover );
border-radius: 0;
box-shadow: var( --kuke-shadow-glow );
}
}


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


/* --- 12. 滚动条:细窄方形 ------------------------------------------------- */
/* --- 13. 消息框 ----------------------------------------------------------- */
 
.cdx-message,
.mw-message-box,
.mw-warning,
.catlinks {
border-radius: 16px;
border: 1px solid var( --kuke-card-border );
}
 
.catlinks {
background-color: var( --kuke-card-bg );
box-shadow: var( --kuke-shadow );
}
 
.mw-normal-catlinks a {
display: inline-block;
padding: 2px 12px;
border-radius: 9999px;
background-color: var( --color-surface-2 );
font-size: 0.875em;
transition: background-color 0.2s var( --kuke-ease ),
color 0.2s var( --kuke-ease );
}
 
.mw-normal-catlinks a:hover {
background-color: var( --kuke-brand-strong );
color: #fff;
text-decoration: none;
}
 
/* --- 14. 滚动条 ----------------------------------------------------------- */
 
* {
* {
scrollbar-width: thin;
scrollbar-width: thin;
scrollbar-color: var( --color-surface-4 ) transparent;
}
}


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


::-webkit-scrollbar-track {
::-webkit-scrollbar-track {
background: transparent;
background-color: var( --color-surface-2 );
}
}


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


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


/* --- 13. 焦点环 ----------------------------------------------------------- */
/* --- 15. 焦点环 ----------------------------------------------------------- */
:focus-visible {
 
outline: 2px solid var( --color-progressive );
a:focus-visible,
outline-offset: 1px;
button:focus-visible,
border-radius: 0;
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
outline: 2px solid var( --kuke-brand );
outline-offset: 2px;
border-radius: 8px;
}
 
/* --- 16. 减少动效 --------------------------------------------------------- */
 
@media ( prefers-reduced-motion: reduce ) {
*,
*::before,
*::after {
animation-duration: 0.01ms !important;
transition-duration: 0.01ms !important;
}
}
}




/* ==========================================================================
/* ==========================================================================
   14. 首页布局层 — Minecraft Wiki 风格
   首页布局层 —— 参考 kuke.ink(KukeMC 官网)视觉语言
   直角 / 2px 硬边框 / inset 双向立体 / 6px 紧凑间距 / 草地绿
   大圆角 / 柔和扩散阴影 / 卡片 hover 抬升发光 / 天蓝品牌色
   ========================================================================== */
   ========================================================================== */


第325行: 第489行:
}
}


.mw-parser-output [class^="mp-"],
.page-首页 .mw-parser-output *,
.mw-parser-output [class^="mp-"] *,
.page-Main_Page .mw-parser-output * {
.mw-parser-output [class^="mp-"] *::before,
.mw-parser-output [class^="mp-"] *::after {
box-sizing: border-box;
box-sizing: border-box;
}
}
第341行: 第503行:
}
}


.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: 6px;
gap: 10px;
margin: 0 0 6px;
margin-bottom: 20px;
padding: 0;
}
 
.mp-portals a {
text-decoration: none;
}
}


.mp-tab {
.mp-tab {
display: inline-block;
display: inline-block;
padding: 6px 14px;
padding: 8px 20px;
border: 2px solid var( --mcw-border );
border: 1px solid var( --kuke-card-border );
background-color: var( --mcw-section-bg );
border-radius: 9999px;
box-shadow: var( --mcw-inset );
background-color: var( --kuke-card-bg );
color: var( --color-base );
color: var( --color-base );
font-size: 0.9375rem;
font-size: 0.9375rem;
font-weight: 600;
font-weight: 600;
line-height: 1.4;
line-height: 1.4;
transition: background-color 0.1s linear, border-color 0.1s linear;
transition:
}
background-color 0.3s var( --kuke-ease ),
 
border-color 0.3s var( --kuke-ease ),
.mp-portals a {
color 0.3s var( --kuke-ease ),
text-decoration: none;
transform 0.3s var( --kuke-ease );
}
}


.mp-portals a:hover .mp-tab {
.mp-portals a:hover .mp-tab {
border-color: var( --mcw-green );
border-color: var( --kuke-card-border-hover );
background-color: var( --background-color-progressive-subtle );
background-color: var( --kuke-brand-pale );
color: var( --kuke-brand-strong );
transform: translateY( -2px );
}
}


.mp-tab--active {
.mp-tab--active {
border-color: var( --mcw-green );
border-color: transparent;
background-color: var( --mcw-green );
background-color: var( --kuke-brand-strong );
box-shadow: 0 10px 15px -3px rgb( 14 165 233 / 0.25 );
color: #fff;
color: #fff;
transform: scale( 1.05 );
}
}


.mp-portals a:hover .mp-tab--active {
.mp-portals a:hover .mp-tab--active {
background-color: var( --mcw-green-dark );
border-color: transparent;
border-color: var( --mcw-green-dark );
background-color: var( --kuke-brand );
color: #fff;
color: #fff;
transform: scale( 1.05 ) translateY( -2px );
}
}


第395行: 第559行:
.mp-layout {
.mp-layout {
display: grid;
display: grid;
gap: 6px;
gap: 20px;
grid-template-columns: 1fr;
grid-template-columns: 1fr;
grid-template-areas:
grid-template-areas:
第407行: 第571行:
display: flex;
display: flex;
flex-direction: column;
flex-direction: column;
gap: 6px;
gap: 20px;
min-width: 0;
min-width: 0;
}
}
第415行: 第579行:
display: flex;
display: flex;
flex-direction: column;
flex-direction: column;
gap: 6px;
gap: 20px;
min-width: 0;
min-width: 0;
}
}
第424行: 第588行:
}
}


@media screen and ( min-width: 990px ) {
@media screen and ( min-width: 1024px ) {
.mp-layout {
.mp-layout {
grid-template-columns: 2fr 1fr;
grid-template-columns: 2fr 1fr;
第441行: 第605行:
display: flex;
display: flex;
flex-wrap: wrap;
flex-wrap: wrap;
gap: 6px;
gap: 20px;
}
}


.mp-row > .mp-section {
.mp-row > .mp-section {
flex: 1 1 260px;
flex: 1 1 280px;
min-width: 0;
min-width: 0;
}
}
第454行: 第618行:
display: flex;
display: flex;
flex-direction: column;
flex-direction: column;
padding: 12px;
padding: 24px;
border: 2px solid var( --mcw-border );
border: 1px solid var( --kuke-card-border );
background-color: var( --mcw-section-bg );
border-radius: 16px;
box-shadow: var( --mcw-inset );
background-color: var( --kuke-card-bg );
-webkit-backdrop-filter: blur( 12px );
backdrop-filter: blur( 12px );
box-shadow: var( --kuke-shadow );
transition:
box-shadow 0.3s var( --kuke-ease ),
border-color 0.3s var( --kuke-ease );
}
 
.mp-section:hover {
border-color: var( --kuke-card-border-hover );
box-shadow: var( --kuke-shadow-glow );
}
}


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


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


第482行: 第659行:
color: var( --color-base );
color: var( --color-base );
font-size: 0.9375rem;
font-size: 0.9375rem;
line-height: 1.65;
line-height: 1.625;
}
}


第499行: 第676行:


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


/* --- 横幅 ---------------------------------------------------------------- */
/* --- 横幅:官网 hero 渐变 -------------------------------------------------- */


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


.mp-highlight {
.mp-highlight {
flex: 1 1 280px;
flex: 1 1 300px;
min-width: 0;
min-width: 0;
padding: 12px;
padding: 32px;
border: 2px solid var( --mcw-btn-border );
border: 0;
background-image: linear-gradient( to bottom, #81bb5b, #3a971e );
border-radius: 24px;
box-shadow: inset 0 4px #ffffff2e, inset 0 -6px #0000002e;
background-image: linear-gradient( to right, #0284c7, #0ea5e9 );
box-shadow: 0 20px 40px -12px rgb( 14 165 233 / 0.35 );
color: #fff;
color: #fff;
transition:
transform 0.3s var( --kuke-ease ),
box-shadow 0.3s var( --kuke-ease );
}
.mp-highlight:hover {
box-shadow: 0 28px 55px -12px rgb( 14 165 233 / 0.45 );
transform: translateY( -6px );
}
}


.mp-highlight--alt {
.mp-highlight--alt {
background-image: linear-gradient( to bottom, #50adff, #0b78b8 );
background-image: linear-gradient( to right, #155dfc, #00b7d7 );
box-shadow: 0 20px 40px -12px rgb( 21 93 252 / 0.3 );
}
 
.mp-highlight--alt:hover {
box-shadow: 0 28px 55px -12px rgb( 21 93 252 / 0.4 );
}
}


第528行: 第719行:
flex-wrap: wrap;
flex-wrap: wrap;
align-items: center;
align-items: center;
gap: 8px;
gap: 12px;
margin-bottom: 4px;
margin-bottom: 8px;
}
}


.mp-highlight__title {
.mp-highlight__title {
font-size: 1.15em;
font-size: 1.5rem;
font-weight: bold;
font-weight: 900;
text-shadow: 0 1px 0 rgb( 0 0 0 / 0.25 );
letter-spacing: -0.025em;
line-height: 1.2;
}
}


.mp-highlight__tag {
.mp-highlight__tag {
padding: 1px 8px;
padding: 4px 12px;
border: 2px solid rgb( 255 255 255 / 0.45 );
border: 1px solid rgb( 255 255 255 / 0.25 );
background-color: rgb( 0 0 0 / 0.18 );
border-radius: 9999px;
font-size: 0.75em;
background-color: rgb( 255 255 255 / 0.15 );
font-weight: bold;
-webkit-backdrop-filter: blur( 12px );
backdrop-filter: blur( 12px );
font-size: 0.75rem;
font-weight: 600;
white-space: nowrap;
white-space: nowrap;
}
}
第549行: 第744行:
.mp-highlight__meta {
.mp-highlight__meta {
font-size: 0.9375rem;
font-size: 0.9375rem;
line-height: 1.6;
line-height: 1.625;
opacity: 0.95;
opacity: 0.9;
}
}


.mp-highlight a {
.mp-highlight a {
border-bottom: 1px solid rgb( 255 255 255 / 0.5 );
color: #fff;
color: #fff;
font-weight: bold;
font-weight: 600;
text-decoration: underline;
text-decoration: none;
text-underline-offset: 2px;
transition: border-color 0.3s var( --kuke-ease );
}
 
.mp-highlight a:hover {
border-bottom-color: #fff;
color: #fff;
text-decoration: none;
}
}


/* --- 图标网格 ------------------------------------------------------------ */
/* --- 图标网格:小卡片 hover 抬升发光 -------------------------------------- */


.mp-icons {
.mp-icons {
第566行: 第768行:
flex-wrap: wrap;
flex-wrap: wrap;
justify-content: center;
justify-content: center;
gap: 8px;
gap: 12px;
margin: auto;
margin: auto;
--icon-base-width: 84px;
--icon-base-width: 96px;
--icon-max-width: 140px;
--icon-max-width: 150px;
}
}


第585行: 第787行:
flex-direction: column;
flex-direction: column;
align-items: center;
align-items: center;
gap: 4px;
gap: 10px;
min-width: 0;
min-width: 0;
padding: 16px 10px;
border: 1px solid var( --kuke-card-border );
border-radius: 16px;
background-color: var( --kuke-card-bg );
transition:
transform 0.3s var( --kuke-ease ),
box-shadow 0.3s var( --kuke-ease ),
border-color 0.3s var( --kuke-ease );
}
.mp-icons a:hover .mp-icon {
border-color: var( --kuke-card-border-hover );
box-shadow: var( --kuke-shadow-glow );
transform: translateY( -8px );
}
}


第593行: 第809行:
align-items: center;
align-items: center;
justify-content: center;
justify-content: center;
width: 100%;
width: 52px;
aspect-ratio: 1;
height: 52px;
max-height: 72px;
border-radius: 12px;
border: 2px solid var( --mcw-btn-border );
background-color: var( --kuke-brand-pale );
background-color: #00000030;
font-size: 1.625rem;
box-shadow: inset 0 4px #00000030, inset 0 -4px #ffffff40;
font-size: 1.75rem;
line-height: 1;
line-height: 1;
transition: background-color 0.1s linear;
transition:
background-color 0.3s var( --kuke-ease ),
transform 0.3s var( --kuke-ease );
}
}


.mp-icons a:hover .mp-icon__glyph {
.mp-icons a:hover .mp-icon__glyph {
background-color: #ffffff26;
background-color: var( --kuke-brand-strong );
transform: scale( 1.08 );
}
}


第611行: 第828行:
flex: 1;
flex: 1;
color: var( --color-base );
color: var( --color-base );
font-size: 14px;
font-size: 0.875rem;
line-height: 1.3;
font-weight: 500;
line-height: 1.35;
text-align: center;
text-align: center;
transition: color 0.3s var( --kuke-ease );
}
}


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


@media screen and ( max-width: 640px ) {
@media screen and ( max-width: 640px ) {
.mp-icons {
.mp-icons {
--icon-base-width: 68px;
gap: 10px;
--icon-max-width: 100px;
--icon-base-width: 78px;
--icon-max-width: 110px;
}
 
.mp-icon {
padding: 12px 6px;
}
}


.mp-icon__glyph {
.mp-icon__glyph {
width: 42px;
height: 42px;
font-size: 1.375rem;
font-size: 1.375rem;
}
}
}
}


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


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


第646行: 第872行:


.mp-button {
.mp-button {
position: relative;
display: inline-block;
display: inline-block;
padding: 8px 16px;
padding: 10px 24px;
border: 2px solid var( --mcw-btn-border );
border: 1px solid transparent;
background-color: var( --mcw-green );
border-radius: 12px;
background-color: var( --kuke-brand-strong );
box-shadow: 0 10px 30px -10px rgb( 14 165 233 / 0.5 );
color: #fff;
color: #fff;
font-size: 0.9375rem;
font-size: 0.9375rem;
font-weight: bold;
font-weight: 700;
line-height: 1.4;
line-height: 1.4;
transition: background-color 0.1s linear, transform 0.1s linear;
transition:
background-color 0.3s var( --kuke-ease ),
box-shadow 0.3s var( --kuke-ease ),
transform 0.3s var( --kuke-ease );
}
}


.mp-button::after {
.mp-actions a:hover .mp-button {
content: "";
background-color: var( --kuke-brand );
position: absolute;
box-shadow: 0 16px 36px -10px rgb( 14 165 233 / 0.6 );
top: 0;
transform: translateY( -2px );
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 {
.mp-actions a:active .mp-button {
transform: translateY( 3px );
transform: scale( 0.98 );
}
}


.mp-actions a:active .mp-button::after {
.mp-button--quiet {
box-shadow:
border-color: var( --kuke-card-border );
2px 2px 0 0 rgb( 178 178 178 / 0.5 ) inset,
background-color: var( --color-surface-2 );
-2px -2px 0 0 rgb( 153 153 153 / 0.5 ) inset;
box-shadow: none;
background-color: #0000001a;
color: var( --color-base );
font-weight: 600;
}
}


.mp-button--quiet {
.mp-actions a:hover .mp-button--quiet {
background-color: var( --mcw-section-bg );
border-color: var( --kuke-card-border-hover );
border-color: var( --mcw-border );
background-color: var( --kuke-brand-pale );
color: var( --color-base );
box-shadow: none;
color: var( --kuke-brand-strong );
}
}


第697行: 第916行:


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


第705行: 第924行:
display: grid;
display: grid;
grid-template-columns: repeat( 2, 1fr );
grid-template-columns: repeat( 2, 1fr );
gap: 6px;
gap: 12px;
}
}


第712行: 第931行:
flex-direction: column;
flex-direction: column;
align-items: center;
align-items: center;
padding: 8px 4px;
padding: 14px 8px;
border: 2px solid var( --mcw-border );
border: 1px solid var( --kuke-card-border );
background-color: var( --background-color-interactive-subtle );
border-radius: 12px;
box-shadow: var( --mcw-inset );
background-color: var( --color-surface-2 );
transition:
transform 0.3s var( --kuke-ease ),
box-shadow 0.3s var( --kuke-ease ),
border-color 0.3s var( --kuke-ease );
}
 
.mp-stat:hover {
border-color: var( --kuke-card-border-hover );
box-shadow: 0 12px 24px -8px rgb( 14 165 233 / 0.25 );
transform: translateY( -4px );
}
}


.mp-stat__num {
.mp-stat__num {
color: var( --mcw-green );
color: var( --kuke-brand-strong );
font-size: 1.35rem;
font-size: 1.5rem;
font-weight: bold;
font-weight: 800;
line-height: 1.2;
line-height: 1.2;
letter-spacing: -0.02em;
font-variant-numeric: tabular-nums;
font-variant-numeric: tabular-nums;
}
}


.mp-stat__label {
.mp-stat__label {
margin-top: 2px;
margin-top: 4px;
color: var( --color-subtle );
color: var( --color-subtle );
font-size: 0.75rem;
font-size: 0.75rem;
第748行: 第978行:
flex-direction: column;
flex-direction: column;
justify-content: space-around;
justify-content: space-around;
gap: 10px;
gap: 14px;
margin-left: 8px;
margin-left: 6px;
padding-left: 15px;
padding-left: 20px;
border-left: 2px solid var( --mcw-border );
border-left: 1px solid var( --border-color-base );
}
}


第765行: 第995行:
content: "";
content: "";
position: absolute;
position: absolute;
top: 4px;
top: 6px;
left: -23px;
left: -25px;
width: 14px;
width: 10px;
height: 14px;
height: 10px;
border: 2px solid var( --color-base );
border-radius: 9999px;
background-color: var( --mcw-green );
background-color: var( --kuke-brand-strong );
box-shadow: 0 0 0 4px rgb( 14 165 233 / 0.2 );
}
}


第784行: 第1,015行:
font-size: 0.75rem;
font-size: 0.75rem;
white-space: nowrap;
white-space: nowrap;
opacity: 0.8;
}
}


第792行: 第1,022行:
display: flex;
display: flex;
flex-direction: column;
flex-direction: column;
gap: 8px;
gap: 6px;
}
}


第798行: 第1,028行:
display: flex;
display: flex;
align-items: baseline;
align-items: baseline;
gap: 8px;
gap: 10px;
padding-bottom: 8px;
padding: 10px 12px;
border-bottom: 2px solid var( --mcw-border );
border: 1px solid transparent;
border-radius: 12px;
transition:
transform 0.3s var( --kuke-ease ),
background-color 0.3s var( --kuke-ease ),
border-color 0.3s var( --kuke-ease );
}
}


.mp-news__item:last-child {
.mp-news__item:hover {
padding-bottom: 0;
border-color: var( --kuke-card-border );
border-bottom: 0;
background-color: var( --color-surface-2 );
transform: translateX( 4px );
}
}


.mp-news__date {
.mp-news__date {
flex: none;
flex: none;
padding: 1px 6px;
padding: 3px 10px;
border: 2px solid var( --mcw-btn-border );
border-radius: 9999px;
background-color: var( --mcw-green );
background-color: var( --kuke-brand-pale );
color: #fff;
color: var( --kuke-brand-strong );
font-size: 0.6875rem;
font-size: 0.6875rem;
font-weight: bold;
font-weight: 700;
white-space: nowrap;
white-space: nowrap;
}
}
第830行: 第1,066行:
.mp-cols {
.mp-cols {
display: grid;
display: grid;
grid-template-columns: repeat( auto-fit, minmax( 120px, 1fr ) );
grid-template-columns: repeat( auto-fit, minmax( 130px, 1fr ) );
gap: 10px;
gap: 16px;
}
}


第841行: 第1,077行:


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


.mp-colhead {
.mp-colhead {
margin-bottom: 4px;
margin-bottom: 8px;
padding-bottom: 3px;
padding-bottom: 6px;
border-bottom: 2px solid var( --mcw-border );
border-bottom: 1px solid var( --kuke-card-border );
color: var( --color-emphasized );
color: var( --color-subtle );
font-size: 0.75rem;
font-size: 0.6875rem;
font-weight: bold;
font-weight: 700;
letter-spacing: 0.04em;
letter-spacing: 0.08em;
text-transform: uppercase;
}
}


第860行: 第1,097行:
flex-wrap: wrap;
flex-wrap: wrap;
justify-content: center;
justify-content: center;
gap: 6px;
gap: 8px;
margin-top: 6px;
margin-top: 20px;
padding: 8px 12px;
padding: 14px 20px;
border: 2px solid var( --mcw-border );
border: 1px solid var( --kuke-card-border );
background-color: var( --mcw-section-bg );
border-radius: 16px;
box-shadow: var( --mcw-inset );
background-color: var( --kuke-card-bg );
-webkit-backdrop-filter: blur( 12px );
backdrop-filter: blur( 12px );
box-shadow: var( --kuke-shadow );
font-size: 0.8125rem;
font-size: 0.8125rem;
}
}


.mp-languages a {
.mp-languages a {
padding: 2px 8px;
padding: 4px 14px;
border: 2px solid transparent;
border-radius: 9999px;
text-decoration: none;
text-decoration: none;
transition:
background-color 0.3s var( --kuke-ease ),
color 0.3s var( --kuke-ease );
}
}


.mp-languages a:hover {
.mp-languages a:hover {
border-color: var( --mcw-border );
background-color: var( --kuke-brand-pale );
background-color: var( --background-color-interactive-subtle );
color: var( --kuke-brand-strong );
text-decoration: none;
}
}

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

/* ==========================================================================
   Kuke Wiki 主题 — 参考 kuke.ink 官网视觉语言
   天蓝品牌色 / slate 冷灰中性 / 16px 圆角 / 柔和扩散阴影 / 毛玻璃
   ========================================================================== */

/* --- 1. 字体 -------------------------------------------------------------- */

:root {
	--font-family-base: Inter, system-ui, -apple-system, "Segoe UI",
		"Noto Sans SC", "Microsoft YaHei", sans-serif;
	--font-family-heading: var( --font-family-base );
	--font-family-monospace: ui-monospace, SFMono-Regular, Menlo, Monaco,
		Consolas, "Liberation Mono", "Courier New", monospace;
}

body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* --- 2. 配色令牌 ---------------------------------------------------------- */

:root,
.skin-theme-clientpref-day {
	/* Citizen 的主色管线(oklch + hsl 双写) -> sky-600 #0284c7 */
	--color-progressive-oklch__l: 58%;
	--color-progressive-oklch__c: 0.135;
	--color-progressive-oklch__h: 236;
	--color-progressive-hsl__h: 201;
	--color-progressive-hsl__s: 96%;
	--color-progressive-hsl__l: 39%;

	/* slate 冷灰中性色 */
	--color-base: #0f172b;
	--color-emphasized: #020618;
	--color-subtle: #45556c;
	--color-subtle--hover: #0f172b;

	--color-surface-0: #f8fafc;
	--color-surface-1: #ffffff;
	--color-surface-2: #f1f5f9;
	--color-surface-3: #e2e8f0;
	--color-surface-4: #cbd5e1;

	--border-color-base: rgb( 226 232 240 / 0.6 );
	--border-color-subtle: rgb( 226 232 240 / 0.9 );
	--border-color-interactive: #cbd5e1;

	/* 私有令牌 */
	--kuke-brand: #0ea5e9;
	--kuke-brand-hover: #38bdf8;
	--kuke-brand-strong: #0284c7;
	--kuke-brand-light: #7dd3fc;
	--kuke-brand-pale: #e0f2fe;
	--kuke-card-bg: #ffffff;
	--kuke-card-border: rgb( 226 232 240 / 0.6 );
	--kuke-card-border-hover: rgb( 14 165 233 / 0.3 );
	--kuke-shadow: 0 10px 15px -3px rgb( 0 0 0 / 0.1 ),
		0 4px 6px -4px rgb( 0 0 0 / 0.1 );
	--kuke-shadow-glow: 0 25px 50px -12px rgb( 14 165 233 / 0.2 );
	--kuke-glass: rgb( 255 255 255 / 0.8 );
	--kuke-glass-border: rgb( 226 232 240 / 0.5 );
	--kuke-ease: cubic-bezier( 0.4, 0, 0.2, 1 );
	--kuke-overlay: linear-gradient(
		to top,
		rgb( 15 23 43 / 0.9 ),
		rgb( 15 23 43 / 0.2 ),
		transparent
	);
	--kuke-glow-a: rgb( 56 189 248 / 0.2 );
	--kuke-glow-b: rgb( 192 132 252 / 0.2 );
}

.skin-theme-clientpref-night,
.skin-theme-clientpref-black {
	--color-progressive-oklch__l: 74%;
	--color-progressive-oklch__c: 0.13;
	--color-progressive-hsl__l: 60%;

	--color-base: #e2e8f0;
	--color-emphasized: #ffffff;
	--color-subtle: #90a1b9;
	--color-subtle--hover: #cbd5e1;

	--color-surface-0: #020618;
	--color-surface-1: #0f172b;
	--color-surface-2: #1d293d;
	--color-surface-3: #314158;
	--color-surface-4: #45556c;

	--border-color-base: rgb( 49 65 88 / 0.5 );
	--border-color-subtle: rgb( 49 65 88 / 0.8 );
	--border-color-interactive: #45556c;

	--kuke-brand: #38bdf8;
	--kuke-brand-hover: #7dd3fc;
	--kuke-brand-strong: #0ea5e9;
	--kuke-brand-light: #7dd3fc;
	--kuke-brand-pale: #075985;
	--kuke-card-bg: rgb( 29 41 61 / 0.5 );
	--kuke-card-border: rgb( 49 65 88 / 0.5 );
	--kuke-card-border-hover: rgb( 56 189 248 / 0.35 );
	--kuke-shadow: 0 10px 15px -3px rgb( 0 0 0 / 0.3 ),
		0 4px 6px -4px rgb( 0 0 0 / 0.3 );
	--kuke-shadow-glow: 0 25px 50px -12px rgb( 56 189 248 / 0.25 );
	--kuke-glass: rgb( 15 23 43 / 0.8 );
	--kuke-glass-border: rgb( 49 65 88 / 0.5 );
	--kuke-glow-a: rgb( 2 132 199 / 0.12 );
	--kuke-glow-b: rgb( 147 51 234 / 0.12 );
}

@media ( prefers-color-scheme: dark ) {
	.skin-theme-clientpref-os {
		--color-progressive-oklch__l: 74%;
		--color-progressive-oklch__c: 0.13;
		--color-progressive-hsl__l: 60%;

		--color-base: #e2e8f0;
		--color-emphasized: #ffffff;
		--color-subtle: #90a1b9;
		--color-subtle--hover: #cbd5e1;

		--color-surface-0: #020618;
		--color-surface-1: #0f172b;
		--color-surface-2: #1d293d;
		--color-surface-3: #314158;
		--color-surface-4: #45556c;

		--border-color-base: rgb( 49 65 88 / 0.5 );
		--border-color-subtle: rgb( 49 65 88 / 0.8 );
		--border-color-interactive: #45556c;

		--kuke-brand: #38bdf8;
		--kuke-brand-hover: #7dd3fc;
		--kuke-brand-strong: #0ea5e9;
		--kuke-brand-light: #7dd3fc;
		--kuke-brand-pale: #075985;
		--kuke-card-bg: rgb( 29 41 61 / 0.5 );
		--kuke-card-border: rgb( 49 65 88 / 0.5 );
		--kuke-card-border-hover: rgb( 56 189 248 / 0.35 );
		--kuke-shadow: 0 10px 15px -3px rgb( 0 0 0 / 0.3 ),
			0 4px 6px -4px rgb( 0 0 0 / 0.3 );
		--kuke-shadow-glow: 0 25px 50px -12px rgb( 56 189 248 / 0.25 );
		--kuke-glass: rgb( 15 23 43 / 0.8 );
		--kuke-glass-border: rgb( 49 65 88 / 0.5 );
		--kuke-glow-a: rgb( 2 132 199 / 0.12 );
		--kuke-glow-b: rgb( 147 51 234 / 0.12 );
	}
}

/* --- 3. 圆角与缓动 -------------------------------------------------------- */

:root {
	--border-radius-base: 12px;
	--border-radius-medium: 16px;
	--border-radius-large: 24px;
	--border-radius-pill: 9999px;
	--border-radius-sharp: 8px;

	--transition-timing-function-ease: cubic-bezier( 0.4, 0, 0.2, 1 );
	--transition-timing-function-ease-out: cubic-bezier( 0.4, 0, 0.2, 1 );
	--transition-duration-base: 0.3s;
}

/* --- 4. 背景氛围光斑 ------------------------------------------------------ */

body::before,
body::after {
	content: "";
	position: fixed;
	z-index: 0;
	width: 40%;
	height: 40%;
	border-radius: 9999px;
	filter: blur( 100px );
	pointer-events: none;
}

body::before {
	top: -10%;
	left: -10%;
	background-color: var( --kuke-glow-a );
}

body::after {
	right: -10%;
	bottom: -10%;
	background-color: var( --kuke-glow-b );
}

.citizen-body-container,
.citizen-header,
.citizen-sticky-header {
	position: relative;
	z-index: 1;
}

/* --- 5. 顶栏:毛玻璃 ------------------------------------------------------ */

.citizen-header {
	background-color: var( --kuke-glass );
	-webkit-backdrop-filter: blur( 24px );
	backdrop-filter: blur( 24px );
}

.citizen-header-position-top .citizen-header,
.citizen-header-position-mobile-top .citizen-header {
	border-block-end: 1px solid var( --kuke-glass-border );
	border-inline-end: 0;
}

.citizen-header-position-left .citizen-header {
	border-inline-end: 1px solid var( --kuke-glass-border );
}

.citizen-sticky-header,
.citizen-sticky-header-background {
	background-color: var( --kuke-glass );
	border-block-end: 1px solid var( --kuke-glass-border );
	-webkit-backdrop-filter: blur( 24px );
	backdrop-filter: blur( 24px );
}

.citizen-drawer__card,
.citizen-menu__card,
.citizen-search__card,
.citizen-dropdown__content {
	border: 1px solid var( --kuke-card-border );
	border-radius: 16px;
	box-shadow: var( --kuke-shadow );
}

.citizen-header__item a:hover,
.citizen-menu__content-list a:hover {
	border-radius: 12px;
}

/* --- 6. 排版 -------------------------------------------------------------- */

#firstHeading {
	font-weight: 800;
	letter-spacing: -0.025em;
	line-height: 1.15;
}

.mw-body h2 {
	padding-bottom: 0.35em;
	border-bottom: 1px solid var( --border-color-subtle );
	font-weight: 700;
	letter-spacing: -0.015em;
}

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

.mw-parser-output {
	line-height: 1.7;
}

/* --- 7. 链接 -------------------------------------------------------------- */

.mw-parser-output a:not( .mp-portals a ):not( .mp-icons a ):not( .mp-actions a ) {
	text-decoration: none;
	transition: color 0.2s var( --kuke-ease );
}

.mw-parser-output a:not( .mp-portals a ):not( .mp-icons a ):not( .mp-actions a ):hover {
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-thickness: 1.5px;
}

::selection {
	background-color: rgb( 14 165 233 / 0.3 );
}

/* --- 8. 按钮 -------------------------------------------------------------- */

.cdx-button,
.mw-ui-button,
.oo-ui-buttonElement-button {
	border-radius: 12px;
	font-weight: 600;
	transition: background-color 0.3s var( --kuke-ease ),
		box-shadow 0.3s var( --kuke-ease ), transform 0.3s var( --kuke-ease );
}

.cdx-button--action-progressive.cdx-button--weight-primary,
.mw-ui-button.mw-ui-progressive {
	background-color: var( --kuke-brand-strong );
	border-color: var( --kuke-brand-strong );
	box-shadow: 0 10px 30px -10px rgb( 14 165 233 / 0.5 );
}

.cdx-button--action-progressive.cdx-button--weight-primary:hover,
.mw-ui-button.mw-ui-progressive:hover {
	background-color: var( --kuke-brand );
	border-color: var( --kuke-brand );
}

/* --- 9. 搜索框 ------------------------------------------------------------ */

.citizen-search-box,
.citizen-search__form,
.citizen-typeahead {
	border-radius: 12px;
}

.citizen-search__form:focus-within {
	border-color: var( --kuke-brand );
	box-shadow: 0 0 0 4px rgb( 14 165 233 / 0.2 );
}

/* --- 10. 表格 ------------------------------------------------------------- */

.wikitable {
	border: 1px solid var( --kuke-card-border );
	border-radius: 16px;
	border-collapse: separate;
	border-spacing: 0;
	overflow: hidden;
	box-shadow: var( --kuke-shadow );
}

.wikitable > * > tr > th,
.wikitable > * > tr > td {
	border: 0;
	border-bottom: 1px solid var( --border-color-base );
	padding: 0.6em 0.9em;
}

.wikitable > * > tr:last-child > th,
.wikitable > * > tr:last-child > td {
	border-bottom: 0;
}

.wikitable > * > tr > th {
	background-color: var( --color-surface-2 );
	color: var( --color-emphasized );
	font-weight: 700;
}

.wikitable > tbody > tr:hover > td {
	background-color: var( --color-surface-2 );
}

/* --- 11. 代码 ------------------------------------------------------------- */

code,
kbd,
samp,
tt {
	border: 1px solid var( --kuke-card-border );
	border-radius: 8px;
	background-color: var( --color-surface-2 );
	font-family: var( --font-family-monospace );
	font-size: 0.875em;
}

pre,
.mw-code {
	border: 1px solid var( --kuke-card-border );
	border-radius: 16px;
	background-color: var( --color-surface-2 );
	padding: 1em 1.2em;
	box-shadow: var( --kuke-shadow );
}

/* --- 12. 图片 ------------------------------------------------------------- */

.thumbinner,
.mw-halign-left,
.mw-halign-right {
	border-radius: 16px;
}

.thumbinner {
	border: 1px solid var( --kuke-card-border );
	background-color: var( --kuke-card-bg );
	padding: 8px;
	box-shadow: var( --kuke-shadow );
	transition: box-shadow 0.3s var( --kuke-ease ),
		border-color 0.3s var( --kuke-ease );
}

.thumbinner:hover {
	border-color: var( --kuke-card-border-hover );
	box-shadow: var( --kuke-shadow-glow );
}

.thumbimage,
.mw-file-element {
	border: 0;
	border-radius: 12px;
}

/* --- 13. 消息框 ----------------------------------------------------------- */

.cdx-message,
.mw-message-box,
.mw-warning,
.catlinks {
	border-radius: 16px;
	border: 1px solid var( --kuke-card-border );
}

.catlinks {
	background-color: var( --kuke-card-bg );
	box-shadow: var( --kuke-shadow );
}

.mw-normal-catlinks a {
	display: inline-block;
	padding: 2px 12px;
	border-radius: 9999px;
	background-color: var( --color-surface-2 );
	font-size: 0.875em;
	transition: background-color 0.2s var( --kuke-ease ),
		color 0.2s var( --kuke-ease );
}

.mw-normal-catlinks a:hover {
	background-color: var( --kuke-brand-strong );
	color: #fff;
	text-decoration: none;
}

/* --- 14. 滚动条 ----------------------------------------------------------- */

* {
	scrollbar-width: thin;
	scrollbar-color: var( --color-surface-4 ) transparent;
}

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

::-webkit-scrollbar-track {
	background-color: var( --color-surface-2 );
}

::-webkit-scrollbar-thumb {
	border-radius: 9999px;
	background-color: var( --color-surface-4 );
}

::-webkit-scrollbar-thumb:hover {
	background-color: var( --color-subtle );
}

/* --- 15. 焦点环 ----------------------------------------------------------- */

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
	outline: 2px solid var( --kuke-brand );
	outline-offset: 2px;
	border-radius: 8px;
}

/* --- 16. 减少动效 --------------------------------------------------------- */

@media ( prefers-reduced-motion: reduce ) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
	}
}


/* ==========================================================================
   首页布局层 —— 参考 kuke.ink(KukeMC 官网)视觉语言
   大圆角 / 柔和扩散阴影 / 卡片 hover 抬升发光 / 天蓝品牌色
   ========================================================================== */

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

.page-首页 .mw-parser-output *,
.page-Main_Page .mw-parser-output * {
	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-portals {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 20px;
}

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

.mp-tab {
	display: inline-block;
	padding: 8px 20px;
	border: 1px solid var( --kuke-card-border );
	border-radius: 9999px;
	background-color: var( --kuke-card-bg );
	color: var( --color-base );
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.4;
	transition:
		background-color 0.3s var( --kuke-ease ),
		border-color 0.3s var( --kuke-ease ),
		color 0.3s var( --kuke-ease ),
		transform 0.3s var( --kuke-ease );
}

.mp-portals a:hover .mp-tab {
	border-color: var( --kuke-card-border-hover );
	background-color: var( --kuke-brand-pale );
	color: var( --kuke-brand-strong );
	transform: translateY( -2px );
}

.mp-tab--active {
	border-color: transparent;
	background-color: var( --kuke-brand-strong );
	box-shadow: 0 10px 15px -3px rgb( 14 165 233 / 0.25 );
	color: #fff;
	transform: scale( 1.05 );
}

.mp-portals a:hover .mp-tab--active {
	border-color: transparent;
	background-color: var( --kuke-brand );
	color: #fff;
	transform: scale( 1.05 ) translateY( -2px );
}

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

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

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

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

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

@media screen and ( min-width: 1024px ) {
	.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: 20px;
}

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

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

.mp-section {
	display: flex;
	flex-direction: column;
	padding: 24px;
	border: 1px solid var( --kuke-card-border );
	border-radius: 16px;
	background-color: var( --kuke-card-bg );
	-webkit-backdrop-filter: blur( 12px );
	backdrop-filter: blur( 12px );
	box-shadow: var( --kuke-shadow );
	transition:
		box-shadow 0.3s var( --kuke-ease ),
		border-color 0.3s var( --kuke-ease );
}

.mp-section:hover {
	border-color: var( --kuke-card-border-hover );
	box-shadow: var( --kuke-shadow-glow );
}

.mp-title {
	margin: 0 0 12px;
	padding: 0;
	border: 0;
	color: var( --color-emphasized );
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: -0.015em;
}

.mp-title__sub {
	display: block;
	margin-top: 4px;
	color: var( --color-subtle );
	font-size: 0.75rem;
	font-weight: 400;
	letter-spacing: 0;
}

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

.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: 6px;
}

/* --- 横幅:官网 hero 渐变 -------------------------------------------------- */

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

.mp-highlight {
	flex: 1 1 300px;
	min-width: 0;
	padding: 32px;
	border: 0;
	border-radius: 24px;
	background-image: linear-gradient( to right, #0284c7, #0ea5e9 );
	box-shadow: 0 20px 40px -12px rgb( 14 165 233 / 0.35 );
	color: #fff;
	transition:
		transform 0.3s var( --kuke-ease ),
		box-shadow 0.3s var( --kuke-ease );
}

.mp-highlight:hover {
	box-shadow: 0 28px 55px -12px rgb( 14 165 233 / 0.45 );
	transform: translateY( -6px );
}

.mp-highlight--alt {
	background-image: linear-gradient( to right, #155dfc, #00b7d7 );
	box-shadow: 0 20px 40px -12px rgb( 21 93 252 / 0.3 );
}

.mp-highlight--alt:hover {
	box-shadow: 0 28px 55px -12px rgb( 21 93 252 / 0.4 );
}

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

.mp-highlight__title {
	font-size: 1.5rem;
	font-weight: 900;
	letter-spacing: -0.025em;
	line-height: 1.2;
}

.mp-highlight__tag {
	padding: 4px 12px;
	border: 1px solid rgb( 255 255 255 / 0.25 );
	border-radius: 9999px;
	background-color: rgb( 255 255 255 / 0.15 );
	-webkit-backdrop-filter: blur( 12px );
	backdrop-filter: blur( 12px );
	font-size: 0.75rem;
	font-weight: 600;
	white-space: nowrap;
}

.mp-highlight__meta {
	font-size: 0.9375rem;
	line-height: 1.625;
	opacity: 0.9;
}

.mp-highlight a {
	border-bottom: 1px solid rgb( 255 255 255 / 0.5 );
	color: #fff;
	font-weight: 600;
	text-decoration: none;
	transition: border-color 0.3s var( --kuke-ease );
}

.mp-highlight a:hover {
	border-bottom-color: #fff;
	color: #fff;
	text-decoration: none;
}

/* --- 图标网格:小卡片 hover 抬升发光 -------------------------------------- */

.mp-icons {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
	margin: auto;
	--icon-base-width: 96px;
	--icon-max-width: 150px;
}

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

.mp-icon {
	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	min-width: 0;
	padding: 16px 10px;
	border: 1px solid var( --kuke-card-border );
	border-radius: 16px;
	background-color: var( --kuke-card-bg );
	transition:
		transform 0.3s var( --kuke-ease ),
		box-shadow 0.3s var( --kuke-ease ),
		border-color 0.3s var( --kuke-ease );
}

.mp-icons a:hover .mp-icon {
	border-color: var( --kuke-card-border-hover );
	box-shadow: var( --kuke-shadow-glow );
	transform: translateY( -8px );
}

.mp-icon__glyph {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: 12px;
	background-color: var( --kuke-brand-pale );
	font-size: 1.625rem;
	line-height: 1;
	transition:
		background-color 0.3s var( --kuke-ease ),
		transform 0.3s var( --kuke-ease );
}

.mp-icons a:hover .mp-icon__glyph {
	background-color: var( --kuke-brand-strong );
	transform: scale( 1.08 );
}

.mp-icon__label {
	flex: 1;
	color: var( --color-base );
	font-size: 0.875rem;
	font-weight: 500;
	line-height: 1.35;
	text-align: center;
	transition: color 0.3s var( --kuke-ease );
}

.mp-icons a:hover .mp-icon__label {
	color: var( --kuke-brand-strong );
	text-decoration: none;
}

@media screen and ( max-width: 640px ) {
	.mp-icons {
		gap: 10px;
		--icon-base-width: 78px;
		--icon-max-width: 110px;
	}

	.mp-icon {
		padding: 12px 6px;
	}

	.mp-icon__glyph {
		width: 42px;
		height: 42px;
		font-size: 1.375rem;
	}
}

/* --- 按钮 ---------------------------------------------------------------- */

.mp-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 16px;
}

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

.mp-button {
	display: inline-block;
	padding: 10px 24px;
	border: 1px solid transparent;
	border-radius: 12px;
	background-color: var( --kuke-brand-strong );
	box-shadow: 0 10px 30px -10px rgb( 14 165 233 / 0.5 );
	color: #fff;
	font-size: 0.9375rem;
	font-weight: 700;
	line-height: 1.4;
	transition:
		background-color 0.3s var( --kuke-ease ),
		box-shadow 0.3s var( --kuke-ease ),
		transform 0.3s var( --kuke-ease );
}

.mp-actions a:hover .mp-button {
	background-color: var( --kuke-brand );
	box-shadow: 0 16px 36px -10px rgb( 14 165 233 / 0.6 );
	transform: translateY( -2px );
}

.mp-actions a:active .mp-button {
	transform: scale( 0.98 );
}

.mp-button--quiet {
	border-color: var( --kuke-card-border );
	background-color: var( --color-surface-2 );
	box-shadow: none;
	color: var( --color-base );
	font-weight: 600;
}

.mp-actions a:hover .mp-button--quiet {
	border-color: var( --kuke-card-border-hover );
	background-color: var( --kuke-brand-pale );
	box-shadow: none;
	color: var( --kuke-brand-strong );
}

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

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

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

.mp-stat {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 14px 8px;
	border: 1px solid var( --kuke-card-border );
	border-radius: 12px;
	background-color: var( --color-surface-2 );
	transition:
		transform 0.3s var( --kuke-ease ),
		box-shadow 0.3s var( --kuke-ease ),
		border-color 0.3s var( --kuke-ease );
}

.mp-stat:hover {
	border-color: var( --kuke-card-border-hover );
	box-shadow: 0 12px 24px -8px rgb( 14 165 233 / 0.25 );
	transform: translateY( -4px );
}

.mp-stat__num {
	color: var( --kuke-brand-strong );
	font-size: 1.5rem;
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -0.02em;
	font-variant-numeric: tabular-nums;
}

.mp-stat__label {
	margin-top: 4px;
	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: 14px;
	margin-left: 6px;
	padding-left: 20px;
	border-left: 1px solid var( --border-color-base );
}

.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: 6px;
	left: -25px;
	width: 10px;
	height: 10px;
	border-radius: 9999px;
	background-color: var( --kuke-brand-strong );
	box-shadow: 0 0 0 4px rgb( 14 165 233 / 0.2 );
}

.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;
}

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

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

.mp-news__item {
	display: flex;
	align-items: baseline;
	gap: 10px;
	padding: 10px 12px;
	border: 1px solid transparent;
	border-radius: 12px;
	transition:
		transform 0.3s var( --kuke-ease ),
		background-color 0.3s var( --kuke-ease ),
		border-color 0.3s var( --kuke-ease );
}

.mp-news__item:hover {
	border-color: var( --kuke-card-border );
	background-color: var( --color-surface-2 );
	transform: translateX( 4px );
}

.mp-news__date {
	flex: none;
	padding: 3px 10px;
	border-radius: 9999px;
	background-color: var( --kuke-brand-pale );
	color: var( --kuke-brand-strong );
	font-size: 0.6875rem;
	font-weight: 700;
	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( 130px, 1fr ) );
	gap: 16px;
}

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

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

.mp-colhead {
	margin-bottom: 8px;
	padding-bottom: 6px;
	border-bottom: 1px solid var( --kuke-card-border );
	color: var( --color-subtle );
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

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

.mp-languages {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin-top: 20px;
	padding: 14px 20px;
	border: 1px solid var( --kuke-card-border );
	border-radius: 16px;
	background-color: var( --kuke-card-bg );
	-webkit-backdrop-filter: blur( 12px );
	backdrop-filter: blur( 12px );
	box-shadow: var( --kuke-shadow );
	font-size: 0.8125rem;
}

.mp-languages a {
	padding: 4px 14px;
	border-radius: 9999px;
	text-decoration: none;
	transition:
		background-color 0.3s var( --kuke-ease ),
		color 0.3s var( --kuke-ease );
}

.mp-languages a:hover {
	background-color: var( --kuke-brand-pale );
	color: var( --kuke-brand-strong );
	text-decoration: none;
}