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

MediaWiki:Citizen.css:修订间差异

MediaWiki界面页面
Admin留言 | 贡献
顶栏横向导航样式
Admin留言 | 贡献
首页排版参考 toiletmc wiki 重构:单列竖排大区块
第480行: 第480行:


/* ==========================================================================
/* ==========================================================================
   首页布局层 —— 参考 kuke.ink(KukeMC 官网)视觉语言
   Kuke Wiki — 首页布局层
   大圆角 / 柔和扩散阴影 / 卡片 hover 抬升发光 / 天蓝品牌色
  排版结构参考 toiletmc.net wiki(同为 MediaWiki + Citizen)
   配色沿用 KukeMC 天蓝体系(--kuke-* 令牌定义于主题层)
   ========================================================================== */
   ========================================================================== */


/* 首页取消正文最大宽度限制 */
.page-首页 .mw-parser-output,
.page-首页 .mw-parser-output,
.page-Main_Page .mw-parser-output {
.page-Main_Page .mw-parser-output {
第494行: 第496行:
}
}


/* MediaWiki 会把连续的链接行包进 <p>,破坏 flex/grid,这里让它透明化 */
/* MediaWiki 会把裸链接行包进 <p>,这会破坏 flex / grid 布局。
.mp-portals > p,
  display:contents 让 <p> 在布局树中消失,子元素直接成为容器项。 */
.mp-icons > p,
.mp-hero__links > p,
.mp-hero__cards > p,
.mp-actions > p,
.mp-actions > p,
.mp-languages > p {
.mp-support__links > p,
.mp-grid > p,
.mp-features > p {
display: contents;
display: contents;
margin: 0;
margin: 0;
}
}


/* --- 顶部胶囊标签 --------------------------------------------------------- */
/* --------------------------------------------------------------------------
  页面骨架:单列竖排大区块
  -------------------------------------------------------------------------- */


.mp-portals {
.mp-home {
display: flex;
display: flex;
flex-wrap: wrap;
flex-direction: column;
gap: 10px;
gap: 2rem;
margin-bottom: 20px;
margin-block-start: 0.5rem;
}
}


