MediaWiki:Common.css:修订间差异

MediaWiki界面页面
无编辑摘要
标签:已被回退
小无编辑摘要
 
(未显示3个用户的32个中间版本)
第1行: 第1行:
/* 这里放置的CSS将应用于所有皮肤 */
/* =====================================================
  星海市 Wiki — 全局样式
  ===================================================== */


.wikitable-routes tr th, .wikitable-routes tr td {
/* =====================================================
    font-size: 1rem !important;
  0. 主题色变量
    padding: 5px 10px 5px 0 !important;
  浅色为默认值,深色由 .skin-citizen-dark 覆盖
}
  ===================================================== */
.wikitable-routes tr td:first-child {
    border-right: 10px solid white;
}
.wikitable-routes tr td:only-child {
    background-color: #f5f5f5 !important;
}
.wikitable-routes tr th {
    background-color: #eee !important;
}


/* CI Forms */
:root {
*:has( [ class*='ci_form' ] ) {
    --xh-card-bg:      #ffffff;
        box-sizing: border-box;
    --xh-card-bg-soft:  #fbfefe;
    --xh-cover-bg:      #f3f4f6;
    --xh-border:       #e5e7eb;
    --xh-border-light: #f3f4f6;
    --xh-border-inner:  #f0f0f0;
    --xh-text-strong:  #111827;
    --xh-text:          #4b5563;
    --xh-text-soft:    #6b7280;
    --xh-text-faint:    #9ca3af;
    --xh-header-bar-bg: #111827;
    --xh-float-bg:      rgba(255, 255, 255, 0.92);
}
}


.ci_text_highlight {
/* ---- 深色模式(Citizen 皮肤)---- */
        color: #00f;
.skin-citizen-dark {
        background: #f5f5f5;
    --xh-card-bg:      #1e242c;
    --xh-card-bg-soft: #18232a;
    --xh-cover-bg:     #2a3038;
    --xh-border:        #2d3540;
    --xh-border-light:  #2d3540;
    --xh-border-inner:  #2d3540;
    --xh-text-strong:  #e8eaed;
    --xh-text:          #b8bfc8;
    --xh-text-soft:    #9aa0a6;
    --xh-text-faint:    #80868b;
    --xh-header-bar-bg: #2d3540;
    --xh-float-bg:      rgba(30, 36, 44, 0.94);
}
}


.ci_form_section_inputs_row label {
/* -----------------------------------------------------
        display: inline-block;
  1. 首页标题与标签隐藏
        padding: 4px 0;
  ----------------------------------------------------- */
}
.page-首页 #p-namespaces,
.page-首页 #p-associated-pages,
.page-首页 #p-views,
.page-首页 #p-cactions { display: none !important; }


.ci_form_section_inputs_col-25 {
.page-首页 #siteSub,
        float: left;
.page-首页 .siteSub { display: none !important; }
        width: 25%;
        margin-top: 6px;
}


.ci_form_section_inputs_col-75 {
.page-首页 #firstHeading,
        float: left;
.page-首页 .firstHeading { display: none !important; }
        width: 75%;
        margin-top: 6px;
}


.ci_form_section_inputs_inner_col {
/* -----------------------------------------------------
        -webkit-box-sizing: border-box;
  2. 首页头图
        -moz-box-sizing: border-box;
  ----------------------------------------------------- */
        box-sizing: border-box;
.xh-banner {
        padding: 0 4px;
    position: relative;
    height: 260px;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 1rem;
    background-image: url('https://www.xhcity.top/w/images/xhcity/9/9d/XHSBANNER.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #0f8f87;
}
}


.ci_form_section_inputs_row {
.xh-banner-text {
        margin-bottom: 12px;
    position: absolute;
    left: 2rem; bottom: 1.5rem; right: 2rem;
    color: white;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.65);
}
}
 
.xh-banner-text .sub {
.ci_form_section.inputs.rows .ci_form_section_inputs_row {
    font-size: 0.7rem; letter-spacing: 0.22em;
        margin-bottom: 16px;
    text-transform: uppercase; opacity: 0.85;
    margin-bottom: 0.4rem;
}
}
 
.xh-banner-text .title {
.ci_form_section_inputs_row:after {
    font-size: 2.2rem; font-weight: 800;
        content: '';
    line-height: 1.1; letter-spacing: -0.02em;
        display: table;
        clear: both;
}
}
 
.xh-banner-text .desc {
@media screen and ( max-width: 600px ) {
    font-size: 0.88rem; opacity: 0.88; margin-top: 0.45rem;
        .ci_form_section_inputs_col-25,
        .ci_form_section_inputs_col-75,
        input[ type='submit' ] {
                width: 100%;
                margin-top: 0;
        }
}
}


.ci_form_section_cloze_test_list_question input,
/* -----------------------------------------------------
.ci_form_section_multiple_choice_list input[ type='text' ],
  3. 通用裁切图片框
.ci_form_section_multiple_choice_list .input,
  ----------------------------------------------------- */
.ci_form_section_cloze_test_list_question .input {
.xh-cover-bg {
        outline: none;
    overflow: hidden;
        border: none;
    border-radius: 4px;
        border-bottom: 1px dotted #000;
    background-color: var(--xh-cover-bg);
        min-width: 6em;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    line-height: 0;
}
}
.xh-cover-169 { aspect-ratio: 16 / 9; }
.xh-cover-32  { aspect-ratio: 3 / 2; }
.xh-cover-43  { aspect-ratio: 4 / 3; }
.xh-cover-11  { aspect-ratio: 1 / 1; }


.ci_form_section_multiple_choice_list input[ type='checkbox' ],
.xh-cover-rp      { background-image: url('https://www.xhcity.top/w/images/xhcity/8/81/Rp_web.webp'); }
.ci_form_section_multiple_choice_list input[ type='radio' ] {
.xh-cover-terra  { background-image: url('https://www.xhcity.top/w/images/xhcity/b/bb/Terra_mod.webp'); }
        margin: 3px 3px 3px 4px;
.xh-cover-g1      { background-image: url('https://www.xhcity.top/w/images/xhcity/8/8c/G1.webp'); }
}
.xh-cover-g2      { background-image: url('https://www.xhcity.top/w/images/xhcity/d/d0/G2.webp'); }
.xh-cover-g3      { background-image: url('https://www.xhcity.top/w/images/xhcity/c/cd/G3.webp'); }
.xh-cover-g4      { background-image: url('https://www.xhcity.top/w/images/xhcity/3/36/G4.webp'); }
.xh-cover-transit { background-image: url('https://www.xhcity.top/w/images/xhcity/9/95/Transit_pic.webp'); }


.ci_form_section_cloze_test_list_question .input,
/* -----------------------------------------------------
.ci_form_section_multiple_choice_list .input {
  4. 图标容器
        background: #f5f5f5;
  ----------------------------------------------------- */
        width: 100%;
.xh-icon {
    display: block;
    width: 56px;
    height: 56px;
    margin: 0 auto 0.45rem;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    line-height: 0;
}
}
 
