MediaWiki:Common.css:修訂間差異

出自眾神廳
跳至導覽 跳至搜尋
無編輯摘要
無編輯摘要
 
(未顯示同一使用者於中間所作的 2次修訂)
第1行: 第1行:
/* =========================================================
/* =========================================================
   Encyclato 資訊面板
   Encyclato 全站樣式
   維基風格・靠右・分隔版
   維基經典風格
   適用:國家、艦級、裝甲車輛等所有 encyclato-infobox
 
  目錄
    1. 資訊面板本體
    2. 資訊面板標題
    3. 分區標題
    4. 欄名與內容
    5. 圖像與簽名
    6. 國旗與國徽
    7. 格言與國歌
    8. 歷代國旗與國徽(摺疊)
    9. 任期與前任繼任
  10. 跨欄內容、備註與頁尾
  11. 數值警告與分級
  12. 政黨色
  13. 維基標準表格
  14. 歷史朝代資訊面板
  15. 主條目提示(hatnote)
  16. 導覽框(navbox)
  17. 前後任接續框
  18. 公文與御批
  19. 參考文獻與輔助類別
  20. 窄螢幕
  21. 夜間模式
  22. 列印
========================================================= */
 
 
/* =========================================================
   1. 資訊面板本體
========================================================= */
========================================================= */


/* ---------- 1. 面板本體 ---------- */
table.encyclato-infobox {
table.encyclato-infobox {
     float: right !important;
     float: right !important;
第11行: 第38行:
     width: 22em;
     width: 22em;
     max-width: calc(100% - 1em);
     max-width: calc(100% - 1em);
     margin: 0 0 1em 1.25em !important;
     margin: 0.5em 0 0.5em 1em !important;
    padding: 0.2em;
     border: 1px solid #a2a9b1;
     border: 1px solid #a2a9b1;
     border-collapse: collapse;
     border-collapse: separate !important;
     border-spacing: 0;
     border-spacing: 3px !important;
     background: #f8f9fa;
     background-color: #f8f9fa;
     color: #202122;
     color: #202122;
     font-size: 90%;
     font-size: 88%;
     line-height: 1.24;
     line-height: 1.5em;
     box-sizing: border-box;
     box-sizing: border-box;
}
}
第26行: 第54行:
}
}


/* ---------- 2. 主標題 ---------- */
table.encyclato-infobox > tbody > tr > th,
table.encyclato-infobox > caption {
table.encyclato-infobox > tbody > tr > td {
     padding: 0.55em 0.6em;
    padding: 0.2em 0.4em;
     border: 1px solid #a2a9b1;
    border: 0;
     border-bottom: 0;
    vertical-align: top;
     background: #f8f9fa;
}
 
table.encyclato-infobox p {
    margin: 0;
}
 
table.encyclato-infobox ul,
table.encyclato-infobox ol {
    margin-top: 0;
    margin-bottom: 0;
}
 
table.encyclato-infobox img {
    max-width: 100%;
    height: auto;
}
 
table.encyclato-infobox small {
    font-size: 90%;
}
 
/* 空白列 */
table.encyclato-infobox > tbody > tr.infobox-hidden {
    display: none !important;
}
 
 
/* =========================================================
  2. 資訊面板標題
  caption:艦級、車輛等面板
  infobox-banner:國家、人物、政黨等面板
========================================================= */
 
table.encyclato-infobox > caption,
table.encyclato-infobox > tbody > tr > th.infobox-banner {
     padding: 0.2em 0.4em 0.3em;
     background: transparent;
     color: #202122;
     font-family: 'Linux Libertine', 'Georgia', 'Times', 'Noto Serif TC', 'Source Han Serif TC', 'Songti TC', 'PMingLiU', serif;
     font-size: 125%;
     font-size: 125%;
     font-weight: 700;
     font-weight: bold;
     line-height: 1.35;
     line-height: 1.3em;
     text-align: center;
     text-align: center;
}
}


table.encyclato-infobox .infobox-native-name {
table.encyclato-infobox .infobox-banner-title {
    font-size: 100%;
}
 
table.encyclato-infobox .infobox-native-name,
table.encyclato-infobox .infobox-banner-native {
    margin-top: 0.1em;
     font-size: 80%;
     font-size: 80%;
     font-weight: 400;
     font-weight: normal;
}
 
table.encyclato-infobox .infobox-banner-role {
    margin-top: 0.15em;
    font-family: sans-serif;
    font-size: 72%;
    font-weight: bold;
}
 
table.encyclato-infobox .infobox-banner-sub {
    margin-top: 0.2em;
    font-family: sans-serif;
    font-size: 68%;
    font-weight: normal;
}
 
/* 國家或政黨狀態:斜體小字 */
table.encyclato-infobox .infobox-status-wrap {
    margin-top: 0.15em;
    font-family: sans-serif;
    font-size: 68%;
    font-weight: normal;
}
 
table.encyclato-infobox .infobox-status {
    font-style: italic;
}
 
table.encyclato-infobox .infobox-status-active {
    color: #14866d;
}
}


/* ---------- 3. 一般儲存格 ---------- */
table.encyclato-infobox .infobox-status-defunct {
table.encyclato-infobox > tbody > tr > th,
     color: #54595d;
table.encyclato-infobox > tbody > tr > td {
    box-sizing: border-box;
    padding: 0.10em 0.48em;
     border-bottom: 1px solid #eaecf0;
    vertical-align: middle;
}
}


table.encyclato-infobox > tbody > tr:last-child > th,
 
table.encyclato-infobox > tbody > tr:last-child > td {
/* =========================================================
     border-bottom: 0;
  3. 分區標題
========================================================= */
 
table.encyclato-infobox > tbody > tr > th.infobox-section {
    padding: 0.2em 0.4em;
    border: 0 !important;
    background-color: #eaecf0;
    font-weight: bold;
     text-align: center;
}
}


/* 資料列 */
/* 次級標題,例如人物面板的職務名稱 */
table.encyclato-infobox > tbody > tr.infobox-row > th,
table.encyclato-infobox > tbody > tr > th.infobox-subsection {
table.encyclato-infobox > tbody > tr.infobox-row > td {
     padding: 0.2em 0.4em;
     padding-top: 0.10em;
    border: 0 !important;
     padding-bottom: 0.14em;
     background-color: #e6e6fa;
     line-height: 1.24;
    font-weight: bold;
     text-align: center;
}
}


/* ---------- 4. 欄名與內容 ---------- */
 
/* =========================================================
  4. 欄名與內容
========================================================= */
 
table.encyclato-infobox > tbody > tr > th.infobox-label {
table.encyclato-infobox > tbody > tr > th.infobox-label {
     width: 38%;
     width: auto;
     border-right: 1px solid #eaecf0;
     padding-right: 0.65em;
     background: #f8f9fa;
     background: transparent;
     font-weight: 600;
     font-weight: bold;
     text-align: center;
     text-align: left;
    white-space: nowrap;
}
}


table.encyclato-infobox > tbody > tr > th.infobox-label + td {
table.encyclato-infobox > tbody > tr > th.infobox-label + td {
    width: 62%;
     background: transparent;
     background: #ffffff;
     text-align: left;
     text-align: left;
     overflow-wrap: anywhere;
     overflow-wrap: anywhere;
}
}


/* 四字以內欄名兩端對齊 */
/* 四字以內的欄名兩端對齊 */
table.encyclato-infobox .infobox-label-text {
table.encyclato-infobox .infobox-label-text {
     display: inline-block;
     display: inline-block;
第88行: 第198行:
     text-align-last: justify;
     text-align-last: justify;
     text-justify: inter-character;
     text-justify: inter-character;
    white-space: nowrap;
}
}


/* 動態欄名(職稱、建立事件)允許換行 */
/* 職稱、建立事件等自訂欄名允許換行 */
table.encyclato-infobox > tbody > tr > th.infobox-label-dynamic {
table.encyclato-infobox > tbody > tr > th.infobox-label-dynamic {
     white-space: normal;
     white-space: normal;
    line-height: 1.35;
}
}


/* ---------- 5. 區塊標題 ---------- */
/* 第二行的補充資訊,例如出生地 */
/* 上框線同時充當上一區塊最後一列的底線 */
table.encyclato-infobox .infobox-subline {
table.encyclato-infobox > tbody > tr > th.infobox-section {
    display: block;
     padding: 0.34em 0.55em;
}
     border-top: 1px solid #a2a9b1;
 
     border-bottom: 1px solid #a2a9b1;
/* 年份與排名:括號小字 */
     background: #eaecf0;
table.encyclato-infobox .infobox-year,
    font-weight: 700;
table.encyclato-infobox .infobox-rank {
    text-align: center;
     margin-left: 0.2em;
     letter-spacing: 0.05em;
     color: #54595d;
     font-size: 90%;
     white-space: nowrap;
}
 
table.encyclato-infobox .infobox-year::before,
table.encyclato-infobox .infobox-rank::before {
     content: "(";
}
}