.mp-portals a {
/* --------------------------------------------------------------------------
text-decoration: none;
  Hero 横幅
}
  -------------------------------------------------------------------------- */


.mp-tab {
.mp-hero {
display: inline-block;
position: relative;
padding: 8px 20px;
min-height: 420px;
border: 1px solid var( --kuke-card-border );
overflow: hidden;
border-radius: 9999px;
border-radius: 24px;
background-color: var( --kuke-card-bg );
background-image:
color: var( --color-base );
radial-gradient(
font-size: 0.9375rem;
ellipse 80% 60% at 15% 0%,
font-weight: 600;
rgb( 125 211 252 / 0.35 ),
line-height: 1.4;
transparent 60%
transition:
),
background-color 0.3s var( --kuke-ease ),
radial-gradient(
border-color 0.3s var( --kuke-ease ),
ellipse 70% 70% at 100% 100%,
color 0.3s var( --kuke-ease ),
rgb( 147 51 234 / 0.25 ),
transform 0.3s var( --kuke-ease );
transparent 60%
),
linear-gradient( 135deg, #0284c7 0%, #0ea5e9 45%, #38bdf8 100% );
box-shadow: 0 20px 48px rgb( 2 132 199 / 0.25 );
display: flex;
align-items: center;
}
}


.mp-portals a:hover .mp-tab {
.mp-hero::after {
border-color: var( --kuke-card-border-hover );
content: '';
background-color: var( --kuke-brand-pale );
position: absolute;
color: var( --kuke-brand-strong );
inset: 0;
transform: translateY( -2px );
background-image: linear-gradient(
to top,
rgb( 0 0 0 / 0.28 ),
rgb( 0 0 0 / 0.04 )
);
pointer-events: none;
}
}


.mp-tab--active {
.mp-hero__content {
border-color: transparent;
position: relative;
background-color: var( --kuke-brand-strong );
z-index: 1;
box-shadow: 0 10px 15px -3px rgb( 14 165 233 / 0.25 );
max-width: 760px;
padding: 2.5rem 2rem;
color: #fff;
color: #fff;
transform: scale( 1.05 );
}
}


.mp-portals a:hover .mp-tab--active {
.mp-hero__badge {
border-color: transparent;
display: inline-block;
background-color: var( --kuke-brand );
padding: 0.35rem 0.7rem;
border-radius: 999px;
background-color: rgb( 255 255 255 / 0.18 );
font-size: 0.875rem;
font-weight: 700;
letter-spacing: 0.01em;
color: #fff;
color: #fff;
transform: scale( 1.05 ) translateY( -2px );
}
}


/* --- 主栅格 -------------------------------------------------------------- */
.mp-hero__title {
 
margin: 0.75rem 0 0;
.mp-layout {
font-size: 3rem;
display: grid;
font-weight: 800;
gap: 20px;
line-height: 1.08;
grid-template-columns: 1fr;
letter-spacing: -0.04em;
grid-template-areas:
color: #fff;
"site"
"left"
"right";
}
}


.mp-left {
.mp-hero__desc {
grid-area: left;
margin: 0.9rem 0 0;
display: flex;
max-width: 620px;
flex-direction: column;
font-size: 1.05rem;
gap: 20px;
line-height: 1.7;
min-width: 0;
color: rgb( 255 255 255 / 0.9 );
}
}


.mp-right {
/* Hero 内的信息卡(两列) */
grid-area: right;
.mp-hero__cards {
display: flex;
display: grid;
flex-direction: column;
grid-template-columns: repeat( 2, minmax( 0, 1fr ) );
gap: 20px;
gap: 1rem;
min-width: 0;
margin-block-start: 1.5rem;
}
}


.mp-site {
.mp-infocard {
grid-area: site;
padding: 1rem;
min-width: 0;
border: 1px solid rgb( 255 255 255 / 0.16 );
border-radius: 18px;
background-color: rgb( 255 255 255 / 0.12 );
box-shadow: 0 12px 32px rgb( 0 0 0 / 0.14 );
color: #fff;
transition: transform 0.22s ease, background-color 0.22s ease,
border-color 0.22s ease, box-shadow 0.22s ease;
}
}


@media screen and ( min-width: 1024px ) {
.mp-infocard:hover {
.mp-layout {
transform: translateY( -2px );
grid-template-columns: 2fr 1fr;
border-color: rgb( 255 255 255 / 0.34 );
grid-template-rows: auto 1fr;
background-color: rgb( 255 255 255 / 0.18 );
grid-template-areas:
box-shadow: 0 16px 38px rgb( 0 0 0 / 0.18 );
"left site"
"left right";
}
 
.mp-right > .mp-section:last-child {
flex: 1;
}
}
}


.mp-row {
.mp-infocard strong {
display: flex;
display: block;
flex-wrap: wrap;
margin-block-end: 0.45rem;
gap: 20px;
font-size: 0.95rem;
}
 
.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;
font-weight: 700;
line-height: 1.3;
color: #fff;
letter-spacing: -0.015em;
}
}


.mp-title__sub {
.mp-infocard code,
.mp-infocard .mp-infocard__value {
display: block;
display: block;
margin-top: 4px;
padding: 0.65rem 0.8rem;
color: var( --color-subtle );
border-radius: 12px;
font-size: 0.75rem;
background-color: rgb( 0 0 0 / 0.28 );
font-weight: 400;
font-family: inherit;
letter-spacing: 0;
font-size: 1.05rem;
}
font-weight: 700;
 
color: #fff;
.mp-body {
user-select: all;
flex: 1;
transition: background-color 0.22s ease, box-shadow 0.22s ease;
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 {
.mp-infocard:hover code,
margin-bottom: 6px;
.mp-infocard:hover .mp-infocard__value {
background-color: rgb( 0 0 0 / 0.38 );
box-shadow: inset 0 0 0 1px rgb( 255 255 255 / 0.08 );
}
}


/* --- 横幅:官网 hero 渐变 -------------------------------------------------- */
/* Hero 下方的胶囊链接行 */
 
.mp-hero__links {
.mp-highlights {
display: flex;
display: flex;
flex-wrap: wrap;
flex-wrap: wrap;
gap: 20px;
gap: 0.75rem;
}
margin-block-start: 1.2rem;
 
.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 {
.mp-pill {
display: flex;
display: inline-flex;
flex-wrap: wrap;
align-items: center;
align-items: center;
gap: 12px;
gap: 0.45rem;
margin-bottom: 8px;
padding: 0.72rem 1rem;
}
border: 1px solid rgb( 255 255 255 / 0.14 );
 
border-radius: 999px;
.mp-highlight__title {
background-color: rgb( 255 255 255 / 0.12 );
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;
font-size: 0.9375rem;
line-height: 1.625;
font-weight: 700;
opacity: 0.9;
color: #fff;
transition: transform 0.22s ease, background-color 0.22s ease,
border-color 0.22s ease, box-shadow 0.22s ease;
}
}


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


.mp-highlight a:hover {
.mp-hero__links a:hover .mp-pill {
border-bottom-color: #fff;
transform: translateY( -1px );
color: #fff;
border-color: rgb( 255 255 255 / 0.34 );
text-decoration: none;
background-color: rgb( 255 255 255 / 0.2 );
box-shadow: 0 8px 20px rgb( 0 0 0 / 0.16 );
}
}


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


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


.mp-icons a {
.mp-section__title {
display: flex;
margin: 0 0 1rem;
flex: 1 auto;
padding: 0;
width: var( --icon-base-width );
border: 0;
max-width: var( --icon-max-width );
font-size: 1.6rem;
text-decoration: none;
font-weight: 700;
letter-spacing: -0.02em;
color: var( --color-emphasized, #0f172a );
}
}


.mp-icon {
.mp-section__title::after {
display: flex;
content: none;
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-grid {
display: grid;
gap: 1rem;
}
}


.mp-icon__glyph {
.mp-grid--4 {
display: flex;
grid-template-columns: repeat( 4, minmax( 0, 1fr ) );
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 {
.mp-grid--3 {
background-color: var( --kuke-brand-strong );
grid-template-columns: repeat( 3, minmax( 0, 1fr ) );
transform: scale( 1.08 );
}
}


.mp-icon__label {
.mp-grid--2 {
flex: 1;
grid-template-columns: repeat( 2, minmax( 0, 1fr ) );
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 {
.mp-card {
color: var( --kuke-brand-strong );
display: block;
text-decoration: none;
padding: 1.1rem;
border: 1px solid var( --kuke-card-border, #e2e8f0 );
border-radius: 18px;
background-color: var( --kuke-card-bg, #fff );
box-shadow: 0 12px 32px rgb( 0 0 0 / 0.06 );
transition: transform 0.22s ease, border-color 0.22s ease,
box-shadow 0.22s ease;
}
}


@media screen and ( max-width: 640px ) {
.mp-grid a,
.mp-icons {
.mp-grid a:visited,
gap: 10px;
.mp-features a,
--icon-base-width: 78px;
.mp-features a:visited {
--icon-max-width: 110px;
color: inherit;
}
text-decoration: none;
 
.mp-icon {
padding: 12px 6px;
}
 
.mp-icon__glyph {
width: 42px;
height: 42px;
font-size: 1.375rem;
}
}
}


/* --- 按钮 ---------------------------------------------------------------- */
.mp-grid a:hover .mp-card,
 
.mp-card:hover {
.mp-actions {
transform: translateY( -3px );
display: flex;
border-color: var( --kuke-brand, #0ea5e9 );
flex-wrap: wrap;
box-shadow: 0 18px 42px rgb( 14 165 233 / 0.16 );
gap: 12px;
margin-top: 16px;
}
}


.mp-actions a {
.mp-card__icon {
text-decoration: none;
display: block;
font-size: 1.8rem;
line-height: 1;
}
}


.mp-button {
.mp-card__title {
display: inline-block;
margin: 0.55rem 0 0.45rem;
padding: 10px 24px;
font-size: 1.15rem;
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;
font-weight: 700;
line-height: 1.4;
letter-spacing: -0.01em;
transition:
color: var( --color-emphasized, #0f172a );
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 {
.mp-card__desc {
background-color: var( --kuke-brand );
margin: 0;
box-shadow: 0 16px 36px -10px rgb( 14 165 233 / 0.6 );
font-size: 0.9375rem;
transform: translateY( -2px );
line-height: 1.65;
color: var( --color-subtle, #54595d );
}
}


.mp-actions a:active .mp-button {
.mp-card__more {
transform: scale( 0.98 );
display: inline-block;
}
margin-block-start: 0.7rem;
 
font-size: 0.875rem;
.mp-button--quiet {
font-weight: 700;
border-color: var( --kuke-card-border );
color: var( --kuke-brand-strong, #0284c7 );
background-color: var( --color-surface-2 );
box-shadow: none;
color: var( --color-base );
font-weight: 600;
}
}


.mp-actions a:hover .mp-button--quiet {
.mp-grid a:hover .mp-card__more {
border-color: var( --kuke-card-border-hover );
color: var( --kuke-brand, #0ea5e9 );
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 {
.mp-features {
display: grid;
display: grid;
grid-template-columns: repeat( 2, 1fr );
grid-template-columns: repeat( 4, minmax( 0, 1fr ) );
gap: 12px;
gap: 1rem;
}
}


.mp-stat {
.mp-features > div {
display: flex;
padding: 1.1rem;
flex-direction: column;
border: 1px solid var( --kuke-card-border, #e2e8f0 );
align-items: center;
border-radius: 18px;
padding: 14px 8px;
background-color: var( --kuke-card-bg, #fff );
border: 1px solid var( --kuke-card-border );
box-shadow: 0 12px 32px rgb( 0 0 0 / 0.06 );
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 {
.mp-features strong {
border-color: var( --kuke-card-border-hover );
display: block;
box-shadow: 0 12px 24px -8px rgb( 14 165 233 / 0.25 );
margin-block-end: 0.45rem;
transform: translateY( -4px );
font-size: 1.0625rem;
font-weight: 700;
color: var( --kuke-brand-strong, #0284c7 );
}
}


.mp-stat__num {
.mp-features p {
color: var( --kuke-brand-strong );
margin: 0;
font-size: 1.5rem;
font-size: 0.9375rem;
font-weight: 800;
line-height: 1.7;
line-height: 1.2;
color: var( --color-subtle, #54595d );
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 {
.mp-support {
margin-top: 0;
display: grid;
grid-template-columns: minmax( 0, 1fr ) auto;
gap: 1rem;
align-items: center;
padding: 1.25rem;
border: 1px solid var( --kuke-card-border, #e2e8f0 );
border-radius: 18px;
background-color: var( --kuke-card-bg, #fff );
box-shadow: 0 12px 32px rgb( 0 0 0 / 0.06 );
}
}


.mp-feature__text p:last-child {
.mp-support h3,
margin-bottom: 0;
.mp-support__title {
margin: 0 0 0.4rem;
font-size: 1.15rem;
font-weight: 700;
color: var( --color-emphasized, #0f172a );
}
}


/* --- 时间线 -------------------------------------------------------------- */
.mp-support p {
 
margin: 0;
.mp-timeline {
line-height: 1.7;
display: flex;
color: var( --color-subtle, #54595d );
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 {
.mp-support__links {
position: relative;
display: flex;
display: flex;
flex-wrap: wrap;
flex-wrap: wrap;
align-items: baseline;
gap: 0.75rem;
gap: 0 0.5em;
padding: 1rem;
border-radius: 14px;
background-color: var( --kuke-brand-pale, #e0f2fe );
transition: background-color 0.22s ease, color 0.22s ease;
}
}


.mp-timeline__item::before {
.mp-support__links a,
content: "";
.mp-support__links a:visited {
position: absolute;
font-weight: 700;
top: 6px;
color: var( --kuke-brand-strong, #0284c7 );
left: -25px;
text-decoration: none;
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 {
.mp-support__links a:hover {
flex: 1 1 auto;
color: var( --kuke-brand, #0ea5e9 );
color: var( --color-base );
text-decoration: underline;
font-size: 0.9375rem;
line-height: 1.5;
}
}


.mp-timeline__date {
/* --------------------------------------------------------------------------
color: var( --color-subtle );
  暗色模式
font-size: 0.75rem;
  -------------------------------------------------------------------------- */
white-space: nowrap;
 
html.skin-theme-clientpref-night .mp-card,
html.skin-theme-clientpref-night .mp-features > div,
html.skin-theme-clientpref-night .mp-support {
border-color: rgb( 49 65 88 / 0.6 );
background-color: rgb( 29 41 61 / 0.5 );
box-shadow: 0 12px 32px rgb( 0 0 0 / 0.24 );
}
}


/* --- 新闻列表 ------------------------------------------------------------ */
html.skin-theme-clientpref-night .mp-grid a:hover .mp-card,
html.skin-theme-clientpref-night .mp-card:hover {
border-color: var( --kuke-brand, #38bdf8 );
box-shadow: 0 18px 42px rgb( 0 0 0 / 0.36 );
}


.mp-news {
html.skin-theme-clientpref-night .mp-support__links {
display: flex;
background-color: rgb( 7 89 133 / 0.35 );
flex-direction: column;
gap: 6px;
}
}


.mp-news__item {
@media screen and ( prefers-color-scheme: dark ) {
display: flex;
html.skin-theme-clientpref-os .mp-card,
align-items: baseline;
html.skin-theme-clientpref-os .mp-features > div,
gap: 10px;
html.skin-theme-clientpref-os .mp-support {
padding: 10px 12px;
border-color: rgb( 49 65 88 / 0.6 );
border: 1px solid transparent;
background-color: rgb( 29 41 61 / 0.5 );
border-radius: 12px;
box-shadow: 0 12px 32px rgb( 0 0 0 / 0.24 );
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 {
html.skin-theme-clientpref-os .mp-grid a:hover .mp-card,
border-color: var( --kuke-card-border );
html.skin-theme-clientpref-os .mp-card:hover {
background-color: var( --color-surface-2 );
border-color: var( --kuke-brand, #38bdf8 );
transform: translateX( 4px );
box-shadow: 0 18px 42px rgb( 0 0 0 / 0.36 );
}
}


.mp-news__date {
html.skin-theme-clientpref-os .mp-support__links {
flex: none;
background-color: rgb( 7 89 133 / 0.35 );
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;
}


/* --- 更多入口分栏 -------------------------------------------------------- */
@media screen and ( max-width: 960px ) {
.mp-hero__cards,
.mp-grid--4,
.mp-grid--3,
.mp-features {
grid-template-columns: repeat( 2, minmax( 0, 1fr ) );
}


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


.mp-cols ul {
@media screen and ( max-width: 720px ) {
margin: 0;
.mp-home {
padding-left: 1.1em;
gap: 1.5rem;
font-size: 0.875rem;
}
}


.mp-cols li {
.mp-hero {
margin-bottom: 5px;
min-height: 380px;
}
}


.mp-colhead {
.mp-hero__content {
margin-bottom: 8px;
padding: 1.5rem 1.2rem;
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-hero__title {
font-size: 2.2rem;
}


.mp-languages {
.mp-hero__cards,
display: flex;
.mp-grid--4,
flex-wrap: wrap;
.mp-grid--3,
justify-content: center;
.mp-grid--2,
gap: 8px;
.mp-features {
margin-top: 20px;
grid-template-columns: 1fr;
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 {
.mp-section__title {
padding: 4px 14px;
font-size: 1.35rem;
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;
}


/* ==========================================================================
/* ==========================================================================

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

/* ==========================================================================
   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 Wiki — 首页布局层
   排版结构参考 toiletmc.net wiki(同为 MediaWiki + Citizen)
   配色沿用 KukeMC 天蓝体系(--kuke-* 令牌定义于主题层)
   ========================================================================== */

/* 首页取消正文最大宽度限制 */
.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 布局。
   display:contents 让 <p> 在布局树中消失,子元素直接成为容器项。 */
.mp-hero__links > p,
.mp-hero__cards > p,
.mp-actions > p,
.mp-support__links > p,
.mp-grid > p,
.mp-features > p {
	display: contents;
	margin: 0;
}

/* --------------------------------------------------------------------------
   页面骨架:单列竖排大区块
   -------------------------------------------------------------------------- */

.mp-home {
	display: flex;
	flex-direction: column;
	gap: 2rem;
	margin-block-start: 0.5rem;
}

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

.mp-hero {
	position: relative;
	min-height: 420px;
	overflow: hidden;
	border-radius: 24px;
	background-image:
		radial-gradient(
			ellipse 80% 60% at 15% 0%,
			rgb( 125 211 252 / 0.35 ),
			transparent 60%
		),
		radial-gradient(
			ellipse 70% 70% at 100% 100%,
			rgb( 147 51 234 / 0.25 ),
			transparent 60%
		),
		linear-gradient( 135deg, #0284c7 0%, #0ea5e9 45%, #38bdf8 100% );
	box-shadow: 0 20px 48px rgb( 2 132 199 / 0.25 );
	display: flex;
	align-items: center;
}

.mp-hero::after {
	content: '';
	position: absolute;
	inset: 0;
	background-image: linear-gradient(
		to top,
		rgb( 0 0 0 / 0.28 ),
		rgb( 0 0 0 / 0.04 )
	);
	pointer-events: none;
}

.mp-hero__content {
	position: relative;
	z-index: 1;
	max-width: 760px;
	padding: 2.5rem 2rem;
	color: #fff;
}

.mp-hero__badge {
	display: inline-block;
	padding: 0.35rem 0.7rem;
	border-radius: 999px;
	background-color: rgb( 255 255 255 / 0.18 );
	font-size: 0.875rem;
	font-weight: 700;
	letter-spacing: 0.01em;
	color: #fff;
}

.mp-hero__title {
	margin: 0.75rem 0 0;
	font-size: 3rem;
	font-weight: 800;
	line-height: 1.08;
	letter-spacing: -0.04em;
	color: #fff;
}

.mp-hero__desc {
	margin: 0.9rem 0 0;
	max-width: 620px;
	font-size: 1.05rem;
	line-height: 1.7;
	color: rgb( 255 255 255 / 0.9 );
}

/* Hero 内的信息卡(两列) */
.mp-hero__cards {
	display: grid;
	grid-template-columns: repeat( 2, minmax( 0, 1fr ) );
	gap: 1rem;
	margin-block-start: 1.5rem;
}

.mp-infocard {
	padding: 1rem;
	border: 1px solid rgb( 255 255 255 / 0.16 );
	border-radius: 18px;
	background-color: rgb( 255 255 255 / 0.12 );
	box-shadow: 0 12px 32px rgb( 0 0 0 / 0.14 );
	color: #fff;
	transition: transform 0.22s ease, background-color 0.22s ease,
		border-color 0.22s ease, box-shadow 0.22s ease;
}

.mp-infocard:hover {
	transform: translateY( -2px );
	border-color: rgb( 255 255 255 / 0.34 );
	background-color: rgb( 255 255 255 / 0.18 );
	box-shadow: 0 16px 38px rgb( 0 0 0 / 0.18 );
}

.mp-infocard strong {
	display: block;
	margin-block-end: 0.45rem;
	font-size: 0.95rem;
	font-weight: 700;
	color: #fff;
}

.mp-infocard code,
.mp-infocard .mp-infocard__value {
	display: block;
	padding: 0.65rem 0.8rem;
	border-radius: 12px;
	background-color: rgb( 0 0 0 / 0.28 );
	font-family: inherit;
	font-size: 1.05rem;
	font-weight: 700;
	color: #fff;
	user-select: all;
	transition: background-color 0.22s ease, box-shadow 0.22s ease;
}

.mp-infocard:hover code,
.mp-infocard:hover .mp-infocard__value {
	background-color: rgb( 0 0 0 / 0.38 );
	box-shadow: inset 0 0 0 1px rgb( 255 255 255 / 0.08 );
}

/* Hero 下方的胶囊链接行 */
.mp-hero__links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-block-start: 1.2rem;
}

.mp-pill {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.72rem 1rem;
	border: 1px solid rgb( 255 255 255 / 0.14 );
	border-radius: 999px;
	background-color: rgb( 255 255 255 / 0.12 );
	font-size: 0.9375rem;
	font-weight: 700;
	color: #fff;
	transition: transform 0.22s ease, background-color 0.22s ease,
		border-color 0.22s ease, box-shadow 0.22s ease;
}

.mp-hero__links a,
.mp-hero__links a:visited {
	color: #fff;
	text-decoration: none;
}

.mp-hero__links a:hover .mp-pill {
	transform: translateY( -1px );
	border-color: rgb( 255 255 255 / 0.34 );
	background-color: rgb( 255 255 255 / 0.2 );
	box-shadow: 0 8px 20px rgb( 0 0 0 / 0.16 );
}

/* --------------------------------------------------------------------------
   内容区块
   -------------------------------------------------------------------------- */

.mp-section {
	margin: 0;
}

.mp-section__title {
	margin: 0 0 1rem;
	padding: 0;
	border: 0;
	font-size: 1.6rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: var( --color-emphasized, #0f172a );
}

.mp-section__title::after {
	content: none;
}

/* --------------------------------------------------------------------------
   卡片网格
   -------------------------------------------------------------------------- */

.mp-grid {
	display: grid;
	gap: 1rem;
}

.mp-grid--4 {
	grid-template-columns: repeat( 4, minmax( 0, 1fr ) );
}

.mp-grid--3 {
	grid-template-columns: repeat( 3, minmax( 0, 1fr ) );
}

.mp-grid--2 {
	grid-template-columns: repeat( 2, minmax( 0, 1fr ) );
}

.mp-card {
	display: block;
	padding: 1.1rem;
	border: 1px solid var( --kuke-card-border, #e2e8f0 );
	border-radius: 18px;
	background-color: var( --kuke-card-bg, #fff );
	box-shadow: 0 12px 32px rgb( 0 0 0 / 0.06 );
	transition: transform 0.22s ease, border-color 0.22s ease,
		box-shadow 0.22s ease;
}

.mp-grid a,
.mp-grid a:visited,
.mp-features a,
.mp-features a:visited {
	color: inherit;
	text-decoration: none;
}

.mp-grid a:hover .mp-card,
.mp-card:hover {
	transform: translateY( -3px );
	border-color: var( --kuke-brand, #0ea5e9 );
	box-shadow: 0 18px 42px rgb( 14 165 233 / 0.16 );
}

.mp-card__icon {
	display: block;
	font-size: 1.8rem;
	line-height: 1;
}

.mp-card__title {
	margin: 0.55rem 0 0.45rem;
	font-size: 1.15rem;
	font-weight: 700;
	letter-spacing: -0.01em;
	color: var( --color-emphasized, #0f172a );
}

.mp-card__desc {
	margin: 0;
	font-size: 0.9375rem;
	line-height: 1.65;
	color: var( --color-subtle, #54595d );
}

.mp-card__more {
	display: inline-block;
	margin-block-start: 0.7rem;
	font-size: 0.875rem;
	font-weight: 700;
	color: var( --kuke-brand-strong, #0284c7 );
}

.mp-grid a:hover .mp-card__more {
	color: var( --kuke-brand, #0ea5e9 );
}

/* --------------------------------------------------------------------------
   特性列表(四列,无链接)
   -------------------------------------------------------------------------- */

.mp-features {
	display: grid;
	grid-template-columns: repeat( 4, minmax( 0, 1fr ) );
	gap: 1rem;
}

.mp-features > div {
	padding: 1.1rem;
	border: 1px solid var( --kuke-card-border, #e2e8f0 );
	border-radius: 18px;
	background-color: var( --kuke-card-bg, #fff );
	box-shadow: 0 12px 32px rgb( 0 0 0 / 0.06 );
}

.mp-features strong {
	display: block;
	margin-block-end: 0.45rem;
	font-size: 1.0625rem;
	font-weight: 700;
	color: var( --kuke-brand-strong, #0284c7 );
}

.mp-features p {
	margin: 0;
	font-size: 0.9375rem;
	line-height: 1.7;
	color: var( --color-subtle, #54595d );
}

/* --------------------------------------------------------------------------
   帮助区块
   -------------------------------------------------------------------------- */

.mp-support {
	display: grid;
	grid-template-columns: minmax( 0, 1fr ) auto;
	gap: 1rem;
	align-items: center;
	padding: 1.25rem;
	border: 1px solid var( --kuke-card-border, #e2e8f0 );
	border-radius: 18px;
	background-color: var( --kuke-card-bg, #fff );
	box-shadow: 0 12px 32px rgb( 0 0 0 / 0.06 );
}

.mp-support h3,
.mp-support__title {
	margin: 0 0 0.4rem;
	font-size: 1.15rem;
	font-weight: 700;
	color: var( --color-emphasized, #0f172a );
}

.mp-support p {
	margin: 0;
	line-height: 1.7;
	color: var( --color-subtle, #54595d );
}

.mp-support__links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	padding: 1rem;
	border-radius: 14px;
	background-color: var( --kuke-brand-pale, #e0f2fe );
	transition: background-color 0.22s ease, color 0.22s ease;
}

.mp-support__links a,
.mp-support__links a:visited {
	font-weight: 700;
	color: var( --kuke-brand-strong, #0284c7 );
	text-decoration: none;
}

.mp-support__links a:hover {
	color: var( --kuke-brand, #0ea5e9 );
	text-decoration: underline;
}

/* --------------------------------------------------------------------------
   暗色模式
   -------------------------------------------------------------------------- */

html.skin-theme-clientpref-night .mp-card,
html.skin-theme-clientpref-night .mp-features > div,
html.skin-theme-clientpref-night .mp-support {
	border-color: rgb( 49 65 88 / 0.6 );
	background-color: rgb( 29 41 61 / 0.5 );
	box-shadow: 0 12px 32px rgb( 0 0 0 / 0.24 );
}

html.skin-theme-clientpref-night .mp-grid a:hover .mp-card,
html.skin-theme-clientpref-night .mp-card:hover {
	border-color: var( --kuke-brand, #38bdf8 );
	box-shadow: 0 18px 42px rgb( 0 0 0 / 0.36 );
}

html.skin-theme-clientpref-night .mp-support__links {
	background-color: rgb( 7 89 133 / 0.35 );
}

@media screen and ( prefers-color-scheme: dark ) {
	html.skin-theme-clientpref-os .mp-card,
	html.skin-theme-clientpref-os .mp-features > div,
	html.skin-theme-clientpref-os .mp-support {
		border-color: rgb( 49 65 88 / 0.6 );
		background-color: rgb( 29 41 61 / 0.5 );
		box-shadow: 0 12px 32px rgb( 0 0 0 / 0.24 );
	}

	html.skin-theme-clientpref-os .mp-grid a:hover .mp-card,
	html.skin-theme-clientpref-os .mp-card:hover {
		border-color: var( --kuke-brand, #38bdf8 );
		box-shadow: 0 18px 42px rgb( 0 0 0 / 0.36 );
	}

	html.skin-theme-clientpref-os .mp-support__links {
		background-color: rgb( 7 89 133 / 0.35 );
	}
}

/* --------------------------------------------------------------------------
   响应式
   -------------------------------------------------------------------------- */

@media screen and ( max-width: 960px ) {
	.mp-hero__cards,
	.mp-grid--4,
	.mp-grid--3,
	.mp-features {
		grid-template-columns: repeat( 2, minmax( 0, 1fr ) );
	}

	.mp-support {
		grid-template-columns: 1fr;
	}
}

@media screen and ( max-width: 720px ) {
	.mp-home {
		gap: 1.5rem;
	}

	.mp-hero {
		min-height: 380px;
	}

	.mp-hero__content {
		padding: 1.5rem 1.2rem;
	}

	.mp-hero__title {
		font-size: 2.2rem;
	}

	.mp-hero__cards,
	.mp-grid--4,
	.mp-grid--3,
	.mp-grid--2,
	.mp-features {
		grid-template-columns: 1fr;
	}

	.mp-section__title {
		font-size: 1.35rem;
	}
}


/* ==========================================================================
   顶栏横向导航(由 MediaWiki:Common.js 注入)
   ========================================================================== */

.kuke-topnav {
	display: flex;
	align-items: center;
	gap: 4px;
	min-width: 0;
	margin-inline-start: var( --space-xxs );
	overflow-x: auto;
	scrollbar-width: none;
}

.kuke-topnav::-webkit-scrollbar {
	display: none;
}

.kuke-topnav__link {
	display: inline-flex;
	align-items: center;
	padding: 7px 14px;
	border-radius: 12px;
	color: var( --color-subtle );
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.2;
	white-space: nowrap;
	text-decoration: none;
	transition:
		background-color 0.3s var( --kuke-ease ),
		color 0.3s var( --kuke-ease );
}

.kuke-topnav__link:hover,
.kuke-topnav__link:focus {
	background-color: var( --kuke-brand-pale );
	color: var( --kuke-brand-strong );
	text-decoration: none;
}

.kuke-topnav__link--active {
	background-color: var( --kuke-brand-strong );
	color: #fff;
	box-shadow: 0 8px 16px -6px rgb( 14 165 233 / 0.45 );
}

.kuke-topnav__link--active:hover,
.kuke-topnav__link--active:focus {
	background-color: var( --kuke-brand );
	color: #fff;
}

/* 左侧竖排顶栏时改为纵向堆叠 */
.citizen-header-position-left .kuke-topnav {
	flex-direction: column;
	align-items: stretch;
	margin-inline-start: 0;
	margin-block-start: var( --space-xxs );
}

/* 窄屏隐藏,交回汉堡抽屉 */
@media screen and ( max-width: 720px ) {
	.kuke-topnav {
		display: none;
	}
}