.xh-icon-player  { background-image: url('https://res.xhcity.top/other-resources/xhwiki/icon_player.svg'); }
.ci_form_section_cloze_test_list_question .input:after,
.xh-icon-rules    { background-image: url('https://res.xhcity.top/other-resources/xhwiki/icon_rules.svg'); }
.ci_form_section_multiple_choice_list .input:after {
.xh-icon-approve  { background-image: url('https://res.xhcity.top/other-resources/xhwiki/icon_approve.svg'); }
         content: '\00A0';
.xh-icon-feedback { background-image: url('https://res.xhcity.top/other-resources/xhwiki/icon_feedback.svg'); }
.xh-icon-road    { background-image: url('https://res.xhcity.top/other-resources/xhwiki/icon_road.svg'); }
.xh-icon-station  { background-image: url('https://res.xhcity.top/other-resources/xhwiki/icon_station.svg'); }
.xh-icon-lines    { background-image: url('https://res.xhcity.top/other-resources/xhwiki/icon_lines.svg'); }
.xh-icon-construction { background-image: url('https://res.xhcity.top/other-resources/xhwiki/icon_construction.svg'); }
.xh-icon-bids         { background-image: url('https://res.xhcity.top/other-resources/xhwiki/icon_bids.svg'); }
.xh-icon-div          { background-image: url('https://res.xhcity.top/other-resources/xhwiki/icon_div.svg'); }
.xh-icon-dmap    { background-image: url('https://res.xhcity.top/other-resources/xhwiki/icon_dmap.svg'); }
.xh-icon-sysmap  { background-image: url('https://res.xhcity.top/other-resources/xhwiki/icon_sysmap.svg'); }
.xh-icon-custom  { background-image: url('https://res.xhcity.top/other-resources/xhwiki/icon_custom.svg'); }
.xh-icon-verify  { background-image: url('https://res.xhcity.top/other-resources/xhwiki/icon_verify.svg'); }
.xh-icon-reset  { background-image: url('https://res.xhcity.top/other-resources/xhwiki/icon_reset.svg'); }
/* ---- 深色模式下把图标翻成白色 ---- */
.skin-citizen-dark .xh-icon {
    filter: brightness(0) invert(1) opacity(0.85);
}
}