table.encyclato-infobox > tbody > tr > th.infobox-subsection {
table.encyclato-infobox .infobox-year::after,
    padding: 0.24em 0.55em;
table.encyclato-infobox .infobox-rank::after {
    border-top: 1px solid #a2a9b1;
     content: ")";
    border-bottom: 1px solid #c8ccd1;
    background: #f1f3f5;
     font-weight: 700;
    text-align: center;
}
}


/* ---------- 6. 國旗與國徽 ---------- */
 
table.encyclato-infobox > tbody > tr.infobox-symbol-row > td {
/* =========================================================
    width: 50%;
  5. 圖像與簽名
     padding: 0.4em 0.4em 0.35em;
========================================================= */
    background: #ffffff;
 
table.encyclato-infobox .infobox-image-cell,
table.encyclato-infobox .infobox-portrait-cell,
table.encyclato-infobox .infobox-map-cell,
table.encyclato-infobox .infobox-wide-image {
     padding: 0.4em 0.2em;
     text-align: center;
     text-align: center;
     vertical-align: middle;
     vertical-align: middle;
}
}


table.encyclato-infobox > tbody > tr.infobox-symbol-row > td + td {
table.encyclato-infobox .infobox-portrait-caption,
     border-left: 1px solid #eaecf0;
table.encyclato-infobox .infobox-map-caption {
     margin-top: 0.2em;
    font-size: 94%;
    line-height: 1.4em;
}
}


table.encyclato-infobox .infobox-symbol-name {
table.encyclato-infobox .infobox-signature-cell {
    padding: 0.4em 0.2em;
    text-align: center;
}
 
table.encyclato-infobox .infobox-signature-label {
     display: block;
     display: block;
     margin-bottom: 0.3em;
     font-weight: bold;
     font-weight: 600;
}
 
table.encyclato-infobox .infobox-signature-cell img {
    max-width: 150px;
    max-height: 80px;
    width: auto;
}
 
 
/* =========================================================
  6. 國旗與國徽
========================================================= */
 
table.encyclato-infobox .infobox-emblem-cell,
table.encyclato-infobox .infobox-symbol-cell {
    width: 50%;
    padding: 0.4em 0.2em;
     text-align: center;
    vertical-align: bottom;
}
}


table.encyclato-infobox .infobox-emblem-media,
table.encyclato-infobox .infobox-symbol-media {
table.encyclato-infobox .infobox-symbol-media {
     line-height: 0;
     line-height: 0;
    text-align: center;
}
}


table.encyclato-infobox .infobox-symbol-media img {
table.encyclato-infobox .infobox-flag-media img {
     display: inline-block;
    border: 1px solid #c8ccd1;
     vertical-align: middle;
}
 
table.encyclato-infobox .infobox-emblem-name,
table.encyclato-infobox .infobox-symbol-name {
     display: block;
    margin-top: 0.2em;
    font-size: 94%;
     font-weight: normal;
}
}


/* 移除 MediaWiki 自動插入的多餘段落與換行 */
table.encyclato-infobox .infobox-emblem-meta {
table.encyclato-infobox > tbody > tr.infobox-symbol-row p {
     display: block;
     margin: 0;
    color: #54595d;
     padding: 0;
    font-size: 85%;
     line-height: 1.4em;
}
}


table.encyclato-infobox > tbody > tr.infobox-symbol-row br:first-child,
/* 舊版國旗列的多餘換行修正 */
table.encyclato-infobox > tbody > tr.infobox-symbol-row br:last-child {
table.encyclato-infobox tr.infobox-symbol-row br:first-child,
table.encyclato-infobox tr.infobox-symbol-row br:last-child {
     display: none;
     display: none;
}
}


/* ---------- 7. 圖像 ---------- */
 
table.encyclato-infobox .infobox-wide-image,
/* =========================================================
table.encyclato-infobox .infobox-image-cell {
  7. 格言與國歌
     background: #ffffff;
========================================================= */
 
table.encyclato-infobox .infobox-motto-cell {
     padding: 0.3em 0.4em;
     text-align: center;
     text-align: center;
    vertical-align: middle;
}
}


table.encyclato-infobox .infobox-signature-cell {
table.encyclato-infobox .infobox-motto-line {
     background: #ffffff;
     margin: 0.1em 0;
    text-align: center;
    vertical-align: middle;
}
}


table.encyclato-infobox .infobox-signature-cell img {
table.encyclato-infobox .infobox-motto-label {
     max-width: 150px;
     margin-right: 0.3em;
     max-height: 80px;
     font-weight: bold;
    width: auto;
}
}


table.encyclato-infobox img {
table.encyclato-infobox .infobox-motto-label::after {
    max-width: 100%;
     content: ":";
     height: auto;
}
}


/* ---------- 8. 跨欄內容與備註 ---------- */
 
/* 跨兩欄的清單內容,例如艦艇或車輛的變體 */
/* =========================================================
table.encyclato-infobox .infobox-wide-cell {
  8. 歷代國旗與國徽(摺疊)
     padding: 0.3em 0.55em;
========================================================= */
    background: #ffffff;
 
    text-align: left;
table.encyclato-infobox .infobox-history-cell {
     padding: 0.2em 0.4em;
}
}


table.encyclato-infobox .infobox-note {
table.encyclato-infobox .infobox-history-title {
     padding: 0.55em 0.65em;
     font-weight: bold;
    background: #ffffff;
     text-align: center;
     font-size: 85%;
}
}


/* ---------- 9. 儲存格內的段落與清單 ---------- */
table.encyclato-infobox .mw-collapsible-toggle {
table.encyclato-infobox th p,
     float: right;
table.encyclato-infobox td p {
    font-weight: normal;
     margin: 0;
}
}


table.encyclato-infobox th ul,
table.encyclato-infobox .infobox-history-item {
table.encyclato-infobox th ol,
     display: flex;
table.encyclato-infobox td ul,
    align-items: flex-end;
table.encyclato-infobox td ol {
    gap: 0.4em;
     margin-top: 0.15em;
     padding: 0.4em 0 0.2em;
     margin-bottom: 0.15em;
}
}


/* ---------- 10. 空白列 ---------- */
table.encyclato-infobox .infobox-history-col {
table.encyclato-infobox > tbody > tr.infobox-hidden {
     flex: 1 1 50%;
     display: none !important;
    text-align: center;
}
}


