MediaWiki:Common.css:修訂間差異

出自災厄繁中 Wiki
跳至導覽 跳至搜尋
Dazhi233​(留言 | 貢獻)
從專案原稿更新
 
Dazhi233​(留言 | 貢獻)
從專案原稿更新
 
(未顯示同一使用者於中間所作的 19次修訂)
第1行: 第1行:
/* 災厄繁中 Wiki 全站樣式
/* 災厄繁中 Wiki 全站元件樣式(cz-*)
   首頁區塊(cz-*)自帶深色配色,不受白天/夜間模式影響,仿官方災厄 Wiki 的深色風格。 */
   配色取自翻譯 MOD 圖示:米色 #f5ebd2、藍 #285abe、白。外框版型在 MediaWiki:Vector.css。 */


:root {
:root {
--cz-bg: #15121f;
--cz-blue: #285abe;
--cz-panel: #1f1a2e;
--cz-blue-dark: #1b3f8a;
--cz-panel-2: #2a2340;
--cz-blue-soft: #dfe7f7;
--cz-line: #3d3358;
--cz-cream: #f5ebd2;
--cz-ink: #ece8f5;
--cz-paper: #fffdf8;
--cz-muted: #a99fc2;
--cz-line-soft: #c7d3ec;
--cz-accent: #e2543a;     /* 硫火紅 */
--cz-text: #1f2a40;
--cz-gold: #e8b64c;        /* 金源金 */
--cz-text-muted: #5c6782;
--cz-astral: #5fc3d8;     /* 星界青 */
}
}
/* 像素畫圖示放大時保持清晰 */
.cz-icon img, .cz-box img, .cz-itemtable img, .cz-boss img, .cz-modinfo img { image-rendering: pixelated; }


/* 首頁不顯示「首頁」大標題 */
/* 首頁不顯示「首頁」大標題 */
body.page-首頁 .mw-first-heading,
body.page-首頁 .mw-first-heading,
body.page-首頁 #siteSub,
body.page-首頁 .firstHeading,
body.page-首頁 .vector-page-titlebar { display: none; }
body.page-首頁 #siteSub { display: none; }
 
/* ---------- 方框(仿 wiki.gg 首頁的區塊) ---------- */
.cz-grid { display: grid; gap: 12px; grid-template-columns: repeat(12, 1fr); }
.cz-span-12 { grid-column: span 12; }
.cz-span-8 { grid-column: span 8; }
.cz-span-7 { grid-column: span 7; }
.cz-span-6 { grid-column: span 6; }
.cz-span-5 { grid-column: span 5; }
.cz-span-4 { grid-column: span 4; }
.cz-span-3 { grid-column: span 3; }
.cz-span-2 { grid-column: span 2; }
@media (max-width: 1100px) { .cz-grid > * { grid-column: span 12; } }