.ci_form_section_inputs_row input,
/* -----------------------------------------------------
.ci_form_section_inputs_row select,
  5. 按钮
.ci_form_section_inputs_row textarea,
  ----------------------------------------------------- */
.ci_form_section_inputs_row .input,
.xh-random-btn {
.select2-container--default .select2-selection--single {
    display: inline-block;
        padding: 8px;
    padding: 0.55em 1.2em;
        background: #fff;
    background: #17b3a8;
        border: 1px solid #ccc;
    border-radius: 6px;
        display: block;
    font-size: 0.84rem;
        border-radius: 6px;
    font-weight: 600;
        width: 100%;
    color: #ffffff !important;
        box-sizing: border-box;
    text-decoration: none !important;
        resize: vertical;
    white-space: nowrap;
    box-shadow: 0 2px 0 #0e8a80, 0 3px 8px rgba(23, 179, 168, 0.28);
    transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
    cursor: pointer;
}
}
 
.xh-random-btn:hover {
.ci_form_section.inputs_responsive .ci_form_section_inputs_row input,
    background: #15a89e;
.ci_form_section.inputs_responsive .ci_form_section_inputs_row select,
    box-shadow: 0 2px 0 #0e8a80, 0 4px 12px rgba(23, 179, 168, 0.4);
.ci_form_section.inputs_responsive .ci_form_section_inputs_row textarea,
    color: #ffffff !important;
.ci_form_section.inputs_responsive .ci_form_section_inputs_row .input {
        border-radius: 2px;
        padding: 4px;
        width: auto;
}
}
 
.xh-random-btn:active {
.ci_form_section.inputs_responsive .ci_form_section_inputs_row {
    transform: translateY(2px);
        margin-bottom: 2px;
    box-shadow: 0 0 0 #0e8a80, 0 1px 3px rgba(23, 179, 168, 0.3);
}
}


.ci_form_section_inputs_row textarea {
/* -----------------------------------------------------
        width: 100%;
  6. 首页顶部操作区右上角悬浮
  ----------------------------------------------------- */
.page-首页 .page-actions {
    position: fixed !important;
    top: 0.75rem;
    right: 0.75rem;
    left: auto !important;
    bottom: auto !important;
    z-index: 9999;
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 0.4rem;
    width: auto !important;
    padding: 0.3rem 0.55rem !important;
    margin: 0 !important;
    background: var(--xh-float-bg);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(4px);
}
}
 
.page-首页 .mw-body-header {
.ci_form_section.inputs_responsive .input:after,
    padding-top: 0 !important;
.ci_form_section_inputs_row .input:after {
    padding-bottom: 0 !important;
        content: '\00A0';
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    min-height: 0 !important;
    border-bottom: none !important;
}
}


.ci_form_section.inputs_responsive .input,
/* -----------------------------------------------------
.ci_form_section_inputs_row .input {
  7. 线路表格
        width: 100%;
  ----------------------------------------------------- */
        background: #f5f5f5;