/* ---------- 11. 窄螢幕(保持靠右浮動)---------- */
@media screen and (max-width: 520px) {
    table.encyclato-infobox {
        width: 21em;
        max-width: calc(100% - 0.5em);
        margin: 0 0 1em 0.75em !important;
    }


    table.encyclato-infobox > caption {
/* =========================================================
        font-size: 120%;
  9. 任期與前任繼任
    }
========================================================= */
 
table.encyclato-infobox .infobox-term-cell {
    padding: 0.1em 0.4em 0.3em;
    text-align: center;
}


    table.encyclato-infobox > tbody > tr > th.infobox-label {
table.encyclato-infobox .infobox-succession-cell {
        width: 39%;
    width: 50%;
     }
     padding: 0.2em 0.4em;
    text-align: center;
    vertical-align: top;
}


    table.encyclato-infobox > tbody > tr > th.infobox-label + td {
table.encyclato-infobox .infobox-succession-label {
        width: 61%;
    display: block;
     }
     font-weight: bold;
}
}


/* =========================================================
/* =========================================================
   國家資訊面板・橫幅版(現代質感配色)
   10. 跨欄內容、備註與頁尾
  只作用於 .encyclato-country
========================================================= */
========================================================= */


/* ---------- 外框 ---------- */
table.encyclato-infobox .infobox-wide-cell {
table.encyclato-infobox.encyclato-country {
     padding: 0.2em 0.4em;
     width: 23em;
     text-align: left;
     border: 1px solid #d5d9e0;
}
    border-collapse: separate !important;
 
    border-spacing: 0 !important;
table.encyclato-infobox .infobox-note {
    border-radius: 8px;
     padding: 0.3em 0.4em;
     background: #ffffff;
     font-size: 90%;
    color: #1f2328;
     text-align: left;
     box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 4px 14px rgba(16, 24, 40, 0.06);
     line-height: 1.35;
}
}


/* ---------- 橫幅(淺色版) ---------- */
table.encyclato-infobox .infobox-footer-cell {
table.encyclato-infobox.encyclato-country th.infobox-banner {
     padding: 0.3em 0.4em;
     padding: 0.9em 0.9em 0.8em !important;
    border: 0;
    border-bottom: 2px solid #cdbd8f;
    border-radius: 7px 7px 0 0;
    background: linear-gradient(180deg, #fbfcfd 0%, #eef1f6 100%);
    color: #1f2a3c;
     text-align: center;
     text-align: center;
}
}


table.encyclato-infobox.encyclato-country th.infobox-banner a {
table.encyclato-infobox .infobox-footer-line + .infobox-footer-line {
     color: #2a4a7f;
    margin-top: 0.1em;
}
 
table.encyclato-infobox .infobox-footer-label {
     margin-right: 0.3em;
    font-weight: bold;
}
}


table.encyclato-infobox.encyclato-country .infobox-banner-title {
table.encyclato-infobox .infobox-footer-label::after {
    color: #1f2a3c;
     content: ":";
    font-size: 140%;
     font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.3;
}
}


table.encyclato-infobox.encyclato-country .infobox-banner-native {
 
     margin-top: 0.2em;
/* =========================================================
     color: #8a7a4b;
  11. 數值警告與分級
     font-size: 98%;
  不限定在資訊面板內,一般表格也可使用
     font-weight: 400;
========================================================= */
     letter-spacing: 0.25em;
 
.infobox-warning {
     margin-left: 0.3em;
     color: #d33;
     font-size: 85%;
     font-weight: bold;
     white-space: nowrap;
}
}


table.encyclato-infobox.encyclato-country .infobox-banner-sub {
.infobox-value-invalid {
    margin-top: 0.45em;
     color: #d33;
     color: #5b6472;
    font-size: 80%;
    font-weight: 400;
}
}


table.encyclato-infobox.encyclato-country .infobox-status-wrap {
.infobox-grade::after {
     margin-top: 0.6em;
     margin-left: 0.35em;
    font-weight: bold;
}
}


table.encyclato-infobox.encyclato-country .infobox-status {
/* 人類發展指數:越高越好 */
.infobox-hdi-1::after { content: "極高"; color: #006400; }
.infobox-hdi-2::after { content: "高";  color: #2e8b57; }
.infobox-hdi-3::after { content: "中";  color: #b8860b; }
.infobox-hdi-4::after { content: "低";  color: #b22222; }
 
/* 基尼係數:越低越平均 */
.infobox-gini-1::after { content: "極低"; color: #006400; }
.infobox-gini-2::after { content: "低";  color: #2e8b57; }
.infobox-gini-3::after { content: "中等"; color: #b8860b; }
.infobox-gini-4::after { content: "高";  color: #cc5500; }
.infobox-gini-5::after { content: "極高"; color: #b22222; }
 
 
/* =========================================================
  12. 政黨色
  party-bar-*:表頭上緣色條
  party-bg-*:執政或當選儲存格的淡色底
  party-swatch-*:文字前的小色塊
========================================================= */
 
/* 紫荊政友會 */
.party-bar-zijing    { border-top: 4px solid #6b4a8b !important; }
.party-bg-zijing    { background-color: #efe7f5 !important; }
.party-swatch-zijing { background-color: #6b4a8b; }
 
/* 中央黨(3701-3731) */
.party-bar-zhongyang    { border-top: 4px solid #8a6aa8 !important; }
.party-bg-zhongyang    { background-color: #f3edf8 !important; }
.party-swatch-zhongyang { background-color: #8a6aa8; }
 
/* 日月新潮流 */
.party-bar-riyue    { border-top: 4px solid #c9a227 !important; }
.party-bg-riyue    { background-color: #fbf3d9 !important; }
.party-swatch-riyue { background-color: #c9a227; }
 
/* 中間派 */
.party-bar-zhongjian    { border-top: 4px solid #9aa0a6 !important; }
.party-bg-zhongjian    { background-color: #eeeeee !important; }
.party-swatch-zhongjian { background-color: #9aa0a6; }
 
/* 聯合政府 */
.party-bg-coalition { background-color: #eeeeee !important; }
 
/* 其他與無黨籍 */
.party-bar-other    { border-top: 4px solid #c8ccd1 !important; }
.party-swatch-other { background-color: #c8ccd1; }
 
/* 色塊共用樣式 */
[class*="party-swatch-"] {
     display: inline-block;
     display: inline-block;
     padding: 0.08em 0.85em;
     width: 0.9em;
     border: 1px solid #d5dae2;
     height: 0.9em;
     border-radius: 1em;
     margin-right: 0.3em;
     background: #ffffff;
     border: 1px solid #a2a9b1;
    color: #3d4656;
     vertical-align: -0.1em;
     font-size: 76%;
    font-weight: 600;
    letter-spacing: 0.12em;
}
}


table.encyclato-infobox.encyclato-country .infobox-status-active {
 
     border-color: #c7e0d0;
/* =========================================================
     background: #e6f2ea;
  13. 維基標準表格
     color: #22603f;
========================================================= */
 
table.wikitable {
    margin: 1em 0;
    border: 1px solid #a2a9b1;
     border-collapse: collapse;
     background-color: #f8f9fa;
     color: #202122;
}
}


table.encyclato-infobox.encyclato-country .infobox-status-defunct {
table.wikitable > * > tr > th,
     border-color: #d7dade;
table.wikitable > * > tr > td {
     background: #eef0f2;
     padding: 0.2em 0.4em;
    color: #5b6270;
     border: 1px solid #a2a9b1;
}
}


/* ---------- 國旗與國徽 ---------- */
table.wikitable > * > tr > th {
table.encyclato-infobox.encyclato-country td.infobox-emblem-cell {
     background-color: #eaecf0;
     width: 50%;
    padding: 1em 0.4em 0.65em !important;
    border-bottom: 1px solid #eceef2;
    background: #ffffff;
     text-align: center;
     text-align: center;
    vertical-align: bottom;
}
}


table.encyclato-infobox.encyclato-country .infobox-emblem-media {
table.wikitable > caption {
     line-height: 0;
    padding: 0.2em 0;
     font-weight: bold;
}
}


table.encyclato-infobox.encyclato-country .infobox-flag-media img {
/* 列標題不加粗、靠左 */
     border: 1px solid #dfe3e8;
table.wikitable.plainrowheaders > * > tr > th[scope="row"] {
     box-shadow: 0 1px 3px rgba(16, 24, 40, 0.08);
     font-weight: normal;
     text-align: left;
}
}


table.encyclato-infobox.encyclato-country .infobox-emblem-name {
/* 合計列固定在底部,不參與排序 */
     display: block;
table.wikitable > * > tr.sortbottom > th,
    margin-top: 0.45em;
table.wikitable > * > tr.sortbottom > td {
    color: #1f2328;
     background-color: #eaecf0;
    font-size: 88%;
     font-weight: bold;
     font-weight: 600;
}
}


table.encyclato-infobox.encyclato-country .infobox-emblem-meta {
/* 數字欄靠右 */
     display: block;
table.wikitable .num {
    color: #6b7280;
     text-align: right;
    font-size: 75%;
     white-space: nowrap;
     line-height: 1.4;
}
}


/* ---------- 格言與國歌 ---------- */
/* 置中表格 */
table.encyclato-infobox.encyclato-country td.infobox-motto-cell {
table.wikitable.center {
     padding: 0.55em 0.85em !important;
     margin-left: auto;
    border-bottom: 1px solid #eceef2;
     margin-right: auto;
    background: #fafbfc;
    color: #1f2328;
    text-align: center;
     font-size: 92%;
}
}


table.encyclato-infobox.encyclato-country .infobox-motto-line {
/* 全寬表格 */
     margin: 0.15em 0;
table.wikitable.fullwidth {
     width: 100%;
}
}


table.encyclato-infobox.encyclato-country .infobox-motto-label {
    display: inline-block;
    margin-right: 0.55em;
    color: #8a7a4b;
    font-size: 80%;
    font-weight: 600;
    letter-spacing: 0.15em;
}


/* ---------- 歷代國旗與國徽 ---------- */
/* =========================================================
table.encyclato-infobox.encyclato-country td.infobox-history-cell {
  14. 歷史朝代資訊面板
     padding: 0.4em 0.75em !important;
  模板:歷史朝代資訊面板
     border-bottom: 1px solid #eceef2;
========================================================= */
     background: #fafbfc;
 
table.dynasty-info-table {
     width: 100%;
    margin: 1em 0;
     border: 1px solid #a2a9b1;
    border-collapse: collapse;
    border-spacing: 0;
     background: #fff;
    color: #202122;
    font-size: 95%;
    line-height: 1.45;
}
}


table.encyclato-infobox.encyclato-country .infobox-history-title {
table.dynasty-info-table > caption {
     color: #2a3548;
    padding: 0.55em 0.7em;
     font-size: 86%;
    border: 1px solid #a2a9b1;
    border-bottom: 0;
     background: #eaecf0;
     font-size: 125%;
     font-weight: 700;
     font-weight: 700;
    letter-spacing: 0.12em;
     text-align: center;
     text-align: center;
}
}


table.encyclato-infobox.encyclato-country .mw-collapsible-toggle {
table.dynasty-info-table > tbody > tr > th,
     float: right;
table.dynasty-info-table > tbody > tr > td {
     font-size: 80%;
     padding: 0.42em 0.6em;
    border: 1px solid #c8ccd1;
     vertical-align: middle;
}
}


table.encyclato-infobox.encyclato-country .infobox-history-item {
table.dynasty-info-table > tbody > tr.dynasty-info-head > th {
     display: flex;
     background: #eaecf0;
     align-items: flex-end;
     font-weight: 700;
     gap: 0.4em;
     text-align: center;
    padding: 0.6em 0 0.4em;
    border-top: 1px solid #eceef2;
}
}


table.encyclato-infobox.encyclato-country .infobox-history-item:first-child {
table.dynasty-info-table .dynasty-col-period { width: 12%; }
     margin-top: 0.4em;
table.dynasty-info-table .dynasty-col-name  { width: 16%; }
table.dynasty-info-table .dynasty-col-date  { width: 19%; }
table.dynasty-info-table .dynasty-col-story  { width: 53%; }
 
table.dynasty-info-table .dynasty-period {
    background: #f1f3f5;
    font-weight: 700;
     text-align: center;
    vertical-align: middle;
}
}


table.encyclato-infobox.encyclato-country .infobox-history-col {
table.dynasty-info-table .dynasty-name {
     flex: 1 1 50%;
     background: #fff;
    font-weight: 600;
     text-align: center;
     text-align: center;
}
}


/* ---------- 區塊標題 ---------- */
table.dynasty-info-table .dynasty-date {
table.encyclato-infobox.encyclato-country th.infobox-section {
     background: #fff;
    padding: 0.42em 0.6em !important;
    border-top: 1px solid #dde1e7 !important;
    border-bottom: 1px solid #dde1e7;
     background: #f3f5f8;
    color: #2a3548;
    font-size: 92%;
    font-weight: 700;
    letter-spacing: 0.2em;
     text-align: center;
     text-align: center;
    white-space: nowrap;
}
}


/* ---------- 資料列 ---------- */
table.dynasty-info-table .dynasty-story {
table.encyclato-infobox.encyclato-country tr.infobox-row > th,
     background: #fff;
table.encyclato-infobox.encyclato-country tr.infobox-row > td {
     text-align: left;
     padding-top: 0.3em !important;
    padding-bottom: 0.3em !important;
    border-bottom: 1px solid #f0f2f5;
     line-height: 1.4 !important;
}
}


table.encyclato-infobox.encyclato-country th.infobox-label {
table.dynasty-info-table > tbody > tr.dynasty-data-row:hover > td,
    width: 36%;
table.dynasty-info-table > tbody > tr.dynasty-data-row:hover > th {
    border-right: 1px solid #f0f2f5;
     background-color: #f8f9fa;
     background: #fafbfc;
}
    color: #4b5563;
 
     font-weight: 600;
table.dynasty-info-table > tbody > tr.dynasty-hidden {
     display: none;
}
}


table.encyclato-infobox.encyclato-country th.infobox-label + td {
 
     width: 64%;
/* =========================================================
     padding-left: 0.7em;
  15. 主條目提示(hatnote)
     background: #ffffff;
  用法:<div class="hatnote">另請參閱主條目:[[大奭學制]]</div>
    color: #1f2328;
========================================================= */
 
.hatnote {
     margin-bottom: 0.5em;
     padding-left: 1.6em;
     font-style: italic;
}
}


/* 年份與排名 */
.hatnote i {
table.encyclato-infobox.encyclato-country .infobox-year {
     font-style: normal;
    margin-left: 0.3em;
    color: #8b93a1;
     font-size: 80%;
}
}


table.encyclato-infobox.encyclato-country .infobox-year::before {
.hatnote + .hatnote {
     content: "(";
     margin-top: -0.5em;
}
}


table.encyclato-infobox.encyclato-country .infobox-year::after {
 
     content: ")";
/* =========================================================
  16. 導覽框(navbox)
  置於條目底部,串連同一主題的條目
========================================================= */
 
table.navbox {
    clear: both;
    width: 100%;
    margin: 1em auto 0;
    padding: 1px;
    border: 1px solid #a2a9b1;
    border-spacing: 0;
    background-color: #fdfdfd;
    font-size: 88%;
     text-align: center;
}
}


table.encyclato-infobox.encyclato-country .infobox-rank {
table.navbox + table.navbox {
    display: inline-block;
     margin-top: -1px;
     margin-left: 0.45em;
    padding: 0 0.55em;
    border: 1px solid #e3e6eb;
    border-radius: 0.8em;
    background: #f6f7f9;
    color: #4b5563;
    font-size: 74%;
    white-space: nowrap;
    vertical-align: 0.1em;
}
}


/* ---------- 地圖 ---------- */
table.navbox .navbox-title {
table.encyclato-infobox.encyclato-country td.infobox-map-cell {
     padding: 0.25em 1em;
     padding: 0.75em 0.6em 0.55em !important;
     background-color: #ccccff;
     border-bottom: 1px solid #eceef2;
     font-size: 114%;
     background: #ffffff;
     font-weight: bold;
     text-align: center;
}
}


table.encyclato-infobox.encyclato-country td.infobox-map-cell img {
table.navbox .navbox-group {
     border: 1px solid #e3e6eb;
    width: 1%;
    padding: 0.25em 1em;
    background-color: #ddddff;
    font-weight: bold;
    text-align: right;
     white-space: nowrap;
}
}


table.encyclato-infobox.encyclato-country .infobox-map-caption {
table.navbox .navbox-list {
     margin-top: 0.35em;
     padding: 0.25em 0.5em;
     color: #6b7280;
     border-left: 2px solid #fdfdfd;
     font-size: 78%;
     text-align: left;
    line-height: 1.6em;
}
}


/* ---------- 備註與頁尾 ---------- */
table.navbox .navbox-even {
table.encyclato-infobox.encyclato-country td.infobox-note {
     background-color: #f7f7f7;
    padding: 0.55em 0.85em !important;
     background: #fafbfc;
    color: #5b6472;
    font-size: 80%;
}
}


table.encyclato-infobox.encyclato-country td.infobox-footer-cell {
table.navbox .navbox-odd {
     padding: 0.5em 0.6em !important;
     background-color: transparent;
    border-top: 1px solid #dde1e7;
    border-bottom: 0;
    border-radius: 0 0 7px 7px;
    background: #f3f5f8;
    color: #1f2328;
    font-size: 85%;
    text-align: center;
}
}


table.encyclato-infobox.encyclato-country .infobox-footer-label {
/* 清單項目以「・」分隔 */
     margin-right: 0.6em;
table.navbox .navbox-list ul {
     color: #8a7a4b;
     display: inline;
     font-size: 86%;
     margin: 0;
    font-weight: 600;
     padding: 0;
     letter-spacing: 0.15em;
     list-style: none;
}
}


/* ---------- 窄螢幕 ---------- */
table.navbox .navbox-list li {
@media screen and (max-width: 520px) {
    display: inline;
    table.encyclato-infobox.encyclato-country {
     margin: 0;
        width: 21em;
}
     }


    table.encyclato-infobox.encyclato-country .infobox-banner-title {
table.navbox .navbox-list li + li::before {
        font-size: 125%;
    content: "・";
    }
    padding: 0 0.1em;
    font-weight: bold;
}
}


/* =========================================================
/* =========================================================
   資訊面板・數值警告與等級色(低飽和配色)
   17. 前後任接續框
  用於人物條目底部,標示前任與繼任
========================================================= */
========================================================= */


table.encyclato-infobox .infobox-warning {
table.succession-box {
     display: inline-block;
     clear: both;
     margin-left: 0.4em;
     width: 100%;
     padding: 0 0.5em;
     margin: 1em auto 0;
     border: 1px solid #efc9c5;
     border: 1px solid #a2a9b1;
     border-radius: 0.3em;
     border-collapse: collapse;
     background: #fcf1f0;
     background-color: #f8f9fa;
    color: #a3392f;
     font-size: 90%;
     font-size: 74%;
     text-align: center;
     font-weight: 600;
    white-space: nowrap;
}
}


table.encyclato-infobox .infobox-value-invalid {
table.succession-box > * > tr > th,
     color: #a3392f;
table.succession-box > * > tr > td {
     font-weight: 600;
     padding: 0.3em 0.6em;
    text-decoration: underline wavy #d98b84;
     border: 1px solid #a2a9b1;
}
}


table.encyclato-infobox .infobox-grade {
table.succession-box > * > tr > th {
     display: inline-block;
     background-color: #eaecf0;
    padding: 0 0.5em;
    border: 1px solid transparent;
    border-radius: 0.3em;
    font-weight: 700;
}
}


table.encyclato-infobox .infobox-grade::after {
table.succession-box .succession-before,
    margin-left: 0.45em;
table.succession-box .succession-after {
     font-size: 78%;
     width: 30%;
    font-weight: 500;
    opacity: 0.85;
}
}


/* 人類發展指數:越高越好 */
table.succession-box .succession-title {
table.encyclato-infobox .infobox-hdi-1 { background: #e6f2ea; border-color: #c7e0d0; color: #22603f; }
    width: 40%;
table.encyclato-infobox .infobox-hdi-1::after { content: "極高"; }
    font-weight: bold;
table.encyclato-infobox .infobox-hdi-2 { background: #eff4e3; border-color: #d6e2bd; color: #4f6322; }
}
table.encyclato-infobox .infobox-hdi-2::after { content: "高"; }
table.encyclato-infobox .infobox-hdi-3 { background: #faf3de; border-color: #eadcaa; color: #7a5d17; }
table.encyclato-infobox .infobox-hdi-3::after { content: "中"; }
table.encyclato-infobox .infobox-hdi-4 { background: #f9e7e5; border-color: #ecc7c2; color: #933a31; }
table.encyclato-infobox .infobox-hdi-4::after { content: "低"; }


/* 基尼係數:越低越平均 */
table.encyclato-infobox .infobox-gini-1 { background: #e6f2ea; border-color: #c7e0d0; color: #22603f; }
table.encyclato-infobox .infobox-gini-1::after { content: "極低"; }
table.encyclato-infobox .infobox-gini-2 { background: #eff4e3; border-color: #d6e2bd; color: #4f6322; }
table.encyclato-infobox .infobox-gini-2::after { content: "低"; }
table.encyclato-infobox .infobox-gini-3 { background: #faf3de; border-color: #eadcaa; color: #7a5d17; }
table.encyclato-infobox .infobox-gini-3::after { content: "中等"; }
table.encyclato-infobox .infobox-gini-4 { background: #fbece0; border-color: #edcfb4; color: #8a4d1c; }
table.encyclato-infobox .infobox-gini-4::after { content: "高"; }
table.encyclato-infobox .infobox-gini-5 { background: #f9e7e5; border-color: #ecc7c2; color: #933a31; }
table.encyclato-infobox .infobox-gini-5::after { content: "極高"; }


/* =========================================================
/* =========================================================
   全站資訊面板・統一色調
   18. 公文與御批
   讓非國家面板也套用相同的現代配色
   用於呈現奏摺、政牒、咨牒、札等公文原文
========================================================= */
========================================================= */


table.encyclato-infobox:not(.encyclato-country) {
.encyclato-document {
     border-color: #d5d9e0;
    max-width: 48em;
     background: #ffffff;
    margin: 1em 0;
     color: #1f2328;
    padding: 1em 1.4em;
     box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 4px 14px rgba(16, 24, 40, 0.06);
     border: 1px solid #c8b99a;
     background-color: #fbf8f1;
     color: #202122;
     font-family: 'Noto Serif TC', 'Source Han Serif TC', 'Songti TC', 'PMingLiU', serif;
    line-height: 1.9;
}
}


table.encyclato-infobox:not(.encyclato-country) > caption {
.encyclato-document .doc-title {
     border-color: #d5d9e0;
     margin-bottom: 0.6em;
     border-bottom: 2px solid #cdbd8f;
     font-size: 110%;
     background: linear-gradient(180deg, #fbfcfd 0%, #eef1f6 100%);
     font-weight: bold;
    color: #1f2a3c;
     text-align: center;
     letter-spacing: 0.06em;
}
}


table.encyclato-infobox:not(.encyclato-country) > tbody > tr > th.infobox-section {
.encyclato-document .doc-route {
     border-top-color: #dde1e7 !important;
     margin-bottom: 0.8em;
     border-bottom-color: #dde1e7;
    color: #54595d;
     background: #f3f5f8;
     font-size: 90%;
     color: #2a3548;
     text-align: center;
     letter-spacing: 0.2em;
}
 
.encyclato-document .doc-body p {
     margin: 0.4em 0;
     text-indent: 2em;
}
}


table.encyclato-infobox:not(.encyclato-country) > tbody > tr > th.infobox-label {
/* 挪抬:於敬稱前自動空一格 */
    border-right-color: #f0f2f5;
.encyclato-document .doc-honor::before {
    background: #fafbfc;
     content: "\3000";
     color: #4b5563;
}
}


table.encyclato-infobox:not(.encyclato-country) > tbody > tr > th,
/* 落款與文號 */
table.encyclato-infobox:not(.encyclato-country) > tbody > tr > td {
.encyclato-document .doc-sign {
     border-bottom-color: #f0f2f5;
    margin-top: 1em;
     color: #202122;
    text-align: right;
}
}
/* =========================================================
  人物資訊面板
========================================================= */


/* 頭銜 */
.encyclato-document .doc-number {
table.encyclato-infobox.encyclato-person .infobox-banner-role {
     color: #54595d;
    margin-top: 0.35em;
     font-size: 90%;
     color: #8a7a4b;
     text-align: right;
     font-size: 86%;
     font-weight: 600;
    letter-spacing: 0.1em;
}
}


/* 肖像 */
/* 御批:硃筆 */
table.encyclato-infobox.encyclato-person td.infobox-portrait-cell {
.encyclato-document .doc-vermilion,
     padding: 0.85em 0.6em 0.65em !important;
.doc-vermilion {
     border-bottom: 1px solid #eceef2;
     color: #b8262b;
     background: #ffffff;
     font-family: 'DFKai-SB', 'BiauKai', 'Kaiti TC', 'STKaiti', 'KaiTi', serif;
     text-align: center;
     font-size: 112%;
     font-weight: bold;
}
}


table.encyclato-infobox.encyclato-person td.infobox-portrait-cell img {
.encyclato-document .doc-vermilion-block {
     border: 1px solid #e3e6eb;
     margin-top: 1em;
     border-radius: 4px;
     padding-top: 0.6em;
     box-shadow: 0 1px 3px rgba(16, 24, 40, 0.08);
     border-top: 1px dashed #c8b99a;
}
}


table.encyclato-infobox.encyclato-person .infobox-portrait-caption {
 
     margin-top: 0.45em;
/* =========================================================
    color: #6b7280;
  19. 參考文獻與輔助類別
     font-size: 78%;
========================================================= */
     line-height: 1.4;
 
.reflist {
     margin-bottom: 0.5em;
     font-size: 90%;
     column-width: 30em;
}
}


/* 出生地、逝世地等第二行 */
.reflist ol.references {
table.encyclato-infobox.encyclato-person .infobox-subline {
     margin-top: 0;
     display: block;
    color: #6b7280;
    font-size: 88%;
}
}


/* 職務標題 */
.nowrap {
table.encyclato-infobox.encyclato-person > tbody > tr > th.infobox-subsection {
     white-space: nowrap;
     padding: 0.4em 0.6em !important;
    border-top: 1px solid #ebe3cc !important;
    border-bottom: 1px solid #ebe3cc;
    background: #faf7ef;
    color: #5c4d24;
    font-size: 90%;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-align: center;
}
}


/* 任期 */
.plainlist ul {
table.encyclato-infobox.encyclato-person td.infobox-term-cell {
     margin: 0;
     padding: 0.25em 0.6em 0.35em !important;
     padding: 0;
     border-bottom: 1px solid #f0f2f5;
     list-style: none;
    background: #ffffff;
    color: #4b5563;
    font-size: 84%;
     text-align: center;
}
}


/* 前任|繼任 */
.plainlist li {
table.encyclato-infobox.encyclato-person td.infobox-succession-cell {
     margin-bottom: 0;
     width: 50%;
    padding: 0.35em 0.5em !important;
    border-bottom: 1px solid #f0f2f5;
    background: #ffffff;
    font-size: 86%;
    text-align: center;
    vertical-align: top;
}
}


table.encyclato-infobox.encyclato-person td.infobox-succession-cell + td.infobox-succession-cell {
.muted {
     border-left: 1px solid #f0f2f5;
     color: #54595d;
}
}


table.encyclato-infobox.encyclato-person .infobox-succession-label {
 
    display: block;
/* =========================================================
    color: #8b93a1;
  20. 窄螢幕
     font-size: 80%;
========================================================= */
     letter-spacing: 0.15em;
 
@media screen and (max-width: 720px) {
    table.wikitable,
    table.succession-box {
        display: block;
        overflow-x: auto;
     }
 
    table.navbox .navbox-group {
        white-space: normal;
     }
 
    .encyclato-document {
        padding: 0.8em 1em;
    }
}
}


/* 簽名 */
@media screen and (max-width: 520px) {
table.encyclato-infobox.encyclato-person td.infobox-signature-cell {
    table.encyclato-infobox {
    padding: 0.6em !important;
        width: 20em;
    border-top: 1px solid #eceef2;
        max-width: calc(100% - 0.5em);
    background: #ffffff;
        margin: 0.5em 0 0.5em 0.6em !important;
     text-align: center;
     }
}
}


table.encyclato-infobox.encyclato-person .infobox-signature-label {
 
     display: block;
/* =========================================================
     margin-bottom: 0.3em;
  21. 夜間模式
     color: #8b93a1;
  適用 MediaWiki 1.43 以後的 Vector 2022 外觀
     font-size: 78%;
========================================================= */
     letter-spacing: 0.2em;
 
@media screen {
    html.skin-theme-clientpref-night table.encyclato-infobox,
    html.skin-theme-clientpref-night table.wikitable,
    html.skin-theme-clientpref-night table.succession-box,
    html.skin-theme-clientpref-night table.dynasty-info-table {
        border-color: #72777d;
        background-color: #1b1d20;
        color: #eaecf0;
    }
 
    html.skin-theme-clientpref-night table.encyclato-infobox > caption,
    html.skin-theme-clientpref-night table.encyclato-infobox th.infobox-banner {
        color: #eaecf0;
    }
 
    html.skin-theme-clientpref-night table.encyclato-infobox th.infobox-section,
    html.skin-theme-clientpref-night table.wikitable > * > tr > th,
    html.skin-theme-clientpref-night table.succession-box > * > tr > th,
    html.skin-theme-clientpref-night table.dynasty-info-table th {
        background-color: #2a2d31;
        color: #eaecf0;
    }
 
     html.skin-theme-clientpref-night table.encyclato-infobox th.infobox-subsection {
        background-color: #2e2b45;
     }
 
    html.skin-theme-clientpref-night table.wikitable > * > tr > th,
    html.skin-theme-clientpref-night table.wikitable > * > tr > td,
    html.skin-theme-clientpref-night table.dynasty-info-table td {
        border-color: #72777d;
    }
 
    html.skin-theme-clientpref-night table.dynasty-info-table td {
        background-color: #1b1d20;
    }
 
    html.skin-theme-clientpref-night .encyclato-document {
        border-color: #6b5f47;
        background-color: #22201b;
        color: #eaecf0;
    }
 
    html.skin-theme-clientpref-night .doc-vermilion {
        color: #ff6b6b;
    }
 
    html.skin-theme-clientpref-night table.navbox {
        background-color: #1b1d20;
    }
 
    html.skin-theme-clientpref-night table.navbox .navbox-title {
        background-color: #3a3a66;
    }
 
    html.skin-theme-clientpref-night table.navbox .navbox-group {
        background-color: #2e2e52;
     }
 
    html.skin-theme-clientpref-night table.navbox .navbox-even {
        background-color: #232528;
     }
 
    html.skin-theme-clientpref-night .party-bg-zijing    { background-color: #3a2d47 !important; }
     html.skin-theme-clientpref-night .party-bg-zhongyang { background-color: #3d3148 !important; }
    html.skin-theme-clientpref-night .party-bg-riyue    { background-color: #45391a !important; }
    html.skin-theme-clientpref-night .party-bg-zhongjian,
    html.skin-theme-clientpref-night .party-bg-coalition { background-color: #34373b !important; }
}
}


/* 頁尾多行 */
 
table.encyclato-infobox.encyclato-person .infobox-footer-line + .infobox-footer-line {
/* =========================================================
    margin-top: 0.2em;
  22. 列印
========================================================= */
 
@media print {
    table.encyclato-infobox {
        border-color: #000;
        background: #fff !important;
    }
 
    table.navbox,
    .mw-collapsible-toggle {
        display: none !important;
    }
 
    .encyclato-document {
        border-color: #000;
        background: #fff;
    }
}
}

2026年9月18日 (五) 12:58的最新修訂

/* =========================================================
   Encyclato 全站樣式
   維基經典風格

   目錄
    1. 資訊面板本體
    2. 資訊面板標題
    3. 分區標題
    4. 欄名與內容
    5. 圖像與簽名
    6. 國旗與國徽
    7. 格言與國歌
    8. 歷代國旗與國徽(摺疊)
    9. 任期與前任繼任
   10. 跨欄內容、備註與頁尾
   11. 數值警告與分級
   12. 政黨色
   13. 維基標準表格
   14. 歷史朝代資訊面板
   15. 主條目提示(hatnote)
   16. 導覽框(navbox)
   17. 前後任接續框
   18. 公文與御批
   19. 參考文獻與輔助類別
   20. 窄螢幕
   21. 夜間模式
   22. 列印
========================================================= */


/* =========================================================
   1. 資訊面板本體
========================================================= */

table.encyclato-infobox {
    float: right !important;
    clear: right !important;
    width: 22em;
    max-width: calc(100% - 1em);
    margin: 0.5em 0 0.5em 1em !important;
    padding: 0.2em;
    border: 1px solid #a2a9b1;
    border-collapse: separate !important;
    border-spacing: 3px !important;
    background-color: #f8f9fa;
    color: #202122;
    font-size: 88%;
    line-height: 1.5em;
    box-sizing: border-box;
}

table.encyclato-infobox + table.encyclato-infobox {
    clear: right;
}

table.encyclato-infobox > tbody > tr > th,
table.encyclato-infobox > tbody > tr > td {
    padding: 0.2em 0.4em;
    border: 0;
    vertical-align: top;
}

table.encyclato-infobox p {
    margin: 0;
}

table.encyclato-infobox ul,
table.encyclato-infobox ol {
    margin-top: 0;
    margin-bottom: 0;
}

table.encyclato-infobox img {
    max-width: 100%;
    height: auto;
}

table.encyclato-infobox small {
    font-size: 90%;
}

/* 空白列 */
table.encyclato-infobox > tbody > tr.infobox-hidden {
    display: none !important;
}


/* =========================================================
   2. 資訊面板標題
   caption:艦級、車輛等面板
   infobox-banner:國家、人物、政黨等面板
========================================================= */

table.encyclato-infobox > caption,
table.encyclato-infobox > tbody > tr > th.infobox-banner {
    padding: 0.2em 0.4em 0.3em;
    background: transparent;
    color: #202122;
    font-family: 'Linux Libertine', 'Georgia', 'Times', 'Noto Serif TC', 'Source Han Serif TC', 'Songti TC', 'PMingLiU', serif;
    font-size: 125%;
    font-weight: bold;
    line-height: 1.3em;
    text-align: center;
}

table.encyclato-infobox .infobox-banner-title {
    font-size: 100%;
}

table.encyclato-infobox .infobox-native-name,
table.encyclato-infobox .infobox-banner-native {
    margin-top: 0.1em;
    font-size: 80%;
    font-weight: normal;
}

table.encyclato-infobox .infobox-banner-role {
    margin-top: 0.15em;
    font-family: sans-serif;
    font-size: 72%;
    font-weight: bold;
}

table.encyclato-infobox .infobox-banner-sub {
    margin-top: 0.2em;
    font-family: sans-serif;
    font-size: 68%;
    font-weight: normal;
}

/* 國家或政黨狀態:斜體小字 */
table.encyclato-infobox .infobox-status-wrap {
    margin-top: 0.15em;
    font-family: sans-serif;
    font-size: 68%;
    font-weight: normal;
}

table.encyclato-infobox .infobox-status {
    font-style: italic;
}

table.encyclato-infobox .infobox-status-active {
    color: #14866d;
}

table.encyclato-infobox .infobox-status-defunct {
    color: #54595d;
}


/* =========================================================
   3. 分區標題
========================================================= */

table.encyclato-infobox > tbody > tr > th.infobox-section {
    padding: 0.2em 0.4em;
    border: 0 !important;
    background-color: #eaecf0;
    font-weight: bold;
    text-align: center;
}

/* 次級標題,例如人物面板的職務名稱 */
table.encyclato-infobox > tbody > tr > th.infobox-subsection {
    padding: 0.2em 0.4em;
    border: 0 !important;
    background-color: #e6e6fa;
    font-weight: bold;
    text-align: center;
}


/* =========================================================
   4. 欄名與內容
========================================================= */

table.encyclato-infobox > tbody > tr > th.infobox-label {
    width: auto;
    padding-right: 0.65em;
    background: transparent;
    font-weight: bold;
    text-align: left;
    white-space: nowrap;
}

table.encyclato-infobox > tbody > tr > th.infobox-label + td {
    background: transparent;
    text-align: left;
    overflow-wrap: anywhere;
}

/* 四字以內的欄名兩端對齊 */
table.encyclato-infobox .infobox-label-text {
    display: inline-block;
    width: 4em;
    text-align: justify;
    text-align-last: justify;
    text-justify: inter-character;
}

/* 職稱、建立事件等自訂欄名允許換行 */
table.encyclato-infobox > tbody > tr > th.infobox-label-dynamic {
    white-space: normal;
}

/* 第二行的補充資訊,例如出生地 */
table.encyclato-infobox .infobox-subline {
    display: block;
}

/* 年份與排名:括號小字 */
table.encyclato-infobox .infobox-year,
table.encyclato-infobox .infobox-rank {
    margin-left: 0.2em;
    color: #54595d;
    font-size: 90%;
    white-space: nowrap;
}

table.encyclato-infobox .infobox-year::before,
table.encyclato-infobox .infobox-rank::before {
    content: "(";
}

table.encyclato-infobox .infobox-year::after,
table.encyclato-infobox .infobox-rank::after {
    content: ")";
}


/* =========================================================
   5. 圖像與簽名
========================================================= */

table.encyclato-infobox .infobox-image-cell,
table.encyclato-infobox .infobox-portrait-cell,
table.encyclato-infobox .infobox-map-cell,
table.encyclato-infobox .infobox-wide-image {
    padding: 0.4em 0.2em;
    text-align: center;
    vertical-align: middle;
}

table.encyclato-infobox .infobox-portrait-caption,
table.encyclato-infobox .infobox-map-caption {
    margin-top: 0.2em;
    font-size: 94%;
    line-height: 1.4em;
}

table.encyclato-infobox .infobox-signature-cell {
    padding: 0.4em 0.2em;
    text-align: center;
}

table.encyclato-infobox .infobox-signature-label {
    display: block;
    font-weight: bold;
}

table.encyclato-infobox .infobox-signature-cell img {
    max-width: 150px;
    max-height: 80px;
    width: auto;
}


/* =========================================================
   6. 國旗與國徽
========================================================= */

table.encyclato-infobox .infobox-emblem-cell,
table.encyclato-infobox .infobox-symbol-cell {
    width: 50%;
    padding: 0.4em 0.2em;
    text-align: center;
    vertical-align: bottom;
}

table.encyclato-infobox .infobox-emblem-media,
table.encyclato-infobox .infobox-symbol-media {
    line-height: 0;
}

table.encyclato-infobox .infobox-flag-media img {
    border: 1px solid #c8ccd1;
}

table.encyclato-infobox .infobox-emblem-name,
table.encyclato-infobox .infobox-symbol-name {
    display: block;
    margin-top: 0.2em;
    font-size: 94%;
    font-weight: normal;
}

table.encyclato-infobox .infobox-emblem-meta {
    display: block;
    color: #54595d;
    font-size: 85%;
    line-height: 1.4em;
}

/* 舊版國旗列的多餘換行修正 */
table.encyclato-infobox tr.infobox-symbol-row br:first-child,
table.encyclato-infobox tr.infobox-symbol-row br:last-child {
    display: none;
}


/* =========================================================
   7. 格言與國歌
========================================================= */

table.encyclato-infobox .infobox-motto-cell {
    padding: 0.3em 0.4em;
    text-align: center;
}

table.encyclato-infobox .infobox-motto-line {
    margin: 0.1em 0;
}

table.encyclato-infobox .infobox-motto-label {
    margin-right: 0.3em;
    font-weight: bold;
}

table.encyclato-infobox .infobox-motto-label::after {
    content: ":";
}


/* =========================================================
   8. 歷代國旗與國徽(摺疊)
========================================================= */

table.encyclato-infobox .infobox-history-cell {
    padding: 0.2em 0.4em;
}

table.encyclato-infobox .infobox-history-title {
    font-weight: bold;
    text-align: center;
}

table.encyclato-infobox .mw-collapsible-toggle {
    float: right;
    font-weight: normal;
}

table.encyclato-infobox .infobox-history-item {
    display: flex;
    align-items: flex-end;
    gap: 0.4em;
    padding: 0.4em 0 0.2em;
}

table.encyclato-infobox .infobox-history-col {
    flex: 1 1 50%;
    text-align: center;
}


/* =========================================================
   9. 任期與前任繼任
========================================================= */

table.encyclato-infobox .infobox-term-cell {
    padding: 0.1em 0.4em 0.3em;
    text-align: center;
}

table.encyclato-infobox .infobox-succession-cell {
    width: 50%;
    padding: 0.2em 0.4em;
    text-align: center;
    vertical-align: top;
}

table.encyclato-infobox .infobox-succession-label {
    display: block;
    font-weight: bold;
}


/* =========================================================
   10. 跨欄內容、備註與頁尾
========================================================= */

table.encyclato-infobox .infobox-wide-cell {
    padding: 0.2em 0.4em;
    text-align: left;
}

table.encyclato-infobox .infobox-note {
    padding: 0.3em 0.4em;
    font-size: 90%;
    text-align: left;
}

table.encyclato-infobox .infobox-footer-cell {
    padding: 0.3em 0.4em;
    text-align: center;
}

table.encyclato-infobox .infobox-footer-line + .infobox-footer-line {
    margin-top: 0.1em;
}

table.encyclato-infobox .infobox-footer-label {
    margin-right: 0.3em;
    font-weight: bold;
}

table.encyclato-infobox .infobox-footer-label::after {
    content: ":";
}


/* =========================================================
   11. 數值警告與分級
   不限定在資訊面板內,一般表格也可使用
========================================================= */

.infobox-warning {
    margin-left: 0.3em;
    color: #d33;
    font-size: 85%;
    font-weight: bold;
    white-space: nowrap;
}

.infobox-value-invalid {
    color: #d33;
}

.infobox-grade::after {
    margin-left: 0.35em;
    font-weight: bold;
}

/* 人類發展指數:越高越好 */
.infobox-hdi-1::after { content: "極高"; color: #006400; }
.infobox-hdi-2::after { content: "高";   color: #2e8b57; }
.infobox-hdi-3::after { content: "中";   color: #b8860b; }
.infobox-hdi-4::after { content: "低";   color: #b22222; }

/* 基尼係數:越低越平均 */
.infobox-gini-1::after { content: "極低"; color: #006400; }
.infobox-gini-2::after { content: "低";   color: #2e8b57; }
.infobox-gini-3::after { content: "中等"; color: #b8860b; }
.infobox-gini-4::after { content: "高";   color: #cc5500; }
.infobox-gini-5::after { content: "極高"; color: #b22222; }


/* =========================================================
   12. 政黨色
   party-bar-*:表頭上緣色條
   party-bg-*:執政或當選儲存格的淡色底
   party-swatch-*:文字前的小色塊
========================================================= */

/* 紫荊政友會 */
.party-bar-zijing    { border-top: 4px solid #6b4a8b !important; }
.party-bg-zijing     { background-color: #efe7f5 !important; }
.party-swatch-zijing { background-color: #6b4a8b; }

/* 中央黨(3701-3731) */
.party-bar-zhongyang    { border-top: 4px solid #8a6aa8 !important; }
.party-bg-zhongyang     { background-color: #f3edf8 !important; }
.party-swatch-zhongyang { background-color: #8a6aa8; }

/* 日月新潮流 */
.party-bar-riyue    { border-top: 4px solid #c9a227 !important; }
.party-bg-riyue     { background-color: #fbf3d9 !important; }
.party-swatch-riyue { background-color: #c9a227; }

/* 中間派 */
.party-bar-zhongjian    { border-top: 4px solid #9aa0a6 !important; }
.party-bg-zhongjian     { background-color: #eeeeee !important; }
.party-swatch-zhongjian { background-color: #9aa0a6; }

/* 聯合政府 */
.party-bg-coalition { background-color: #eeeeee !important; }

/* 其他與無黨籍 */
.party-bar-other    { border-top: 4px solid #c8ccd1 !important; }
.party-swatch-other { background-color: #c8ccd1; }

/* 色塊共用樣式 */
[class*="party-swatch-"] {
    display: inline-block;
    width: 0.9em;
    height: 0.9em;
    margin-right: 0.3em;
    border: 1px solid #a2a9b1;
    vertical-align: -0.1em;
}


/* =========================================================
   13. 維基標準表格
========================================================= */

table.wikitable {
    margin: 1em 0;
    border: 1px solid #a2a9b1;
    border-collapse: collapse;
    background-color: #f8f9fa;
    color: #202122;
}

table.wikitable > * > tr > th,
table.wikitable > * > tr > td {
    padding: 0.2em 0.4em;
    border: 1px solid #a2a9b1;
}

table.wikitable > * > tr > th {
    background-color: #eaecf0;
    text-align: center;
}

table.wikitable > caption {
    padding: 0.2em 0;
    font-weight: bold;
}

/* 列標題不加粗、靠左 */
table.wikitable.plainrowheaders > * > tr > th[scope="row"] {
    font-weight: normal;
    text-align: left;
}

/* 合計列固定在底部,不參與排序 */
table.wikitable > * > tr.sortbottom > th,
table.wikitable > * > tr.sortbottom > td {
    background-color: #eaecf0;
    font-weight: bold;
}

/* 數字欄靠右 */
table.wikitable .num {
    text-align: right;
    white-space: nowrap;
}

/* 置中表格 */
table.wikitable.center {
    margin-left: auto;
    margin-right: auto;
}

/* 全寬表格 */
table.wikitable.fullwidth {
    width: 100%;
}


/* =========================================================
   14. 歷史朝代資訊面板
   模板:歷史朝代資訊面板
========================================================= */

table.dynasty-info-table {
    width: 100%;
    margin: 1em 0;
    border: 1px solid #a2a9b1;
    border-collapse: collapse;
    border-spacing: 0;
    background: #fff;
    color: #202122;
    font-size: 95%;
    line-height: 1.45;
}

table.dynasty-info-table > caption {
    padding: 0.55em 0.7em;
    border: 1px solid #a2a9b1;
    border-bottom: 0;
    background: #eaecf0;
    font-size: 125%;
    font-weight: 700;
    text-align: center;
}

table.dynasty-info-table > tbody > tr > th,
table.dynasty-info-table > tbody > tr > td {
    padding: 0.42em 0.6em;
    border: 1px solid #c8ccd1;
    vertical-align: middle;
}

table.dynasty-info-table > tbody > tr.dynasty-info-head > th {
    background: #eaecf0;
    font-weight: 700;
    text-align: center;
}

table.dynasty-info-table .dynasty-col-period { width: 12%; }
table.dynasty-info-table .dynasty-col-name   { width: 16%; }
table.dynasty-info-table .dynasty-col-date   { width: 19%; }
table.dynasty-info-table .dynasty-col-story  { width: 53%; }

table.dynasty-info-table .dynasty-period {
    background: #f1f3f5;
    font-weight: 700;
    text-align: center;
    vertical-align: middle;
}

table.dynasty-info-table .dynasty-name {
    background: #fff;
    font-weight: 600;
    text-align: center;
}

table.dynasty-info-table .dynasty-date {
    background: #fff;
    text-align: center;
    white-space: nowrap;
}

table.dynasty-info-table .dynasty-story {
    background: #fff;
    text-align: left;
}

table.dynasty-info-table > tbody > tr.dynasty-data-row:hover > td,
table.dynasty-info-table > tbody > tr.dynasty-data-row:hover > th {
    background-color: #f8f9fa;
}

table.dynasty-info-table > tbody > tr.dynasty-hidden {
    display: none;
}


/* =========================================================
   15. 主條目提示(hatnote)
   用法:<div class="hatnote">另請參閱主條目:[[大奭學制]]</div>
========================================================= */

.hatnote {
    margin-bottom: 0.5em;
    padding-left: 1.6em;
    font-style: italic;
}

.hatnote i {
    font-style: normal;
}

.hatnote + .hatnote {
    margin-top: -0.5em;
}


/* =========================================================
   16. 導覽框(navbox)
   置於條目底部,串連同一主題的條目
========================================================= */

table.navbox {
    clear: both;
    width: 100%;
    margin: 1em auto 0;
    padding: 1px;
    border: 1px solid #a2a9b1;
    border-spacing: 0;
    background-color: #fdfdfd;
    font-size: 88%;
    text-align: center;
}

table.navbox + table.navbox {
    margin-top: -1px;
}

table.navbox .navbox-title {
    padding: 0.25em 1em;
    background-color: #ccccff;
    font-size: 114%;
    font-weight: bold;
}

table.navbox .navbox-group {
    width: 1%;
    padding: 0.25em 1em;
    background-color: #ddddff;
    font-weight: bold;
    text-align: right;
    white-space: nowrap;
}

table.navbox .navbox-list {
    padding: 0.25em 0.5em;
    border-left: 2px solid #fdfdfd;
    text-align: left;
    line-height: 1.6em;
}

table.navbox .navbox-even {
    background-color: #f7f7f7;
}

table.navbox .navbox-odd {
    background-color: transparent;
}

/* 清單項目以「・」分隔 */
table.navbox .navbox-list ul {
    display: inline;
    margin: 0;
    padding: 0;
    list-style: none;
}

table.navbox .navbox-list li {
    display: inline;
    margin: 0;
}

table.navbox .navbox-list li + li::before {
    content: "・";
    padding: 0 0.1em;
    font-weight: bold;
}


/* =========================================================
   17. 前後任接續框
   用於人物條目底部,標示前任與繼任
========================================================= */

table.succession-box {
    clear: both;
    width: 100%;
    margin: 1em auto 0;
    border: 1px solid #a2a9b1;
    border-collapse: collapse;
    background-color: #f8f9fa;
    font-size: 90%;
    text-align: center;
}

table.succession-box > * > tr > th,
table.succession-box > * > tr > td {
    padding: 0.3em 0.6em;
    border: 1px solid #a2a9b1;
}

table.succession-box > * > tr > th {
    background-color: #eaecf0;
}

table.succession-box .succession-before,
table.succession-box .succession-after {
    width: 30%;
}

table.succession-box .succession-title {
    width: 40%;
    font-weight: bold;
}


/* =========================================================
   18. 公文與御批
   用於呈現奏摺、政牒、咨牒、札等公文原文
========================================================= */

.encyclato-document {
    max-width: 48em;
    margin: 1em 0;
    padding: 1em 1.4em;
    border: 1px solid #c8b99a;
    background-color: #fbf8f1;
    color: #202122;
    font-family: 'Noto Serif TC', 'Source Han Serif TC', 'Songti TC', 'PMingLiU', serif;
    line-height: 1.9;
}

.encyclato-document .doc-title {
    margin-bottom: 0.6em;
    font-size: 110%;
    font-weight: bold;
    text-align: center;
}

.encyclato-document .doc-route {
    margin-bottom: 0.8em;
    color: #54595d;
    font-size: 90%;
    text-align: center;
}

.encyclato-document .doc-body p {
    margin: 0.4em 0;
    text-indent: 2em;
}

/* 挪抬:於敬稱前自動空一格 */
.encyclato-document .doc-honor::before {
    content: "\3000";
}

/* 落款與文號 */
.encyclato-document .doc-sign {
    margin-top: 1em;
    color: #202122;
    text-align: right;
}

.encyclato-document .doc-number {
    color: #54595d;
    font-size: 90%;
    text-align: right;
}

/* 御批:硃筆 */
.encyclato-document .doc-vermilion,
.doc-vermilion {
    color: #b8262b;
    font-family: 'DFKai-SB', 'BiauKai', 'Kaiti TC', 'STKaiti', 'KaiTi', serif;
    font-size: 112%;
    font-weight: bold;
}

.encyclato-document .doc-vermilion-block {
    margin-top: 1em;
    padding-top: 0.6em;
    border-top: 1px dashed #c8b99a;
}


/* =========================================================
   19. 參考文獻與輔助類別
========================================================= */

.reflist {
    margin-bottom: 0.5em;
    font-size: 90%;
    column-width: 30em;
}

.reflist ol.references {
    margin-top: 0;
}

.nowrap {
    white-space: nowrap;
}

.plainlist ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.plainlist li {
    margin-bottom: 0;
}

.muted {
    color: #54595d;
}


/* =========================================================
   20. 窄螢幕
========================================================= */

@media screen and (max-width: 720px) {
    table.wikitable,
    table.succession-box {
        display: block;
        overflow-x: auto;
    }

    table.navbox .navbox-group {
        white-space: normal;
    }

    .encyclato-document {
        padding: 0.8em 1em;
    }
}

@media screen and (max-width: 520px) {
    table.encyclato-infobox {
        width: 20em;
        max-width: calc(100% - 0.5em);
        margin: 0.5em 0 0.5em 0.6em !important;
    }
}


/* =========================================================
   21. 夜間模式
   適用 MediaWiki 1.43 以後的 Vector 2022 外觀
========================================================= */

@media screen {
    html.skin-theme-clientpref-night table.encyclato-infobox,
    html.skin-theme-clientpref-night table.wikitable,
    html.skin-theme-clientpref-night table.succession-box,
    html.skin-theme-clientpref-night table.dynasty-info-table {
        border-color: #72777d;
        background-color: #1b1d20;
        color: #eaecf0;
    }

    html.skin-theme-clientpref-night table.encyclato-infobox > caption,
    html.skin-theme-clientpref-night table.encyclato-infobox th.infobox-banner {
        color: #eaecf0;
    }

    html.skin-theme-clientpref-night table.encyclato-infobox th.infobox-section,
    html.skin-theme-clientpref-night table.wikitable > * > tr > th,
    html.skin-theme-clientpref-night table.succession-box > * > tr > th,
    html.skin-theme-clientpref-night table.dynasty-info-table th {
        background-color: #2a2d31;
        color: #eaecf0;
    }

    html.skin-theme-clientpref-night table.encyclato-infobox th.infobox-subsection {
        background-color: #2e2b45;
    }

    html.skin-theme-clientpref-night table.wikitable > * > tr > th,
    html.skin-theme-clientpref-night table.wikitable > * > tr > td,
    html.skin-theme-clientpref-night table.dynasty-info-table td {
        border-color: #72777d;
    }

    html.skin-theme-clientpref-night table.dynasty-info-table td {
        background-color: #1b1d20;
    }

    html.skin-theme-clientpref-night .encyclato-document {
        border-color: #6b5f47;
        background-color: #22201b;
        color: #eaecf0;
    }

    html.skin-theme-clientpref-night .doc-vermilion {
        color: #ff6b6b;
    }

    html.skin-theme-clientpref-night table.navbox {
        background-color: #1b1d20;
    }

    html.skin-theme-clientpref-night table.navbox .navbox-title {
        background-color: #3a3a66;
    }

    html.skin-theme-clientpref-night table.navbox .navbox-group {
        background-color: #2e2e52;
    }

    html.skin-theme-clientpref-night table.navbox .navbox-even {
        background-color: #232528;
    }

    html.skin-theme-clientpref-night .party-bg-zijing    { background-color: #3a2d47 !important; }
    html.skin-theme-clientpref-night .party-bg-zhongyang { background-color: #3d3148 !important; }
    html.skin-theme-clientpref-night .party-bg-riyue     { background-color: #45391a !important; }
    html.skin-theme-clientpref-night .party-bg-zhongjian,
    html.skin-theme-clientpref-night .party-bg-coalition { background-color: #34373b !important; }
}


/* =========================================================
   22. 列印
========================================================= */

@media print {
    table.encyclato-infobox {
        border-color: #000;
        background: #fff !important;
    }

    table.navbox,
    .mw-collapsible-toggle {
        display: none !important;
    }

    .encyclato-document {
        border-color: #000;
        background: #fff;
    }
}