Greasy Fork

Greasy Fork is available in English.

粉色馒头主题!

将馒头站主题配色改为粉色系,提升阅读体验。本脚本基于原作者 lionhoho 的“馒头配色调整系列-沙色”脚本进行修改。

当前为 2025-05-30 提交的版本,查看 最新版本

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name         粉色馒头主题!
// @namespace    http://greasyfork.icu/users/1250762
// @version    0.3
// @description  将馒头站主题配色改为粉色系,提升阅读体验。本脚本基于原作者 lionhoho 的“馒头配色调整系列-沙色”脚本进行修改。
// @author       L4O8(修改者), lionhoho (原作者)
// @license      GPL-2.0
// @match        https://*.m-team.cc/*
// @match        https://*.m-team.io/*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=m-team.cc
// @grant        GM_addStyle
// @grant        unsafeWindow
// @run-at       document-start

// ==/UserScript==
(function() {
    'use strict';
    // 存储键名和模式常量
    const STORAGE_KEY = 'mt_theme_mode';
    const MODE_PINK = 'pink';
    const MODE_DARK = 'dark';

    // 创建背景层
    function createBackground() {
        const bgOverlay = document.createElement('div');
        Object.assign(bgOverlay.style, {
            position: 'fixed',
            top: '0',
            left: '0',
            width: '100vw',
            height: '100vh',
            zIndex: '-9999',
            pointerEvents: 'none'
        });
        document.body.appendChild(bgOverlay);
        document.body.style.minHeight = '100vh';
        return bgOverlay;
    }

    // 创建模式切换按钮
    function createModeToggle() {
    const toggleButton = document.createElement('button');
    toggleButton.id = 'mt-theme-toggle';
    toggleButton.textContent = '';
    Object.assign(toggleButton.style, {
        position: 'fixed',
        bottom: '20px',
        left: '20px',
        zIndex: '10000',
        width: '40px',
        height: '40px',
        borderRadius: '50%',
        border: 'none',
        background: 'rgba(255, 255, 255, 0.8)',
        boxShadow: '0 2px 8px rgba(0, 0, 0, 0.15)',
        cursor: 'pointer',
        fontSize: '20px',
        display: 'flex',
        alignItems: 'center',
        justifyContent: 'center',
        transition: 'all 0.3s'
    });

    document.body.appendChild(toggleButton);
    return toggleButton;
}

    // 应用粉色模式
    function applyPinkMode(bgOverlay) {
        // 设置粉色背景
        bgOverlay.style.background = "url('https://i.miji.bid/2025/05/30/470b465837a479bb869e3c16cf83de03.jpeg') center/cover no-repeat";

        // 移除黑夜模式样式
        const darkStyle = document.getElementById('mt-dark-style');
        if (darkStyle) darkStyle.remove();

        // 应用粉色样式
        if (!document.getElementById('mt-pink-style')) {
            const style = document.createElement('style');
            style.id = 'mt-pink-style';
            style.textContent = `
				html {--bg-1:#ffffff !important;}
				.app-content__inner:after {background:#F8D8E6 !important;}
				:where(.css-1gwm2nm).ant-card {background:#ffd6e7 !important;}
				:where(.css-1gwm2nm) a:hover {color:#ff4fa3 !important;}
				:where(.css-1gwm2nm) a:active {color:#ff4fa3 !important;}
				:where(.css-1gwm2nm).ant-menu-light.ant-menu-horizontal >.ant-menu-item-selected, :where(.css-1gwm2nm).ant-menu-light>.ant-menu.ant-menu-horizontal >.ant-menu-item-selected, :where(.css-1gwm2nm).ant-menu-light.ant-menu-horizontal >.ant-menu-submenu-selected, :where(.css-1gwm2nm).ant-menu-light>.ant-menu.ant-menu-horizontal >.ant-menu-submenu-selected {color:#ff4fa3 !important;}
				:where(.css-1gwm2nm).ant-menu-light.ant-menu-horizontal >.ant-menu-item-selected, :where(.css-1gwm2nm).ant-menu-light>.ant-menu.ant-menu-horizontal >.ant-menu-item-selected, :where(.css-1gwm2nm).ant-menu-light.ant-menu-horizontal >.ant-menu-submenu-selected, :where(.css-1gwm2nm).ant-menu-light>.ant-menu.ant-menu-horizontal >.ant-menu-submenu-selected {background-color:#ff9ecb !important;}
				:where(.css-1gwm2nm).ant-menu-light.ant-menu-horizontal >.ant-menu-item:hover::after, :where(.css-1gwm2nm).ant-menu-light>.ant-menu.ant-menu-horizontal >.ant-menu-item:hover::after, :where(.css-1gwm2nm).ant-menu-light.ant-menu-horizontal >.ant-menu-submenu:hover::after, :where(.css-1gwm2nm).ant-menu-light>.ant-menu.ant-menu-horizontal >.ant-menu-submenu:hover::after, :where(.css-1gwm2nm).ant-menu-light.ant-menu-horizontal >.ant-menu-item-active::after, :where(.css-1gwm2nm).ant-menu-light>.ant-menu.ant-menu-horizontal >.ant-menu-item-active::after, :where(.css-1gwm2nm).ant-menu-light.ant-menu-horizontal >.ant-menu-submenu-active::after, :where(.css-1gwm2nm).ant-menu-light>.ant-menu.ant-menu-horizontal >.ant-menu-submenu-active::after, :where(.css-1gwm2nm).ant-menu-light.ant-menu-horizontal >.ant-menu-item-open::after, :where(.css-1gwm2nm).ant-menu-light>.ant-menu.ant-menu-horizontal >.ant-menu-item-open::after, :where(.css-1gwm2nm).ant-menu-light.ant-menu-horizontal >.ant-menu-submenu-open::after, :where(.css-1gwm2nm).ant-menu-light>.ant-menu.ant-menu-horizontal >.ant-menu-submenu-open::after {border-bottom-color:#ff4fa3 !important;}
				:where(.css-1gwm2nm).ant-menu-light.ant-menu-horizontal >.ant-menu-item-selected::after, :where(.css-1gwm2nm).ant-menu-light>.ant-menu.ant-menu-horizontal >.ant-menu-item-selected::after, :where(.css-1gwm2nm).ant-menu-light.ant-menu-horizontal >.ant-menu-submenu-selected::after, :where(.css-1gwm2nm).ant-menu-light>.ant-menu.ant-menu-horizontal >.ant-menu-submenu-selected::after {border-bottom-color:#ff4fa3 !important;}
				:where(.css-1gwm2nm).ant-menu-light.ant-menu-submenu-popup>.ant-menu, :where(.css-1gwm2nm).ant-menu-light>.ant-menu.ant-menu-submenu-popup>.ant-menu {background-color:#ffeef6 !important;}
				:where(.css-1gwm2nm).ant-menu-light .ant-menu-item-selected, :where(.css-1gwm2nm).ant-menu-light>.ant-menu .ant-menu-item-selected {background-color:#ffc2e0 !important;}
				:where(.css-1gwm2nm).ant-menu-light .ant-menu-item-selected, :where(.css-1gwm2nm).ant-menu-light>.ant-menu .ant-menu-item-selected {color:#ff4fa3 !important;}
				.ant-table-wrapper .ant-table-tbody .ant-table-row .ant-table-cell.ant-table-cell-row-hover, .ant-table-wrapper .ant-table-tbody .ant-table-row:hover .ant-table-cell, .ant-table-wrapper .ant-table-tbody .ant-table-row:hover>th, .ant-table-wrapper .ant-table-tbody .ant-table-row>th.ant-table-cell-row-hover {background:#ffeff6 !important;}
				.bg-sticky_top {background-color:#ffddee !important;}
				.bg-sticky_normal {background-color:#ffeff6 !important;}
				:where(.css-khj4yb).ant-card.ant-card-small {background-color: #F8D8E6 !important;}
				.ant-card-head { background-color: #FFB3D8 !important; color: white !important; }
				.ant-card-body { background-color: #ffeff6 !important; color: white !important; }
				.ant-card-body [style*= "text-align: center"] {color: #000 !important; }
				.ant-card-body [style*= "font-size: 12px;"] {color: #000 !important; }
				.ant-card-body [style*= "min-height: 100px; margin-top: 30px;"] {color: #000 !important; }
				.mb-0 {color: #000 !important; }
				.ant-table-cell { background-color: #FCF0F6 !important; }
				.bg-\\[\\#2f4879\\] .border.border-solid.border-black.p-2 { background-color: rgb(244,182,214) !important; }
				.bg-sticky_top .border.border-solid.border-black.p-2 { background-color: rgb(249,222,237) !important; }
				.border.border-solid.border-black.p-2:not(.bg-\\[\\#2f4879\\] .border.border-solid.border-black.p-2):not(.bg-sticky_top .border.border-solid.border-black.p-2) { background-color: rgb(252,240,246) !important; }
				.mt-4.app-content__inner .ant-card-body .ant-card-head-wrapper .ant-card-head-title { color: #000 !important; }
				.mt-4.app-content__inner .ant-card-body .mb-4 { color: #000 !important; }
				.ant-card.css-khj4yb .ant-card-body .ant-card.ant-card-bordered.ant-card-small.css-khj4yb .ant-card-body { color: #666 !important; }
				.mt-4.app-content__inner .ant-card-body .tablist.mb-3 * { color: #000 !important; }
				:where(.css-1gwm2nm).ant-card .ant-card-head {background:#ffc2e0 !important;}
				.ant-table-wrapper .ant-table-thead th.ant-table-column-sort {background:#ffc2e0 !important;}
				:where(.css-1gwm2nm).ant-table-wrapper .ant-table {background:#fff9fc !important;}
				:where(.css-1gwm2nm).ant-table-wrapper .ant-table-thead >tr>th {background:#ffc2e0 !important;}
				:where(.css-1gwm2nm).ant-btn-primary.ant-btn-background-ghost {border-color:#ff4fa3 !important;}
				:where(.css-1gwm2nm).ant-checkbox-checked .ant-checkbox-inner {background-color:#ff9ecb !important;}
				:where(.css-1gwm2nm).ant-checkbox-checked .ant-checkbox-inner {border-color:#ff4fa3 !important;}
				:where(.css-1gwm2nm).ant-checkbox-wrapper:not(.ant-checkbox-wrapper-disabled):hover .ant-checkbox-inner, :where(.css-1gwm2nm).ant-checkbox:not(.ant-checkbox-disabled):hover .ant-checkbox-inner {border-color:#ff4fa3 !important;}
				:where(.css-1gwm2nm).ant-checkbox-indeterminate .ant-checkbox-inner:after {background-color:#ff4fa3 !important;}
				:where(.css-1gwm2nm).ant-select-dropdown .ant-select-item-option-selected:not(.ant-select-item-option-disabled) {background-color:#ffc2e0 !important;}
				:where(.css-1gwm2nm).ant-dropdown .ant-dropdown-menu, :where(.css-1gwm2nm).ant-dropdown-menu-submenu .ant-dropdown-menu {background-color:#fff9fc !important;}
				:where(.css-1gwm2nm).ant-dropdown .ant-dropdown-menu .ant-dropdown-menu-item:hover {background-color:#ffc2e0 !important;}
				:where(.css-1cv09li).ant-table-wrapper .ant-table-thead >tr>th {background:#ffc2e0 !important;}
				:where(.css-1cv09li).ant-table-wrapper .ant-table {background:#ffffff !important;}
				:where(.css-1gwm2nm).ant-modal .ant-modal-content {background-color:#fff9fc !important;}
				:where(.css-1gwm2nm).ant-modal .ant-modal-header {background-color:#fff9fc !important;}
				:where(.css-1gwm2nm).ant-btn-primary {background:#ff4fa3 !important;}
				:where(.css-1gwm2nm).ant-btn-primary {color:#ffffff !important;}
				.editor-inner {background:#ffffff !important;}
				.bg-mt-gray {background-color:#ffffff !important;}
				:where(.css-1gwm2nm).ant-btn-link {color:#ff4fa3 !important;}
				.ant-descriptions.mt-desc-with-bg.ant-descriptions-bordered .ant-descriptions-view {background:#ffddee !important;}
				.bg-mt-primary-3 {background-color:#ffd6e7 !important;}
				:where(.css-1gwm2nm).ant-table-wrapper tr.ant-table-expanded-row >td {background:#ffddee !important;}
				:where(.css-1gwm2nm).ant-input-group-wrapper-outlined .ant-input-group-addon {background:#ffeff6 !important;}
				:where(.css-1gwm2nm).ant-row-middle .ant-row {background-color:#ffd6e7 !important;}
				:where(.css-1fsd2gv).ant-segmented .ant-segmented-item-selected {background-color:#ff4fa3 !important;}
				:where(.css-1fsd2gv).ant-segmented .ant-segmented-item-selected {color:#ffffff !important;}
				:where(.css-1fsd2gv).ant-segmented {background:#fff9fc !important;}
				table.tablist td.colhead, table.tablist thead td, table.tablist tr.head>td {background-color:#ffc2e0 !important;}
				table.tablist td.colhead, table.tablist thead td, table.tablist tr.head>td {color:#000000 !important;}
				table.tablist td.colhead, table.tablist thead td, table.tablist tr.head>td {font-size: larger; !important;}
				:where(.css-1gwm2nm).ant-tabs .ant-tabs-tab.ant-tabs-tab-active .ant-tabs-tab-btn {color:#ff4fa3 !important;}
				:where(.css-1gwm2nm).ant-tabs .ant-tabs-tab {color:#ff4fa3 !important;}
				:where(.css-1gwm2nm).ant-radio-wrapper .ant-radio-checked .ant-radio-inner {background-color:#ff4fa3 !important;}
				:where(.css-1gwm2nm).ant-btn-primary {background:#ff4fa3 !important;}
				:where(.css-1gwm2nm).ant-btn-primary {color:#ffffff !important;}
				:where(.css-1gwm2nm).ant-switch.ant-switch-checked {background:#ff4fa3 !important;}
				:where(.css-1gwm2nm).ant-btn-default {background-color:#ffffff !important;}
				:where(.css-1gwm2nm).ant-btn-default {border-color:#ff4fa3 !important;}
				:where(.css-1gwm2nm).ant-alert-info {background: #fff9fc !important;}
				:where(.css-1gwm2nm).ant-alert-info {border: 1px solid #ff4fa3 !important;}
				.colhead  {background: #ffc2e0 !important;}
				:where(.css-1gwm2nm).ant-table-wrapper .ant-table-tbody>tr.ant-table-placeholder:hover>th, :where(.css-1gwm2nm).ant-table-wrapper .ant-table-tbody>tr.ant-table-placeholder:hover>td, :where(.css-1gwm2nm).ant-table-wrapper .ant-table-tbody>tr.ant-table-placeholder {background:#ffeff6 !im
            `;
            document.head.appendChild(style);
        }
    }

    // 应用黑夜模式
    function applyDarkMode(bgOverlay) {
        // 移除背景或设置深色背景
        bgOverlay.style.background = 'none';
        document.body.style.background = '#121212';

        // 移除粉色模式样式
        const pinkStyle = document.getElementById('mt-pink-style');
        if (pinkStyle) pinkStyle.remove();

        // 应用黑夜模式样式
        if (!document.getElementById('mt-dark-style')) {
            const style = document.createElement('style');
            style.id = 'mt-dark-style';
            style.textContent = `
				html {--bg-1:#121212 !important;}
				.app-content__inner:after {background:#1e1e2d !important;}
				:where(.css-1gwm2nm).ant-card {background:#1a3a5f !important;}
				:where(.css-1gwm2nm) a:hover {color:#4fd1ff !important;}
				:where(.css-1gwm2nm) a:active {color:#4fd1ff !important;}
				:where(.css-1gwm2nm).ant-menu-light.ant-menu-horizontal >.ant-menu-item-selected, :where(.css-1gwm2nm).ant-menu-light>.ant-menu.ant-menu-horizontal >.ant-menu-item-selected, :where(.css-1gwm2nm).ant-menu-light.ant-menu-horizontal >.ant-menu-submenu-selected, :where(.css-1gwm2nm).ant-menu-light>.ant-menu.ant-menu-horizontal >.ant-menu-submenu-selected {color:#4fd1ff !important;}
				:where(.css-1gwm2nm).ant-menu-light.ant-menu-horizontal >.ant-menu-item-selected, :where(.css-1gwm2nm).ant-menu-light>.ant-menu.ant-menu-horizontal >.ant-menu-item-selected, :where(.css-1gwm2nm).ant-menu-light.ant-menu-horizontal >.ant-menu-submenu-selected, :where(.css-1gwm2nm).ant-menu-light>.ant-menu.ant-menu-horizontal >.ant-menu-submenu-selected {background-color:#2a4a6f !important;}
				:where(.css-1gwm2nm).ant-menu-light.ant-menu-horizontal >.ant-menu-item:hover::after, :where(.css-1gwm2nm).ant-menu-light>.ant-menu.ant-menu-horizontal >.ant-menu-item:hover::after, :where(.css-1gwm2nm).ant-menu-light.ant-menu-horizontal >.ant-menu-submenu:hover::after, :where(.css-1gwm2nm).ant-menu-light>.ant-menu.ant-menu-horizontal >.ant-menu-submenu:hover::after, :where(.css-1gwm2nm).ant-menu-light.ant-menu-horizontal >.ant-menu-item-active::after, :where(.css-1gwm2nm).ant-menu-light>.ant-menu.ant-menu-horizontal >.ant-menu-item-active::after, :where(.css-1gwm2nm).ant-menu-light.ant-menu-horizontal >.ant-menu-submenu-active::after, :where(.css-1gwm2nm).ant-menu-light>.ant-menu.ant-menu-horizontal >.ant-menu-submenu-active::after, :where(.css-1gwm2nm).ant-menu-light.ant-menu-horizontal >.ant-menu-item-open::after, :where(.css-1gwm2nm).ant-menu-light>.ant-menu.ant-menu-horizontal >.ant-menu-item-open::after, :where(.css-1gwm2nm).ant-menu-light.ant-menu-horizontal >.ant-menu-submenu-open::after, :where(.css-1gwm2nm).ant-menu-light>.ant-menu.ant-menu-horizontal >.ant-menu-submenu-open::after {border-bottom-color:#4fd1ff !important;}
				:where(.css-1gwm2nm).ant-menu-light.ant-menu-horizontal >.ant-menu-item-selected::after, :where(.css-1gwm2nm).ant-menu-light>.ant-menu.ant-menu-horizontal >.ant-menu-item-selected::after, :where(.css-1gwm2nm).ant-menu-light.ant-menu-horizontal >.ant-menu-submenu-selected::after, :where(.css-1gwm2nm).ant-menu-light>.ant-menu.ant-menu-horizontal >.ant-menu-submenu-selected::after {border-bottom-color:#4fd1ff !important;}
				:where(.css-1gwm2nm).ant-menu-light.ant-menu-submenu-popup>.ant-menu, :where(.css-1gwm2nm).ant-menu-light>.ant-menu.ant-menu-submenu-popup>.ant-menu {background-color:#252540 !important;}
				:where(.css-1gwm2nm).ant-menu-light .ant-menu-item-selected, :where(.css-1gwm2nm).ant-menu-light>.ant-menu .ant-menu-item-selected {background-color:#303050 !important;}
				:where(.css-1gwm2nm).ant-menu-light .ant-menu-item-selected, :where(.css-1gwm2nm).ant-menu-light>.ant-menu .ant-menu-item-selected {color:#4fd1ff !important;}
				.ant-table-wrapper .ant-table-tbody .ant-table-row .ant-table-cell.ant-table-cell-row-hover, .ant-table-wrapper .ant-table-tbody .ant-table-row:hover .ant-table-cell, .ant-table-wrapper .ant-table-tbody .ant-table-row:hover>th, .ant-table-wrapper .ant-table-tbody .ant-table-row>th.ant-table-cell-row-hover {background:#2a2a2a !important;}
				.bg-sticky_top {background-color:#2a3a5a !important;}
				.bg-sticky_normal {background-color:#1e2a3f !important;}
				:where(.css-khj4yb).ant-card.ant-card-small {background-color: #1a2a4a !important;}
				.ant-card-head { background-color: #1a3a5f !important; color: #e0e0e0 !important; }
				.ant-card-body { background-color: #252535 !important; color: #e0e0e0 !important; }
				.ant-card-body [style*= "text-align: center"] {color: #e0e0e0 !important; }
				.ant-card-body [style*= "font-size: 12px;"] {color: #e0e0e0 !important; }
				.ant-card-body [style*= "min-height: 100px; margin-top: 30px;"] {color: #e0e0e0 !important; }
				.mb-0 {color: #e0e0e0 !important; }
				.ant-table-cell { background-color: #1e1e2d !important; }
				.bg-\\[\\#2f4879\\] .border.border-solid.border-black.p-2 { background-color: #2a3a5a !important; }
				.bg-sticky_top .border.border-solid.border-black.p-2 { background-color: #2a3a5a !important; }
				.border.border-solid.border-black.p-2:not(.bg-\\[\\#2f4879\\] .border.border-solid.border-black.p-2):not(.bg-sticky_top .border.border-solid.border-black.p-2) { background-color: #252535 !important; }
				.ant-card-body .ant-row.ant-row-space-between.ant-row-middle.mt-2.text-sm.css-khj4yb .ant-col.css-khj4yb .ant-space.css-khj4yb.ant-space-horizontal.ant-space-align-center .ant-space-item * *:not(.text-mt-light-blue) {color:#80A0FF !important}
				.ant-card-body .ant-row.ant-row-space-between.ant-row-middle.mt-2.text-sm.css-khj4yb .ant-col.css-khj4yb .ant-space.css-khj4yb.ant-space-horizontal.ant-space-align-center .ant-space-item .ant-typography.whitespace-nowrap.css-khj4yb {color:#CCCCDD!important}
				.ant-card.ant-card-small.css-khj4yb .ant-card-body .ant-menu-overflow.ant-menu.ant-menu-root.ant-menu-horizontal.ant-menu-light.css-khj4yb .ant-menu-title-content .font-medium {color: #CCCCDD !important;}
				.ant-card-body .ant-row.ant-row-space-between.ant-row-middle.css-khj4yb .ant-col.css-khj4yb .ant-space.css-khj4yb.ant-space-horizontal.ant-space-align-center.ant-space-gap-row-small.ant-space-gap-col-small .ant-space-item .ant-typography.css-khj4yb{color: #CCCCDD !important}
				.slick-track .slick-slide.slick-active.slick-current * *{color:#000!important;}
				.ant-collapse-content-box .p-4.bg-mt-gray .whitespace-pre-wrap.mb-1{color:#000!important;}
				.ant-card-body a[href^="/forum/"] {color: #80A0FF !important;}
				.ant-card-body h2 {color: #CCCCDD !important;}
				.mb-0 a[href^="/redirect/topic"] {color: #AAAAAA !important;}
				.markdown-body .mb-1 {color: #AAAAAA !important;}
				.tablist .ant-typography {color: #AAAAAA !important;}
				.mt-4.app-content__inner .ant-card-body .ant-card-head-wrapper .ant-card-head-title { color: #e0e0e0 !important; }
				.mt-4.app-content__inner .ant-card-body .mb-4 { color: #e0e0e0 !important; }
				.ant-card-body .mb-4 * { background-color: #3B3B4F !important; }
				.ant-card.css-khj4yb .ant-card-body .ant-card.ant-card-bordered.ant-card-small.css-khj4yb .ant-card-body { color: #d0d0d0 !important; }
				.mt-4.app-content__inner .ant-card-body .tablist.mb-3 * { color: #e0e0e0 !important; }
				:where(.css-1gwm2nm).ant-card .ant-card-head {background:#1a3a5f !important;}
				.ant-table-wrapper .ant-table-thead th.ant-table-column-sort {background:#1a3a5f !important;}
				:where(.css-1gwm2nm).ant-table-wrapper .ant-table {background:#1e1e2d !important;}
				:where(.css-1gwm2nm).ant-table-wrapper .ant-table-thead >tr>th {background:#1a3a5f !important;}
				:where(.css-1gwm2nm).ant-btn-primary.ant-btn-background-ghost {border-color:#4fd1ff !important;}
				:where(.css-1gwm2nm).ant-checkbox-checked .ant-checkbox-inner {background-color:#2a4a6f !important;}
				:where(.css-1gwm2nm).ant-checkbox-checked .ant-checkbox-inner {border-color:#4fd1ff !important;}
				:where(.css-1gwm2nm).ant-checkbox-wrapper:not(.ant-checkbox-wrapper-disabled):hover .ant-checkbox-inner, :where(.css-1gwm2nm).ant-checkbox:not(.ant-checkbox-disabled):hover .ant-checkbox-inner {border-color:#4fd1ff !important;}
				:where(.css-1gwm2nm).ant-checkbox-indeterminate .ant-checkbox-inner:after {background-color:#4fd1ff !important;}
				:where(.css-1gwm2nm).ant-select-dropdown .ant-select-item-option-selected:not(.ant-select-item-option-disabled) {background-color:#2a3a5a !important;}
				:where(.css-1gwm2nm).ant-dropdown .ant-dropdown-menu, :where(.css-1gwm2nm).ant-dropdown-menu-submenu .ant-dropdown-menu {background-color:#252540 !important;}
				:where(.css-1gwm2nm).ant-dropdown .ant-dropdown-menu .ant-dropdown-menu-item:hover {background-color:#303050 !important;}
				:where(.css-1cv09li).ant-table-wrapper .ant-table-thead >tr>th {background:#1a3a5f !important;}
				:where(.css-1cv09li).ant-table-wrapper .ant-table {background:#1e1e2d !important;}
				:where(.css-1gwm2nm).ant-modal .ant-modal-content {background-color:#252540 !important;}
				:where(.css-1gwm2nm).ant-modal .ant-modal-header {background-color:#252540 !important;}
				:where(.css-1gwm2nm).ant-btn-primary {background:#1a6aa9 !important;}
				:where(.css-1gwm2nm).ant-btn-primary {color:#ffffff !important;}
				.editor-inner {background:#1e1e2d !important;}
				.bg-mt-gray {background-color:#1e1e2d !important;}
				:where(.css-1gwm2nm).ant-btn-link {color:#4fd1ff !important;}
				.ant-descriptions.mt-desc-with-bg.ant-descriptions-bordered .ant-descriptions-view {background:#1a3a5f !important;}
				.bg-mt-primary-3 {background-color:#1a3a5f !important;}
				:where(.css-1gwm2nm).ant-table-wrapper tr.ant-table-expanded-row >td {background:#252540 !important;}
				:where(.css-1gwm2nm).ant-input-group-wrapper-outlined .ant-input-group-addon {background:#1e1e2d !important;}
				:where(.css-1gwm2nm).ant-row-middle .ant-row {background-color:#1a3a5f !important;}
				:where(.css-1fsd2gv).ant-segmented .ant-segmented-item-selected {background-color:#1a6aa9 !important;}
				:where(.css-1fsd2gv).ant-segmented .ant-segmented-item-selected {color:#ffffff !important;}
				:where(.css-1fsd2gv).ant-segmented {background:#1e1e2d !important;}
				table.tablist td.colhead, table.tablist thead td, table.tablist tr.head>td {background-color:#1a3a5f !important;}
				table.tablist td.colhead, table.tablist thead td, table.tablist tr.head>td {color:#e0e0e0 !important;}
				table.tablist td.colhead, table.tablist thead td, table.tablist tr.head>td {font-size: larger; !important;}
				:where(.css-1gwm2nm).ant-tabs .ant-tabs-tab.ant-tabs-tab-active .ant-tabs-tab-btn {color:#4fd1ff !important;}
				:where(.css-1gwm2nm).ant-tabs .ant-tabs-tab {color:#4fd1ff !important;}
				:where(.css-1gwm2nm).ant-radio-wrapper .ant-radio-checked .ant-radio-inner {background-color:#1a6aa9 !important;}
				:where(.css-1gwm2nm).ant-btn-primary {background:#1a6aa9 !important;}
				:where(.css-1gwm2nm).ant-btn-primary {color:#ffffff !important;}
				:where(.css-1gwm2nm).ant-switch.ant-switch-checked {background:#1a6aa9 !important;}
				:where(.css-1gwm2nm).ant-btn-default {background-color:#1e1e2d !important;}
				:where(.css-1gwm2nm).ant-btn-default {border-color:#4fd1ff !important;}
				:where(.css-1gwm2nm).ant-alert-info {background: #252540 !important;}
				:where(.css-1gwm2nm).ant-alert-info {border: 1px solid #1a6aa9 !important;}
				.colhead  {background: #1a3a5f !important;}
				:where(.css-1gwm2nm).ant-table-wrapper .ant-table-tbody>tr.ant-table-placeholder:hover>th, :where(.css-1gwm2nm).ant-table-wrapper .ant-table-tbody>tr.ant-table-placeholder:hover>td, :where(.css-1gwm2nm).ant-table-wrapper .ant-table-tbody>tr.ant-table-placeholder {background:#2a2a2a !important;}
            `;
            document.head.appendChild(style);
        }
    }

    // 初始化函数
    function init() {
        const bgOverlay = createBackground();
        const toggleButton = createModeToggle();

        // 从存储获取当前模式,默认为粉色模式
        const currentMode = GM_getValue(STORAGE_KEY, MODE_PINK);

        // 应用初始模式
        if (currentMode === MODE_PINK) {
            applyPinkMode(bgOverlay);
            toggleButton.textContent = '🌸';
            toggleButton.style.background = '#ff4fa3';
            toggleButton.style.color = '#fff';
        } else {
            applyDarkMode(bgOverlay);
            toggleButton.textContent = '🌙';
            toggleButton.style.background = '#6200ea';
            toggleButton.style.color = '#fff';
        }

        // 添加切换事件
        toggleButton.addEventListener('click', () => {
            const newMode = toggleButton.textContent === '🌸' ? MODE_DARK : MODE_PINK;

            if (newMode === MODE_PINK) {
                applyPinkMode(bgOverlay);
                toggleButton.textContent = '🌸';
                toggleButton.style.background = '#ff4fa3';
                toggleButton.style.color = '#fff';
            } else {
                applyDarkMode(bgOverlay);
                toggleButton.textContent = '🌙';
                toggleButton.style.background = '#6200ea';
                toggleButton.style.color = '#fff';
            }

            // 保存模式选择
            GM_setValue(STORAGE_KEY, newMode);
        });
    }

    // 页面加载完成后初始化
    if (document.readyState === 'loading') {
        document.addEventListener('DOMContentLoaded', init);
    } else {
        init();
    }

})();