.wikitable-routes tr th,
}
.wikitable-routes tr td {
 
    font-size: 1rem !important;
.ci_form_section_multiple_choice_list {
    padding: 5px 10px 5px 0 !important;
        position: relative;
}
 
.ci_form_section_multiple_choice_list .radio_for_required_checkboxes {
        position: absolute;
        margin: 0;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        -webkit-appearance: none;
        pointer-events: none;
        border: none;
        background: none;
        user-select: none;
        -moz-user-select: none;
        -khtml-user-select: none;
        -webkit-user-select: none;
        -o-user-select: none;
}
 
.ci_form_input_submit {
        background: #36c;
        border: 1px solid #36c;
        padding: 6px 12px;
        color: #fff;
        font-weight: bold;
        cursor: pointer;
}
 
.ci_form_input_submit_disabled {
        padding: 6px 12px;
        color: #808080ff;
        font-weight: bold;
}
 
.ci_form_input_submit:hover {
        background-color: #447ff5;
        border-color: #447ff5;
}
 
.ci_form {
        background: #f5f5f5;
        border: 1px solid #ccc;
        max-width: 480px;
}
 
.ci_form_container {
        padding: 12px 16px 0;
}
 
.ci_form_section {
        margin-bottom: 12px;
}
 
.ci_form_title {
        font-size: large;
        font-weight: bold;
        margin-bottom: 12px;
}
 
.ci_form_section:not( [ class*='_inputs' ] ):not( :last-child ) {
        border-bottom: 1px dotted #aaa;
        padding-bottom: 12px;
}
 
.ci_form_section_captcha {
        color: #c0c0c0ff;
        padding: 6px;
        text-align: right;
        font-size: smaller;
}
 
.ci_form_section_submit {
        margin-top: 24px;
}
 
ol.ci_form_section_cloze_test_list li.ci_form_section_cloze_test_list_question_example::before {
        content: '';
        background-image: url( images/arrow_right.png );
        display: inline-block;
        width: 1em;
        height: 1em;
        margin-left: -1.2em;
        background-repeat: no-repeat;
        background-size: contain;
        margin-right: 0.2em;
}
 
.ci_form:not( .pdf ) ol,
.ci_form:not( .pdf ) ul {
        list-style: none;
        counter-reset: li;
}
 
/*
https://stackoverflow.com/questions/23699128/how-can-i-reset-a-css-counter-to-the-start-attribute-of-the-given-list
*/
.ci_form ol li::before,
.ci_form ul li::before {
        content: counter( li, var( --list_style_type ) );
        display: inline-block;
        width: 1em;
        margin-left: -1.5em;
        margin-right: 0.5em;
        text-align: right;
        direction: rtl;
}
 
.ci_form ol li:not( [ class$='_example' ] ) {
        counter-increment: li;
}
 
.ci_form_section_cloze_test_suggestions_word {
        padding: 0 3px;
        color: #cb4e3f;
}
 
.ci_form_section_cloze_test_suggestions_word_answered {
        padding: 0 3px;
        text-decoration: line-through;
        color: #cb4e3f;
}
 
.ci_form_section_cloze_test_list_question_suggestion {
        color: #0b5e69;
}
 
.ci_form_section_cloze_test_list_question_answered {
        border-bottom: 1px solid #000f;
        color: #0b5e69;
        font-weight: bold;
}
 
.ci_form_section_inputs_textarea_maxlength {
        text-align: right;
        font-size: smaller;
        color: #808080ff;
        display: inline-block;
        width: 100%;
}
}
.wikitable-routes tr td:first-child { border-right: 10px solid white; }
.wikitable-routes tr td:only-child { background-color: #f5f5f5 !important; }
.wikitable-routes tr th { background-color: #eee !important; }
/* =====================================================
  深色 / 浅色切换渐变
  ===================================================== */


.select2-container--default .select2-selection--single .select2-selection__rendered {
/* 页面底色:只作用于 body,避免和 html 打架 */
        line-height: normal;
body {
    transition: background-color 0.35s ease;
}
}


.select2-container .select2-selection--single {
/* 首页内部的容器:只过渡背景和边框 */
         height: auto;
:where(.page-首页 *) {
    transition:
        background-color 0.35s ease,
         border-color    0.35s ease;
}
}

2026年9月24日 (四) 13:01的最新版本

/* =====================================================
   星海市 Wiki — 全局样式
   ===================================================== */

/* =====================================================
   0. 主题色变量
   浅色为默认值,深色由 .skin-citizen-dark 覆盖
   ===================================================== */

:root {
    --xh-card-bg:       #ffffff;
    --xh-card-bg-soft:  #fbfefe;
    --xh-cover-bg:      #f3f4f6;
    --xh-border:        #e5e7eb;
    --xh-border-light:  #f3f4f6;
    --xh-border-inner:  #f0f0f0;
    --xh-text-strong:   #111827;
    --xh-text:          #4b5563;
    --xh-text-soft:     #6b7280;
    --xh-text-faint:    #9ca3af;
    --xh-header-bar-bg: #111827;
    --xh-float-bg:      rgba(255, 255, 255, 0.92);
}

/* ---- 深色模式(Citizen 皮肤)---- */
.skin-citizen-dark {
    --xh-card-bg:       #1e242c;
    --xh-card-bg-soft:  #18232a;
    --xh-cover-bg:      #2a3038;
    --xh-border:        #2d3540;
    --xh-border-light:  #2d3540;
    --xh-border-inner:  #2d3540;
    --xh-text-strong:   #e8eaed;
    --xh-text:          #b8bfc8;
    --xh-text-soft:     #9aa0a6;
    --xh-text-faint:    #80868b;
    --xh-header-bar-bg: #2d3540;
    --xh-float-bg:      rgba(30, 36, 44, 0.94);
}

/* -----------------------------------------------------
   1. 首页标题与标签隐藏
   ----------------------------------------------------- */
.page-首页 #p-namespaces,
.page-首页 #p-associated-pages,
.page-首页 #p-views,
.page-首页 #p-cactions { display: none !important; }

.page-首页 #siteSub,
.page-首页 .siteSub { display: none !important; }

.page-首页 #firstHeading,
.page-首页 .firstHeading { display: none !important; }

/* -----------------------------------------------------
   2. 首页头图
   ----------------------------------------------------- */
.xh-banner {
    position: relative;
    height: 260px;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 1rem;
    background-image: url('https://www.xhcity.top/w/images/xhcity/9/9d/XHSBANNER.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #0f8f87;
}

.xh-banner-text {
    position: absolute;
    left: 2rem; bottom: 1.5rem; right: 2rem;
    color: white;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.65);
}
.xh-banner-text .sub {
    font-size: 0.7rem; letter-spacing: 0.22em;
    text-transform: uppercase; opacity: 0.85;
    margin-bottom: 0.4rem;
}
.xh-banner-text .title {
    font-size: 2.2rem; font-weight: 800;
    line-height: 1.1; letter-spacing: -0.02em;
}
.xh-banner-text .desc {
    font-size: 0.88rem; opacity: 0.88; margin-top: 0.45rem;
}

/* -----------------------------------------------------
   3. 通用裁切图片框
   ----------------------------------------------------- */
.xh-cover-bg {
    overflow: hidden;
    border-radius: 4px;
    background-color: var(--xh-cover-bg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    line-height: 0;
}
.xh-cover-169 { aspect-ratio: 16 / 9; }
.xh-cover-32  { aspect-ratio: 3 / 2; }
.xh-cover-43  { aspect-ratio: 4 / 3; }
.xh-cover-11  { aspect-ratio: 1 / 1; }

.xh-cover-rp      { background-image: url('https://www.xhcity.top/w/images/xhcity/8/81/Rp_web.webp'); }
.xh-cover-terra   { background-image: url('https://www.xhcity.top/w/images/xhcity/b/bb/Terra_mod.webp'); }
.xh-cover-g1      { background-image: url('https://www.xhcity.top/w/images/xhcity/8/8c/G1.webp'); }
.xh-cover-g2      { background-image: url('https://www.xhcity.top/w/images/xhcity/d/d0/G2.webp'); }
.xh-cover-g3      { background-image: url('https://www.xhcity.top/w/images/xhcity/c/cd/G3.webp'); }
.xh-cover-g4      { background-image: url('https://www.xhcity.top/w/images/xhcity/3/36/G4.webp'); }
.xh-cover-transit { background-image: url('https://www.xhcity.top/w/images/xhcity/9/95/Transit_pic.webp'); }

/* -----------------------------------------------------
   4. 图标容器
   ----------------------------------------------------- */
.xh-icon {
    display: block;
    width: 56px;
    height: 56px;
    margin: 0 auto 0.45rem;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    line-height: 0;
}
.xh-icon-player   { background-image: url('https://res.xhcity.top/other-resources/xhwiki/icon_player.svg'); }
.xh-icon-rules    { background-image: url('https://res.xhcity.top/other-resources/xhwiki/icon_rules.svg'); }
.xh-icon-approve  { background-image: url('https://res.xhcity.top/other-resources/xhwiki/icon_approve.svg'); }
.xh-icon-feedback { background-image: url('https://res.xhcity.top/other-resources/xhwiki/icon_feedback.svg'); }
.xh-icon-road     { background-image: url('https://res.xhcity.top/other-resources/xhwiki/icon_road.svg'); }
.xh-icon-station  { background-image: url('https://res.xhcity.top/other-resources/xhwiki/icon_station.svg'); }
.xh-icon-lines    { background-image: url('https://res.xhcity.top/other-resources/xhwiki/icon_lines.svg'); }
.xh-icon-construction { background-image: url('https://res.xhcity.top/other-resources/xhwiki/icon_construction.svg'); }
.xh-icon-bids         { background-image: url('https://res.xhcity.top/other-resources/xhwiki/icon_bids.svg'); }
.xh-icon-div          { background-image: url('https://res.xhcity.top/other-resources/xhwiki/icon_div.svg'); }
.xh-icon-dmap    { background-image: url('https://res.xhcity.top/other-resources/xhwiki/icon_dmap.svg'); }
.xh-icon-sysmap  { background-image: url('https://res.xhcity.top/other-resources/xhwiki/icon_sysmap.svg'); }
.xh-icon-custom  { background-image: url('https://res.xhcity.top/other-resources/xhwiki/icon_custom.svg'); }
.xh-icon-verify  { background-image: url('https://res.xhcity.top/other-resources/xhwiki/icon_verify.svg'); }
.xh-icon-reset   { background-image: url('https://res.xhcity.top/other-resources/xhwiki/icon_reset.svg'); }
/* ---- 深色模式下把图标翻成白色 ---- */
.skin-citizen-dark .xh-icon {
    filter: brightness(0) invert(1) opacity(0.85);
}

/* -----------------------------------------------------
   5. 按钮
   ----------------------------------------------------- */
.xh-random-btn {
    display: inline-block;
    padding: 0.55em 1.2em;
    background: #17b3a8;
    border-radius: 6px;
    font-size: 0.84rem;
    font-weight: 600;
    color: #ffffff !important;
    text-decoration: none !important;
    white-space: nowrap;
    box-shadow: 0 2px 0 #0e8a80, 0 3px 8px rgba(23, 179, 168, 0.28);
    transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
    cursor: pointer;
}
.xh-random-btn:hover {
    background: #15a89e;
    box-shadow: 0 2px 0 #0e8a80, 0 4px 12px rgba(23, 179, 168, 0.4);
    color: #ffffff !important;
}
.xh-random-btn:active {
    transform: translateY(2px);
    box-shadow: 0 0 0 #0e8a80, 0 1px 3px rgba(23, 179, 168, 0.3);
}

/* -----------------------------------------------------
   6. 首页顶部操作区右上角悬浮
   ----------------------------------------------------- */
.page-首页 .page-actions {
    position: fixed !important;
    top: 0.75rem;
    right: 0.75rem;
    left: auto !important;
    bottom: auto !important;
    z-index: 9999;
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 0.4rem;
    width: auto !important;
    padding: 0.3rem 0.55rem !important;
    margin: 0 !important;
    background: var(--xh-float-bg);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(4px);
}
.page-首页 .mw-body-header {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    min-height: 0 !important;
    border-bottom: none !important;
}

/* -----------------------------------------------------
   7. 线路表格
   ----------------------------------------------------- */
.wikitable-routes tr th,
.wikitable-routes tr td {
    font-size: 1rem !important;
    padding: 5px 10px 5px 0 !important;
}
.wikitable-routes tr td:first-child { border-right: 10px solid white; }
.wikitable-routes tr td:only-child { background-color: #f5f5f5 !important; }
.wikitable-routes tr th { background-color: #eee !important; }
/* =====================================================
   深色 / 浅色切换渐变
   ===================================================== */

/* 页面底色:只作用于 body,避免和 html 打架 */
body {
    transition: background-color 0.35s ease;
}

/* 首页内部的容器:只过渡背景和边框 */
:where(.page-首页 *) {
    transition:
        background-color 0.35s ease,
        border-color     0.35s ease;
}