.cz-main {
.cz-box {
background: var(--cz-bg);
background: var(--cz-paper); border: 2px solid var(--cz-blue); border-radius: 10px;
color: var(--cz-ink);
overflow: hidden; min-width: 0;
border-radius: 10px;
}
padding: 24px clamp(14px, 3vw, 32px) 28px;
/* 沒包在 cz-grid 裡、直接一個接一個的方框(附加 MOD 首頁的 Boss/敵人/物品)要有間距,跟 cz-grid 的 gap 一樣 */
display: grid;
.mw-parser-output > .cz-box + .cz-box { margin-top: 12px; }
gap: 22px;
.cz-box-head {
position: relative; background: var(--cz-blue); color: #fff; font-weight: 700; font-size: 1.15em;
text-align: center; padding: 8px 48px; letter-spacing: .04em;
}
}
.cz-main a { color: var(--cz-gold); }
.cz-box-head a, .cz-box-head a:visited { color: #fff; }
.cz-main a:visited { color: #d6a548; }
.cz-box-head .cz-box-icon { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); line-height: 0; }
.cz-main a.new { color: #e08a7a; }
.cz-box-head .cz-box-icon img { max-height: 34px; max-width: 44px; width: auto; height: auto; }
.cz-box-body { padding: 12px 14px; }
.cz-box-body > p:first-child { margin-top: 0; }


.cz-hero {
/* 標題下的小分組(例如「困難模式之前」) */
border-radius: 8px;
.cz-sub { font-weight: 700; color: var(--cz-blue-dark); margin: 10px 0 6px; }
padding: 26px 22px;
.cz-sub:first-child { margin-top: 0; }
background:
.cz-cols { display: grid; gap: 4px 14px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
radial-gradient(120% 140% at 0% 0%, rgba(226, 84, 58, .35) 0%, transparent 55%),
.cz-cols-wide { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
radial-gradient(90% 120% at 100% 100%, rgba(95, 195, 216, .22) 0%, transparent 60%),
 
var(--cz-panel);
/* 圖示+名稱 */
border: 1px solid var(--cz-line);
.cz-link { display: flex; align-items: center; gap: 6px; min-height: 30px; line-height: 1.3; }
.cz-link .cz-icon { flex: 0 0 32px; display: flex; justify-content: center; align-items: center; height: 32px; }
.cz-link .cz-icon img { max-width: 32px; max-height: 32px; width: auto; height: auto; }
.cz-link .cz-en { display: block; color: var(--cz-text-muted); font-size: .78em; }
 
/* ---------- 首頁頂部歡迎區 ---------- */
.cz-welcome {
background: var(--cz-paper); border: 3px solid var(--cz-blue); border-radius: 12px;
text-align: center; padding: 18px 20px 16px; display: grid; gap: 6px;
}
}
.cz-hero-title { font-size: clamp(1.8em, 4vw, 2.4em); font-weight: 700; letter-spacing: .04em; line-height: 1.2; }
.cz-welcome-title { font-size: 1.7em; font-weight: 700; color: var(--cz-blue-dark); }
.cz-hero-sub { color: var(--cz-muted); margin-top: 6px; }
.cz-welcome-sub { color: var(--cz-text-muted); }
.cz-hero-stats { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 14px; font-size: .92em; color: var(--cz-muted); }
.cz-welcome-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 20px; font-size: .95em; }
.cz-hero-stats b { color: var(--cz-gold); font-variant-numeric: tabular-nums; }
.cz-welcome-stats b { color: var(--cz-blue); font-variant-numeric: tabular-nums; }


.cz-search .mw-inputbox-centered,
/* 首頁搜尋框(InputBox) */
.cz-search .mw-inputbox-element { margin: 0; text-align: left; }
.cz-search .mw-inputbox-centered { margin: 0; text-align: left; display: block; }
.cz-search form { width: 100%; max-width: 640px; margin: 6px auto 0; display: flex; gap: 8px; align-items: stretch; flex-wrap: wrap; }
.cz-search form br,
.cz-search input[name="fulltext"] { display: none; }
.cz-search .cdx-text-input { flex: 1 1 260px; min-width: 0; display: block; }
.cz-search .cdx-text-input__input {
width: 100% !important; max-width: none; box-sizing: border-box; min-height: 40px; font-size: 1em;
background: #fff; color: var(--cz-text); border: 2px solid var(--cz-blue); border-radius: 8px;
}
.cz-search input[name="go"] {
min-height: 40px; padding: 0 22px; border-radius: 8px; border: 0; cursor: pointer;
background: var(--cz-blue); color: #fff; font-weight: 700;
}


.cz-section-title {
/* 首頁 MOD 卡片 */
font-size: 1.15em; font-weight: 700; margin: 0 0 10px;
.cz-mods { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
padding-left: 10px; border-left: 3px solid var(--cz-accent);
.cz-mod {
background: #fff; border: 2px solid var(--cz-line-soft); border-left: 6px solid var(--cz-mod, var(--cz-blue));
border-radius: 8px; padding: 10px 12px; display: grid; gap: 2px; align-content: start;
}
}
.cz-mod:hover { border-color: var(--cz-blue); border-left-color: var(--cz-mod, var(--cz-blue)); }
.cz-mod-title { font-size: 1.15em; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.cz-mod-en { color: var(--cz-text-muted); font-size: .8em; }
.cz-mod-desc { font-size: .9em; line-height: 1.55; }
.cz-mod-calamity { --cz-mod: #c0392b; }
.cz-mod-fables  { --cz-mod: #d4a020; }
.cz-mod-wotg    { --cz-mod: #7b4fd0; }
.cz-mod-hunt    { --cz-mod: #d0458f; }
.cz-mod-catalyst { --cz-mod: #1f9bb5; }
.cz-mod-vanities { --cz-mod: #3c9a4e; }


.cz-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.cz-note { color: var(--cz-text-muted); font-size: .88em; line-height: 1.6; text-align: center; }
.cz-card {
/* 很長的項目清單(* 開頭的清單)分成多欄 */
background: var(--cz-panel); border: 1px solid var(--cz-line); border-radius: 8px;
.cz-list-cols { column-width: 15em; column-gap: 1.5em; }
padding: 14px 16px; display: grid; gap: 4px; align-content: start;
.cz-list-cols li { break-inside: avoid; }
/* 平衡改動表:加強(綠)、削弱(紅)、不好不壞(黃) */
.cz-buff { color: #1a7f1a; }
.cz-nerf { color: #c0392b; }
.cz-neutral { color: #8a7a00; }
/* 頁首的指路提示(同名的敵人頁在別處) */
.cz-hatnote { color: var(--cz-text-muted); font-size: .92em; font-style: italic; margin: 0 0 .6em 1.2em; }
 
/* ---------- MOD 分頁頂端的資訊框(Template:MOD資訊) ---------- */
.cz-modinfo {
background: var(--cz-paper); border: 2px solid var(--cz-blue); border-radius: 10px;
padding: 14px 18px; margin: 0 0 1em; display: grid; gap: 6px;
}
}
.cz-card:hover { border-color: var(--cz-accent); }
.cz-modinfo-en { color: var(--cz-text-muted); font-size: .9em; letter-spacing: .03em; }
.cz-card-title { font-size: 1.1em; font-weight: 700; }
.cz-modinfo-desc { line-height: 1.7; max-width: 75ch; }
.cz-card-desc { color: var(--cz-muted); font-size: .92em; line-height: 1.55; }
.cz-modinfo-links { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: .92em; }


.cz-stage { margin-top: 4px; }
/* ---------- Boss 方格 ---------- */
.cz-stage-name { color: var(--cz-muted); font-size: .85em; letter-spacing: .06em; margin: 10px 0 6px; }
.cz-bossgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.cz-bossgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.cz-boss {
.cz-boss {
background: var(--cz-panel-2); border: 1px solid var(--cz-line); border-radius: 6px;
background: #fff; border: 2px solid var(--cz-line-soft); border-radius: 8px;
padding: 8px 10px; line-height: 1.35;
padding: 6px 8px; line-height: 1.3; display: flex; align-items: center; gap: 8px;
}
}
.cz-boss:hover { border-color: var(--cz-blue); }
.cz-boss .cz-icon { flex: 0 0 40px; height: 40px; display: flex; align-items: center; justify-content: center; }
.cz-boss .cz-icon img { max-width: 40px; max-height: 40px; width: auto; height: auto; }
.cz-boss-zh { font-weight: 700; display: block; }
.cz-boss-zh { font-weight: 700; display: block; }
.cz-boss-en { color: var(--cz-muted); font-size: .78em; display: block; }
.cz-boss-en { color: var(--cz-text-muted); font-size: .78em; display: block; }
.cz-boss.cz-super { border-color: var(--cz-astral); }
.cz-boss.cz-super { border-color: #7b4fd0; }
/* 沒有圖示的 Boss 格(附加 MOD):中英文上下排 */
.cz-boss { flex-wrap: wrap; }
.cz-boss > .cz-boss-zh, .cz-boss > .cz-boss-en { flex-basis: 100%; }


.cz-note { color: var(--cz-muted); font-size: .88em; line-height: 1.6; border-top: 1px solid var(--cz-line); padding-top: 14px; }
/* ---------- 物品清單表格(由 build_wiki_pages.py 產生) ---------- */
.cz-itemtable td:first-child { text-align: center; width: 56px; }
.cz-itemtable img { max-width: 48px; max-height: 48px; width: auto; height: auto; }


/* 首頁「選擇 MOD」卡片:每個 MOD 一條代表色 */
/* ---------- 來源標註框(Template:來源) ---------- */
.cz-card-en { color: var(--cz-muted); font-size: .8em; letter-spacing: .02em; }
.cz-source {
.cz-mod { border-top: 3px solid var(--cz-mod, var(--cz-accent)); padding-top: 12px; }
border: 2px solid var(--cz-line-soft); border-left: 6px solid var(--cz-blue); border-radius: 6px;
.cz-mod-calamity { --cz-mod: #e2543a; }
padding: 8px 12px; margin: 0 0 1em; font-size: .92em; background: #f6f8fd;
.cz-mod-fables  { --cz-mod: #e8b64c; }
}
.cz-mod-wotg    { --cz-mod: #b58cf0; }
.cz-en { font-family: ui-monospace, Consolas, monospace; font-size: .92em; }
.cz-mod-hunt    { --cz-mod: #e05fb0; }
.cz-mod-catalyst { --cz-mod: #5fc3d8; }
.cz-mod-vanities { --cz-mod: #7fcf8a; }
.cz-mods .cz-card-title { font-size: 1.2em; }


/* MOD 分頁頂端的資訊框(Template:MOD資訊) */
/* ---------- 道具頁資訊框(Template:物品資訊框) ---------- */
.cz-modinfo {
.cz-infobox {
background: var(--cz-bg); color: var(--cz-ink); border-radius: 10px;
float: right; clear: right; width: 300px; max-width: 100%; margin: 0 0 1em 1.4em;
padding: 16px 20px; margin: 0 0 1em; border: 1px solid var(--cz-line);
background: var(--cz-paper); border: 2px solid var(--cz-blue); border-radius: 10px; overflow: hidden;
display: grid; gap: 6px;
font-size: .92em;
}
}
.cz-modinfo a { color: var(--cz-gold); }
.cz-infobox-title { background: var(--cz-blue); color: #fff; font-weight: 700; font-size: 1.15em; text-align: center; padding: 8px 10px; }
.cz-modinfo-en { color: var(--cz-muted); font-size: .9em; letter-spacing: .03em; }
.cz-infobox-en { text-align: center; color: var(--cz-text-muted); font-size: .9em; padding: 4px 8px 0; }
.cz-modinfo-desc { line-height: 1.7; max-width: 70ch; }
.cz-infobox-image { text-align: center; padding: 12px 8px; }
.cz-modinfo-links { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: .92em; }
.cz-infobox-image img { image-rendering: pixelated; max-width: 260px; height: auto; }
.cz-main-hub { margin-bottom: 1em; }
.cz-infobox-head { background: var(--cz-blue-soft); color: var(--cz-blue-dark); font-weight: 700; text-align: center; padding: 4px; border-top: 1px solid var(--cz-line-soft); }
.cz-infobox-table { width: 100%; border-collapse: collapse; }
.cz-infobox-table th { width: 32%; text-align: right; vertical-align: top; color: var(--cz-blue-dark); padding: 4px 8px; font-weight: 700; }
.cz-infobox-table td { padding: 4px 8px; vertical-align: top; }
.cz-infobox-table tr + tr th, .cz-infobox-table tr + tr td { border-top: 1px solid var(--cz-line-soft); }
.cz-infobox-tooltip { font-style: italic; line-height: 1.6; }
.cz-infobox-foot { text-align: center; padding: 6px; border-top: 1px solid var(--cz-line-soft); font-size: .9em; }
@media (max-width: 720px) { .cz-infobox { float: none; width: auto; margin: 0 0 1em; } }


/* 一般頁面:來源標註框(Template:來源) */
/* ---------- 頁尾導覽框(Template:角色導覽,由 build_enemy_pages.py 產生) ---------- */
.cz-source {
.cz-navbox {
border: 1px solid #c9c2d8; border-left: 4px solid #8a6fc0; border-radius: 4px;
clear: both; margin: 1.5em 0 1em; background: var(--cz-paper); border: 2px solid var(--cz-blue);
padding: 8px 12px; margin: 0 0 1em; font-size: .92em; background: rgba(138, 111, 192, .08);
border-radius: 10px; overflow: hidden; font-size: .92em;
}
.cz-navbox-title { background: var(--cz-blue); color: #fff; font-weight: 700; text-align: center; padding: 6px 10px; }
.cz-navbox-title a, .cz-navbox-title a:visited { color: #fff; text-decoration: underline; }
.cz-navbox-sec { border-top: 1px solid var(--cz-line-soft); }
.cz-navbox-sec > .mw-collapsible-toggle { float: right; padding: 4px 10px; font-size: .9em; }
.cz-navbox-head { background: var(--cz-blue-soft); color: var(--cz-blue-dark); font-weight: 700; text-align: center; padding: 4px 10px; }
.cz-navbox-table { width: 100%; border-collapse: collapse; }
.cz-navbox-table th {
width: 9em; text-align: right; vertical-align: top; white-space: nowrap; padding: 4px 10px;
background: #f6f8fd; color: var(--cz-blue-dark); font-weight: 700; border-top: 1px solid var(--cz-line-soft);
}
}
/* 中英對照表格裡的英文欄 */
.cz-navbox-table th + th { width: 6em; }
.cz-en { font-family: ui-monospace, Consolas, monospace; font-size: .92em; }
.cz-navbox-table td { padding: 4px 10px; line-height: 1.7; border-top: 1px solid var(--cz-line-soft); }
 
/* 合成配方表 */
.cz-recipe td { vertical-align: middle; }
.cz-recipe-item { display: inline-flex; align-items: center; gap: 4px; }
.cz-recipe-item img { image-rendering: pixelated; max-height: 32px; max-width: 32px; width: auto; height: auto; }
 
/* 「Boss 與小 Boss」方框:四欄並排(仿官方首頁) */
.cz-boss-cols { display: grid; gap: 4px 18px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); align-items: start; }
.cz-boss-col .cz-sub { margin-top: 0; }
 
/* 還沒有頁面的項目:灰字 */
.cz-todo, .cz-todo .cz-en { color: #9aa1b2; }
 
/* 物品清單的稀有度色塊(build_wiki_pages.rarity_cell) */
.cz-rarity { display: inline-block; width: .8em; height: .8em; margin-right: .35em; vertical-align: -1px;
border: 1px solid rgba(0, 0, 0, .45); border-radius: 2px; }
 
/* 生態域頁的「內容」清單(wiki/biome_infocard.py,仿官方的 infocard) */
.cz-biome { border: 1px solid var(--cz-line-soft); border-radius: 4px; background: var(--cz-paper); margin: .6em 0 1em; overflow: hidden; }
.cz-biome-head { background: var(--cz-blue); color: #fff; font-weight: bold; text-align: left; padding: 4px 10px; }
.cz-biome-group { display: flex; flex-wrap: wrap; gap: 8px; padding: 8px; justify-content: flex-start; align-items: stretch; }
.cz-biome-box { border: 1px solid var(--cz-line-soft); border-radius: 4px; background: #fff; padding: 6px 10px; max-width: 100%; }
.cz-biome-title { font-weight: bold; color: var(--cz-blue-dark); text-align: left; border-bottom: 1px solid var(--cz-line-soft);
margin-bottom: 4px; padding-bottom: 2px; font-size: .92em; }
.cz-biome-items { display: flex; flex-wrap: wrap; gap: 4px 14px; justify-content: flex-start; align-items: center; }
.cz-biome-note { color: var(--cz-text-muted); font-size: .85em; }
.cz-npc img { max-height: 60px; max-width: 150px; height: auto; width: auto; }  /* 敵人的圖比物品圖示大;蟲型是整條的長圖(官方清單裡寬 110~150px) */
 
/* 目次只列到第二層(音樂頁有一百多首曲目,各佔一個小標題) */
.toclimit-3 .toclevel-2 ul { display: none; }
 
/* Boss 頁開頭的紀念牌引言(wiki/boss_text/*.wiki) */
.cz-quote { text-align: center; font-size: 1.15em; font-style: italic; color: var(--cz-blue-dark); margin: .4em 0 .8em; }

2026年10月14日 (三) 10:05的最新修訂

/* 災厄繁中 Wiki 全站元件樣式(cz-*)
   配色取自翻譯 MOD 圖示:米色 #f5ebd2、藍 #285abe、白。外框版型在 MediaWiki:Vector.css。 */

:root {
	--cz-blue: #285abe;
	--cz-blue-dark: #1b3f8a;
	--cz-blue-soft: #dfe7f7;
	--cz-cream: #f5ebd2;
	--cz-paper: #fffdf8;
	--cz-line-soft: #c7d3ec;
	--cz-text: #1f2a40;
	--cz-text-muted: #5c6782;
}

/* 像素畫圖示放大時保持清晰 */
.cz-icon img, .cz-box img, .cz-itemtable img, .cz-boss img, .cz-modinfo img { image-rendering: pixelated; }

/* 首頁不顯示「首頁」大標題 */
body.page-首頁 .mw-first-heading,
body.page-首頁 .firstHeading,
body.page-首頁 #siteSub { display: none; }

/* ---------- 方框(仿 wiki.gg 首頁的區塊) ---------- */
.cz-grid { display: grid; gap: 12px; grid-template-columns: repeat(12, 1fr); }
.cz-span-12 { grid-column: span 12; }
.cz-span-8 { grid-column: span 8; }
.cz-span-7 { grid-column: span 7; }
.cz-span-6 { grid-column: span 6; }
.cz-span-5 { grid-column: span 5; }
.cz-span-4 { grid-column: span 4; }
.cz-span-3 { grid-column: span 3; }
.cz-span-2 { grid-column: span 2; }
@media (max-width: 1100px) { .cz-grid > * { grid-column: span 12; } }

.cz-box {
	background: var(--cz-paper); border: 2px solid var(--cz-blue); border-radius: 10px;
	overflow: hidden; min-width: 0;
}
/* 沒包在 cz-grid 裡、直接一個接一個的方框(附加 MOD 首頁的 Boss/敵人/物品)要有間距,跟 cz-grid 的 gap 一樣 */
.mw-parser-output > .cz-box + .cz-box { margin-top: 12px; }
.cz-box-head {
	position: relative; background: var(--cz-blue); color: #fff; font-weight: 700; font-size: 1.15em;
	text-align: center; padding: 8px 48px; letter-spacing: .04em;
}
.cz-box-head a, .cz-box-head a:visited { color: #fff; }
.cz-box-head .cz-box-icon { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); line-height: 0; }
.cz-box-head .cz-box-icon img { max-height: 34px; max-width: 44px; width: auto; height: auto; }
.cz-box-body { padding: 12px 14px; }
.cz-box-body > p:first-child { margin-top: 0; }

/* 標題下的小分組(例如「困難模式之前」) */
.cz-sub { font-weight: 700; color: var(--cz-blue-dark); margin: 10px 0 6px; }
.cz-sub:first-child { margin-top: 0; }
.cz-cols { display: grid; gap: 4px 14px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.cz-cols-wide { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

/* 圖示+名稱 */
.cz-link { display: flex; align-items: center; gap: 6px; min-height: 30px; line-height: 1.3; }
.cz-link .cz-icon { flex: 0 0 32px; display: flex; justify-content: center; align-items: center; height: 32px; }
.cz-link .cz-icon img { max-width: 32px; max-height: 32px; width: auto; height: auto; }
.cz-link .cz-en { display: block; color: var(--cz-text-muted); font-size: .78em; }

/* ---------- 首頁頂部歡迎區 ---------- */
.cz-welcome {
	background: var(--cz-paper); border: 3px solid var(--cz-blue); border-radius: 12px;
	text-align: center; padding: 18px 20px 16px; display: grid; gap: 6px;
}
.cz-welcome-title { font-size: 1.7em; font-weight: 700; color: var(--cz-blue-dark); }
.cz-welcome-sub { color: var(--cz-text-muted); }
.cz-welcome-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 20px; font-size: .95em; }
.cz-welcome-stats b { color: var(--cz-blue); font-variant-numeric: tabular-nums; }

/* 首頁搜尋框(InputBox) */
.cz-search .mw-inputbox-centered { margin: 0; text-align: left; display: block; }
.cz-search form { width: 100%; max-width: 640px; margin: 6px auto 0; display: flex; gap: 8px; align-items: stretch; flex-wrap: wrap; }
.cz-search form br,
.cz-search input[name="fulltext"] { display: none; }
.cz-search .cdx-text-input { flex: 1 1 260px; min-width: 0; display: block; }
.cz-search .cdx-text-input__input {
	width: 100% !important; max-width: none; box-sizing: border-box; min-height: 40px; font-size: 1em;
	background: #fff; color: var(--cz-text); border: 2px solid var(--cz-blue); border-radius: 8px;
}
.cz-search input[name="go"] {
	min-height: 40px; padding: 0 22px; border-radius: 8px; border: 0; cursor: pointer;
	background: var(--cz-blue); color: #fff; font-weight: 700;
}

/* 首頁 MOD 卡片 */
.cz-mods { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.cz-mod {
	background: #fff; border: 2px solid var(--cz-line-soft); border-left: 6px solid var(--cz-mod, var(--cz-blue));
	border-radius: 8px; padding: 10px 12px; display: grid; gap: 2px; align-content: start;
}
.cz-mod:hover { border-color: var(--cz-blue); border-left-color: var(--cz-mod, var(--cz-blue)); }
.cz-mod-title { font-size: 1.15em; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.cz-mod-en { color: var(--cz-text-muted); font-size: .8em; }
.cz-mod-desc { font-size: .9em; line-height: 1.55; }
.cz-mod-calamity { --cz-mod: #c0392b; }
.cz-mod-fables   { --cz-mod: #d4a020; }
.cz-mod-wotg     { --cz-mod: #7b4fd0; }
.cz-mod-hunt     { --cz-mod: #d0458f; }
.cz-mod-catalyst { --cz-mod: #1f9bb5; }
.cz-mod-vanities { --cz-mod: #3c9a4e; }

.cz-note { color: var(--cz-text-muted); font-size: .88em; line-height: 1.6; text-align: center; }
/* 很長的項目清單(* 開頭的清單)分成多欄 */
.cz-list-cols { column-width: 15em; column-gap: 1.5em; }
.cz-list-cols li { break-inside: avoid; }
/* 平衡改動表:加強(綠)、削弱(紅)、不好不壞(黃) */
.cz-buff { color: #1a7f1a; }
.cz-nerf { color: #c0392b; }
.cz-neutral { color: #8a7a00; }
/* 頁首的指路提示(同名的敵人頁在別處) */
.cz-hatnote { color: var(--cz-text-muted); font-size: .92em; font-style: italic; margin: 0 0 .6em 1.2em; }

/* ---------- MOD 分頁頂端的資訊框(Template:MOD資訊) ---------- */
.cz-modinfo {
	background: var(--cz-paper); border: 2px solid var(--cz-blue); border-radius: 10px;
	padding: 14px 18px; margin: 0 0 1em; display: grid; gap: 6px;
}
.cz-modinfo-en { color: var(--cz-text-muted); font-size: .9em; letter-spacing: .03em; }
.cz-modinfo-desc { line-height: 1.7; max-width: 75ch; }
.cz-modinfo-links { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: .92em; }

/* ---------- Boss 方格 ---------- */
.cz-bossgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.cz-boss {
	background: #fff; border: 2px solid var(--cz-line-soft); border-radius: 8px;
	padding: 6px 8px; line-height: 1.3; display: flex; align-items: center; gap: 8px;
}
.cz-boss:hover { border-color: var(--cz-blue); }
.cz-boss .cz-icon { flex: 0 0 40px; height: 40px; display: flex; align-items: center; justify-content: center; }
.cz-boss .cz-icon img { max-width: 40px; max-height: 40px; width: auto; height: auto; }
.cz-boss-zh { font-weight: 700; display: block; }
.cz-boss-en { color: var(--cz-text-muted); font-size: .78em; display: block; }
.cz-boss.cz-super { border-color: #7b4fd0; }
/* 沒有圖示的 Boss 格(附加 MOD):中英文上下排 */
.cz-boss { flex-wrap: wrap; }
.cz-boss > .cz-boss-zh, .cz-boss > .cz-boss-en { flex-basis: 100%; }

/* ---------- 物品清單表格(由 build_wiki_pages.py 產生) ---------- */
.cz-itemtable td:first-child { text-align: center; width: 56px; }
.cz-itemtable img { max-width: 48px; max-height: 48px; width: auto; height: auto; }

/* ---------- 來源標註框(Template:來源) ---------- */
.cz-source {
	border: 2px solid var(--cz-line-soft); border-left: 6px solid var(--cz-blue); border-radius: 6px;
	padding: 8px 12px; margin: 0 0 1em; font-size: .92em; background: #f6f8fd;
}
.cz-en { font-family: ui-monospace, Consolas, monospace; font-size: .92em; }

/* ---------- 道具頁資訊框(Template:物品資訊框) ---------- */
.cz-infobox {
	float: right; clear: right; width: 300px; max-width: 100%; margin: 0 0 1em 1.4em;
	background: var(--cz-paper); border: 2px solid var(--cz-blue); border-radius: 10px; overflow: hidden;
	font-size: .92em;
}
.cz-infobox-title { background: var(--cz-blue); color: #fff; font-weight: 700; font-size: 1.15em; text-align: center; padding: 8px 10px; }
.cz-infobox-en { text-align: center; color: var(--cz-text-muted); font-size: .9em; padding: 4px 8px 0; }
.cz-infobox-image { text-align: center; padding: 12px 8px; }
.cz-infobox-image img { image-rendering: pixelated; max-width: 260px; height: auto; }
.cz-infobox-head { background: var(--cz-blue-soft); color: var(--cz-blue-dark); font-weight: 700; text-align: center; padding: 4px; border-top: 1px solid var(--cz-line-soft); }
.cz-infobox-table { width: 100%; border-collapse: collapse; }
.cz-infobox-table th { width: 32%; text-align: right; vertical-align: top; color: var(--cz-blue-dark); padding: 4px 8px; font-weight: 700; }
.cz-infobox-table td { padding: 4px 8px; vertical-align: top; }
.cz-infobox-table tr + tr th, .cz-infobox-table tr + tr td { border-top: 1px solid var(--cz-line-soft); }
.cz-infobox-tooltip { font-style: italic; line-height: 1.6; }
.cz-infobox-foot { text-align: center; padding: 6px; border-top: 1px solid var(--cz-line-soft); font-size: .9em; }
@media (max-width: 720px) { .cz-infobox { float: none; width: auto; margin: 0 0 1em; } }

/* ---------- 頁尾導覽框(Template:角色導覽,由 build_enemy_pages.py 產生) ---------- */
.cz-navbox {
	clear: both; margin: 1.5em 0 1em; background: var(--cz-paper); border: 2px solid var(--cz-blue);
	border-radius: 10px; overflow: hidden; font-size: .92em;
}
.cz-navbox-title { background: var(--cz-blue); color: #fff; font-weight: 700; text-align: center; padding: 6px 10px; }
.cz-navbox-title a, .cz-navbox-title a:visited { color: #fff; text-decoration: underline; }
.cz-navbox-sec { border-top: 1px solid var(--cz-line-soft); }
.cz-navbox-sec > .mw-collapsible-toggle { float: right; padding: 4px 10px; font-size: .9em; }
.cz-navbox-head { background: var(--cz-blue-soft); color: var(--cz-blue-dark); font-weight: 700; text-align: center; padding: 4px 10px; }
.cz-navbox-table { width: 100%; border-collapse: collapse; }
.cz-navbox-table th {
	width: 9em; text-align: right; vertical-align: top; white-space: nowrap; padding: 4px 10px;
	background: #f6f8fd; color: var(--cz-blue-dark); font-weight: 700; border-top: 1px solid var(--cz-line-soft);
}
.cz-navbox-table th + th { width: 6em; }
.cz-navbox-table td { padding: 4px 10px; line-height: 1.7; border-top: 1px solid var(--cz-line-soft); }

/* 合成配方表 */
.cz-recipe td { vertical-align: middle; }
.cz-recipe-item { display: inline-flex; align-items: center; gap: 4px; }
.cz-recipe-item img { image-rendering: pixelated; max-height: 32px; max-width: 32px; width: auto; height: auto; }

/* 「Boss 與小 Boss」方框:四欄並排(仿官方首頁) */
.cz-boss-cols { display: grid; gap: 4px 18px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); align-items: start; }
.cz-boss-col .cz-sub { margin-top: 0; }

/* 還沒有頁面的項目:灰字 */
.cz-todo, .cz-todo .cz-en { color: #9aa1b2; }

/* 物品清單的稀有度色塊(build_wiki_pages.rarity_cell) */
.cz-rarity { display: inline-block; width: .8em; height: .8em; margin-right: .35em; vertical-align: -1px;
	border: 1px solid rgba(0, 0, 0, .45); border-radius: 2px; }

/* 生態域頁的「內容」清單(wiki/biome_infocard.py,仿官方的 infocard) */
.cz-biome { border: 1px solid var(--cz-line-soft); border-radius: 4px; background: var(--cz-paper); margin: .6em 0 1em; overflow: hidden; }
.cz-biome-head { background: var(--cz-blue); color: #fff; font-weight: bold; text-align: left; padding: 4px 10px; }
.cz-biome-group { display: flex; flex-wrap: wrap; gap: 8px; padding: 8px; justify-content: flex-start; align-items: stretch; }
.cz-biome-box { border: 1px solid var(--cz-line-soft); border-radius: 4px; background: #fff; padding: 6px 10px; max-width: 100%; }
.cz-biome-title { font-weight: bold; color: var(--cz-blue-dark); text-align: left; border-bottom: 1px solid var(--cz-line-soft);
	margin-bottom: 4px; padding-bottom: 2px; font-size: .92em; }
.cz-biome-items { display: flex; flex-wrap: wrap; gap: 4px 14px; justify-content: flex-start; align-items: center; }
.cz-biome-note { color: var(--cz-text-muted); font-size: .85em; }
.cz-npc img { max-height: 60px; max-width: 150px; height: auto; width: auto; }  /* 敵人的圖比物品圖示大;蟲型是整條的長圖(官方清單裡寬 110~150px) */

/* 目次只列到第二層(音樂頁有一百多首曲目,各佔一個小標題) */
.toclimit-3 .toclevel-2 ul { display: none; }

/* Boss 頁開頭的紀念牌引言(wiki/boss_text/*.wiki) */
.cz-quote { text-align: center; font-size: 1.15em; font-style: italic; color: var(--cz-blue-dark); margin: .4em 0 .8em; }