/* ===================================================================
   控制台 —— 浅色风格（与面板配色统一）
   -------------------------------------------------------------------
   设计原则：
     · 跟着面板的蓝白配色走，不再用突兀的纯黑底
     · 日志区用极淡的蓝灰底（#f8fbfe），像一张纸，读起来不累
     · 等宽字体保证列对齐（日志里有大量对齐输出）
     · 日志级别用左侧色条 + 文字色区分，扫一眼就能定位问题
     · 高度自适应视口，不再写死 400px
   =================================================================== */

/* ---------------------------------------------------------------- 日志主体 */
.logArea {
    background: #f8fbfe;
    border: 1px solid #e6eef8;
    border-radius: 12px;
    color: #3d5470;
    font-family: "JetBrains Mono", "Cascadia Code", "Fira Code",
                 Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 12.5px;
    line-height: 1.78;
    padding: 14px 16px;
    /* 高度跟着视口走：小屏 320，大屏最多 60vh */
    height: clamp(320px, 56vh, 680px);
    width: 100%;
    overflow-y: auto;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-word;
    tab-size: 4;
    box-shadow: inset 0 1px 3px rgba(16, 42, 67, .03);
    scrollbar-width: thin;
    scrollbar-color: #c8dbee #f8fbfe;
}

/* 滚动条（Webkit）—— 与面板滚动条一致 */
.logArea::-webkit-scrollbar { width: 10px; height: 10px; }
.logArea::-webkit-scrollbar-track { background: #f8fbfe; }
.logArea::-webkit-scrollbar-thumb {
    background: #cfdfef;
    border-radius: 6px;
    border: 2px solid #f8fbfe;
}
.logArea::-webkit-scrollbar-thumb:hover { background: #a8c4de; }

/* 选中文字 */
.logArea::selection,
.logArea *::selection {
    background: #cde6ff;
    color: #22313f;
}

/* ---------------------------------------------------------------- 日志级别
   左侧加一道色条，不用细看内容就能扫出哪行是报错。
   用内联 box-shadow 实现，不会影响文本的换行排版。 */
.console-level-info {
    color: #1f8fe8;
    font-weight: 600;
}
.console-level-warning {
    color: #c9820a;
    font-weight: 600;
    box-shadow: -3px 0 0 #f0ad3c;
    padding-left: 6px;
}
.console-level-severe {
    color: #d13b34;
    font-weight: 700;
    box-shadow: -3px 0 0 #e8574f;
    padding-left: 6px;
    background: rgba(232, 87, 79, .06);
    border-radius: 3px;
}
.console-level-debug {
    color: #8fa3b8;
}

/* ---------------------------------------------------------------- 时间戳 */
.console-date {
    color: #9aabbf;
    font-size: 11.5px;
    letter-spacing: .2px;
}

/* ---------------------------------------------------------------- 来源标记 */
.console-source-multicraft {
    color: #8b5cf6;
    font-weight: 600;
}
.console-source-server {
    color: #2cb2ff;
    font-weight: 600;
}
.console-source-connection {
    color: #2e9e6b;
    font-weight: 600;
}
.console-source-class {
    color: #8fa3b8;
}

/* 玩家进出的连接提示，整行淡绿底 */
.console-connection {
    color: #1f8a5a;
    background: rgba(46, 158, 107, .08);
    border-radius: 3px;
    padding: 0 4px;
}

/* ---------------------------------------------------------------- Minecraft 颜色码
   官方 16 色在浅色背景上做了加深，保证在白底上看清。 */
.console-col-black    { color: #333b45; }
.console-col-dblue    { color: #1a4f9c; }
.console-col-dgreen   { color: #1e7a3c; }
.console-col-daqua    { color: #158079; }
.console-col-dred     { color: #9e2b23; }
.console-col-dpurple  { color: #6d28a8; }
.console-col-gold     { color: #96700a; }
.console-col-gray     { color: #6b7a8c; }
.console-col-dgray    { color: #8b98a8; }
.console-col-blue     { color: #1f8fe8; }
.console-col-green    { color: #1e9e4a; }
.console-col-aqua     { color: #0d9488; }
.console-col-red      { color: #d13b34; }
.console-col-lpurple  { color: #a855f7; }
.console-col-yellow   { color: #c9820a; }
.console-col-white    { color: #22313f; }

.console-col-bold      { font-weight: 700; }
.console-col-italic    { font-style: italic; }
.console-col-underline { text-decoration: underline; }
.console-col-strike    { text-decoration: line-through; }
/* 混淆字符用浅灰条纹占位，比显示 §k 后的乱码清楚 */
.console-col-obfuscated {
    color: #b8c4d2;
    background: repeating-linear-gradient(90deg,
        #e4ecf4 0 3px, transparent 3px 6px);
    border-radius: 2px;
}
.console-col-hide { display: none; }

/* ---------------------------------------------------------------- 命令输入区 */
#command {
    background: #fff !important;
    border: 1px solid #dce8f4 !important;
    border-radius: 10px 0 0 10px !important;
    color: #22313f !important;
    font-family: "JetBrains Mono", Consolas, Menlo, monospace !important;
    font-size: 13px !important;
    height: 42px;
    padding: 9px 15px !important;
    box-shadow: none !important;
    transition: border-color .15s, box-shadow .15s;
}
#command:focus {
    border-color: #2cb2ff !important;
    box-shadow: 0 0 0 3px rgba(44, 178, 255, .14) !important;
    outline: none;
}
#command::placeholder { color: #a8b8c8; }

/* 发送按钮 —— 跟面板主按钮一个色 */
.input-group-btn .btn-primary {
    background: #2cb2ff;
    border-color: #2cb2ff;
    border-radius: 0 10px 10px 0;
    height: 42px;
    padding: 0 24px;
    font-weight: 600;
    letter-spacing: .5px;
    color: #fff;
    box-shadow: none;
    transition: background .15s, box-shadow .15s;
}
.input-group-btn .btn-primary:hover,
.input-group-btn .btn-primary:focus {
    background: #1f8fe8;
    border-color: #1f8fe8;
    box-shadow: 0 3px 10px rgba(44, 178, 255, .3);
}

/* 命令报错提示 */
#command-error.flash-error {
    background: #fff5f5;
    border: 1px solid #f8d4d1;
    border-radius: 9px;
    color: #c0392b;
    font-size: 12.5px;
    margin-top: 8px;
    padding: 9px 13px;
}

/* ---------------------------------------------------------------- 清空日志链接 */
a[href*="clearLog"],
.mc-console-clear {
    color: #7b90a6 !important;
    font-size: 12px;
    text-decoration: none;
    transition: color .15s;
}
a[href*="clearLog"]:hover { color: #d13b34 !important; }

/* ---------------------------------------------------------------- 移动端 */
@media (max-width: 768px) {
    .logArea {
        font-size: 11.5px;
        padding: 11px 12px;
        height: clamp(280px, 52vh, 500px);
        line-height: 1.7;
    }
    #command { font-size: 12.5px !important; height: 40px; }
    .input-group-btn .btn-primary { height: 40px; padding: 0 18px; }
}

/* 打印时去掉底纹 */
@media print {
    .logArea {
        background: #fff !important;
        border-color: #ccc !important;
        box-shadow: none;
        height: auto;
    }
}

/* ===================================================================
   控制台外层容器与标题栏
   -------------------------------------------------------------------
   把日志区包成一个模块，看起来像面板内的一个卡片，
   而不是一块孤立的黑框。
   =================================================================== */
.mc-console-box {
    background: #fff;
    border: 1px solid #e6eef8;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(16, 42, 67, .05);
    overflow: hidden;
    margin-bottom: 14px;
}

/* 顶部细标题栏 —— 用极淡的渐变，和面板卡片头部一致 */
.mc-console-bar {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 15px;
    background: linear-gradient(180deg, #fbfdff 0%, #f4f9fe 100%);
    border-bottom: 1px solid #eaf2fa;
    font-size: 12.5px;
}

/* 左边一个绿色小圆点，暗示「连接中」 */
.mc-console-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #34a853;
    box-shadow: 0 0 0 3px rgba(52, 168, 83, .15);
    flex: 0 0 8px;
    animation: mc-console-pulse 2.4s ease-in-out infinite;
}

@keyframes mc-console-pulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(52, 168, 83, .15); }
    50%      { box-shadow: 0 0 0 5px rgba(52, 168, 83, .06); }
}

.mc-console-title {
    color: #48627d;
    font-weight: 600;
    letter-spacing: .2px;
}

.mc-console-hint {
    margin-left: auto;
    color: #a8b8c8;
    font-size: 11.5px;
}

/* 容器内的日志区去掉自己的圆角和阴影，避免双层边框 */
.mc-console-box .logArea {
    border: none;
    border-radius: 0;
    box-shadow: none;
    margin-bottom: 0;
}

/* 折叠提示条（窄屏隐藏，省空间） */
@media (max-width: 640px) {
    .mc-console-hint { display: none; }
    .mc-console-bar { padding: 8px 12px; }
}

/* ===================================================================
   详情页内嵌控制台
   -------------------------------------------------------------------
   与独立控制台页面共用 .mc-console-box / .logArea 的样式，
   这里只补详情页特有的部分：
     · 与控制台容器同宽的间距
     · 折叠按钮
     · 命令输入行
   =================================================================== */
#mc-inline-console {
    margin-top: 18px;
    margin-bottom: 18px;
}

/* 折叠按钮 —— 与标题栏同高，低调的描边样式 */
.mc-console-btn {
    margin-left: 10px;
    padding: 3px 11px;
    font-size: 11.5px;
    color: #6b8299;
    background: #fff;
    border: 1px solid #dce8f4;
    border-radius: 6px;
    cursor: pointer;
    transition: all .15s;
    line-height: 1.5;
}
.mc-console-btn:hover {
    color: #2cb2ff;
    border-color: #a8d8f5;
    background: #f4fbff;
}

/* 折叠后隐藏日志与输入区 */
#mc-inline-console.collapsed #mc-console-body { display: none; }
#mc-inline-console.collapsed { margin-bottom: 0; }

/* ---------------------------------------------------------------- 内嵌控制台的命令输入区
   两行布局：
     第一行  输入框（自适应占满）+ 发送按钮（固定宽度）
     第二行  常用指令快捷按钮
   flex 布局 + min-width:0 确保输入框不会被按钮挤扁。 */
.mc-console-input {
    padding: 11px 13px 12px;
    border-top: 1px solid #eaf2fa;
    background: #fbfdff;
}

.mc-cmd-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

/* 「常用指令」按钮 —— 描边样式，与主按钮区分 */
.mc-cmd-btn-ghost {
    color: #48627d;
    background: #fff;
    border-color: #dce8f4;
    padding: 0 18px;
    font-weight: 500;
}
.mc-cmd-btn-ghost:hover,
.mc-cmd-btn-ghost:focus {
    color: #1f8fe8;
    background: #f2f9ff;
    border-color: #a8d8f5;
    box-shadow: none;
}

.mc-cmd-field {
    flex: 1 1 auto;
    width: 100%;                /* 撑满整行，不再是窄窄一条 */
    min-width: 0;               /* 允许收缩，避免把按钮挤出去 */
    height: 42px;
    padding: 9px 15px;
    font-family: "JetBrains Mono", Consolas, Menlo, monospace;
    font-size: 13px;
    color: #22313f;
    background: #fff;
    border: 1px solid #dce8f4;
    border-radius: 10px;
    box-shadow: none;
    transition: border-color .15s, box-shadow .15s;
}
.mc-cmd-field:focus {
    border-color: #2cb2ff;
    box-shadow: 0 0 0 3px rgba(44, 178, 255, .14);
    outline: none;
}
.mc-cmd-field::placeholder { color: #a8b8c8; }

.mc-cmd-btn {
    flex: 0 0 auto;             /* 不参与收缩，宽度固定 */
    height: 42px;
    padding: 0 26px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .5px;
    color: #fff;
    background: #2cb2ff;
    border: 1px solid #2cb2ff;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: none;
    transition: background .15s, box-shadow .15s;
}
.mc-cmd-btn:hover,
.mc-cmd-btn:focus {
    background: #1f8fe8;
    border-color: #1f8fe8;
    box-shadow: 0 3px 10px rgba(44, 178, 255, .3);
    outline: none;
}
.mc-cmd-btn:active { transform: translateY(1px); }

/* 内嵌控制台的错误提示 */
#mc-inline-console #command-error {
    margin: 0 13px 11px;
}

/* 内嵌控制台的日志区高度略矮一些，避免把页面撑太长 */
#mc-inline-console .logArea {
    height: clamp(260px, 42vh, 520px);
}

@media (max-width: 768px) {
    #mc-inline-console .logArea {
        height: clamp(220px, 38vh, 400px);
    }
    .mc-console-btn { padding: 3px 9px; font-size: 11px; }
}

/* 窄屏：输入行紧凑一些 */
@media (max-width: 640px) {
    .mc-cmd-row { gap: 8px; }
    .mc-cmd-btn { padding: 0 16px; }
    .mc-cmd-btn-ghost { padding: 0 12px; }
}

/* ===================================================================
   常用指令弹窗
   -------------------------------------------------------------------
   点「常用指令」按钮弹出，按分类列出命令，
   点任意一条即复制并填进输入框。
   =================================================================== */
.mc-cmd-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    animation: mc-modal-in .16s ease-out;
}

@keyframes mc-modal-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* 半透明遮罩，点击关闭 */
.mc-cmd-modal-mask {
    position: absolute;
    inset: 0;
    background: rgba(16, 42, 67, .32);
    backdrop-filter: blur(2px);
}

/* 弹窗主体 */
.mc-cmd-modal-box {
    position: relative;
    width: 100%;
    max-width: 620px;
    max-height: 78vh;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e6eef8;
    border-radius: 14px;
    box-shadow: 0 16px 48px rgba(16, 42, 67, .22);
    overflow: hidden;
    animation: mc-modal-pop .18s cubic-bezier(.2, .9, .3, 1.1);
}

@keyframes mc-modal-pop {
    from { transform: translateY(12px) scale(.97); opacity: 0; }
    to   { transform: translateY(0) scale(1);     opacity: 1; }
}

/* 头部 */
.mc-cmd-modal-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    background: linear-gradient(180deg, #fbfdff 0%, #f4f9fe 100%);
    border-bottom: 1px solid #eaf2fa;
    flex: 0 0 auto;
}

.mc-cmd-modal-title {
    font-size: 14.5px;
    font-weight: 700;
    color: #22313f;
}

.mc-cmd-modal-tip {
    font-size: 11.5px;
    color: #9aabc0;
    margin-left: auto;
}

.mc-cmd-modal-close {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    line-height: 1;
    color: #8b9bb0;
    background: transparent;
    border: none;
    border-radius: 7px;
    cursor: pointer;
    transition: all .14s;
    padding: 0;
    margin-left: 8px;
}
.mc-cmd-modal-close:hover {
    color: #d13b34;
    background: #fdf2f2;
}

/* 主体滚动区 */
.mc-cmd-modal-body {
    overflow-y: auto;
    padding: 14px 18px 18px;
    flex: 1 1 auto;
    scrollbar-width: thin;
    scrollbar-color: #cfdfef #fff;
}
.mc-cmd-modal-body::-webkit-scrollbar { width: 9px; }
.mc-cmd-modal-body::-webkit-scrollbar-thumb {
    background: #cfdfef;
    border-radius: 5px;
    border: 2px solid #fff;
}
.mc-cmd-modal-body::-webkit-scrollbar-thumb:hover { background: #a8c4de; }

/* 分组 */
.mc-cmd-group { margin-bottom: 16px; }
.mc-cmd-group:last-child { margin-bottom: 0; }

.mc-cmd-group-name {
    font-size: 12px;
    font-weight: 600;
    color: #7b90a6;
    letter-spacing: .4px;
    margin-bottom: 8px;
    padding-left: 2px;
}

.mc-cmd-group-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 7px;
}

/* 单条指令 */
.mc-cmd-item {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    padding: 8px 11px;
    text-align: left;
    background: #fafcfe;
    border: 1px solid #eef4fa;
    border-radius: 9px;
    cursor: pointer;
    transition: all .14s;
    overflow: hidden;
}
.mc-cmd-item:hover {
    background: #f2f9ff;
    border-color: #a8d8f5;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(44, 178, 255, .12);
}
.mc-cmd-item:active {
    transform: translateY(0);
    background: #e8f4ff;
}

.mc-cmd-item-name {
    flex: 0 0 auto;
    font-size: 12px;
    font-weight: 600;
    color: #48627d;
    min-width: 68px;
}

.mc-cmd-item code {
    flex: 1 1 auto;
    font-family: "JetBrains Mono", Consolas, Menlo, monospace;
    font-size: 11.5px;
    color: #7b90a6;
    background: transparent;
    border: none;
    padding: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

/* 复制成功的短暂反馈 */
.mc-cmd-item.copied {
    background: #eefaf3;
    border-color: #7ed8a8;
}
.mc-cmd-item.copied .mc-cmd-item-name { color: #1f8a5a; }
.mc-cmd-item.copied .mc-cmd-item-name::after {
    content: ' ✓';
}

/* 移动端：单列铺满 */
@media (max-width: 640px) {
    .mc-cmd-modal { padding: 12px; }
    .mc-cmd-modal-box { max-height: 86vh; }
    .mc-cmd-group-list { grid-template-columns: 1fr; }
    .mc-cmd-modal-tip { display: none; }
    .mc-cmd-modal-head { padding: 12px 14px; }
    .mc-cmd-modal-body { padding: 12px 14px 14px; }
}

/* ===================================================================
   服务器设置折叠面板
   -------------------------------------------------------------------
   顶部操作按钮保持常驻，下面这一大片设置项默认收起，
   点标题栏展开。日常使用只看状态和按钮，改设置时再展开。
   =================================================================== */
.mc-set-panel {
    margin-top: 6px;
    margin-bottom: 18px;
    background: #fff;
    border: 1px solid #e6eef8;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(16, 42, 67, .05);
    overflow: hidden;
}

/* 标题栏 —— 整条可点 */
.mc-set-head {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 13px 18px;
    background: linear-gradient(180deg, #fbfdff 0%, #f4f9fe 100%);
    cursor: pointer;
    user-select: none;
    transition: background .15s;
}
.mc-set-head:hover { background: linear-gradient(180deg, #f6fbff 0%, #eef7ff 100%); }
.mc-set-head:focus { outline: 2px solid #a8d8f5; outline-offset: -2px; }

/* 箭头：展开时旋转 90° */
.mc-set-caret {
    display: flex;
    align-items: center;
    color: #8b9bb0;
    transition: transform .2s ease, color .15s;
}
.mc-set-caret svg { transform: rotate(90deg); }   /* 默认展开：箭头朝下 */
.mc-set-panel.collapsed .mc-set-caret svg { transform: rotate(0deg); }  /* 收起：箭头朝右 */
.mc-set-panel .mc-set-caret { color: #2cb2ff; }
.mc-set-panel.collapsed .mc-set-caret { color: #8b9bb0; }

.mc-set-title {
    font-size: 13.5px;
    font-weight: 600;
    color: #48627d;
}

.mc-set-sub {
    margin-left: auto;
    font-size: 11.5px;
    color: #9aabc0;
}

/* 内容区：默认收起 */
.mc-set-body {
    /* 默认展开：日常需要经常看设置项 */
    display: block;
    padding: 4px 18px 18px;
    border-top: 1px solid #eaf2fa;
}
/* 点了标题栏才收起 */
.mc-set-panel.collapsed .mc-set-body {
    display: none;
}

@keyframes mc-set-open {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* 折叠后去掉多余的下间距 */
.mc-set-panel.collapsed { margin-bottom: 14px; }

/* 内容区里的表格：去掉外层重复边框，视觉更干净 */
.mc-set-body .detail-view,
.mc-set-body table.stdtable {
    border: none;
    box-shadow: none;
    margin-bottom: 0;
}

@media (max-width: 640px) {
    .mc-set-head { padding: 11px 14px; }
    .mc-set-body { padding: 4px 12px 14px; }
    .mc-set-sub { display: none; }
}

/* ===================================================================
   控制台标题栏里的操作按钮
   -------------------------------------------------------------------
   与控制台顶部那排 .btn-servercontrol 功能相同，
   这里做得更紧凑，配色按操作性质区分：
     启动 —— 绿（正向操作）
     停止 —— 橙（中断服务）
     重启 —— 蓝（重新开始）
     强制停止 —— 红（危险操作，需要谨慎）
   =================================================================== */
.mc-console-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: 14px;
}

.mc-run-btn {
    padding: 4px 13px;
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1.6;
    color: #48627d;
    background: #fff;
    border: 1px solid #dce8f4;
    border-radius: 7px;
    cursor: pointer;
    white-space: nowrap;
    transition: all .14s;
}

.mc-run-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 2px 7px rgba(16, 42, 67, .1);
}
.mc-run-btn:active:not(:disabled) { transform: translateY(0); }

/* 禁用状态：浏览器会自动置灰，这里再压一下对比度 */
.mc-run-btn:disabled,
.mc-run-btn[disabled] {
    opacity: .45;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* ---- 启动：绿 ---- */
.mc-run-start { color: #1f8a5a; border-color: #b6e5cc; }
.mc-run-start:hover:not(:disabled) { background: #eefaf3; border-color: #7ed8a8; }

/* ---- 停止：橙 ---- */
.mc-run-stop { color: #b8760a; border-color: #f0d9a8; }
.mc-run-stop:hover:not(:disabled) { background: #fffaf0; border-color: #f0c060; }

/* ---- 重启：蓝 ---- */
.mc-run-restart { color: #1f8fe8; border-color: #b6dcf5; }
.mc-run-restart:hover:not(:disabled) { background: #f2f9ff; border-color: #7ec4f0; }

/* ---- 强制停止：红 ---- */
.mc-run-kill { color: #c0392b; border-color: #f2c4bf; }
.mc-run-kill:hover:not(:disabled) { background: #fdf5f4; border-color: #e89a92; }

/* 窄屏：按钮换行到第二行，不与标题挤在一处 */
@media (max-width: 860px) {
    .mc-console-bar {
        flex-wrap: wrap;
        row-gap: 7px;
    }
    .mc-console-actions {
        margin-left: auto;
        order: 3;
        width: 100%;
        justify-content: flex-start;
    }
    .mc-console-hint { display: none; }
}

/* ===================================================================
   在线玩家模块
   -------------------------------------------------------------------
   与「服务器设置」面板同一套视觉语言（圆角卡片 + 淡边框 + 标题栏），
   列表用网格排布，每条玩家一个小卡片。
   =================================================================== */
.mc-player-panel {
    margin-top: 18px;
    margin-bottom: 18px;
    background: #fff;
    border: 1px solid #e6eef8;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(16, 42, 67, .05);
    overflow: hidden;
}

/* 标题栏 */
.mc-player-head {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 12px 18px;
    background: linear-gradient(180deg, #fbfdff 0%, #f4f9fe 100%);
    border-bottom: 1px solid #eaf2fa;
}

.mc-player-icon {
    display: flex;
    align-items: center;
    color: #7fa4c4;
}

.mc-player-title {
    font-size: 13.5px;
    font-weight: 600;
    color: #48627d;
}

/* 人数徽标 */
.mc-player-count {
    margin-left: auto;
    padding: 2px 11px;
    font-size: 11.5px;
    font-weight: 600;
    color: #1f8fe8;
    background: #eaf4ff;
    border-radius: 999px;
    font-variant-numeric: tabular-nums;
}
.mc-player-count.empty {
    color: #8b9bb0;
    background: #f2f5f9;
}

/* 列表区 */
.mc-player-body {
    padding: 12px 18px 16px;
}

/* 在线玩家列表
   -------------------------------------------------------------------
   以前每条玩家占一整行（display:flex 撑满宽度），人一多就是一长条，
   右边空一大片。现在改成自适应网格：一排按屏幕宽度自动放 2~5 个。
   ------------------------------------------------------------------- */
.mc-player-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
    gap: 7px;
    color: #48627d;
    font-size: 13px;
    line-height: 1.9;
}

/* 单张玩家卡片 */
.mc-player-row {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;                 /* 允许内部省略号生效 */
    padding: 7px 11px;
    background: #fafcfe;
    border: 1px solid #eef4fa;
    border-radius: 9px;
    transition: background .14s, border-color .14s;
}
.mc-player-row:hover {
    background: #f4fbff;
    border-color: #cfe6f8;
}

/* 玩家名 —— 可能是纯文本 span，也可能包在「查看玩家」的 a 里。
   两种都要吃掉剩余宽度并支持长名省略。 */
.mc-player-row > span:first-child,
.mc-player-row > a:first-child {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 600;
    color: #3d5470;
    text-decoration: none;
}
.mc-player-row > a:first-child:hover {
    color: #1f8fe8;
    text-decoration: none;
}

/* Kick 外面那层 <span style="float:right"> ——
   flex 布局下 float 不起作用，靠 margin-left:auto 靠右。 */
.mc-player-row > span:last-child:not(:first-child) {
    flex: 0 0 auto;
    margin-left: auto;
    display: inline-flex;
}

/* Kick 按钮。用 href^="javascript:" 精确命中，
   免得把「查看玩家」那个链接也染成红的。 */
.mc-player-row a[href^="javascript:"] {
    padding: 2px 10px;
    font-size: 11px;
    font-weight: 600;
    color: #d13b34;
    background: #fff;
    border: 1px solid #f2c4bf;
    border-radius: 7px;
    text-decoration: none;
    white-space: nowrap;
    transition: all .14s;
}
.mc-player-row a[href^="javascript:"]:hover {
    color: #fff;
    background: #d13b34;
    border-color: #d13b34;
    text-decoration: none;
}

/* 空状态 / 提示文字 —— 网格里要横跨整行 */
.mc-player-list:empty::before,
.mc-player-list > .mc-player-empty,
.mc-player-list .mc-empty {
    grid-column: 1 / -1;
    display: block;
    padding: 18px 0;
    text-align: center;
    color: #a8b8c0;
    font-size: 12.5px;
    background: none;
    border: none;
}

@media (max-width: 640px) {
    .mc-player-body { padding: 10px 12px 13px; }
    .mc-player-head { padding: 10px 14px; }
    /* 窄屏放一个就够，别挤成两列看不清名字 */
    .mc-player-list { grid-template-columns: 1fr; }
}

/* ===================================================================
   聊天页面
   -------------------------------------------------------------------
   与控制台、服务器设置面板同一套视觉语言：
     卡片 + 淡蓝描边 + 顶部光带，主色 #2cb2ff / #1f8fe8。

   布局：
     左侧在线玩家（固定 200px），右侧聊天区（自适应）
     窄屏自动堆叠成上下两块。
   =================================================================== */

/* ---------------------------------------------------------------- 页面标题 */
.mc-chat-head {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e8f1fa;
}
.mc-chat-head-icon {
    display: flex;
    align-items: center;
    color: #7fa4c4;
}
.mc-chat-head-title {
    font-size: 18px;
    font-weight: 700;
    color: #22313f;
}
.mc-chat-head-status {
    margin-left: auto;
    height: 22px;
    width: auto;
}

/* ---------------------------------------------------------------- 两栏布局 */
.mc-chat-wrap {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 16px;
    align-items: start;
}

/* ---------------------------------------------------------------- 左侧玩家 */
.mc-chat-side {
    background: #fff;
    border: 1px solid #e2edf8;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(16, 42, 67, .05);
    overflow: hidden;
}
.mc-chat-side-head {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 10px 14px;
    font-size: 12.5px;
    font-weight: 600;
    color: #48627d;
    background: linear-gradient(180deg, #fbfdff 0%, #f4f9fe 100%);
    border-bottom: 1px solid #eaf2fa;
}
.mc-chat-side-head svg { color: #7fa4c4; }

.mc-chat-players {
    padding: 10px 12px 13px;
    font-size: 13px;
    color: #48627d;
    line-height: 1.9;
    max-height: 420px;
    overflow-y: auto;
}

/* 每条玩家整成一个小标签 */
.mc-chat-players > div,
.mc-chat-players > span {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 7px 11px;
    margin-bottom: 6px;
    background: #f7fbff;
    border: 1px solid #eaf2fa;
    border-radius: 8px;
    font-weight: 600;
    color: #3d5470;
    transition: all .14s;
}
.mc-chat-players > div:hover,
.mc-chat-players > span:hover {
    background: #f0f8ff;
    border-color: #cfe6f8;
}
.mc-chat-players > div::before,
.mc-chat-players > span::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #34d399;
    flex: 0 0 auto;
}

/* 空状态 / 提示文字 */
.mc-chat-players:empty::before {
    content: '暂无玩家在线';
    display: block;
    padding: 16px 0;
    text-align: center;
    font-size: 12px;
    color: #a8b8c0;
}

/* ---------------------------------------------------------------- 右侧聊天 */
.mc-chat-main { min-width: 0; }

.mc-chat-box {
    background: #fff;
    border: 1px solid #e2edf8;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(16, 42, 67, .05);
    overflow: hidden;
}

/* 标题栏 */
.mc-chat-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: linear-gradient(180deg, #fbfdff 0%, #f4f9fe 100%);
    border-bottom: 1px solid #eaf2fa;
}
.mc-chat-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #2cb2ff;
    box-shadow: 0 0 0 3px rgba(44, 178, 255, .15);
    flex: 0 0 auto;
}
.mc-chat-bar-title {
    font-size: 12.5px;
    font-weight: 600;
    color: #48627d;
}

/* 清空按钮 —— 小号描边，hover 变红 */
.mc-chat-clear {
    margin-left: auto;
    padding: 4px 12px;
    font-size: 11.5px;
    color: #8b9bb0;
    background: #fff;
    border: 1px solid #e2edf8;
    border-radius: 7px;
    text-decoration: none;
    transition: all .14s;
}
.mc-chat-clear:hover {
    color: #d13b34;
    background: #fdf5f4;
    border-color: #f2c4bf;
    text-decoration: none;
}

/* 内容区 */
.mc-chat-body { padding: 12px 14px 14px; }

/* 聊天记录：加大行距、弱化时间戳 */
.mc-chat-log {
    width: 100% !important;
    min-height: 320px;
    max-height: 460px;
    padding: 12px 14px !important;
    font-size: 13px !important;
    line-height: 1.85 !important;
    color: #3d5470;
    background: #fafcfe !important;
    border: 1px solid #eef4fa !important;
    border-radius: 10px !important;
    resize: vertical;
}
.mc-chat-log:focus {
    outline: none;
    border-color: #cfe6f8 !important;
}

/* ---------------------------------------------------------------- 输入区 */
.mc-chat-form { margin-top: 11px; }

.mc-chat-input {
    display: flex;
    align-items: stretch;
    gap: 9px;
}
.mc-chat-field {
    flex: 1 1 auto;
    min-width: 0;
    height: 40px;
    padding: 8px 14px;
    font-size: 13.5px;
    color: #22313f;
    background: #fff;
    border: 1px solid #dce8f4;
    border-radius: 10px;
    box-shadow: none;
    transition: border-color .15s, box-shadow .15s;
}
.mc-chat-field:focus {
    border-color: #2cb2ff;
    box-shadow: 0 0 0 3px rgba(44, 178, 255, .14);
    outline: none;
}
.mc-chat-field::placeholder { color: #b8c4d2; }

/* 发送按钮 */
.mc-chat-send {
    flex: 0 0 auto;
    padding: 0 26px;
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: .3px;
    color: #fff;
    background: linear-gradient(135deg, #3fb8ff, #1f8fe8);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 3px 12px rgba(44, 178, 255, .28);
    transition: all .17s;
}
.mc-chat-send:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(44, 178, 255, .4);
}
.mc-chat-send:active { transform: translateY(0); }

/* 错误提示 */
.mc-chat-error {
    margin-top: 9px;
    padding: 8px 12px;
    font-size: 12.5px;
    color: #c0392b;
    background: #fff5f5;
    border: 1px solid #f8d4d1;
    border-radius: 8px;
}

/* ---------------------------------------------------------------- 窄屏 */
@media (max-width: 900px) {
    .mc-chat-wrap {
        grid-template-columns: 1fr;
        gap: 13px;
    }
    .mc-chat-players { max-height: 180px; }
    .mc-chat-log { min-height: 240px; }
}
@media (max-width: 520px) {
    .mc-chat-input { flex-wrap: wrap; }
    .mc-chat-send {
        width: 100%;
        height: 40px;
    }
}

/* ===================================================================
   插件页面
   -------------------------------------------------------------------
   卡片式列表替代默认的 CGridView：
     · 页面标题栏（图标 + 标题 + 数量徽标）
     · 空状态：居中大图标 + 说明 + 操作按钮
     · 插件行：文件名 + 描述 + 状态徽标 + 操作按钮
   =================================================================== */

/* ---------------------------------------------------------------- 标题栏 */
.mc-pl-head {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e8f1fa;
}
.mc-pl-head-icon {
    display: flex;
    align-items: center;
    color: #7fa4c4;
}
.mc-pl-head-title {
    font-size: 18px;
    font-weight: 700;
    color: #22313f;
}
.mc-pl-head-count {
    margin-left: auto;
    padding: 3px 12px;
    font-size: 12px;
    font-weight: 600;
    color: #1f8fe8;
    background: #eaf4ff;
    border-radius: 999px;
}

/* ---------------------------------------------------------------- 提示 */
.mc-pl-flash {
    margin-bottom: 14px;
    padding: 11px 15px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.6;
}
.mc-pl-flash-error {
    color: #c0392b;
    background: #fff5f5;
    border: 1px solid #f8d4d1;
}
.mc-pl-flash-ok {
    color: #1f8a5a;
    background: #f2fbf6;
    border: 1px solid #c9ebd9;
}

/* ---------------------------------------------------------------- 空状态 */
.mc-pl-empty {
    padding: 52px 24px 48px;
    text-align: center;
    background: #fff;
    border: 1px solid #e2edf8;
    border-radius: 14px;
    box-shadow: 0 2px 14px rgba(16, 42, 67, .05);
}
.mc-pl-empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 84px;
    height: 84px;
    margin-bottom: 20px;
    color: #b8d4ea;
    background: linear-gradient(180deg, #f7fbff 0%, #eef7ff 100%);
    border: 1px solid #e2eef8;
    border-radius: 22px;
}
.mc-pl-empty-title {
    font-size: 16px;
    font-weight: 700;
    color: #3d5470;
    margin-bottom: 10px;
}
.mc-pl-empty-desc {
    font-size: 13px;
    color: #8b9bb0;
    line-height: 1.85;
    margin-bottom: 22px;
}
.mc-pl-empty-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}
.mc-pl-empty-btn {
    display: inline-block;
    padding: 10px 24px;
    font-size: 13px;
    font-weight: 600;
    color: #48627d;
    background: #fff;
    border: 1px solid #dce8f4;
    border-radius: 10px;
    text-decoration: none;
    transition: all .16s;
}
.mc-pl-empty-btn:hover {
    color: #1f8fe8;
    background: #f4fbff;
    border-color: #a8d8f5;
    text-decoration: none;
}
.mc-pl-empty-btn-primary {
    color: #fff;
    background: linear-gradient(135deg, #3fb8ff, #1f8fe8);
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(44, 178, 255, .28);
}
.mc-pl-empty-btn-primary:hover {
    color: #fff;
    background: linear-gradient(135deg, #3fb8ff, #1f8fe8);
    transform: translateY(-1px);
    box-shadow: 0 7px 20px rgba(44, 178, 255, .4);
    text-decoration: none;
}

/* ---------------------------------------------------------------- 插件列表 */
.mc-pl-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mc-pl-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 15px 18px;
    background: #fff;
    border: 1px solid #e2edf8;
    border-radius: 12px;
    box-shadow: 0 1px 6px rgba(16, 42, 67, .04);
    transition: all .16s;
}
.mc-pl-item:hover {
    border-color: #cfe6f8;
    box-shadow: 0 4px 16px rgba(44, 178, 255, .12);
    transform: translateX(2px);
}

.mc-pl-item-main {
    flex: 1 1 auto;
    min-width: 0;
}

/* 文件名 */
.mc-pl-item-file {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 14px;
    font-weight: 700;
    color: #3d5470;
    margin-bottom: 5px;
    word-break: break-all;
}
.mc-pl-item-file svg {
    flex: 0 0 auto;
    color: #8cb8dc;
}

/* 描述 */
.mc-pl-item-desc {
    font-size: 12.5px;
    color: #8b9bb0;
    line-height: 1.7;
}
.mc-pl-item-desc p { margin: 0 0 4px; }
.mc-pl-item-desc a { color: #1f8fe8; }

/* 右侧：状态 + 操作 */
.mc-pl-item-side {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 0 0 auto;
}

/* 状态徽标 */
.mc-pl-badge {
    padding: 4px 12px;
    font-size: 11.5px;
    font-weight: 600;
    border-radius: 999px;
    white-space: nowrap;
}
.mc-pl-badge-ok {
    color: #1f8a5a;
    background: #f2fbf6;
    border: 1px solid #c9ebd9;
}
.mc-pl-badge-warn {
    color: #c9820a;
    background: #fffbf2;
    border: 1px solid #f5dfb0;
}
.mc-pl-badge-off {
    color: #8b9bb0;
    background: #f4f7fa;
    border: 1px solid #e6eef8;
}

/* 操作按钮（覆盖 Yii 生成的纯文字链接） */
.mc-pl-item-act {
    display: flex;
    gap: 7px;
    align-items: center;
}
.mc-pl-item-act a {
    display: inline-block;
    padding: 6px 16px;
    font-size: 12.5px;
    font-weight: 600;
    color: #1f8fe8;
    background: #f2f9ff;
    border: 1px solid #d6ebfb;
    border-radius: 8px;
    text-decoration: none;
    white-space: nowrap;
    transition: all .15s;
}
.mc-pl-item-act a:hover {
    color: #fff;
    background: linear-gradient(135deg, #3fb8ff, #1f8fe8);
    border-color: transparent;
    text-decoration: none;
}

/* 分页 */
.mc-pl-pager {
    margin-top: 18px;
    text-align: center;
}
.mc-pl-pager ul.yiiPager {
    display: inline-flex;
    gap: 5px;
    padding: 0;
    margin: 0;
    list-style: none;
    border: none;
}
.mc-pl-pager ul.yiiPager li { display: inline-block; }
.mc-pl-pager ul.yiiPager a,
.mc-pl-pager ul.yiiPager span {
    display: inline-block;
    padding: 6px 13px;
    font-size: 12.5px;
    color: #48627d;
    background: #fff;
    border: 1px solid #dce8f4;
    border-radius: 8px;
    text-decoration: none;
}
.mc-pl-pager ul.yiiPager .selected a {
    color: #fff;
    background: linear-gradient(135deg, #3fb8ff, #1f8fe8);
    border-color: transparent;
}

/* ---------------------------------------------------------------- 窄屏 */
@media (max-width: 640px) {
    .mc-pl-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .mc-pl-item-side {
        width: 100%;
        justify-content: space-between;
    }
    .mc-pl-empty { padding: 36px 18px 34px; }
}

/* ===================================================================
   回档页面
   -------------------------------------------------------------------
   包含：标题栏、风险提示条、备份列表、空状态、确认弹窗
   危险操作用橙/红色系，和普通操作的蓝色区分开。
   =================================================================== */

/* ---------------------------------------------------------------- 标题栏 */
.mc-rs-head {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e8f1fa;
}
.mc-rs-head-icon { display: flex; align-items: center; color: #7fa4c4; }
.mc-rs-head-title { font-size: 18px; font-weight: 700; color: #22313f; }
.mc-rs-head-count {
    margin-left: auto;
    padding: 3px 12px;
    font-size: 12px;
    font-weight: 600;
    color: #1f8fe8;
    background: #eaf4ff;
    border-radius: 999px;
}

/* ---------------------------------------------------------------- 提示 */
.mc-rs-flash {
    margin-bottom: 14px;
    padding: 11px 15px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.6;
}
.mc-rs-flash-error {
    color: #c0392b;
    background: #fff5f5;
    border: 1px solid #f8d4d1;
}

/* ---------------------------------------------------------------- 风险提示条 */
.mc-rs-warn {
    display: flex;
    gap: 11px;
    margin-bottom: 16px;
    padding: 14px 16px;
    background: #fffaf0;
    border: 1px solid #f5dfb0;
    border-radius: 11px;
}
.mc-rs-warn-icon { flex: 0 0 auto; color: #d97706; margin-top: 1px; }
.mc-rs-warn-body { flex: 1 1 auto; min-width: 0; }
.mc-rs-warn-body > b {
    display: block;
    font-size: 13.5px;
    color: #b8760a;
    margin-bottom: 7px;
}
.mc-rs-warn-body ul {
    margin: 0;
    padding-left: 18px;
    list-style: disc;
}
.mc-rs-warn-body li {
    font-size: 12.5px;
    color: #8a7040;
    line-height: 1.85;
}
.mc-rs-warn-body b { color: #b8760a; }

/* ---------------------------------------------------------------- 空状态 */
.mc-rs-empty {
    padding: 48px 24px 44px;
    text-align: center;
    background: #fff;
    border: 1px solid #e2edf8;
    border-radius: 14px;
    box-shadow: 0 2px 14px rgba(16, 42, 67, .05);
}
.mc-rs-empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    margin-bottom: 18px;
    color: #b8d4ea;
    background: linear-gradient(180deg, #f7fbff 0%, #eef7ff 100%);
    border: 1px solid #e2eef8;
    border-radius: 20px;
}
.mc-rs-empty-title { font-size: 16px; font-weight: 700; color: #3d5470; margin-bottom: 9px; }
.mc-rs-empty-desc { font-size: 13px; color: #8b9bb0; line-height: 1.85; margin-bottom: 20px; }
.mc-rs-empty-btn {
    display: inline-block;
    padding: 10px 24px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #3fb8ff, #1f8fe8);
    border-radius: 10px;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(44, 178, 255, .28);
    transition: all .16s;
}
.mc-rs-empty-btn:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 7px 20px rgba(44, 178, 255, .4);
    text-decoration: none;
}

/* ---------------------------------------------------------------- 备份列表 */
.mc-rs-list { display: flex; flex-direction: column; gap: 9px; }

.mc-rs-item {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 14px 17px;
    background: #fff;
    border: 1px solid #e2edf8;
    border-radius: 12px;
    box-shadow: 0 1px 6px rgba(16, 42, 67, .04);
    transition: all .16s;
}
.mc-rs-item:hover {
    border-color: #cfe6f8;
    box-shadow: 0 4px 16px rgba(44, 178, 255, .12);
}
.mc-rs-item-icon { flex: 0 0 auto; color: #8cb8dc; }
.mc-rs-item-main { flex: 1 1 auto; min-width: 0; }
.mc-rs-item-file {
    font-size: 13.5px;
    font-weight: 700;
    color: #3d5470;
    margin-bottom: 4px;
    word-break: break-all;
}
.mc-rs-item-time {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #8b9bb0;
}
.mc-rs-item-time svg { color: #a8c4de; }

/* 回档按钮 —— 描边样式，hover 变实心橙红，暗示危险 */
.mc-rs-btn {
    flex: 0 0 auto;
    padding: 7px 20px;
    font-size: 12.5px;
    font-weight: 600;
    color: #d97706;
    background: #fffbf2;
    border: 1px solid #f5dfb0;
    border-radius: 9px;
    text-decoration: none;
    white-space: nowrap;
    transition: all .16s;
}
.mc-rs-btn:hover {
    color: #fff;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border-color: transparent;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(217, 119, 6, .32);
}

/* 分页 */
.mc-rs-pager { margin-top: 18px; text-align: center; }
.mc-rs-pager ul.yiiPager {
    display: inline-flex; gap: 5px;
    padding: 0; margin: 0; list-style: none; border: none;
}
.mc-rs-pager ul.yiiPager a,
.mc-rs-pager ul.yiiPager span {
    display: inline-block;
    padding: 6px 13px;
    font-size: 12.5px;
    color: #48627d;
    background: #fff;
    border: 1px solid #dce8f4;
    border-radius: 8px;
    text-decoration: none;
}
.mc-rs-pager ul.yiiPager .selected a {
    color: #fff;
    background: linear-gradient(135deg, #3fb8ff, #1f8fe8);
    border-color: transparent;
}

/* ===================================================================
   回档确认弹窗
   =================================================================== */
.mc-rs-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.mc-rs-mask {
    position: absolute;
    inset: 0;
    background: rgba(16, 42, 67, .48);
    backdrop-filter: blur(2px);
}
.mc-rs-box {
    position: relative;
    width: 100%;
    max-width: 520px;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 18px 52px rgba(16, 42, 67, .32);
    overflow: hidden;
    animation: mc-rs-pop .18s cubic-bezier(.2, .9, .3, 1.1);
}
@keyframes mc-rs-pop {
    from { transform: translateY(12px) scale(.98); opacity: 0; }
    to   { transform: translateY(0) scale(1); opacity: 1; }
}

/* 标题栏 —— 用橙色区分这是危险操作 */
.mc-rs-box-head {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 13px 18px;
    background: linear-gradient(180deg, #fffbf3 0%, #fff7e8 100%);
    border-bottom: 1px solid #f7e6c4;
    flex: 0 0 auto;
}
.mc-rs-box-icon { display: flex; color: #d97706; }
.mc-rs-box-title { font-size: 15px; font-weight: 700; color: #b8760a; }
.mc-rs-box-close {
    margin-left: auto;
    width: 27px; height: 27px;
    display: flex; align-items: center; justify-content: center;
    font-size: 19px; line-height: 1;
    color: #b8a888; background: transparent;
    border: none; border-radius: 7px;
    cursor: pointer; padding: 0;
    transition: all .14s;
}
.mc-rs-box-close:hover { color: #d13b34; background: #fdf2f2; }

.mc-rs-box-body {
    padding: 16px 18px 14px;
    overflow-y: auto;
    flex: 1 1 auto;
}

/* 备份信息 */
.mc-rs-box-file {
    padding: 12px 14px;
    margin-bottom: 14px;
    background: #fafcfe;
    border: 1px solid #eef4fa;
    border-radius: 10px;
}
.mc-rs-box-file-row {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 4px 0;
}
.mc-rs-box-file-row span {
    flex: 0 0 62px;
    font-size: 12px;
    color: #8b9bb0;
}
.mc-rs-box-file-row b {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 13px;
    font-weight: 600;
    color: #3d5470;
    word-break: break-all;
}

/* 注意事项 */
.mc-rs-box-tips {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}
.mc-rs-tip {
    display: flex;
    gap: 9px;
    font-size: 12.5px;
    color: #6b7f94;
    line-height: 1.75;
}
.mc-rs-tip b { color: #c0392b; }
.mc-rs-tip-num {
    flex: 0 0 19px;
    height: 19px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
    font-size: 11px;
    font-weight: 700;
    color: #d97706;
    background: #fff7e8;
    border: 1px solid #f7e6c4;
    border-radius: 50%;
}

/* 确认勾选 */
.mc-rs-box-check {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 11px 13px;
    margin: 0;
    font-size: 13px;
    font-weight: 500;
    color: #3d5470;
    background: #f7fbff;
    border: 1px solid #e2eef8;
    border-radius: 10px;
    cursor: pointer;
}
.mc-rs-box-check input {
    width: 16px; height: 16px;
    margin: 0;
    cursor: pointer;
    flex: 0 0 auto;
}

/* 底部按钮 */
.mc-rs-box-foot {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 13px 18px;
    background: #fafcfe;
    border-top: 1px solid #eef4fa;
    flex: 0 0 auto;
}
.mc-rs-box-btn {
    padding: 9px 24px;
    font-size: 13px;
    font-weight: 600;
    color: #48627d;
    background: #fff;
    border: 1px solid #dce8f4;
    border-radius: 9px;
    cursor: pointer;
    transition: all .15s;
}
.mc-rs-box-btn:hover {
    color: #1f8fe8;
    background: #f4fbff;
    border-color: #a8d8f5;
}
.mc-rs-box-btn-danger {
    color: #fff;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border-color: transparent;
    box-shadow: 0 3px 12px rgba(217, 119, 6, .3);
}
.mc-rs-box-btn-danger:hover:not(:disabled) {
    color: #fff;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(217, 119, 6, .42);
}
.mc-rs-box-btn-danger:disabled {
    color: #c4ccd6;
    background: #eef2f6;
    box-shadow: none;
    cursor: not-allowed;
}

/* ---------------------------------------------------------------- 窄屏 */
@media (max-width: 640px) {
    .mc-rs-item { flex-wrap: wrap; }
    .mc-rs-btn { width: 100%; text-align: center; }
    .mc-rs-empty { padding: 34px 18px 32px; }
    .mc-rs-box-file-row { flex-direction: column; gap: 2px; }
}

/* ===================================================================
   备份页面
   -------------------------------------------------------------------
   包含：标题栏、操作卡片、状态卡片（由 AJAX 带回）、提示浮条
   =================================================================== */

/* ---------------------------------------------------------------- 标题栏 */
.mc-bk-head {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e8f1fa;
}
.mc-bk-head-icon { display: flex; align-items: center; color: #7fa4c4; }
.mc-bk-head-title { font-size: 18px; font-weight: 700; color: #22313f; }

/* ---------------------------------------------------------------- 操作卡片 */
.mc-bk-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px 20px;
    margin-bottom: 14px;
    background: #fff;
    border: 1px solid #e2edf8;
    border-radius: 13px;
    box-shadow: 0 2px 10px rgba(16, 42, 67, .05);
}
.mc-bk-actions-text { flex: 1 1 auto; min-width: 0; }
.mc-bk-actions-title {
    font-size: 15px;
    font-weight: 700;
    color: #22313f;
    margin-bottom: 6px;
}
.mc-bk-actions-desc {
    font-size: 12.5px;
    color: #8b9bb0;
    line-height: 1.7;
}
.mc-bk-actions-btns {
    display: flex;
    gap: 9px;
    flex: 0 0 auto;
}

/* 按钮 —— 覆盖 Yii 默认样式
   注意：这些按钮是 <input type="button">，value 只能是纯文本，
   所以图标用 ::before 伪元素画，不能往标签里塞 SVG。 */
.mc-bk-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    padding: 10px 20px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    color: #48627d !important;
    background: #fff !important;
    border: 1px solid #dce8f4 !important;
    border-radius: 10px !important;
    text-decoration: none !important;
    cursor: pointer;
    transition: all .16s;
    box-shadow: none !important;
    text-shadow: none !important;
}
.mc-bk-btn:hover {
    color: #1f8fe8 !important;
    background: #f4fbff !important;
    border-color: #a8d8f5 !important;
    text-decoration: none !important;
}
.mc-bk-btn svg { flex: 0 0 auto; }

.mc-bk-btn-primary {
    color: #fff !important;
    background: linear-gradient(135deg, #3fb8ff, #1f8fe8) !important;
    border-color: transparent !important;
    box-shadow: 0 4px 14px rgba(44, 178, 255, .28) !important;
}
.mc-bk-btn-primary:hover {
    color: #fff !important;
    background: linear-gradient(135deg, #3fb8ff, #1f8fe8) !important;
    transform: translateY(-1px);
    box-shadow: 0 7px 20px rgba(44, 178, 255, .4) !important;
}

/* ---------------------------------------------------------------- 状态卡片 */
.mc-bk-ajax { margin-bottom: 14px; }

.mc-bk-status {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    padding: 16px 18px;
    border-radius: 13px;
    border: 1px solid;
}
.mc-bk-status-icon {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 11px;
}
.mc-bk-status-body { flex: 1 1 auto; min-width: 0; }
.mc-bk-status-title {
    font-size: 14.5px;
    font-weight: 700;
    margin-bottom: 5px;
}
.mc-bk-status-detail {
    font-size: 12.5px;
    line-height: 1.75;
    word-break: break-word;
}

/* 空闲 */
.mc-bk-idle {
    background: #fafcfe;
    border-color: #e6eef8;
}
.mc-bk-idle .mc-bk-status-icon {
    color: #8b9bb0;
    background: #f2f6fa;
}
.mc-bk-idle .mc-bk-status-title { color: #48627d; }
.mc-bk-idle .mc-bk-status-detail { color: #8b9bb0; }

/* 成功 */
.mc-bk-ok {
    background: #f5fdf9;
    border-color: #c9ebd9;
}
.mc-bk-ok .mc-bk-status-icon {
    color: #1f8a5a;
    background: #e6f7ee;
}
.mc-bk-ok .mc-bk-status-title { color: #1f8a5a; }
.mc-bk-ok .mc-bk-status-detail { color: #5f9b7d; }

/* 进行中 —— 图标旋转 */
.mc-bk-run {
    background: #f4fbff;
    border-color: #cfe6f8;
}
.mc-bk-run .mc-bk-status-icon {
    color: #1f8fe8;
    background: #e6f3ff;
}
.mc-bk-run .mc-bk-status-icon svg {
    animation: mc-bk-spin 1.2s linear infinite;
}
@keyframes mc-bk-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
.mc-bk-run .mc-bk-status-title { color: #1f8fe8; }
.mc-bk-run .mc-bk-status-detail { color: #6b9bc4; }

/* 错误 */
.mc-bk-err {
    background: #fff7f6;
    border-color: #f8d4d1;
}
.mc-bk-err .mc-bk-status-icon {
    color: #c0392b;
    background: #fdeeed;
}
.mc-bk-err .mc-bk-status-title { color: #c0392b; }
.mc-bk-err .mc-bk-status-detail { color: #b0756e; }

/* 旧的 flash 类也美化一下（FTP 提示等还会用到） */
.mc-bk-ajax .flash-success,
.mc-bk-ajax .flash-error {
    padding: 12px 16px;
    margin-bottom: 12px;
    font-size: 12.5px;
    line-height: 1.75;
    border-radius: 11px;
    white-space: normal !important;
}
.mc-bk-ajax .flash-success {
    color: #1f8a5a;
    background: #f5fdf9;
    border: 1px solid #c9ebd9;
}
.mc-bk-ajax .flash-error {
    color: #c0392b;
    background: #fff7f6;
    border: 1px solid #f8d4d1;
}
.mc-bk-ajax a { color: #1f8fe8; }

/* ---------------------------------------------------------------- 提示浮条 */
.mc-bk-toast {
    position: fixed;
    left: 50%;
    top: 22px;
    transform: translateX(-50%) translateY(-14px);
    z-index: 99998;
    max-width: 520px;
    padding: 12px 22px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    background: rgba(34, 49, 63, .94);
    border-radius: 11px;
    box-shadow: 0 10px 30px rgba(16, 42, 67, .3);
    opacity: 0;
    pointer-events: none;
    transition: opacity .28s, transform .28s;
}
.mc-bk-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ---------------------------------------------------------------- 窄屏 */
@media (max-width: 640px) {
    .mc-bk-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }
    .mc-bk-actions-btns { width: 100%; }
    .mc-bk-btn { flex: 1 1 auto; justify-content: center; }
    .mc-bk-status { padding: 13px 14px; }
    .mc-bk-status-icon { width: 36px; height: 36px; }
}

/* ===================================================================
   FTP 信息页
   -------------------------------------------------------------------
   三块：说明 / 连接信息（可复制）/ 登录
   =================================================================== */

/* ---------------------------------------------------------------- 标题栏 */
.mc-ftp-head {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e8f1fa;
}
.mc-ftp-head-icon { display: flex; align-items: center; color: #7fa4c4; }
.mc-ftp-head-title { font-size: 18px; font-weight: 700; color: #22313f; }

/* ---------------------------------------------------------------- 说明条 */
.mc-ftp-tip {
    display: flex;
    gap: 11px;
    padding: 13px 16px;
    margin-bottom: 14px;
    background: #f4fbff;
    border: 1px solid #cfe6f8;
    border-radius: 11px;
}
.mc-ftp-tip-icon { flex: 0 0 auto; color: #1f8fe8; margin-top: 1px; }
.mc-ftp-tip-body { flex: 1 1 auto; min-width: 0; }
.mc-ftp-tip-body > b {
    display: block;
    font-size: 13px;
    color: #1f8fe8;
    margin-bottom: 5px;
}
.mc-ftp-tip-body > div {
    font-size: 12.5px;
    color: #6b9bc4;
    line-height: 1.75;
}
.mc-ftp-tip-body a {
    color: #1f8fe8;
    font-weight: 600;
    text-decoration: none;
}
.mc-ftp-tip-body a:hover { text-decoration: underline; }

/* ---------------------------------------------------------------- 卡片 */
.mc-ftp-card {
    background: #fff;
    border: 1px solid #e2edf8;
    border-radius: 13px;
    box-shadow: 0 2px 10px rgba(16, 42, 67, .05);
    overflow: hidden;
    margin-bottom: 14px;
}
.mc-ftp-card-head {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 11px 16px;
    font-size: 12.5px;
    font-weight: 600;
    color: #48627d;
    background: linear-gradient(180deg, #fbfdff 0%, #f4f9fe 100%);
    border-bottom: 1px solid #eaf2fa;
}
.mc-ftp-card-head svg { color: #7fa4c4; flex: 0 0 auto; }
.mc-ftp-card-hint {
    margin-left: auto;
    font-size: 11.5px;
    font-weight: 400;
    color: #a8b8c0;
}

/* ---------------------------------------------------------------- 可复制的信息行 */
.mc-ftp-rows { padding: 6px; }

.mc-ftp-row {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 13px;
    background: transparent;
    border: none;
    border-radius: 9px;
    cursor: pointer;
    text-align: left;
    transition: background .14s;
}
.mc-ftp-row:hover { background: #f7fbff; }
.mc-ftp-row + .mc-ftp-row { border-top: 1px solid #f2f7fb; }

.mc-ftp-row-label {
    flex: 0 0 110px;
    font-size: 12.5px;
    color: #8b9bb0;
}
.mc-ftp-row-val {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 13.5px;
    font-weight: 600;
    color: #22313f;
    font-family: ui-monospace, Menlo, Consolas, monospace;
    word-break: break-all;
}
.mc-ftp-row-act {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 11px;
    font-size: 11.5px;
    font-weight: 600;
    color: #1f8fe8;
    background: #f2f9ff;
    border: 1px solid #d6ebfb;
    border-radius: 7px;
    transition: all .14s;
}
.mc-ftp-row:hover .mc-ftp-row-act {
    color: #fff;
    background: linear-gradient(135deg, #3fb8ff, #1f8fe8);
    border-color: transparent;
}
.mc-ftp-row.copied .mc-ftp-row-act {
    color: #fff;
    background: linear-gradient(135deg, #34d399, #22c55e);
    border-color: transparent;
}

/* ---------------------------------------------------------------- 登录区 */
.mc-ftp-body { padding: 16px; }

.mc-ftp-field { margin-bottom: 14px; }
.mc-ftp-field label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 7px;
    font-size: 12.5px;
    font-weight: 500;
    color: #7b90a6;
}
.mc-ftp-pwlink {
    padding: 2px 9px;
    font-size: 11px;
    color: #1f8fe8;
    background: #f2f9ff;
    border: 1px solid #d6ebfb;
    border-radius: 6px;
    text-decoration: none;
}
.mc-ftp-pwlink:hover { text-decoration: none; color: #fff; background: #1f8fe8; }

.mc-ftp-input {
    width: 100%;
    height: 42px;
    padding: 9px 14px;
    font-size: 13.5px;
    color: #22313f;
    background: #fff;
    border: 1px solid #dce8f4;
    border-radius: 10px;
    box-shadow: none;
    transition: border-color .15s, box-shadow .15s;
}
.mc-ftp-input:focus {
    border-color: #2cb2ff;
    box-shadow: 0 0 0 3px rgba(44, 178, 255, .14);
    outline: none;
}
.mc-ftp-hint {
    margin-top: 7px;
    font-size: 11.5px;
    color: #a8b8c0;
}

/* 登录按钮 —— 覆盖 Yii 默认样式 */
.mc-ftp-submit {
    display: block;
    width: 100%;
    padding: 12px 20px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    letter-spacing: .3px;
    color: #fff !important;
    background: linear-gradient(135deg, #3fb8ff, #1f8fe8) !important;
    border: none !important;
    border-radius: 10px !important;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(44, 178, 255, .28) !important;
    text-shadow: none !important;
    transition: all .17s;
}
.mc-ftp-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 7px 20px rgba(44, 178, 255, .42) !important;
}

/* ---------------------------------------------------------------- 无账号状态 */
.mc-ftp-empty {
    padding: 46px 24px 42px;
    text-align: center;
    background: #fff;
    border: 1px solid #e2edf8;
    border-radius: 14px;
    box-shadow: 0 2px 14px rgba(16, 42, 67, .05);
}
.mc-ftp-empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 76px;
    margin-bottom: 18px;
    color: #b8d4ea;
    background: linear-gradient(180deg, #f7fbff 0%, #eef7ff 100%);
    border: 1px solid #e2eef8;
    border-radius: 20px;
}
.mc-ftp-empty-title { font-size: 15.5px; font-weight: 700; color: #3d5470; margin-bottom: 9px; }
.mc-ftp-empty-desc { font-size: 13px; color: #8b9bb0; line-height: 1.85; margin-bottom: 20px; }
.mc-ftp-empty-btn {
    display: inline-block;
    padding: 11px 28px;
    font-size: 13.5px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #3fb8ff, #1f8fe8);
    border-radius: 10px;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(44, 178, 255, .28);
    transition: all .16s;
}
.mc-ftp-empty-btn:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 7px 20px rgba(44, 178, 255, .4);
    text-decoration: none;
}

/* ---------------------------------------------------------------- 窄屏 */
@media (max-width: 640px) {
    .mc-ftp-row {
        flex-wrap: wrap;
        gap: 6px;
    }
    .mc-ftp-row-label { flex: 1 1 100%; }
    .mc-ftp-row-val { flex: 1 1 auto; }
    .mc-ftp-empty { padding: 32px 18px 30px; }
}

/* ===================================================================
   服务器管理页（按节点分区）
   -------------------------------------------------------------------
   布局：每个节点一个区块，区块内是卡片式服务器列表。
   一眼能看出哪台服务器在哪个节点上。
   =================================================================== */

/* ---------------------------------------------------------------- 标题栏 */
.mc-sa-head {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e8f1fa;
}
.mc-sa-head-icon { display: flex; align-items: center; color: #7fa4c4; }
.mc-sa-head-title { font-size: 18px; font-weight: 700; color: #22313f; }
.mc-sa-head-count {
    margin-left: auto;
    padding: 3px 12px;
    font-size: 12px;
    font-weight: 600;
    color: #1f8fe8;
    background: #eaf4ff;
    border-radius: 999px;
}

/* ---------------------------------------------------------------- 搜索区 */
.mc-sa-tools {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.mc-sa-search-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 12.5px;
    font-weight: 600;
    color: #48627d;
    background: #fff;
    border: 1px solid #dce8f4;
    border-radius: 9px;
    cursor: pointer;
    transition: all .15s;
}
.mc-sa-search-btn:hover {
    color: #1f8fe8;
    background: #f4fbff;
    border-color: #a8d8f5;
}
.mc-sa-tools-hint {
    font-size: 11.5px;
    color: #a8b8c0;
}
.mc-sa-searchform {
    padding: 14px 16px;
    margin-bottom: 14px;
    background: #fff;
    border: 1px solid #e2edf8;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(16, 42, 67, .05);
}
.mc-sa-searchform input[type=text] {
    height: 34px;
    padding: 5px 11px;
    font-size: 13px;
    border: 1px solid #dce8f4;
    border-radius: 8px;
}
.mc-sa-searchform input[type=submit] {
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #3fb8ff, #1f8fe8);
    border: none;
    border-radius: 9px;
    cursor: pointer;
}

/* ---------------------------------------------------------------- 节点区块 */
.mc-sa-group {
    margin-bottom: 18px;
    background: #fff;
    border: 1px solid #e2edf8;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(16, 42, 67, .05);
    overflow: hidden;
}

.mc-sa-group-head {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 13px 18px;
    background: linear-gradient(180deg, #fbfdff 0%, #f1f8fe 100%);
    border-bottom: 1px solid #e8f1fa;
}
.mc-sa-group-icon { display: flex; color: #5b8db8; }
.mc-sa-group-name {
    font-size: 14.5px;
    font-weight: 700;
    color: #22313f;
}
.mc-sa-group-ip {
    font-size: 11.5px;
    color: #9aabc0;
    font-family: ui-monospace, Menlo, Consolas, monospace;
}
.mc-sa-group-count {
    padding: 2px 10px;
    margin-left: 4px;
    font-size: 11.5px;
    font-weight: 600;
    color: #1f8fe8;
    background: #eaf4ff;
    border-radius: 999px;
}
.mc-sa-group-link {
    margin-left: auto;
    font-size: 12px;
    font-weight: 600;
    color: #1f8fe8;
    text-decoration: none;
}
.mc-sa-group-link:hover { text-decoration: underline; }

/* ---------------------------------------------------------------- 服务器卡片 */
.mc-sa-list { padding: 10px; }

.mc-sa-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 13px 15px;
    border-radius: 10px;
    transition: all .15s;
}
.mc-sa-item + .mc-sa-item { border-top: 1px solid #f2f7fb; }
.mc-sa-item:hover {
    background: #f7fbff;
}
.mc-sa-item.is-off { opacity: .62; }

.mc-sa-item-main { flex: 1 1 auto; min-width: 0; }

.mc-sa-item-name {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 6px;
}
.mc-sa-item-name a {
    font-size: 14.5px;
    font-weight: 700;
    color: #22313f;
    text-decoration: none;
}
.mc-sa-item-name a:hover { color: #1f8fe8; }

.mc-sa-tag {
    padding: 2px 9px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 6px;
}
.mc-sa-tag-off {
    color: #b8760a;
    background: #fffbf2;
    border: 1px solid #f5dfb0;
}

.mc-sa-item-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}
.mc-sa-meta {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11.5px;
    color: #8b9bb0;
    font-family: ui-monospace, Menlo, Consolas, monospace;
}
.mc-sa-meta svg { color: #a8c4de; flex: 0 0 auto; }
.mc-sa-meta-link {
    color: #1f8fe8;
    text-decoration: none;
    font-family: inherit;
}
.mc-sa-meta-link:hover { text-decoration: underline; }

/* 右侧统计 */
.mc-sa-item-stats {
    display: flex;
    gap: 22px;
    flex: 0 0 auto;
}
.mc-sa-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    min-width: 58px;
}
.mc-sa-stat span { font-size: 10.5px; color: #a8b8c0; }
.mc-sa-stat b {
    font-size: 13.5px;
    font-weight: 700;
    color: #3d5470;
    font-variant-numeric: tabular-nums;
}

/* 管理按钮 */
.mc-sa-item-btn {
    flex: 0 0 auto;
    padding: 8px 20px;
    font-size: 12.5px;
    font-weight: 600;
    color: #1f8fe8;
    background: #f2f9ff;
    border: 1px solid #d6ebfb;
    border-radius: 9px;
    text-decoration: none;
    white-space: nowrap;
    transition: all .15s;
}
.mc-sa-item-btn:hover {
    color: #fff;
    background: linear-gradient(135deg, #3fb8ff, #1f8fe8);
    border-color: transparent;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(44, 178, 255, .3);
}

/* ---------------------------------------------------------------- 空状态 */
.mc-sa-empty {
    padding: 48px 24px 44px;
    text-align: center;
    background: #fff;
    border: 1px solid #e2edf8;
    border-radius: 14px;
    box-shadow: 0 2px 14px rgba(16, 42, 67, .05);
}
.mc-sa-empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 78px;
    height: 78px;
    margin-bottom: 18px;
    color: #b8d4ea;
    background: linear-gradient(180deg, #f7fbff 0%, #eef7ff 100%);
    border: 1px solid #e2eef8;
    border-radius: 20px;
}
.mc-sa-empty-title { font-size: 15.5px; font-weight: 700; color: #3d5470; margin-bottom: 9px; }
.mc-sa-empty-desc { font-size: 13px; color: #8b9bb0; line-height: 1.8; }

/* ---------------------------------------------------------------- 分页 */
.mc-sa-pager { margin-top: 18px; text-align: center; }
.mc-sa-pager ul.yiiPager {
    display: inline-flex; gap: 5px;
    padding: 0; margin: 0; list-style: none; border: none;
}
.mc-sa-pager ul.yiiPager a,
.mc-sa-pager ul.yiiPager span {
    display: inline-block;
    padding: 6px 13px;
    font-size: 12.5px;
    color: #48627d;
    background: #fff;
    border: 1px solid #dce8f4;
    border-radius: 8px;
    text-decoration: none;
}
.mc-sa-pager ul.yiiPager .selected a {
    color: #fff;
    background: linear-gradient(135deg, #3fb8ff, #1f8fe8);
    border-color: transparent;
}

/* ---------------------------------------------------------------- 窄屏 */
@media (max-width: 700px) {
    .mc-sa-item {
        flex-wrap: wrap;
        gap: 11px;
    }
    .mc-sa-item-stats {
        gap: 16px;
        flex: 1 1 100%;
        padding-top: 8px;
        border-top: 1px dashed #eef4fa;
    }
    .mc-sa-stat { flex-direction: row; gap: 6px; min-width: 0; }
    .mc-sa-item-btn { flex: 1 1 100%; text-align: center; }
    .mc-sa-group-ip { display: none; }
}


/* ---------------------------------------------------------------- 备份按钮图标 */
/* 用 mask + 背景色画，这样图标颜色跟随按钮文字色 */
.mc-bk-btn-ico-refresh::before,
.mc-bk-btn-ico-folder::before {
    content: '';
    flex: 0 0 auto;
    width: 13px;
    height: 13px;
    background-color: currentColor;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
}

.mc-bk-btn-ico-refresh::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 4V1L8 5l4 4V6a6 6 0 1 1-6 6H4a8 8 0 1 0 8-8z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 4V1L8 5l4 4V6a6 6 0 1 1-6 6H4a8 8 0 1 0 8-8z'/%3E%3C/svg%3E");
}

.mc-bk-btn-ico-folder::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M20 6h-8l-2-2H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M20 6h-8l-2-2H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2z'/%3E%3C/svg%3E");
}

/* input 按钮的 value 居中，不需要额外的内边距补偿 */
.mc-bk-btn { justify-content: center; }

/* ===================================================================
   节点状态页
   -------------------------------------------------------------------
   卡片式列表替代 CGridView：
     · 每个节点一张卡
     · 状态点由 JS 换成 online/offline 图标
     · 版本状态文字由 JS 填入
   =================================================================== */

/* ---------------------------------------------------------------- 标题栏 */
.mc-ds-head {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e8f1fa;
}
.mc-ds-head-icon { display: flex; align-items: center; color: #7fa4c4; }
.mc-ds-head-title { font-size: 18px; font-weight: 700; color: #22313f; }
.mc-ds-head-count {
    margin-left: auto;
    padding: 3px 12px;
    font-size: 12px;
    font-weight: 600;
    color: #1f8fe8;
    background: #eaf4ff;
    border-radius: 999px;
}

/* ---------------------------------------------------------------- 顶部信息条 */
.mc-ds-topbar {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    margin-bottom: 14px;
    background: #fff;
    border: 1px solid #e2edf8;
    border-radius: 11px;
    box-shadow: 0 1px 6px rgba(16, 42, 67, .04);
}
.mc-ds-ver {
    display: flex;
    align-items: baseline;
    gap: 8px;
}
.mc-ds-ver-label { font-size: 12.5px; color: #8b9bb0; }
.mc-ds-ver-val {
    font-size: 13.5px;
    font-weight: 700;
    color: #3d5470;
    font-family: ui-monospace, Menlo, Consolas, monospace;
}
.mc-ds-refresh {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0 0 0 auto;
    font-size: 12.5px;
    font-weight: 400;
    color: #8b9bb0;
}
.mc-ds-refresh-input {
    width: 54px !important;
    height: 32px;
    padding: 4px 9px !important;
    font-size: 13px;
    text-align: center;
    color: #22313f;
    background: #fff;
    border: 1px solid #dce8f4;
    border-radius: 8px;
    box-shadow: none;
}
.mc-ds-refresh-input:focus {
    border-color: #2cb2ff;
    box-shadow: 0 0 0 3px rgba(44, 178, 255, .14);
    outline: none;
}

/* ---------------------------------------------------------------- 卡片列表 */
.mc-ds-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 14px;
}

.mc-ds-card {
    position: relative;
    padding: 16px 18px 14px;
    background: #fff;
    border: 1px solid #e2edf8;
    border-radius: 13px;
    box-shadow: 0 2px 10px rgba(16, 42, 67, .05);
    transition: all .18s;
}
.mc-ds-card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg, #7ec4f0, #2cb2ff, #7ec4f0);
    border-radius: 13px 13px 0 0;
}
.mc-ds-card:hover {
    border-color: #cfe6f8;
    box-shadow: 0 8px 24px rgba(44, 178, 255, .14);
    transform: translateY(-2px);
}

/* 卡片顶栏 */
.mc-ds-card-head {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 10px;
}

/* 状态点容器 —— JS 会往里面的 img 换 src */
.mc-ds-dot {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
}
.mc-ds-dot img {
    width: 14px;
    height: 14px;
    display: block;
}

.mc-ds-card-name {
    font-size: 15px;
    font-weight: 700;
    color: #22313f;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.mc-ds-card-id {
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 600;
    color: #9aabc0;
    background: #f4f7fa;
    border-radius: 6px;
    font-family: ui-monospace, Menlo, Consolas, monospace;
}

/* 删除按钮 */
.mc-ds-del {
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    color: #b8c4d2 !important;
    background: transparent;
    border-radius: 7px;
    text-decoration: none !important;
    transition: all .14s;
}
.mc-ds-del:hover {
    color: #d13b34 !important;
    background: #fdf2f2;
}

/* 地址 */
.mc-ds-card-addr {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    font-size: 12.5px;
    color: #7b90a6;
    font-family: ui-monospace, Menlo, Consolas, monospace;
}
.mc-ds-card-addr svg { color: #a8c4de; flex: 0 0 auto; }

/* 统计 */
.mc-ds-card-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 11px 13px;
    margin-bottom: 10px;
    background: linear-gradient(180deg, #fbfdff 0%, #f6fbff 100%);
    border: 1px solid #e8f1fa;
    border-radius: 10px;
}
.mc-ds-stat {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}
.mc-ds-stat-label { font-size: 10.5px; color: #9aabc0; }
.mc-ds-stat-val {
    font-size: 13px;
    font-weight: 700;
    color: #3d5470;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 版本状态区 —— JS 往这里写 content */
.mc-ds-card-status {
    min-height: 18px;
    font-size: 11.5px;
    line-height: 1.65;
    color: #8b9bb0;
    word-break: break-word;
}
.mc-ds-card-status:empty::before {
    content: '正在获取版本信息…';
    color: #b8c4d2;
}

/* ---------------------------------------------------------------- 空状态 */
.mc-ds-empty {
    padding: 48px 24px 44px;
    text-align: center;
    background: #fff;
    border: 1px solid #e2edf8;
    border-radius: 14px;
    box-shadow: 0 2px 14px rgba(16, 42, 67, .05);
}
.mc-ds-empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 78px;
    height: 78px;
    margin-bottom: 18px;
    color: #b8d4ea;
    background: linear-gradient(180deg, #f7fbff 0%, #eef7ff 100%);
    border: 1px solid #e2eef8;
    border-radius: 20px;
}
.mc-ds-empty-title { font-size: 15.5px; font-weight: 700; color: #3d5470; margin-bottom: 9px; }
.mc-ds-empty-desc { font-size: 13px; color: #8b9bb0; line-height: 1.85; }

/* ---------------------------------------------------------------- 分页 */
/* CListView 的 pagerCssClass 是 mc-ds-pager-inner，
   它会渲染成 <ul class="yiiPager mc-ds-pager-inner">，
   所以两种选择器都要覆盖到。 */
.mc-ds-pager { margin-top: 18px; text-align: center; }

.mc-ds-pager ul.yiiPager,
ul.yiiPager.mc-ds-pager-inner {
    display: inline-flex !important;
    gap: 5px;
    padding: 0;
    margin: 0;
    list-style: none;
    border: none;
}
.mc-ds-pager ul.yiiPager li,
ul.yiiPager.mc-ds-pager-inner li {
    display: inline-block;
    margin: 0;
}
.mc-ds-pager ul.yiiPager a,
.mc-ds-pager ul.yiiPager span,
ul.yiiPager.mc-ds-pager-inner a,
ul.yiiPager.mc-ds-pager-inner span {
    display: inline-block;
    padding: 6px 13px;
    font-size: 12.5px;
    color: #48627d;
    background: #fff;
    border: 1px solid #dce8f4;
    border-radius: 8px;
    text-decoration: none;
    transition: all .14s;
}
.mc-ds-pager ul.yiiPager a:hover,
ul.yiiPager.mc-ds-pager-inner a:hover {
    color: #1f8fe8;
    background: #f4fbff;
    border-color: #a8d8f5;
    text-decoration: none;
}
.mc-ds-pager ul.yiiPager .selected a,
ul.yiiPager.mc-ds-pager-inner .selected a {
    color: #fff !important;
    background: linear-gradient(135deg, #3fb8ff, #1f8fe8) !important;
    border-color: transparent !important;
    box-shadow: 0 3px 10px rgba(44, 178, 255, .28);
}
/* 首页/末页/上一页/下一页 在不可点时是 span，去掉边框感 */
.mc-ds-pager ul.yiiPager .hidden,
ul.yiiPager.mc-ds-pager-inner .hidden {
    display: none;
}

/* ---------------------------------------------------------------- 窄屏 */
@media (max-width: 640px) {
    .mc-ds-list { grid-template-columns: 1fr; }
    .mc-ds-topbar { flex-wrap: wrap; gap: 10px; }
    .mc-ds-refresh { margin-left: 0; }
}

/* ===================================================================
   服务器管理页：折叠 + 分组分页
   =================================================================== */

/* ---------------------------------------------------------------- 折叠箭头 */
.mc-sa-group-caret {
    display: flex;
    align-items: center;
    color: #8cb8dc;
    flex: 0 0 auto;
    transition: transform .18s;
}
.mc-sa-group.is-collapsed .mc-sa-group-caret {
    transform: rotate(-90deg);
}

/* 标题栏可点击的提示 */
.mc-sa-group-head {
    cursor: pointer;
    user-select: none;
}
.mc-sa-group-head:hover {
    background: linear-gradient(180deg, #f7fbff 0%, #eef7ff 100%);
}

/* 折叠时隐藏内容区 */
.mc-sa-group.is-collapsed .mc-sa-body {
    display: none;
}

/* 分组页码标签 */
.mc-sa-group-page {
    padding: 2px 9px;
    font-size: 11px;
    font-weight: 600;
    color: #8b9bb0;
    background: #f4f7fa;
    border: 1px solid #e6eef8;
    border-radius: 999px;
    font-variant-numeric: tabular-nums;
}

/* ---------------------------------------------------------------- 分组分页器 */
.mc-sa-body .mc-sa-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
    padding: 12px 10px 14px;
    margin-top: 0;
    border-top: 1px solid #f2f7fb;
}

.mc-sa-pg {
    display: inline-block;
    min-width: 32px;
    padding: 6px 11px;
    font-size: 12.5px;
    font-weight: 600;
    text-align: center;
    color: #48627d;
    background: #fff;
    border: 1px solid #dce8f4;
    border-radius: 8px;
    text-decoration: none;
    transition: all .14s;
}
.mc-sa-pg:hover {
    color: #1f8fe8;
    background: #f4fbff;
    border-color: #a8d8f5;
    text-decoration: none;
}
.mc-sa-pg.is-cur {
    color: #fff;
    background: linear-gradient(135deg, #3fb8ff, #1f8fe8);
    border-color: transparent;
    box-shadow: 0 3px 10px rgba(44, 178, 255, .28);
}
.mc-sa-pg.is-off {
    color: #c4ccd6;
    background: #f7f9fb;
    border-color: #eef2f6;
    cursor: not-allowed;
}
.mc-sa-pg-dots {
    padding: 0 2px;
    font-size: 12.5px;
    color: #b8c4d2;
}

/* ---------------------------------------------------------------- 窄屏 */
@media (max-width: 640px) {
    .mc-sa-group-page { display: none; }
    .mc-sa-pg { padding: 6px 9px; min-width: 28px; font-size: 12px; }
}

/* ===================================================================
   服务器设置面板 —— 分组标题
   -------------------------------------------------------------------
   67 个字段平铺看不出层次，用分组标题行分隔：
     · 跨两列，淡蓝渐变底
     · 左侧一道蓝色竖条 + 图标 + 分组名
     · 和普通字段行视觉上明确区分
   =================================================================== */
.mc-set-body tr.mc-group-row th {
    padding: 11px 18px !important;
    background: linear-gradient(180deg, #f4f9fe 0%, #eaf4fd 100%) !important;
    border-top: 1px solid #dcebf8 !important;
    border-bottom: 1px solid #dcebf8 !important;
    text-align: left;
}

/* 第一组不加上边框，避免和面板顶栏重叠 */
.mc-set-body tr.mc-group-row:first-child th {
    border-top: none !important;
}

.mc-set-group-icon {
    display: inline-flex;
    align-items: center;
    margin-right: 8px;
    color: #4a90c4;
    vertical-align: -2px;
}

.mc-set-group-name {
    position: relative;
    padding-left: 11px;
    font-size: 13px;
    font-weight: 700;
    color: #2c5f8a;
    letter-spacing: .3px;
}
.mc-set-group-name::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 13px;
    background: linear-gradient(180deg, #3fb8ff, #1f8fe8);
    border-radius: 2px;
}

/* 分组标题下面的第一行字段，给点间距 */
.mc-set-body tr.mc-group-row + tr > th,
.mc-set-body tr.mc-group-row + tr > td {
    padding-top: 14px !important;
}

/* 普通字段行的分隔线更淡一点，让分组更醒目 */
.mc-set-body tr.linerow > th,
.mc-set-body tr.linerow > td {
    border-bottom: 1px solid #f2f7fb !important;
}

/* ===================================================================
   附加端口页
   =================================================================== */

/* ---------------------------------------------------------------- 标题栏 */
.mc-pt-head {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e8f1fa;
}
.mc-pt-head-icon { display: flex; align-items: center; color: #7fa4c4; }
.mc-pt-head-title { font-size: 18px; font-weight: 700; color: #22313f; }
.mc-pt-head-count {
    margin-left: auto;
    padding: 3px 12px;
    font-size: 12px;
    font-weight: 600;
    color: #1f8fe8;
    background: #eaf4ff;
    border-radius: 999px;
    font-variant-numeric: tabular-nums;
}

/* ---------------------------------------------------------------- 提示 */
.mc-pt-flash {
    margin-bottom: 14px;
    padding: 11px 15px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.6;
}
.mc-pt-flash-error {
    color: #c0392b;
    background: #fff5f5;
    border: 1px solid #f8d4d1;
}

.mc-pt-tip {
    display: flex;
    gap: 11px;
    padding: 13px 16px;
    margin-bottom: 16px;
    background: #f4fbff;
    border: 1px solid #cfe6f8;
    border-radius: 11px;
}
.mc-pt-tip-icon { flex: 0 0 auto; color: #1f8fe8; margin-top: 1px; }
.mc-pt-tip-body { flex: 1 1 auto; min-width: 0; }
.mc-pt-tip-body > b {
    display: block;
    font-size: 13px;
    color: #1f8fe8;
    margin-bottom: 5px;
}
.mc-pt-tip-body > div {
    font-size: 12.5px;
    color: #6b9bc4;
    line-height: 1.8;
}

/* ---------------------------------------------------------------- 端口列表 */
.mc-pt-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.mc-pt-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 17px;
    background: #fff;
    border: 1px solid #e2edf8;
    border-radius: 11px;
    box-shadow: 0 1px 6px rgba(16, 42, 67, .04);
    transition: all .15s;
}
.mc-pt-item:hover {
    border-color: #cfe6f8;
    box-shadow: 0 4px 14px rgba(44, 178, 255, .12);
}

.mc-pt-item-num {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    font-size: 11px;
    font-weight: 700;
    color: #8b9bb0;
    background: #f4f7fa;
    border-radius: 7px;
    font-variant-numeric: tabular-nums;
}

.mc-pt-item-icon {
    flex: 0 0 auto;
    display: flex;
    color: #8cb8dc;
}

.mc-pt-item-port {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 15px;
    font-weight: 700;
    color: #22313f;
    font-family: ui-monospace, Menlo, Consolas, monospace;
    letter-spacing: .5px;
}

.mc-pt-item-del {
    flex: 0 0 auto;
    padding: 6px 16px;
    font-size: 12.5px;
    font-weight: 600;
    color: #b8760a;
    background: #fffbf2;
    border: 1px solid #f5dfb0;
    border-radius: 8px;
    text-decoration: none;
    transition: all .15s;
}
.mc-pt-item-del:hover {
    color: #fff;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border-color: transparent;
    text-decoration: none;
}

/* ---------------------------------------------------------------- 空状态 */
.mc-pt-empty {
    padding: 40px 24px 36px;
    margin-bottom: 16px;
    text-align: center;
    background: #fff;
    border: 1px solid #e2edf8;
    border-radius: 13px;
    box-shadow: 0 2px 10px rgba(16, 42, 67, .05);
}
.mc-pt-empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    margin-bottom: 15px;
    color: #b8d4ea;
    background: linear-gradient(180deg, #f7fbff 0%, #eef7ff 100%);
    border: 1px solid #e2eef8;
    border-radius: 18px;
}
.mc-pt-empty-title { font-size: 15px; font-weight: 700; color: #3d5470; margin-bottom: 8px; }
.mc-pt-empty-desc { font-size: 12.5px; color: #8b9bb0; line-height: 1.8; }

/* ---------------------------------------------------------------- 操作按钮 */
.mc-pt-actions {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}

.mc-pt-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 11px 26px;
    font-size: 13.5px;
    font-weight: 600;
    color: #48627d;
    background: #fff;
    border: 1px solid #dce8f4;
    border-radius: 10px;
    text-decoration: none;
    cursor: pointer;
    transition: all .16s;
}
.mc-pt-btn:hover {
    text-decoration: none;
}
.mc-pt-btn-primary {
    color: #fff;
    background: linear-gradient(135deg, #3fb8ff, #1f8fe8);
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(44, 178, 255, .28);
}
.mc-pt-btn-primary:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 7px 20px rgba(44, 178, 255, .4);
}
.mc-pt-btn.is-disabled {
    color: #c4ccd6;
    background: #f7f9fb;
    border-color: #eef2f6;
    cursor: not-allowed;
}

/* ---------------------------------------------------------------- 管理员区 */
.mc-pt-admin {
    background: #fff;
    border: 1px solid #e2edf8;
    border-radius: 13px;
    box-shadow: 0 2px 10px rgba(16, 42, 67, .05);
    overflow: hidden;
}
.mc-pt-admin-head {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 11px 16px;
    font-size: 12.5px;
    font-weight: 600;
    color: #48627d;
    background: linear-gradient(180deg, #fbfdff 0%, #f4f9fe 100%);
    border-bottom: 1px solid #eaf2fa;
}
.mc-pt-admin-head svg { color: #7fa4c4; }

.mc-pt-admin-body { padding: 16px; }

.mc-pt-field { margin-bottom: 14px; }
.mc-pt-field label {
    display: block;
    margin-bottom: 7px;
    font-size: 12.5px;
    font-weight: 500;
    color: #7b90a6;
}
.mc-pt-input {
    width: 100%;
    height: 42px;
    padding: 9px 14px;
    font-size: 13.5px;
    color: #22313f;
    background: #fff;
    border: 1px solid #dce8f4;
    border-radius: 10px;
    box-shadow: none;
    transition: border-color .15s, box-shadow .15s;
    font-family: ui-monospace, Menlo, Consolas, monospace;
}
.mc-pt-input:focus {
    border-color: #2cb2ff;
    box-shadow: 0 0 0 3px rgba(44, 178, 255, .14);
    outline: none;
}
.mc-pt-hint {
    margin-top: 7px;
    font-size: 11.5px;
    color: #a8b8c0;
}

.mc-pt-btn-admin {
    display: block;
    width: 100%;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, #3fb8ff, #1f8fe8);
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(44, 178, 255, .28);
}
.mc-pt-btn-admin:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 7px 20px rgba(44, 178, 255, .4);
}

/* ---------------------------------------------------------------- 窄屏 */
@media (max-width: 640px) {
    .mc-pt-item { padding: 11px 13px; gap: 9px; }
    .mc-pt-item-port { font-size: 14px; }
    .mc-pt-item-del { padding: 6px 12px; }
    .mc-pt-empty { padding: 30px 18px 28px; }
}

/* ===================================================================
   启动参数页
   -------------------------------------------------------------------
   卡片式参数列表：整行可点，勾选后变蓝高亮。
   =================================================================== */

/* ---------------------------------------------------------------- 标题栏 */
.mc-pm-head {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e8f1fa;
}
.mc-pm-head-icon { display: flex; align-items: center; color: #7fa4c4; }
.mc-pm-head-title { font-size: 18px; font-weight: 700; color: #22313f; }
.mc-pm-head-count {
    margin-left: auto;
    padding: 3px 12px;
    font-size: 12px;
    font-weight: 600;
    color: #1f8fe8;
    background: #eaf4ff;
    border-radius: 999px;
    font-variant-numeric: tabular-nums;
}

/* ---------------------------------------------------------------- 提示 */
.mc-pm-flash {
    margin-bottom: 14px;
    padding: 11px 15px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.6;
}
.mc-pm-flash-ok {
    color: #1f8a5a;
    background: #f2fbf6;
    border: 1px solid #c9ebd9;
}
.mc-pm-flash-error {
    color: #c0392b;
    background: #fff5f5;
    border: 1px solid #f8d4d1;
}

.mc-pm-tip {
    display: flex;
    gap: 11px;
    padding: 13px 16px;
    margin-bottom: 16px;
    background: #f4fbff;
    border: 1px solid #cfe6f8;
    border-radius: 11px;
}
.mc-pm-tip-icon { flex: 0 0 auto; color: #1f8fe8; margin-top: 1px; }
.mc-pm-tip-body { flex: 1 1 auto; min-width: 0; }
.mc-pm-tip-body > b {
    display: block;
    font-size: 13px;
    color: #1f8fe8;
    margin-bottom: 5px;
}
.mc-pm-tip-body > div {
    font-size: 12.5px;
    color: #6b9bc4;
    line-height: 1.8;
}
.mc-pm-tip-body b { color: #1f8fe8; }

/* ---------------------------------------------------------------- 参数列表 */
.mc-pm-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mc-pm-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 17px;
    margin: 0;
    font-weight: 400;
    background: #fff;
    border: 1px solid #e2edf8;
    border-radius: 11px;
    box-shadow: 0 1px 6px rgba(16, 42, 67, .04);
    cursor: pointer;
    transition: all .15s;
    user-select: none;
}
.mc-pm-item:hover {
    border-color: #cfe6f8;
    box-shadow: 0 4px 14px rgba(44, 178, 255, .12);
}

/* 已启用：淡蓝底 + 蓝边 */
.mc-pm-item.is-on {
    background: linear-gradient(180deg, #f6fbff 0%, #eef7ff 100%);
    border-color: #a8d8f5;
    box-shadow: 0 2px 10px rgba(44, 178, 255, .12);
}

/* 复选框 */
.mc-pm-check {
    flex: 0 0 auto;
    width: 17px !important;
    height: 17px !important;
    margin: 0 !important;
    cursor: pointer;
    accent-color: #1f8fe8;
}

/* 参数名 + 说明 */
.mc-pm-item-main {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mc-pm-item-param {
    font-size: 13.5px;
    font-weight: 600;
    color: #3d5470;
    font-family: ui-monospace, Menlo, Consolas, monospace;
    word-break: break-all;
}
.mc-pm-item.is-on .mc-pm-item-param {
    color: #1f8fe8;
}

.mc-pm-item-info {
    font-size: 11.5px;
    color: #9aabc0;
    line-height: 1.6;
}

/* 状态标签 */
.mc-pm-item-state {
    flex: 0 0 auto;
    font-size: 11.5px;
    font-weight: 600;
    white-space: nowrap;
}
.mc-pm-state-on {
    display: none;
    color: #1f8a5a;
}
.mc-pm-state-off {
    display: inline;
    color: #b8c4d2;
}
.mc-pm-item.is-on .mc-pm-state-on { display: inline; }
.mc-pm-item.is-on .mc-pm-state-off { display: none; }

/* ---------------------------------------------------------------- 空状态 */
.mc-pm-empty {
    padding: 44px 24px 40px;
    text-align: center;
    background: #fff;
    border: 1px solid #e2edf8;
    border-radius: 13px;
    box-shadow: 0 2px 10px rgba(16, 42, 67, .05);
}
.mc-pm-empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    margin-bottom: 16px;
    color: #b8d4ea;
    background: linear-gradient(180deg, #f7fbff 0%, #eef7ff 100%);
    border: 1px solid #e2eef8;
    border-radius: 18px;
}
.mc-pm-empty-title { font-size: 15px; font-weight: 700; color: #3d5470; margin-bottom: 8px; }
.mc-pm-empty-desc { font-size: 12.5px; color: #8b9bb0; line-height: 1.8; }

/* ---------------------------------------------------------------- 窄屏 */
@media (max-width: 640px) {
    .mc-pm-item {
        flex-wrap: wrap;
        gap: 9px;
        padding: 11px 13px;
    }
    .mc-pm-item-state { flex: 1 1 100%; text-align: right; }
    .mc-pm-item-param { font-size: 12.5px; }
}

/* ===================================================================
   用户与权限页
   -------------------------------------------------------------------
   每个用户一张卡片：头像 + 用户名 / FTP 权限 / 角色
   =================================================================== */

/* ---------------------------------------------------------------- 标题栏 */
.mc-us-head {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e8f1fa;
}
.mc-us-head-icon { display: flex; align-items: center; color: #7fa4c4; }
.mc-us-head-title { font-size: 18px; font-weight: 700; color: #22313f; }
.mc-us-head-count {
    margin-left: auto;
    padding: 3px 12px;
    font-size: 12px;
    font-weight: 600;
    color: #1f8fe8;
    background: #eaf4ff;
    border-radius: 999px;
}

/* ---------------------------------------------------------------- 提示条 */
.mc-us-tip {
    display: flex;
    gap: 11px;
    padding: 13px 16px;
    margin-bottom: 16px;
    background: #f4fbff;
    border: 1px solid #cfe6f8;
    border-radius: 11px;
}
.mc-us-tip-icon { flex: 0 0 auto; color: #1f8fe8; margin-top: 1px; }
.mc-us-tip-body { flex: 1 1 auto; min-width: 0; }
.mc-us-tip-body > b {
    display: block;
    font-size: 13px;
    color: #1f8fe8;
    margin-bottom: 6px;
}
.mc-us-tip-body > div {
    font-size: 12.5px;
    color: #6b9bc4;
    line-height: 1.9;
}
.mc-us-tip-body b { color: #1f8fe8; }

/* ---------------------------------------------------------------- 用户列表 */
.mc-us-list {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.mc-us-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 14px 18px;
    background: #fff;
    border: 1px solid #e2edf8;
    border-radius: 12px;
    box-shadow: 0 1px 6px rgba(16, 42, 67, .04);
    transition: all .15s;
}
.mc-us-item:hover {
    border-color: #cfe6f8;
    box-shadow: 0 4px 16px rgba(44, 178, 255, .12);
}

/* 左侧：头像 + 名字 */
.mc-us-item-user {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1 1 auto;
    min-width: 0;
}

.mc-us-avatar {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #7ec4f0, #3fb8ff);
    border-radius: 11px;
    text-transform: uppercase;
    user-select: none;
}

.mc-us-item-info { min-width: 0; }
.mc-us-item-name {
    font-size: 14.5px;
    font-weight: 700;
    color: #22313f;
    margin-bottom: 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.mc-us-item-id {
    font-size: 11px;
    color: #a8b8c0;
    font-family: ui-monospace, Menlo, Consolas, monospace;
}

/* 右侧：字段 */
.mc-us-item-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 0 0 auto;
    min-width: 210px;
}
.mc-us-item-field-role { min-width: 160px; }

.mc-us-field-label {
    font-size: 10.5px;
    font-weight: 600;
    color: #a8b8c0;
    letter-spacing: .3px;
    text-transform: uppercase;
}

.mc-us-field-value { min-width: 0; }

/* 下拉框 —— 覆盖 Bootstrap 默认样式 */
.mc-us-item select {
    width: 100% !important;
    height: 36px !important;
    padding: 6px 11px !important;
    font-size: 13px !important;
    color: #22313f !important;
    background-color: #fff !important;
    border: 1px solid #dce8f4 !important;
    border-radius: 9px !important;
    box-shadow: none !important;
    transition: border-color .15s, box-shadow .15s, background-color .3s;
    cursor: pointer;
}
.mc-us-item select:focus {
    border-color: #2cb2ff !important;
    box-shadow: 0 0 0 3px rgba(44, 178, 255, .14) !important;
    outline: none;
}
/* 保存后短暂变绿，给个「已生效」的提示 */
.mc-us-item select.is-saved {
    border-color: #34d399 !important;
    background-color: #f2fbf6 !important;
}

/* 服主标识 */
.mc-us-owner {
    display: inline-block;
    padding: 7px 14px;
    font-size: 12.5px;
    font-weight: 700;
    color: #b8760a;
    background: #fffbf2;
    border: 1px solid #f5dfb0;
    border-radius: 8px;
}

/* FTP 用户名（列类里会输出一段文字） */
.mc-us-field-value .ftp_access + * ,
.mc-us-field-value {
    font-size: 11.5px;
    color: #8b9bb0;
}
.mc-us-field-value > a,
.mc-us-field-value > span {
    font-size: 11.5px;
    color: #8b9bb0;
}

/* ---------------------------------------------------------------- 空状态 */
.mc-us-empty {
    padding: 44px 24px 40px;
    text-align: center;
    background: #fff;
    border: 1px solid #e2edf8;
    border-radius: 13px;
    box-shadow: 0 2px 10px rgba(16, 42, 67, .05);
}
.mc-us-empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    margin-bottom: 16px;
    color: #b8d4ea;
    background: linear-gradient(180deg, #f7fbff 0%, #eef7ff 100%);
    border: 1px solid #e2eef8;
    border-radius: 18px;
}
.mc-us-empty-title { font-size: 15px; font-weight: 700; color: #3d5470; margin-bottom: 8px; }
.mc-us-empty-desc { font-size: 12.5px; color: #8b9bb0; line-height: 1.8; }

/* ---------------------------------------------------------------- 分页 */
.mc-us-pager { margin-top: 18px; text-align: center; }
.mc-us-pager ul.yiiPager {
    display: inline-flex; gap: 5px;
    padding: 0; margin: 0; list-style: none; border: none;
}
.mc-us-pager ul.yiiPager a,
.mc-us-pager ul.yiiPager span {
    display: inline-block;
    padding: 6px 13px;
    font-size: 12.5px;
    color: #48627d;
    background: #fff;
    border: 1px solid #dce8f4;
    border-radius: 8px;
    text-decoration: none;
}
.mc-us-pager ul.yiiPager .selected a {
    color: #fff;
    background: linear-gradient(135deg, #3fb8ff, #1f8fe8);
    border-color: transparent;
}

/* ---------------------------------------------------------------- 窄屏 */
@media (max-width: 720px) {
    .mc-us-item {
        flex-wrap: wrap;
        gap: 13px;
        padding: 13px 15px;
    }
    .mc-us-item-user { flex: 1 1 100%; }
    .mc-us-item-field {
        flex: 1 1 calc(50% - 7px);
        min-width: 0;
    }
}

/* ===================================================================
   配置文件编辑页
   -------------------------------------------------------------------
   每项一个行卡片：左侧参数名 + 说明，右侧下拉框/输入框。
   =================================================================== */

/* ---------------------------------------------------------------- 标题栏 */
.mc-cf-head {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e8f1fa;
}
.mc-cf-head-icon { display: flex; align-items: center; color: #7fa4c4; }
.mc-cf-head-title {
    font-size: 18px;
    font-weight: 700;
    color: #22313f;
    font-family: ui-monospace, Menlo, Consolas, monospace;
}
.mc-cf-head-tag {
    padding: 2px 10px;
    font-size: 11px;
    font-weight: 600;
    color: #b8760a;
    background: #fffbf2;
    border: 1px solid #f5dfb0;
    border-radius: 6px;
}
.mc-cf-head-back {
    margin-left: auto;
    padding: 6px 15px;
    font-size: 12.5px;
    font-weight: 600;
    color: #1f8fe8;
    background: #f2f9ff;
    border: 1px solid #d6ebfb;
    border-radius: 8px;
    text-decoration: none;
    transition: all .15s;
}
.mc-cf-head-back:hover {
    color: #fff;
    background: linear-gradient(135deg, #3fb8ff, #1f8fe8);
    border-color: transparent;
    text-decoration: none;
}

/* ---------------------------------------------------------------- 提示 */
.mc-cf-tip {
    display: flex;
    gap: 11px;
    padding: 13px 16px;
    margin-bottom: 16px;
    border-radius: 11px;
}
.mc-cf-tip-icon { flex: 0 0 auto; margin-top: 1px; }
.mc-cf-tip-warn {
    background: #fffaf0;
    border: 1px solid #f5dfb0;
}
.mc-cf-tip-warn .mc-cf-tip-icon { color: #d97706; }
.mc-cf-tip-warn b { display: block; font-size: 13px; color: #b8760a; margin-bottom: 4px; }
.mc-cf-tip-warn div div { font-size: 12.5px; color: #8a7040; line-height: 1.7; }

/* ---------------------------------------------------------------- 配置项列表 */
.mc-cf-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.mc-cf-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 14px 18px;
    background: #fff;
    border: 1px solid #e2edf8;
    border-radius: 11px;
    box-shadow: 0 1px 6px rgba(16, 42, 67, .04);
    transition: all .15s;
}
.mc-cf-item:hover {
    border-color: #cfe6f8;
    box-shadow: 0 4px 14px rgba(44, 178, 255, .12);
}

.mc-cf-item-main {
    flex: 1 1 auto;
    min-width: 0;
}

.mc-cf-item-name {
    display: block;
    margin-bottom: 5px;
    font-size: 13.5px;
    font-weight: 700;
    color: #3d5470;
    cursor: pointer;
}

.mc-cf-item-desc {
    font-size: 11.5px;
    color: #8b9bb0;
    line-height: 1.7;
}

.mc-cf-item-ctrl {
    flex: 0 0 260px;
    display: flex;
    justify-content: flex-end;
}

/* 下拉框 / 输入框 */
.mc-cf-select,
.mc-cf-input {
    width: 100% !important;
    height: 38px !important;
    padding: 7px 12px !important;
    font-size: 13px !important;
    color: #22313f !important;
    background-color: #fff !important;
    border: 1px solid #dce8f4 !important;
    border-radius: 9px !important;
    box-shadow: none !important;
    transition: border-color .15s, box-shadow .15s;
    font-family: ui-monospace, Menlo, Consolas, monospace;
}
.mc-cf-select { cursor: pointer; }
.mc-cf-select:focus,
.mc-cf-input:focus {
    border-color: #2cb2ff !important;
    box-shadow: 0 0 0 3px rgba(44, 178, 255, .14) !important;
    outline: none;
}

/* 只读值 */
.mc-cf-ro {
    display: inline-block;
    padding: 7px 13px;
    font-size: 13px;
    color: #6b7f94;
    background: #f7f9fb;
    border: 1px solid #eef2f6;
    border-radius: 9px;
    font-family: ui-monospace, Menlo, Consolas, monospace;
    word-break: break-all;
}

/* ---------------------------------------------------------------- 纯文本编辑 */
.mc-cf-raw {
    background: #fff;
    border: 1px solid #e2edf8;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(16, 42, 67, .05);
    overflow: hidden;
    margin-bottom: 16px;
}
.mc-cf-raw-head {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 10px 16px;
    font-size: 12.5px;
    font-weight: 600;
    color: #48627d;
    background: linear-gradient(180deg, #fbfdff 0%, #f4f9fe 100%);
    border-bottom: 1px solid #eaf2fa;
}
.mc-cf-raw-head svg { color: #7fa4c4; }

.mc-cf-textarea {
    width: 100% !important;
    min-height: 480px;
    padding: 14px 16px !important;
    font-size: 13px !important;
    line-height: 1.7 !important;
    color: #22313f;
    background: #fafcfe !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    resize: vertical;
    font-family: ui-monospace, Menlo, Consolas, monospace;
}
.mc-cf-textarea:focus {
    outline: none;
    background: #fff !important;
}

/* ---------------------------------------------------------------- 保存 */
.mc-cf-actions {
    display: flex;
    justify-content: flex-end;
    padding-top: 4px;
}
.mc-cf-save {
    padding: 12px 40px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #fff !important;
    background: linear-gradient(135deg, #3fb8ff, #1f8fe8) !important;
    border: none !important;
    border-radius: 10px !important;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(44, 178, 255, .28) !important;
    text-shadow: none !important;
    transition: all .17s;
}
.mc-cf-save:hover {
    transform: translateY(-1px);
    box-shadow: 0 7px 20px rgba(44, 178, 255, .42) !important;
}

/* ---------------------------------------------------------------- 窄屏 */
@media (max-width: 700px) {
    .mc-cf-item {
        flex-direction: column;
        align-items: stretch;
        gap: 11px;
    }
    .mc-cf-item-ctrl {
        flex: 1 1 auto;
        justify-content: stretch;
    }
    .mc-cf-textarea { min-height: 320px; }
    .mc-cf-head-title { font-size: 15px; }
}

/* ===================================================================
   配置文件列表页
   =================================================================== */

/* ---------------------------------------------------------------- 标题栏 */
.mc-cfg-head {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e8f1fa;
}
.mc-cfg-head-icon { display: flex; align-items: center; color: #7fa4c4; }
.mc-cfg-head-title { font-size: 18px; font-weight: 700; color: #22313f; }
.mc-cfg-head-count {
    padding: 3px 12px;
    font-size: 12px;
    font-weight: 600;
    color: #1f8fe8;
    background: #eaf4ff;
    border-radius: 999px;
}
.mc-cfg-head-link {
    margin-left: auto;
    font-size: 12.5px;
    font-weight: 600;
    color: #1f8fe8;
    text-decoration: none;
}
.mc-cfg-head-link:hover { text-decoration: underline; }

/* ---------------------------------------------------------------- 提示 */
.mc-cfg-flash {
    margin-bottom: 14px;
    padding: 11px 15px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.6;
}
.mc-cfg-flash-ok {
    color: #1f8a5a;
    background: #f2fbf6;
    border: 1px solid #c9ebd9;
}
.mc-cfg-flash-error {
    color: #c0392b;
    background: #fff5f5;
    border: 1px solid #f8d4d1;
}

.mc-cfg-tip {
    display: flex;
    gap: 11px;
    padding: 13px 16px;
    margin-bottom: 16px;
    background: #f4fbff;
    border: 1px solid #cfe6f8;
    border-radius: 11px;
}
.mc-cfg-tip-icon { flex: 0 0 auto; color: #1f8fe8; margin-top: 1px; }
.mc-cfg-tip-body { flex: 1 1 auto; min-width: 0; }
.mc-cfg-tip-body > b {
    display: block;
    font-size: 13px;
    color: #1f8fe8;
    margin-bottom: 5px;
}
.mc-cfg-tip-body > div {
    font-size: 12.5px;
    color: #6b9bc4;
    line-height: 1.8;
}
.mc-cfg-tip-body code {
    padding: 1px 6px;
    font-size: 11.5px;
    color: #1f8fe8;
    background: #e6f3ff;
    border-radius: 5px;
}
.mc-cfg-tip-body b { color: #1f8fe8; }

/* ---------------------------------------------------------------- 配置列表 */
.mc-cfg-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mc-cfg-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 15px 18px;
    background: #fff;
    border: 1px solid #e2edf8;
    border-radius: 11px;
    box-shadow: 0 1px 6px rgba(16, 42, 67, .04);
    text-decoration: none;
    transition: all .15s;
}
.mc-cfg-item:hover {
    border-color: #a8d8f5;
    box-shadow: 0 6px 18px rgba(44, 178, 255, .15);
    transform: translateX(3px);
    text-decoration: none;
}

.mc-cfg-item-icon {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: #5b8db8;
    background: linear-gradient(180deg, #f4f9fe 0%, #eaf4fd 100%);
    border: 1px solid #dcebf8;
    border-radius: 10px;
    transition: all .15s;
}
.mc-cfg-item:hover .mc-cfg-item-icon {
    color: #fff;
    background: linear-gradient(135deg, #3fb8ff, #1f8fe8);
    border-color: transparent;
}

.mc-cfg-item-main {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mc-cfg-item-name {
    font-size: 14px;
    font-weight: 700;
    color: #22313f;
}
.mc-cfg-item:hover .mc-cfg-item-name { color: #1f8fe8; }

.mc-cfg-item-file {
    font-size: 11.5px;
    color: #7b90a6;
    font-family: ui-monospace, Menlo, Consolas, monospace;
}

.mc-cfg-item-desc {
    font-size: 11.5px;
    color: #9aabc0;
    line-height: 1.6;
}

.mc-cfg-item-arrow {
    flex: 0 0 auto;
    display: flex;
    color: #c4d4e2;
    transition: all .15s;
}
.mc-cfg-item:hover .mc-cfg-item-arrow {
    color: #1f8fe8;
    transform: translateX(3px);
}

/* ---------------------------------------------------------------- 空状态 */
.mc-cfg-empty {
    padding: 44px 24px 40px;
    text-align: center;
    background: #fff;
    border: 1px solid #e2edf8;
    border-radius: 13px;
    box-shadow: 0 2px 10px rgba(16, 42, 67, .05);
}
.mc-cfg-empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    margin-bottom: 16px;
    color: #b8d4ea;
    background: linear-gradient(180deg, #f7fbff 0%, #eef7ff 100%);
    border: 1px solid #e2eef8;
    border-radius: 18px;
}
.mc-cfg-empty-title { font-size: 15px; font-weight: 700; color: #3d5470; margin-bottom: 8px; }
.mc-cfg-empty-desc { font-size: 12.5px; color: #8b9bb0; line-height: 1.8; }

/* ---------------------------------------------------------------- 窄屏 */
@media (max-width: 640px) {
    .mc-cfg-item { padding: 13px 14px; gap: 11px; }
    .mc-cfg-item-icon { width: 32px; height: 32px; }
    .mc-cfg-item-name { font-size: 13px; }
}

/* ===================================================================
   模组（MOD）列表 —— 和插件列表同一套视觉语言
   =================================================================== */

/* ---------------------------------------------------------------- 标题栏 */
.mc-md-head {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 26px 0 16px;
    padding-top: 20px;
    border-top: 2px solid #e8f1fa;
}
.mc-md-head::before {
    /* 上面那条分隔线其实由 border-top 提供，这里不再重复 */
    content: none;
}
.mc-md-head-icon { display: flex; align-items: center; color: #7fa4c4; }
.mc-md-head-title { font-size: 18px; font-weight: 700; color: #22313f; }
.mc-md-head-count {
    padding: 3px 12px;
    font-size: 12px;
    font-weight: 600;
    color: #1f8fe8;
    background: #eaf4ff;
    border-radius: 999px;
}

/* ---------------------------------------------------------------- 提示 */
.mc-md-flash {
    margin-bottom: 14px;
    padding: 11px 15px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.6;
    word-break: break-all;
}
.mc-md-flash-ok {
    color: #1f8a5a;
    background: #f2fbf6;
    border: 1px solid #c9ebd9;
}
.mc-md-flash-error {
    color: #c0392b;
    background: #fff5f5;
    border: 1px solid #f8d4d1;
}

/* ---------------------------------------------------------------- 统计卡片 */
.mc-md-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 14px;
}

.mc-md-stat {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid #e2edf8;
    border-radius: 11px;
    box-shadow: 0 1px 6px rgba(16, 42, 67, .04);
}
.mc-md-stat-label { font-size: 11.5px; color: #8b9bb0; }
.mc-md-stat-val {
    font-size: 20px;
    font-weight: 700;
    color: #22313f;
    font-variant-numeric: tabular-nums;
    line-height: 1.15;
}
.mc-md-stat-on .mc-md-stat-val { color: #1f8a5a; }
.mc-md-stat-off .mc-md-stat-val { color: #b8760a; }
.mc-md-stat-size .mc-md-stat-val { font-size: 17px; color: #1f8fe8; }

/* ---------------------------------------------------------------- 工具条 */
.mc-md-tools {
    display: flex;
    gap: 9px;
    margin-bottom: 12px;
}

.mc-md-search {
    flex: 1 1 auto;
    height: 40px;
    padding: 8px 14px;
    font-size: 13px;
    color: #22313f;
    background: #fff;
    border: 1px solid #dce8f4;
    border-radius: 10px;
    box-shadow: none;
    transition: border-color .15s, box-shadow .15s;
}
.mc-md-search:focus {
    border-color: #2cb2ff;
    box-shadow: 0 0 0 3px rgba(44, 178, 255, .14);
    outline: none;
}

.mc-md-filter {
    flex: 0 0 190px;
    height: 40px;
    padding: 8px 12px;
    font-size: 13px;
    color: #22313f;
    background: #fff;
    border: 1px solid #dce8f4;
    border-radius: 10px;
    box-shadow: none;
    cursor: pointer;
}
.mc-md-filter:focus {
    border-color: #2cb2ff;
    box-shadow: 0 0 0 3px rgba(44, 178, 255, .14);
    outline: none;
}

/* ---------------------------------------------------------------- 模组列表 */
.mc-md-list {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.mc-md-item {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 12px 16px;
    background: #fff;
    border: 1px solid #e2edf8;
    border-radius: 10px;
    box-shadow: 0 1px 5px rgba(16, 42, 67, .04);
    transition: all .15s;
}
.mc-md-item:hover {
    border-color: #cfe6f8;
    box-shadow: 0 4px 14px rgba(44, 178, 255, .12);
}

/* 已禁用：整体压暗 */
.mc-md-item.is-off {
    background: #fafbfc;
    opacity: .72;
}
.mc-md-item.is-off:hover { opacity: 1; }

.mc-md-item-icon {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: #5b8db8;
    background: linear-gradient(180deg, #f4f9fe 0%, #eaf4fd 100%);
    border: 1px solid #dcebf8;
    border-radius: 9px;
}
.mc-md-item.is-off .mc-md-item-icon {
    color: #b0bcc8;
    background: #f4f6f8;
    border-color: #e8edf2;
}

.mc-md-item-main {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mc-md-item-name {
    font-size: 13px;
    font-weight: 600;
    color: #22313f;
    word-break: break-all;
    line-height: 1.45;
}
.mc-md-item.is-off .mc-md-item-name { color: #7b8fa3; }

.mc-md-item-meta {
    font-size: 11px;
    color: #9aabc0;
    font-variant-numeric: tabular-nums;
}
.mc-md-dot { padding: 0 5px; }

/* 状态标签 */
.mc-md-item-state { flex: 0 0 auto; }

.mc-md-tag {
    display: inline-block;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 6px;
    white-space: nowrap;
}
.mc-md-tag-on {
    color: #1f8a5a;
    background: #f2fbf6;
    border: 1px solid #c9ebd9;
}
.mc-md-tag-off {
    color: #8b9bb0;
    background: #f4f6f8;
    border: 1px solid #e8edf2;
}

/* 启用 / 禁用按钮 */
.mc-md-btn {
    flex: 0 0 auto;
    display: inline-block;
    min-width: 64px;
    padding: 7px 15px;
    font-size: 12.5px;
    font-weight: 600;
    text-align: center;
    border-radius: 8px;
    text-decoration: none;
    white-space: nowrap;
    transition: all .15s;
}
.mc-md-btn-off {
    color: #b8760a;
    background: #fffbf2;
    border: 1px solid #f5dfb0;
}
.mc-md-btn-off:hover {
    color: #fff;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border-color: transparent;
    text-decoration: none;
    box-shadow: 0 3px 10px rgba(217, 119, 6, .3);
}
.mc-md-btn-on {
    color: #1f8a5a;
    background: #f2fbf6;
    border: 1px solid #c9ebd9;
}
.mc-md-btn-on:hover {
    color: #fff;
    background: linear-gradient(135deg, #34d399, #22c55e);
    border-color: transparent;
    text-decoration: none;
    box-shadow: 0 3px 10px rgba(34, 197, 94, .3);
}

/* ---------------------------------------------------------------- 空 / 无匹配 */
.mc-md-empty {
    padding: 38px 24px 34px;
    text-align: center;
    background: #fff;
    border: 1px solid #e2edf8;
    border-radius: 13px;
    box-shadow: 0 2px 10px rgba(16, 42, 67, .05);
}
.mc-md-empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin-bottom: 15px;
    color: #b8d4ea;
    background: linear-gradient(180deg, #f7fbff 0%, #eef7ff 100%);
    border: 1px solid #e2eef8;
    border-radius: 17px;
}
.mc-md-empty-title { font-size: 14.5px; font-weight: 700; color: #3d5470; margin-bottom: 8px; }
.mc-md-empty-desc {
    font-size: 12.5px;
    color: #8b9bb0;
    line-height: 1.85;
}
.mc-md-empty-desc code {
    padding: 1px 7px;
    font-size: 11.5px;
    color: #1f8fe8;
    background: #e6f3ff;
    border-radius: 5px;
}

.mc-md-nomatch {
    padding: 30px;
    text-align: center;
    font-size: 13px;
    color: #9aabc0;
    background: #fff;
    border: 1px dashed #dce8f4;
    border-radius: 11px;
}

/* ---------------------------------------------------------------- 窄屏 */
@media (max-width: 700px) {
    .mc-md-stats { grid-template-columns: repeat(2, 1fr); }
    .mc-md-tools { flex-wrap: wrap; }
    .mc-md-filter { flex: 1 1 100%; }
    .mc-md-item { flex-wrap: wrap; gap: 10px; padding: 11px 13px; }
    .mc-md-item-state { margin-left: 45px; }
    .mc-md-btn { flex: 1 1 100%; }
}

/* 插件页底部的模组入口 */
.mc-pl-modlink {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 2px solid #e8f1fa;
}
.mc-pl-modlink a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    font-size: 13.5px;
    font-weight: 600;
    color: #1f8fe8;
    background: #f2f9ff;
    border: 1px solid #d6ebfb;
    border-radius: 10px;
    text-decoration: none;
    transition: all .16s;
}
.mc-pl-modlink a:hover {
    color: #fff;
    background: linear-gradient(135deg, #3fb8ff, #1f8fe8);
    border-color: transparent;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(44, 178, 255, .3);
}

/* ===================================================================
   模组列表：上传区 + 删除按钮 + 分页
   =================================================================== */

/* ---------------------------------------------------------------- 上传区 */
.mc-md-upload { margin-bottom: 14px; }

.mc-md-drop {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 22px;
    margin: 0;
    font-weight: 400;
    background: #fbfdff;
    border: 2px dashed #cfe3f5;
    border-radius: 12px;
    cursor: pointer;
    transition: all .18s;
}
.mc-md-drop:hover,
.mc-md-drop.is-over {
    background: #f2f9ff;
    border-color: #2cb2ff;
    box-shadow: 0 4px 18px rgba(44, 178, 255, .12);
}

.mc-md-drop-icon {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    color: #5b8db8;
    background: linear-gradient(180deg, #f4f9fe 0%, #eaf4fd 100%);
    border: 1px solid #dcebf8;
    border-radius: 12px;
    transition: all .18s;
}
.mc-md-drop:hover .mc-md-drop-icon,
.mc-md-drop.is-over .mc-md-drop-icon {
    color: #fff;
    background: linear-gradient(135deg, #3fb8ff, #1f8fe8);
    border-color: transparent;
}

.mc-md-drop-main {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.mc-md-drop-main b { font-size: 14px; color: #3d5470; }
.mc-md-drop-main span { font-size: 12px; color: #8b9bb0; }

/* ---------------------------------------------------------------- 上传队列 */
.mc-md-queue {
    margin-top: 10px;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid #e2edf8;
    border-radius: 11px;
    box-shadow: 0 2px 10px rgba(16, 42, 67, .05);
}

.mc-md-queue-head {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 12.5px;
    color: #48627d;
}
.mc-md-queue-head b { color: #1f8fe8; }
.mc-md-queue-clear {
    margin-left: auto;
    padding: 4px 12px;
    font-size: 11.5px;
    color: #8b9bb0;
    background: #f7f9fb;
    border: 1px solid #e8edf2;
    border-radius: 7px;
    cursor: pointer;
    transition: all .14s;
}
.mc-md-queue-clear:hover { color: #d13b34; background: #fdf2f2; border-color: #f8d4d1; }

.mc-md-queue-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 12px;
}

.mc-md-qitem {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    font-size: 12px;
    background: #fafcfe;
    border: 1px solid #eef4fa;
    border-radius: 8px;
}
.mc-md-qitem.is-bad {
    background: #fff7f6;
    border-color: #f8d4d1;
}
.mc-md-qname {
    flex: 1 1 auto;
    min-width: 0;
    color: #3d5470;
    word-break: break-all;
}
.mc-md-qitem.is-bad .mc-md-qname { color: #c0392b; }
.mc-md-qsize {
    flex: 0 0 auto;
    color: #9aabc0;
    font-variant-numeric: tabular-nums;
}
.mc-md-qitem.is-bad .mc-md-qsize { color: #c0392b; font-weight: 600; }

.mc-md-queue-foot {
    display: flex;
    align-items: center;
    gap: 14px;
}
.mc-md-queue-hint {
    flex: 1 1 auto;
    font-size: 11.5px;
    color: #9aabc0;
}
.mc-md-queue-hint.is-bad { color: #c0392b; font-weight: 600; }

.mc-md-queue-btn {
    flex: 0 0 auto;
    padding: 10px 26px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #3fb8ff, #1f8fe8);
    border: none;
    border-radius: 9px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(44, 178, 255, .28);
    transition: all .16s;
}
.mc-md-queue-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 7px 20px rgba(44, 178, 255, .42);
}
.mc-md-queue-btn:disabled {
    color: #c4ccd6;
    background: #eef2f6;
    box-shadow: none;
    cursor: not-allowed;
}

/* ---------------------------------------------------------------- 行的操作区 */
.mc-md-item-acts {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 7px;
}

.mc-md-del {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: #b8c4d2 !important;
    background: #fff;
    border: 1px solid #e8edf2;
    border-radius: 8px;
    text-decoration: none !important;
    transition: all .15s;
}
.mc-md-del:hover {
    color: #fff !important;
    background: linear-gradient(135deg, #f87171, #dc2626);
    border-color: transparent;
    box-shadow: 0 3px 10px rgba(220, 38, 38, .3);
}

/* ---------------------------------------------------------------- 分页 */
.mc-md-pager {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #f2f7fb;
}
.mc-md-pg-info {
    font-size: 12.5px;
    color: #8b9bb0;
    font-variant-numeric: tabular-nums;
}
.mc-md-pg-btns {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.mc-md-pg {
    display: inline-block;
    min-width: 32px;
    padding: 6px 11px;
    font-size: 12.5px;
    font-weight: 600;
    text-align: center;
    color: #48627d;
    background: #fff;
    border: 1px solid #dce8f4;
    border-radius: 8px;
    text-decoration: none;
    transition: all .14s;
}
.mc-md-pg:hover {
    color: #1f8fe8;
    background: #f4fbff;
    border-color: #a8d8f5;
    text-decoration: none;
}
.mc-md-pg.is-cur {
    color: #fff;
    background: linear-gradient(135deg, #3fb8ff, #1f8fe8);
    border-color: transparent;
    box-shadow: 0 3px 10px rgba(44, 178, 255, .28);
}
.mc-md-pg.is-off {
    color: #c4ccd6;
    background: #f7f9fb;
    border-color: #eef2f6;
    cursor: not-allowed;
}
.mc-md-pg-dots { padding: 0 2px; font-size: 12.5px; color: #b8c4d2; }

/* ---------------------------------------------------------------- 窄屏 */
@media (max-width: 700px) {
    .mc-md-drop { flex-direction: column; text-align: center; padding: 18px; }
    .mc-md-queue-foot { flex-direction: column; align-items: stretch; }
    .mc-md-queue-btn { width: 100%; }
    .mc-md-pager { flex-direction: column; align-items: stretch; }
    .mc-md-pg-btns { justify-content: center; }
    .mc-md-item-acts { flex: 1 1 100%; }
    .mc-md-item-acts .mc-md-btn { flex: 1 1 auto; }
}

/* ===================================================================
   模组市场
   =================================================================== */

/* ---------------------------------------------------------------- 标题栏 */
.mc-ms-head {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e8f1fa;
}
.mc-ms-head-icon { display: flex; align-items: center; color: #7fa4c4; }
.mc-ms-head-title { font-size: 18px; font-weight: 700; color: #22313f; }
.mc-ms-head-tag {
    padding: 3px 11px;
    font-size: 11.5px;
    font-weight: 600;
    color: #1f8fe8;
    background: #eaf4ff;
    border-radius: 999px;
}
.mc-ms-head-back {
    margin-left: auto;
    padding: 6px 15px;
    font-size: 12.5px;
    font-weight: 600;
    color: #1f8fe8;
    background: #f2f9ff;
    border: 1px solid #d6ebfb;
    border-radius: 8px;
    text-decoration: none;
    transition: all .15s;
}
.mc-ms-head-back:hover {
    color: #fff;
    background: linear-gradient(135deg, #3fb8ff, #1f8fe8);
    border-color: transparent;
    text-decoration: none;
}

/* ---------------------------------------------------------------- 提示 */
.mc-ms-tip {
    display: flex;
    gap: 11px;
    padding: 13px 16px;
    margin-bottom: 14px;
    background: #f4fbff;
    border: 1px solid #cfe6f8;
    border-radius: 11px;
}
.mc-ms-tip-icon { flex: 0 0 auto; color: #1f8fe8; margin-top: 1px; }
.mc-ms-tip-body { flex: 1 1 auto; min-width: 0; }
.mc-ms-tip-body > b { display: block; font-size: 13px; color: #1f8fe8; margin-bottom: 5px; }
.mc-ms-tip-body > div { font-size: 12.5px; color: #6b9bc4; line-height: 1.85; }
.mc-ms-tip-body code {
    padding: 1px 7px;
    font-size: 11.5px;
    color: #1f8fe8;
    background: #e6f3ff;
    border-radius: 5px;
}
.mc-ms-tip-body b { color: #1f8fe8; }

/* ---------------------------------------------------------------- 筛选条 */
.mc-ms-filter {
    display: flex;
    gap: 9px;
    margin-bottom: 12px;
}

.mc-ms-q {
    flex: 1 1 auto;
    height: 42px;
    padding: 9px 15px;
    font-size: 13.5px;
    color: #22313f;
    background: #fff;
    border: 1px solid #dce8f4;
    border-radius: 10px;
    box-shadow: none;
    transition: border-color .15s, box-shadow .15s;
}
.mc-ms-q:focus {
    border-color: #2cb2ff;
    box-shadow: 0 0 0 3px rgba(44, 178, 255, .14);
    outline: none;
}

.mc-ms-sel {
    flex: 0 0 auto;
    height: 42px;
    padding: 9px 12px;
    font-size: 13px;
    color: #22313f;
    background: #fff;
    border: 1px solid #dce8f4;
    border-radius: 10px;
    box-shadow: none;
    cursor: pointer;
}
.mc-ms-sel:focus {
    border-color: #2cb2ff;
    box-shadow: 0 0 0 3px rgba(44, 178, 255, .14);
    outline: none;
}

.mc-ms-go {
    flex: 0 0 auto;
    padding: 0 28px;
    font-size: 13.5px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #3fb8ff, #1f8fe8);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(44, 178, 255, .28);
    transition: all .16s;
}
.mc-ms-go:hover {
    transform: translateY(-1px);
    box-shadow: 0 7px 20px rgba(44, 178, 255, .42);
}

/* ---------------------------------------------------------------- 统计条 */
.mc-ms-statbar {
    margin-bottom: 10px;
    font-size: 12.5px;
    color: #8b9bb0;
    font-variant-numeric: tabular-nums;
}

/* ---------------------------------------------------------------- 结果列表 */
.mc-ms-list { display: flex; flex-direction: column; gap: 9px; }

.mc-ms-loading,
.mc-ms-err {
    padding: 36px;
    text-align: center;
    font-size: 13px;
    color: #9aabc0;
    background: #fff;
    border: 1px solid #e2edf8;
    border-radius: 12px;
}
.mc-ms-err { color: #c0392b; background: #fff7f6; border-color: #f8d4d1; }

.mc-ms-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 15px 17px;
    background: #fff;
    border: 1px solid #e2edf8;
    border-radius: 12px;
    box-shadow: 0 1px 6px rgba(16, 42, 67, .04);
    transition: all .15s;
}
.mc-ms-item:hover {
    border-color: #cfe6f8;
    box-shadow: 0 5px 18px rgba(44, 178, 255, .13);
}

.mc-ms-item-icon {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    overflow: hidden;
    background: linear-gradient(180deg, #f7fbff 0%, #eef7ff 100%);
    border: 1px solid #e2eef8;
    border-radius: 11px;
}
.mc-ms-item-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mc-ms-item-noicon {
    font-size: 18px;
    font-weight: 700;
    color: #b8d4ea;
}

.mc-ms-item-main {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.mc-ms-item-title {
    font-size: 14.5px;
    font-weight: 700;
    color: #22313f;
    display: flex;
    align-items: baseline;
    gap: 9px;
    flex-wrap: wrap;
}
.mc-ms-item-author {
    font-size: 11.5px;
    font-weight: 400;
    color: #a8b8c0;
}

.mc-ms-item-desc {
    font-size: 12.5px;
    color: #7b90a6;
    line-height: 1.65;
}

.mc-ms-item-meta {
    display: flex;
    align-items: center;
    gap: 9px;
    flex-wrap: wrap;
    margin-top: 2px;
}
.mc-ms-meta {
    font-size: 11px;
    color: #9aabc0;
    font-variant-numeric: tabular-nums;
}
.mc-ms-meta b { color: #5b8db8; }

.mc-ms-tag {
    padding: 2px 9px;
    font-size: 10.5px;
    font-weight: 600;
    color: #6b9bc4;
    background: #f2f8fd;
    border: 1px solid #e2eef8;
    border-radius: 6px;
}
.mc-ms-tag-loader {
    color: #1f8a5a;
    background: #f2fbf6;
    border-color: #c9ebd9;
}

.mc-ms-item-act { flex: 0 0 auto; }

.mc-ms-install {
    min-width: 78px;
    padding: 9px 18px;
    font-size: 12.5px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #3fb8ff, #1f8fe8);
    border: none;
    border-radius: 9px;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(44, 178, 255, .25);
    transition: all .15s;
}
.mc-ms-install:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(44, 178, 255, .4);
}
.mc-ms-install:disabled {
    color: #c4ccd6;
    background: #eef2f6;
    box-shadow: none;
    cursor: not-allowed;
}
.mc-ms-install.is-done {
    color: #1f8a5a;
    background: #f2fbf6;
    border: 1px solid #c9ebd9;
    box-shadow: none;
}

/* ---------------------------------------------------------------- 占位 */
.mc-ms-placeholder {
    padding: 52px 24px 48px;
    text-align: center;
    background: #fff;
    border: 1px solid #e2edf8;
    border-radius: 13px;
    box-shadow: 0 2px 10px rgba(16, 42, 67, .05);
}
.mc-ms-ph-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 76px;
    margin-bottom: 17px;
    color: #b8d4ea;
    background: linear-gradient(180deg, #f7fbff 0%, #eef7ff 100%);
    border: 1px solid #e2eef8;
    border-radius: 20px;
}
.mc-ms-ph-title { font-size: 15.5px; font-weight: 700; color: #3d5470; margin-bottom: 9px; }
.mc-ms-ph-desc { font-size: 12.5px; color: #8b9bb0; line-height: 1.8; }

/* ---------------------------------------------------------------- 分页 */
.mc-ms-pager { margin-top: 16px; text-align: center; }
.mc-ms-pg-btns { display: inline-flex; align-items: center; gap: 5px; }
.mc-ms-pg {
    display: inline-block;
    min-width: 32px;
    padding: 6px 11px;
    font-size: 12.5px;
    font-weight: 600;
    text-align: center;
    color: #48627d;
    background: #fff;
    border: 1px solid #dce8f4;
    border-radius: 8px;
    text-decoration: none;
    transition: all .14s;
}
.mc-ms-pg:hover {
    color: #1f8fe8;
    background: #f4fbff;
    border-color: #a8d8f5;
    text-decoration: none;
}
.mc-ms-pg.is-cur {
    color: #fff;
    background: linear-gradient(135deg, #3fb8ff, #1f8fe8);
    border-color: transparent;
    box-shadow: 0 3px 10px rgba(44, 178, 255, .28);
}
.mc-ms-pg.is-off {
    color: #c4ccd6;
    background: #f7f9fb;
    border-color: #eef2f6;
    cursor: not-allowed;
}
.mc-ms-pg-dots { padding: 0 2px; color: #b8c4d2; }

/* ---------------------------------------------------------------- 浮条 */
.mc-ms-toast {
    position: fixed;
    left: 50%;
    top: 22px;
    transform: translateX(-50%);
    z-index: 99998;
    max-width: 560px;
    padding: 13px 24px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.6;
    color: #fff;
    border-radius: 11px;
    box-shadow: 0 10px 30px rgba(16, 42, 67, .3);
    word-break: break-all;
}
.mc-ms-toast.is-ok  { background: linear-gradient(135deg, #34d399, #16a34a); }
.mc-ms-toast.is-err { background: linear-gradient(135deg, #f87171, #dc2626); }

/* ---------------------------------------------------------------- 窄屏 */
@media (max-width: 760px) {
    .mc-ms-filter { flex-wrap: wrap; }
    .mc-ms-q { flex: 1 1 100%; }
    .mc-ms-sel { flex: 1 1 calc(50% - 5px); }
    .mc-ms-go { flex: 1 1 100%; height: 42px; }
    .mc-ms-item { flex-wrap: wrap; gap: 11px; padding: 13px 14px; }
    .mc-ms-item-icon { width: 40px; height: 40px; }
    .mc-ms-item-act { flex: 1 1 100%; }
    .mc-ms-install { width: 100%; }
}

/* 模组列表页的「下载模组」入口 */
.mc-md-head-store {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    font-size: 12.5px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #3fb8ff, #1f8fe8);
    border-radius: 9px;
    text-decoration: none;
    box-shadow: 0 3px 12px rgba(44, 178, 255, .26);
    transition: all .16s;
}
.mc-md-head-store:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(44, 178, 255, .4);
    text-decoration: none;
}

/* 模组市场：未翻译的英文介绍 */
.mc-ms-item-desc.is-en {
    color: #a8b8c0;
    font-style: italic;
}

/* ===================================================================
   模组市场：客户端 / 服务端标签
   =================================================================== */
.mc-ms-env {
    display: inline-block;
    padding: 2px 9px;
    font-size: 10.5px;
    font-weight: 700;
    border-radius: 6px;
    white-space: nowrap;
    cursor: help;
}

/* 客户端 —— 蓝色 */
.mc-ms-env-client {
    color: #1f7fc4;
    background: #eaf4ff;
    border: 1px solid #cfe6f8;
}

/* 服务端 —— 绿色 */
.mc-ms-env-server {
    color: #1f8a5a;
    background: #f2fbf6;
    border: 1px solid #c9ebd9;
}

/* 双端 —— 紫色 */
.mc-ms-env-both {
    color: #7c4dbd;
    background: #f6f2fd;
    border: 1px solid #e2d8f8;
}

/* 双端可选 —— 青色（比"双端必装"弱一档） */
.mc-ms-env-either {
    color: #0d8a8a;
    background: #eafafa;
    border: 1px solid #c9eeee;
}

/* 仅单人 / 未标注 —— 灰色 */
.mc-ms-env-single,
.mc-ms-env-unknown {
    color: #8b9bb0;
    background: #f4f6f8;
    border: 1px solid #e8edf2;
}

/* ==================================================================
   资源监控（服务器 → 资源监控）
   ------------------------------------------------------------------
   手写 SVG 折线图，配色跟随面板浅蓝主题。
   ================================================================== */
.mc-st-head{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;
  margin:0 0 16px;padding:14px 18px;border-radius:12px;
  background:linear-gradient(135deg,#f0f7ff,#e8f2fd);border:1px solid #d3e5f8;}
.mc-st-title{display:flex;align-items:center;gap:9px;}
.mc-st-title b{font-size:16px;color:#1e3a5f;font-weight:700;}
.mc-st-title em{font-style:normal;font-size:12px;color:#7d93aa;}
.mc-st-ico{width:18px;height:18px;flex:0 0 18px;background:#3b82f6;
  -webkit-mask:no-repeat center/contain;mask:no-repeat center/contain;
  -webkit-mask-image:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000'%3E%3Cpath d='M3 20h18v-2H3v2zM5 16h2V9H5v7zm4 0h2V5H9v11zm4 0h2v-9h-2v9zm4 0h2V7h-2v9z'/%3E%3C/svg%3E");
  mask-image:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000'%3E%3Cpath d='M3 20h18v-2H3v2zM5 16h2V9H5v7zm4 0h2V5H9v11zm4 0h2v-9h-2v9zm4 0h2V7h-2v9z'/%3E%3C/svg%3E");}
.mc-st-ranges{display:flex;gap:6px;}
.mc-st-range{padding:5px 12px;border-radius:8px;font-size:12.5px;color:#4a6b8a;
  background:#fff;border:1px solid #d8e6f5;text-decoration:none;transition:all .15s;}
.mc-st-range:hover{background:#eaf3ff;border-color:#b6d4f2;color:#2563eb;}
.mc-st-range.is-on{background:#3b82f6;border-color:#3b82f6;color:#fff;font-weight:600;}

.mc-st-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:10px;margin:0 0 16px;}
.mc-st-card{padding:12px 14px;border-radius:10px;background:#fff;border:1px solid #e2ecf7;
  display:flex;flex-direction:column;gap:5px;}
.mc-st-card span{font-size:11.5px;color:#8aa0b6;}
.mc-st-card b{font-size:19px;color:#1e3a5f;font-weight:700;line-height:1;}
.mc-st-card b i{font-style:normal;font-size:11px;color:#9ab0c6;margin-left:3px;font-weight:400;}
.mc-st-card b.is-warn{color:#e8853a;}
.mc-st-card b.is-ok{color:#10b981;}

.mc-st-chart{margin:0 0 14px;padding:12px 14px 6px;border-radius:10px;
  background:#fff;border:1px solid #e2ecf7;}
.mc-st-chart-hd{display:flex;align-items:baseline;justify-content:space-between;margin:0 0 4px;}
.mc-st-chart-hd b{font-size:13.5px;color:#1e3a5f;}
.mc-st-chart-hd span{font-size:11.5px;color:#9ab0c6;}
.mc-st-svg{width:100%;height:auto;display:block;}
.mc-st-grid{stroke:#eef4fa;stroke-width:1;}
.mc-st-ylab{font-size:10px;fill:#a8bccf;text-anchor:end;}
.mc-st-xlab{font-size:10px;fill:#a8bccf;}

.mc-st-empty{padding:14px;border-radius:10px;background:#f7fafd;border:1px dashed #d8e6f5;
  color:#8aa0b6;font-size:12.5px;text-align:center;}
.mc-st-empty-big{padding:44px 14px;line-height:1.9;}
.mc-st-empty-big b{font-size:14px;color:#5b7793;}
.mc-st-foot{margin:6px 0 0;font-size:11.5px;color:#9ab0c6;line-height:1.8;}
.mc-st-foot b{color:#5b7793;}

/* ==================================================================
   批量操作（服务器管理页）
   ------------------------------------------------------------------
   勾选后才浮出底部操作栏，平时不占地方。
   ================================================================== */
.mc-sa-item.is-picked{background:#f2f8ff;border-color:#b6d4f2;
  box-shadow:0 0 0 1px rgba(59,130,246,.18) inset;}

.mc-sa-pick{flex:0 0 18px;display:flex;align-items:center;justify-content:center;
  cursor:pointer;margin-right:2px;user-select:none;}
.mc-sa-pick input{position:absolute;opacity:0;width:0;height:0;}
.mc-sa-pick-mark{width:16px;height:16px;border-radius:4px;border:1.5px solid #c6d8ea;
  background:#fff;transition:all .15s;position:relative;}
.mc-sa-pick:hover .mc-sa-pick-mark{border-color:#8fbcf0;}
.mc-sa-pick input:checked + .mc-sa-pick-mark{background:#3b82f6;border-color:#3b82f6;}
.mc-sa-pick input:checked + .mc-sa-pick-mark::after{content:'';position:absolute;
  left:4.5px;top:1.5px;width:4px;height:8px;border:solid #fff;
  border-width:0 2px 2px 0;transform:rotate(45deg);}

.mc-sa-pick-all{display:inline-flex;align-items:center;gap:5px;font-size:11.5px;
  color:#7d93aa;cursor:pointer;padding:2px 8px;border-radius:6px;
  border:1px solid #e0eaf5;background:#f8fbfe;margin-left:2px;}
.mc-sa-pick-all:hover{background:#eef6ff;border-color:#b6d4f2;color:#2563eb;}
.mc-sa-pick-all input{margin:0;cursor:pointer;}

.mc-sa-batch{position:fixed;left:0;right:0;bottom:0;z-index:9998;
  display:flex;align-items:center;gap:14px;flex-wrap:wrap;
  padding:11px 20px;background:rgba(255,255,255,.97);
  border-top:1px solid #d8e6f5;
  box-shadow:0 -4px 18px rgba(31,72,121,.10);
  backdrop-filter:blur(6px);}
.mc-sa-batch-info{font-size:13px;color:#5b7793;}
.mc-sa-batch-info b{color:#2563eb;font-size:15px;margin:0 3px;}
.mc-sa-batch-info a{color:#9ab0c6;font-size:12px;margin-left:6px;text-decoration:none;}
.mc-sa-batch-info a:hover{color:#e8367f;}
.mc-sa-batch-acts{display:flex;align-items:center;gap:7px;flex-wrap:wrap;}
.mc-sa-bb{padding:6px 14px;border-radius:8px;font-size:12.5px;cursor:pointer;
  border:1px solid #d8e6f5;background:#fff;color:#4a6b8a;transition:all .15s;}
.mc-sa-bb:hover:not(:disabled){background:#eef6ff;border-color:#b6d4f2;color:#2563eb;}
.mc-sa-bb:disabled{opacity:.5;cursor:not-allowed;}
.mc-sa-bb.is-start:hover:not(:disabled){background:#e9f9f1;border-color:#9fe0bf;color:#1f7a4d;}
.mc-sa-bb.is-stop:hover:not(:disabled),
.mc-sa-bb.is-danger:hover:not(:disabled){background:#fdeef3;border-color:#f3b8cf;color:#c0392b;}
.mc-sa-bb.is-renew{background:#f0f7ff;border-color:#c3ddf7;color:#2563eb;}
.mc-sa-bb-sep{width:1px;height:18px;background:#e2ecf7;margin:0 2px;}
.mc-sa-batch-msg{font-size:12.5px;color:#1f7a4d;margin-left:auto;}

/* 有操作栏时给页面留出底部空间，避免遮住最后一张卡片 */
body:has(.mc-sa-batch[style*="display: block"]){padding-bottom:70px;}

/* ==================================================================
   服务器跨节点迁移
   ================================================================== */
.mc-mg-head{margin:0 0 16px;padding:14px 18px;border-radius:12px;
  background:linear-gradient(135deg,#f0f7ff,#e8f2fd);border:1px solid #d3e5f8;}
.mc-mg-head b{display:block;font-size:16px;color:#1e3a5f;font-weight:700;}
.mc-mg-head em{font-style:normal;font-size:12.5px;color:#7d93aa;}

.mc-mg-alert{margin:0 0 14px;padding:12px 16px;border-radius:10px;font-size:13px;line-height:1.8;}
.mc-mg-alert b{display:block;margin-bottom:3px;}
.mc-mg-alert.is-err{background:#fdeef3;border:1px solid #f3b8cf;color:#a0284d;}
.mc-mg-alert.is-ok{background:#e9f9f1;border:1px solid #9fe0bf;color:#1a6b45;}

.mc-mg-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:10px;margin:0 0 16px;}
.mc-mg-cell{padding:12px 14px;border-radius:10px;background:#fff;border:1px solid #e2ecf7;}
.mc-mg-cell span{display:block;font-size:11.5px;color:#8aa0b6;margin-bottom:4px;}
.mc-mg-cell b{display:block;font-size:16px;color:#1e3a5f;font-weight:700;}
.mc-mg-cell b.is-on{color:#1f7a4d;}
.mc-mg-cell b.is-off{color:#c0392b;}
.mc-mg-cell em{display:block;font-style:normal;font-size:11.5px;color:#9ab0c6;margin-top:3px;}

.mc-mg-progress{margin:0 0 16px;padding:14px 16px;border-radius:10px;background:#fff;border:1px solid #e2ecf7;}
.mc-mg-progress-hd{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:8px;}
.mc-mg-progress-hd b{font-size:13.5px;color:#1e3a5f;}
.mc-mg-progress-hd span{font-size:12px;color:#3b82f6;font-weight:600;}
.mc-mg-progress-msg{font-size:12px;color:#7d93aa;margin-bottom:10px;word-break:break-all;min-height:16px;}
.mc-mg-bar{height:7px;border-radius:4px;background:#eef4fa;overflow:hidden;}
.mc-mg-bar i{display:block;height:100%;width:5%;border-radius:4px;
  background:linear-gradient(90deg,#5ba7f7,#3b82f6);transition:width .6s ease;}
.mc-mg-progress-foot{font-size:11px;color:#adc0d2;margin-top:8px;}

.mc-mg-warn{margin:0 0 16px;padding:14px 18px;border-radius:10px;
  background:#fffaf2;border:1px solid #f5dfc0;color:#8a6330;font-size:12.5px;}
.mc-mg-warn b{display:block;margin-bottom:7px;font-size:13px;color:#a06018;}
.mc-mg-warn ul{margin:0;padding-left:20px;line-height:1.95;}
.mc-mg-warn li b{display:inline;color:#c0392b;font-weight:600;margin:0;}

.mc-mg-form{padding:16px 18px;border-radius:10px;background:#fff;border:1px solid #e2ecf7;}
.mc-mg-form-title{font-size:13.5px;color:#1e3a5f;font-weight:600;margin-bottom:12px;}
.mc-mg-targets{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:10px;margin-bottom:16px;}
.mc-mg-target{cursor:pointer;}
.mc-mg-target input{position:absolute;opacity:0;width:0;height:0;}
.mc-mg-target-box{display:block;padding:12px 14px;border-radius:10px;
  border:1.5px solid #e2ecf7;background:#fbfdff;transition:all .15s;}
.mc-mg-target:hover .mc-mg-target-box{border-color:#b6d4f2;background:#f4f9ff;}
.mc-mg-target input:checked + .mc-mg-target-box{border-color:#3b82f6;background:#eef6ff;
  box-shadow:0 0 0 3px rgba(59,130,246,.10);}
.mc-mg-target-box b{display:block;font-size:13.5px;color:#1e3a5f;}
.mc-mg-target-box em{display:block;font-style:normal;font-size:11.5px;color:#9ab0c6;margin-top:3px;}

.mc-mg-form-foot{display:flex;align-items:center;gap:12px;}
.mc-mg-go{padding:9px 24px;border-radius:9px;border:none;cursor:pointer;
  background:#3b82f6;color:#fff;font-size:13.5px;font-weight:600;transition:all .15s;}
.mc-mg-go:hover:not(:disabled){background:#2563eb;}
.mc-mg-go:disabled{opacity:.6;cursor:not-allowed;}
.mc-mg-cancel{font-size:13px;color:#7d93aa;text-decoration:none;}
.mc-mg-cancel:hover{color:#2563eb;}

/* ==================================================================
   站点公告（后台管理 + 前台展示）
   ================================================================== */
.mc-an-head{margin:0 0 16px;padding:14px 18px;border-radius:12px;
  background:linear-gradient(135deg,#f0f7ff,#e8f2fd);border:1px solid #d3e5f8;}
.mc-an-head b{display:block;font-size:16px;color:#1e3a5f;font-weight:700;}
.mc-an-head em{font-style:normal;font-size:12.5px;color:#7d93aa;}
.mc-an-flash{margin:0 0 14px;padding:11px 16px;border-radius:9px;font-size:13px;
  background:#e9f9f1;border:1px solid #9fe0bf;color:#1a6b45;}

.mc-an-empty{padding:46px 20px;text-align:center;border-radius:12px;
  background:#f7fafd;border:1px dashed #d8e6f5;}
.mc-an-empty b{display:block;font-size:15px;color:#5b7793;margin-bottom:6px;}
.mc-an-empty span{font-size:12.5px;color:#9ab0c6;}

.mc-an-list{display:flex;flex-direction:column;gap:10px;}
.mc-an-item{display:flex;gap:14px;padding:14px 16px;border-radius:11px;
  background:#fff;border:1px solid #e2ecf7;border-left-width:4px;transition:all .15s;}
.mc-an-item:hover{box-shadow:0 2px 12px rgba(31,72,121,.07);}
.mc-an-item.is-dead{opacity:.55;}
.mc-an-item.lv-info{border-left-color:#3b82f6;}
.mc-an-item.lv-success{border-left-color:#10b981;}
.mc-an-item.lv-warn{border-left-color:#f59e0b;}
.mc-an-item.lv-danger{border-left-color:#ef4444;}

.mc-an-item-main{flex:1;min-width:0;}
.mc-an-item-title{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-bottom:6px;}
.mc-an-item-title b{font-size:14.5px;color:#1e3a5f;font-weight:600;}
.mc-an-badge{font-size:10.5px;padding:2px 7px;border-radius:5px;line-height:1.6;}
.mc-an-badge.is-pin{background:#fdeef3;color:#c0392b;font-weight:600;}
.mc-an-badge.is-lv{background:#eef6ff;color:#2563eb;}
.mc-an-badge.is-pop{background:#f3eeff;color:#7c3aed;}
.mc-an-state{font-size:11px;color:#9ab0c6;margin-left:auto;}
.mc-an-item-body{font-size:12.5px;color:#5b7793;line-height:1.85;word-break:break-word;}
.mc-an-item-meta{display:flex;gap:14px;margin-top:8px;font-size:11px;color:#adc0d2;}

.mc-an-item-acts{display:flex;flex-direction:column;gap:6px;flex:0 0 62px;}
.mc-an-act{display:block;text-align:center;padding:5px 0;border-radius:7px;font-size:12px;
  text-decoration:none;background:#f4f9ff;border:1px solid #e2ecf7;color:#4a6b8a;transition:all .15s;}
.mc-an-act:hover{background:#e8f2fd;border-color:#b6d4f2;color:#2563eb;}
.mc-an-act.is-del:hover{background:#fdeef3;border-color:#f3b8cf;color:#c0392b;}

.mc-an-err{margin:0 0 14px;padding:12px 16px;border-radius:9px;font-size:12.5px;
  background:#fdeef3;border:1px solid #f3b8cf;color:#a0284d;}
.mc-an-form{padding:16px 18px;border-radius:11px;background:#fff;border:1px solid #e2ecf7;}
.mc-an-field{margin-bottom:14px;}
.mc-an-field label{display:block;font-size:12.5px;color:#5b7793;margin-bottom:5px;font-weight:600;}
.mc-an-field small{display:block;font-size:11px;color:#adc0d2;margin-top:4px;}
.mc-an-input,.mc-an-textarea{width:100%;box-sizing:border-box;padding:8px 11px;border-radius:8px;
  border:1px solid #d8e6f5;font-size:13px;color:#22313f;background:#fbfdff;transition:all .15s;}
.mc-an-input:focus,.mc-an-textarea:focus{outline:none;border-color:#8fbcf0;background:#fff;
  box-shadow:0 0 0 3px rgba(59,130,246,.10);}
.mc-an-textarea{resize:vertical;line-height:1.7;font-family:inherit;}
.mc-an-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:14px;}
.mc-an-checks{display:flex;gap:20px;flex-wrap:wrap;padding:12px 14px;border-radius:9px;
  background:#f8fbfe;border:1px solid #e8f1fa;margin-bottom:16px;}
.mc-an-checks label{font-size:12.5px;color:#4a6b8a;display:flex;align-items:center;gap:6px;cursor:pointer;}
.mc-an-form-foot{display:flex;align-items:center;gap:12px;}
.mc-an-go{padding:9px 26px;border-radius:9px;border:none;cursor:pointer;
  background:#3b82f6;color:#fff;font-size:13.5px;font-weight:600;}
.mc-an-go:hover{background:#2563eb;}
.mc-an-cancel{font-size:13px;color:#7d93aa;text-decoration:none;}
.mc-an-cancel:hover{color:#2563eb;}

/* ---- 前台展示条 ---- */
.mc-ann-bar{margin:0 0 16px;border-radius:11px;overflow:hidden;border:1px solid #e2ecf7;background:#fff;}
.mc-ann-bar-item{display:flex;align-items:flex-start;gap:11px;padding:12px 16px;
  border-left:4px solid #3b82f6;font-size:13px;color:#3f5a75;line-height:1.8;}
.mc-ann-bar-item + .mc-ann-bar-item{border-top:1px solid #f0f6fc;}
.mc-ann-bar-item.lv-success{border-left-color:#10b981;}
.mc-ann-bar-item.lv-warn{border-left-color:#f59e0b;}
.mc-ann-bar-item.lv-danger{border-left-color:#ef4444;}
.mc-ann-bar-item .ico{flex:0 0 16px;margin-top:3px;font-size:14px;line-height:1;}
.mc-ann-bar-item b{color:#1e3a5f;}
.mc-ann-bar-item .txt{flex:1;min-width:0;word-break:break-word;}

/* ---- 登录弹窗 ---- */
.mc-ann-mask{position:fixed;inset:0;background:rgba(20,40,70,.45);z-index:100000;
  display:flex;align-items:center;justify-content:center;padding:20px;backdrop-filter:blur(3px);}
.mc-ann-modal{width:100%;max-width:520px;max-height:80vh;overflow:auto;border-radius:14px;
  background:#fff;box-shadow:0 18px 50px rgba(20,40,70,.28);}
.mc-ann-modal-hd{padding:16px 20px;border-bottom:1px solid #eef4fa;
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  background:linear-gradient(135deg,#f0f7ff,#e8f2fd);}
.mc-ann-modal-hd b{font-size:15px;color:#1e3a5f;}
.mc-ann-modal-hd .lv{font-size:11px;padding:2px 8px;border-radius:5px;background:#eef6ff;color:#2563eb;}
.mc-ann-modal-hd .x{cursor:pointer;font-size:20px;line-height:1;color:#9ab0c6;border:none;background:none;}
.mc-ann-modal-hd .x:hover{color:#c0392b;}
.mc-ann-modal-bd{padding:16px 20px;font-size:13px;color:#3f5a75;line-height:1.95;word-break:break-word;}
.mc-ann-modal-ft{padding:12px 20px;border-top:1px solid #eef4fa;text-align:right;}
.mc-ann-modal-ft button{padding:8px 22px;border-radius:9px;border:none;cursor:pointer;
  background:#3b82f6;color:#fff;font-size:13px;font-weight:600;}
.mc-ann-modal-ft button:hover{background:#2563eb;}

/* ==================================================================
   工单 / 客服
   ================================================================== */
.mc-tk-head{margin:0 0 16px;padding:14px 18px;border-radius:12px;
  background:linear-gradient(135deg,#f0f7ff,#e8f2fd);border:1px solid #d3e5f8;}
.mc-tk-head b{display:block;font-size:16px;color:#1e3a5f;font-weight:700;word-break:break-word;}
.mc-tk-head em{font-style:normal;font-size:12.5px;color:#7d93aa;}

.mc-tk-flash{margin:0 0 14px;padding:11px 16px;border-radius:9px;font-size:13px;}
.mc-tk-flash.is-ok{background:#e9f9f1;border:1px solid #9fe0bf;color:#1a6b45;}
.mc-tk-flash.is-err{background:#fdeef3;border:1px solid #f3b8cf;color:#a0284d;}

.mc-tk-tabs{display:flex;gap:7px;flex-wrap:wrap;align-items:center;margin:0 0 14px;}
.mc-tk-tab{padding:6px 13px;border-radius:9px;font-size:12.5px;text-decoration:none;
  background:#fff;border:1px solid #d8e6f5;color:#4a6b8a;transition:all .15s;}
.mc-tk-tab i{font-style:normal;color:#9ab0c6;margin-left:4px;font-size:11.5px;}
.mc-tk-tab:hover{background:#eef6ff;border-color:#b6d4f2;color:#2563eb;}
.mc-tk-tab.is-on{background:#3b82f6;border-color:#3b82f6;color:#fff;font-weight:600;}
.mc-tk-tab.is-on i{color:rgba(255,255,255,.75);}
.mc-tk-new{margin-left:auto;padding:7px 16px;border-radius:9px;font-size:13px;font-weight:600;
  text-decoration:none;background:#3b82f6;color:#fff;}
.mc-tk-new:hover{background:#2563eb;color:#fff;}

.mc-tk-empty{padding:46px 20px;text-align:center;border-radius:12px;
  background:#f7fafd;border:1px dashed #d8e6f5;}
.mc-tk-empty b{display:block;font-size:15px;color:#5b7793;margin-bottom:6px;}
.mc-tk-empty span{font-size:12.5px;color:#9ab0c6;}

.mc-tk-list{display:flex;flex-direction:column;gap:9px;}
.mc-tk-item{display:block;padding:13px 16px;border-radius:11px;text-decoration:none;
  background:#fff;border:1px solid #e2ecf7;border-left-width:4px;transition:all .15s;}
.mc-tk-item:hover{box-shadow:0 3px 14px rgba(31,72,121,.09);transform:translateX(2px);}
.mc-tk-item.st-open{border-left-color:#f59e0b;}
.mc-tk-item.st-answered{border-left-color:#10b981;}
.mc-tk-item.st-pending{border-left-color:#8b5cf6;}
.mc-tk-item.st-closed{border-left-color:#c8d6e4;opacity:.72;}
.mc-tk-item-hd{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-bottom:6px;}
.mc-tk-no{font-size:11.5px;color:#9ab0c6;font-family:monospace;}
.mc-tk-st{font-size:10.5px;padding:2px 8px;border-radius:5px;background:#eef6ff;color:#2563eb;}
.mc-tk-item.st-answered .mc-tk-st{background:#e9f9f1;color:#1a6b45;}
.mc-tk-item.st-closed  .mc-tk-st{background:#f0f4f8;color:#7d93aa;}
.mc-tk-cat{font-size:10.5px;padding:2px 8px;border-radius:5px;background:#f4f9ff;color:#5b7793;}
.mc-tk-pri{font-size:10.5px;padding:2px 8px;border-radius:5px;background:#fdeef3;color:#c0392b;font-weight:600;}
.mc-tk-need{font-size:10.5px;padding:2px 8px;border-radius:5px;background:#fff5e8;color:#b5721c;font-weight:600;}
.mc-tk-item-subject{font-size:14px;color:#1e3a5f;font-weight:600;margin-bottom:5px;word-break:break-word;}
.mc-tk-item-meta{display:flex;gap:14px;font-size:11px;color:#adc0d2;}

.mc-tk-form{padding:16px 18px;border-radius:11px;background:#fff;border:1px solid #e2ecf7;}
.mc-tk-field{margin-bottom:14px;}
.mc-tk-field label{display:block;font-size:12.5px;color:#5b7793;margin-bottom:5px;font-weight:600;}
.mc-tk-field label .req{color:#e8367f;}
.mc-tk-field small{display:block;font-size:11px;color:#adc0d2;margin-top:4px;}
.mc-tk-input,.mc-tk-textarea{width:100%;box-sizing:border-box;padding:8px 11px;border-radius:8px;
  border:1px solid #d8e6f5;font-size:13px;color:#22313f;background:#fbfdff;transition:all .15s;}
.mc-tk-input:focus,.mc-tk-textarea:focus{outline:none;border-color:#8fbcf0;background:#fff;
  box-shadow:0 0 0 3px rgba(59,130,246,.10);}
.mc-tk-textarea{resize:vertical;line-height:1.75;font-family:inherit;}
.mc-tk-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:14px;}
.mc-tk-form-foot{display:flex;align-items:center;gap:12px;margin-top:6px;}
.mc-tk-go{padding:9px 26px;border-radius:9px;border:none;cursor:pointer;
  background:#3b82f6;color:#fff;font-size:13.5px;font-weight:600;}
.mc-tk-go:hover{background:#2563eb;}
.mc-tk-cancel{font-size:13px;color:#7d93aa;text-decoration:none;}
.mc-tk-cancel:hover{color:#2563eb;}

/* ---- 详情状态栏 ---- */
.mc-tk-statusbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;
  margin:0 0 14px;padding:11px 16px;border-radius:10px;background:#fff;border:1px solid #e2ecf7;}
.mc-tk-statusbar .mc-tk-st{font-size:12px;padding:3px 11px;}
.mc-tk-statusbar .mc-tk-st.st-open{background:#fff5e8;color:#b5721c;}
.mc-tk-statusbar .mc-tk-st.st-answered{background:#e9f9f1;color:#1a6b45;}
.mc-tk-statusbar .mc-tk-st.st-pending{background:#f3eeff;color:#7c3aed;}
.mc-tk-statusbar .mc-tk-st.st-closed{background:#f0f4f8;color:#7d93aa;}
.mc-tk-statusform{display:flex;gap:7px;align-items:center;margin:0;}
.mc-tk-mini{padding:5px 9px;border-radius:7px;border:1px solid #d8e6f5;background:#fbfdff;
  font-size:12px;color:#4a6b8a;}
.mc-tk-mini-btn{padding:5px 14px;border-radius:7px;border:1px solid #c3ddf7;background:#eef6ff;
  color:#2563eb;font-size:12px;cursor:pointer;}
.mc-tk-mini-btn:hover{background:#dcecff;}
.mc-tk-close{margin-left:auto;font-size:12.5px;color:#9ab0c6;text-decoration:none;}
.mc-tk-close:hover{color:#c0392b;}

/* ---- 对话 ---- */
.mc-tk-thread{display:flex;flex-direction:column;gap:10px;margin:0 0 16px;}
.mc-tk-msg{padding:12px 16px;border-radius:11px;border:1px solid #e2ecf7;background:#fff;}
.mc-tk-msg.is-staff{background:#f4f9ff;border-color:#d3e5f8;}
.mc-tk-msg.is-user{background:#fff;}
.mc-tk-msg-hd{display:flex;align-items:center;gap:8px;margin-bottom:7px;}
.mc-tk-msg-hd b{font-size:13px;color:#1e3a5f;}
.mc-tk-msg-hd .who{font-size:10.5px;padding:2px 7px;border-radius:5px;background:#eef6ff;color:#2563eb;}
.mc-tk-msg.is-staff .mc-tk-msg-hd .who{background:#dcecff;color:#1d4ed8;font-weight:600;}
.mc-tk-msg-hd em{font-style:normal;font-size:11px;color:#adc0d2;margin-left:auto;}
.mc-tk-msg-bd{font-size:13px;color:#3f5a75;line-height:1.9;word-break:break-word;}

.mc-tk-reply{padding:16px 18px;border-radius:11px;background:#fff;border:1px solid #e2ecf7;}
.mc-tk-reply-title{font-size:13px;color:#5b7793;font-weight:600;margin-bottom:9px;}
.mc-tk-closed{padding:16px 18px;border-radius:11px;background:#f7fafd;border:1px dashed #d8e6f5;
  color:#8aa0b6;font-size:13px;text-align:center;}

/* ==================================================================
   左侧主导航（全站）
   ------------------------------------------------------------------
   设计要点：
     · 桌面端固定在左侧，内容区整体右移（不再居中）
     · 移动端（<992px）收成抽屉，顶部出现一条汉堡条
     · 配色跟面板统一（浅蓝），不引入深色
     · 用 position:fixed 脱离文档流，所以 body 的 padding 不影响它
   ================================================================== */

:root {
    --mc-side-w: 224px;
}

/* 内容区整体右移，给固定侧边栏让位 */
body { padding-left: var(--mc-side-w); }

/* 内容容器改成左对齐、自适应宽度（原来 1170px 居中） */
.container.mc-has-side,
#mini.mc-has-side {
    width: auto !important;
    max-width: 1580px !important;
    margin-left: 0 !important;
    margin-right: auto !important;
}

/* ---------------------------------------------------------------- 侧边栏本体 */
.mc-side {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: var(--mc-side-w);
    z-index: 1200;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #f7fbff 0%, #eef6ff 100%);
    border-right: 1px solid #dce9f5;
    box-shadow: 2px 0 16px rgba(16, 42, 67, .05);
    overflow: hidden;
}

/* 品牌区 */
.mc-side-brand {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 15px 16px 13px;
    border-bottom: 1px solid #e4eef8;
    flex: 0 0 auto;
}
.mc-side-brand b {
    font-size: 15px;
    font-weight: 700;
    color: #1e3a5f;
    letter-spacing: .5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mc-side-logo {
    width: 22px; height: 22px; flex: 0 0 22px;
    background: linear-gradient(135deg, #5ba7f7, #3b82f6);
    -webkit-mask: no-repeat center/contain;
    mask: no-repeat center/contain;
    -webkit-mask-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000'%3E%3Cpath d='M4 4h16a1 1 0 0 1 1 1v6H3V5a1 1 0 0 1 1-1zm-1 9h18v6a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1v-6zm3 3v2h4v-2H6z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000'%3E%3Cpath d='M4 4h16a1 1 0 0 1 1 1v6H3V5a1 1 0 0 1 1-1zm-1 9h18v6a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1v-6zm3 3v2h4v-2H6z'/%3E%3C/svg%3E");
    border-radius: 5px;
}

/* 中间可滚动区 */
.mc-side-scroll {
    flex: 1 1 auto;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 12px 10px;
    scrollbar-width: thin;
}
.mc-side-scroll::-webkit-scrollbar { width: 6px; }
.mc-side-scroll::-webkit-scrollbar-thumb { background: #d3e5f8; border-radius: 3px; }
.mc-side-scroll::-webkit-scrollbar-track { background: transparent; }

/* 「返回主页」按钮 —— 做成醒目的块 */
.mc-side-home {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 12px;
    margin: 0 0 12px;
    border-radius: 9px;
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 600;
    color: #1d6fd0;
    background: #e8f3ff;
    border: 1px solid #cfe4fa;
    transition: all .15s;
}
.mc-side-home:hover {
    background: #dcecff;
    border-color: #b6d4f2;
    color: #1559b0;
    text-decoration: none;
}
.mc-side-home.is-active {
    background: #3b82f6;
    border-color: #3b82f6;
    color: #fff;
}
.mc-side-home.is-active .mc-side-ico { color: #fff; }
.mc-side-home .mc-side-ico { color: #3b82f6; }

/* 分组标题 */
.mc-side-group {
    font-size: 11px;
    font-weight: 600;
    color: #9ab0c6;
    letter-spacing: 1px;
    padding: 14px 12px 6px;
    text-transform: none;
}
.mc-side-nav > .mc-side-group:first-child { padding-top: 4px; }

/* 菜单项 */
.mc-side-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    margin: 2px 0;
    border-radius: 8px;
    text-decoration: none;
    font-size: 13.5px;
    color: #48627d;
    transition: background .14s, color .14s;
    white-space: nowrap;
    overflow: hidden;
}
.mc-side-item:hover {
    background: #e4f0fd;
    color: #1d6fd0;
    text-decoration: none;
}
.mc-side-item.is-active {
    background: #dcecff;
    color: #1559b0;
    font-weight: 600;
    box-shadow: inset 3px 0 0 #3b82f6;
}
.mc-side-item .mc-side-ico {
    flex: 0 0 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8fb0cd;
    transition: color .14s;
}
.mc-side-item:hover .mc-side-ico,
.mc-side-item.is-active .mc-side-ico { color: #2cb2ff; }
.mc-side-item .mc-side-ico svg { width: 16px; height: 16px; }
.mc-side-label { overflow: hidden; text-overflow: ellipsis; }

/* 粉色高亮项（服务器套餐 / 整合包广场） */
.mc-side-item.is-hot {
    color: #d81b60;
    background: linear-gradient(135deg, #fff2f8, #ffe8f2);
    border: 1px solid #ffd6e6;
    font-weight: 600;
}
.mc-side-item.is-hot:hover {
    background: linear-gradient(135deg, #ffe4ef, #ffd6e6);
    color: #b3164f;
}
.mc-side-item.is-hot .mc-side-ico { color: #e8367f; }
.mc-side-item.is-hot .mc-side-ico svg { fill: #e8367f; }

/* 底部固定区（注销/登录） */
.mc-side-foot {
    flex: 0 0 auto;
    padding: 10px;
    border-top: 1px solid #e4eef8;
    background: rgba(255, 255, 255, .6);
}
.mc-side-item.is-out { color: #7d93aa; }
.mc-side-item.is-out:hover { background: #fdeef3; color: #c0392b; }
.mc-side-item.is-out:hover .mc-side-ico { color: #c0392b; }

/* ---------------------------------------------------------------- 移动端 */
.mc-mobar { display: none; }
.mc-side-mask { display: none; }

@media (max-width: 991px) {
    body { padding-left: 0; }

    /* 侧边栏变抽屉 */
    .mc-side {
        transform: translateX(-100%);
        transition: transform .22s ease;
        box-shadow: none;
        width: 250px;
    }
    .mc-side.is-open {
        transform: none;
        box-shadow: 0 0 44px rgba(16, 42, 67, .3);
    }

    /* 顶部条 */
    .mc-mobar {
        display: flex;
        align-items: center;
        gap: 12px;
        position: fixed;
        left: 0; right: 0; top: 0;
        height: 48px;
        padding: 0 14px;
        z-index: 1150;
        background: rgba(255, 255, 255, .97);
        border-bottom: 1px solid #dce9f5;
        box-shadow: 0 2px 12px rgba(16, 42, 67, .07);
        backdrop-filter: blur(8px);
    }
    .mc-mobar-btn {
        width: 34px; height: 34px;
        display: flex; flex-direction: column;
        align-items: center; justify-content: center;
        gap: 4px;
        border: 1px solid #dce9f5;
        border-radius: 8px;
        background: #f7fbff;
        cursor: pointer;
        padding: 0;
    }
    .mc-mobar-btn span {
        display: block;
        width: 15px; height: 2px;
        background: #5b7793;
        border-radius: 1px;
    }
    .mc-mobar-btn:hover { background: #e8f3ff; border-color: #b6d4f2; }
    .mc-mobar-title {
        font-size: 14.5px;
        font-weight: 700;
        color: #1e3a5f;
    }

    /* 遮罩 */
    .mc-side-mask {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 1190;
        background: rgba(16, 42, 67, .38);
        opacity: 0;
        pointer-events: none;
        transition: opacity .2s;
        backdrop-filter: blur(2px);
    }
    .mc-side-mask.is-on { opacity: 1; pointer-events: auto; }

    /* 内容下移，给顶部条让位 */
    .container.mc-has-side,
    #mini.mc-has-side {
        margin-top: 48px !important;
        max-width: 100% !important;
    }

    body.mc-side-locked { overflow: hidden; }
}

/* 窄屏手机上侧边栏再窄一点，避免遮满 */
@media (max-width: 400px) {
    .mc-side { width: 82vw; }
}

/* ==================================================================
   内容卡片化（横幅 + 内容区）
   ------------------------------------------------------------------
   之前的问题：
     ① .container 整体 opacity: 0.94 —— 背景图透到文字上，观感很糊
     ② 横幅是通栏半透明条，和下面的内容糊成一片
     ③ 内容只占页面上一半，下面一大片纯背景图，看着像「左上堆了一份」
   改成：
     ① 容器不再整体半透明，交给内部卡片各自控制
     ② 横幅收成一张圆角卡片（保留它自己的粉紫渐变）
     ③ 内容两栏都是实心白卡片，边框阴影统一
     ④ 内容区给个最小高度，页面不会在中间断掉
   ================================================================== */

/* ① 容器去掉整体透明度 */
.container.mc-has-side,
#mini.mc-has-side {
    opacity: 1 !important;
    filter: none !important;
    -moz-opacity: 1 !important;
    -khtml-opacity: 1 !important;
}

/* ② 横幅：从通栏改成一张卡片 */
.container.mc-has-side > #header,
.container.mc-has-side > .row#header,
#mini.mc-has-side > #header,
#mini.mc-has-side > .row#header {
    margin: 0 0 14px !important;
    padding: 4px 0 !important;
    border: 1px solid #e6dff5 !important;
    border-radius: 14px !important;
    box-shadow: 0 4px 20px rgba(16, 42, 67, .08) !important;
    overflow: hidden;
    box-sizing: border-box;
}

/* 横幅里的标题不再自带左右内边距（卡片已经给了） */
.container.mc-has-side > #header h1,
.container.mc-has-side > #header #logo,
#mini.mc-has-side > #header h1,
#mini.mc-has-side > #header #logo {
    padding-left: 22px !important;
    padding-right: 22px !important;
}

/* ③ 内容两栏：统一成实心白卡 */
#sidebar .portlet,
#sidebar .portlet-content,
.col-md-9.col-md-offset-3,
.col-md-9.col-md-offset-3.col-toppad,
.col-md-12,
.col-md-12.col-toppad {
    background: #ffffff !important;
    border: 1px solid #e2edf8 !important;
    border-radius: 14px !important;
    box-shadow: 0 4px 20px rgba(16, 42, 67, .08) !important;
}

/* 内容列如果本身没有背景（有些页面直接用 .col-md-9），
   把内边距补上，否则文字贴边 */
.col-md-9.col-md-offset-3,
.col-md-9.col-md-offset-3.col-toppad {
    padding: 18px 20px !important;
    box-sizing: border-box;
}

/* ④ 内容区最小高度：短内容也不会让页面看着「塌了一块」 */
#content {
    min-height: 62vh !important;
}

/* 两栏间距统一（原来靠 Bootstrap 的 gutter，这里收紧一点更好看） */
#content > .col-md-3#sidebar {
    padding-right: 8px;
}
#content > .col-md-9.col-md-offset-3 {
    margin-left: 25%;
}

/* 窄屏下两栏堆叠，去掉偏移 */
@media (max-width: 991px) {
    #content > .col-md-9.col-md-offset-3 {
        margin-left: 0;
        padding: 14px 16px !important;
    }
    #content > .col-md-3#sidebar {
        padding-right: 15px;
    }
    #content { min-height: auto !important; }
    .container.mc-has-side > #header,
    #mini.mc-has-side > #header {
        margin-bottom: 10px !important;
    }
}

/* ==================================================================
   容器底色改为透明 —— 让卡片「浮」在背景图上
   ------------------------------------------------------------------
   主题给 #page > .container 设了 background: #ffffff，
   再配合原来的 opacity: 0.8，看着像一整块半透明白布。
   既然内容已经拆成卡片，容器就不该再有底色，
   否则卡片会被吞进一块大白块里，看不出「卡片」的层次。
   ================================================================== */
#page > .container.mc-has-side,
#page > #mini.mc-has-side,
#page > .container {
    background: transparent !important;
}

/* 内容区不强制拉高 —— 卡片多高就多高，
   下面露背景图是正常的卡片式观感 */
#content {
    min-height: auto !important;
}

/* 两栏高度对齐：让左栏卡片在视觉上和右栏齐平 */
#content > .col-md-3#sidebar {
    display: flex;
    flex-direction: column;
}
#sidebar .portlet {
    flex: 0 0 auto;
}

/* ==================================================================
   内容居中 + 与侧边栏留出呼吸距离
   ------------------------------------------------------------------
   之前的问题：
     .container.mc-has-side 和 #mini.mc-has-side 都是
         margin-left: 0
     也就是「左对齐」。宽屏下内容紧紧贴着左侧导航栏，
     右边却空出一大片，观感很挤、也很不均衡。

   改成：
     · 左右都 auto → 在「侧边栏右侧的可用区域」里居中
     · 各自设一个合理的最大宽度（游客页窄、管理页宽）
     · 左右各留 32px 内边距，内容不会顶到侧边栏
   ================================================================== */

/* 游客页面（主页 / 套餐 / 登录）—— 内容不多，收窄一些更聚焦 */
#mini.mc-has-side {
    width: auto !important;
    max-width: 1180px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 32px !important;
    padding-right: 32px !important;
    box-sizing: border-box;
}

/* 管理页面 —— 有表格、服务器列表，宽一些 */
.container.mc-has-side {
    width: auto !important;
    max-width: 1500px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 32px !important;
    padding-right: 32px !important;
    box-sizing: border-box;
}

/* 超大屏再放宽一点，避免两侧留白过多 */
@media (min-width: 1800px) {
    #mini.mc-has-side    { max-width: 1280px !important; }
    .container.mc-has-side { max-width: 1620px !important; }
}

/* 窄屏：回到全宽，内边距收小（移动端本来就没多少空间） */
@media (max-width: 991px) {
    #mini.mc-has-side,
    .container.mc-has-side {
        max-width: 100% !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}

/* ==================================================================
   游客页面（主页 / 套餐 / 登录）—— 实心化 + 登录框收窄居中
   ------------------------------------------------------------------
   ① 面板实心
      主题给 #mini 设了 opacity: 0.8 + filter: alpha(opacity:0.8)，
      整个面板只有八成不透明，背景图透到内容上，观感很糊。
      这里用 html 前缀把优先级拉到最高，确保压得住主题。

   ② 登录页容器收窄
      登录内容很少，1180px 太宽，收到 560px。

   ③ 登录表单做成居中的小卡片
      原来表单铺满整个容器宽度，输入框拉得很长，不像登录框。
   ================================================================== */

/* ① 面板实心 */
html body #mini.mc-has-side {
    background: #ffffff !important;
    opacity: 1 !important;
    filter: none !important;
    -moz-opacity: 1 !important;
    -khtml-opacity: 1 !important;
}

/* ② 登录 / 注册 / 找回密码页：容器收窄 */
html body.mc-narrow #mini.mc-has-side {
    max-width: 560px !important;
}

/* ③ 登录表单：居中的实心小卡片 */
html body.mc-narrow #mini #content > .form,
html body.mc-narrow #mini #content .form {
    max-width: 380px !important;
    margin: 0 auto !important;
    background: #ffffff !important;
    border: 1px solid #e6eef8 !important;
    border-radius: 16px !important;
    box-shadow: 0 8px 28px rgba(16, 42, 67, .10) !important;
    padding: 24px 26px 20px !important;
    box-sizing: border-box;
}

/* 输入框收到卡片内，别撑太长 */
html body.mc-narrow #mini .form .form-control,
html body.mc-narrow #mini .form input[type="text"],
html body.mc-narrow #mini .form input[type="password"] {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    padding: 10px 14px !important;
    font-size: 14.5px;
}

/* 登录按钮跟着卡片宽度 */
html body.mc-narrow #mini .form .btn,
html body.mc-narrow #mini .form input[type="submit"] {
    width: 100% !important;
    max-width: 100% !important;
    padding: 11px 0 !important;
    font-size: 15px;
}

/* 「注册」提示语居中 */
html body.mc-narrow #mini #content > p {
    text-align: center !important;
    margin: 0 auto 14px !important;
}

/* 记住我 / 允许IP变化 两列在卡片内对齐 */
html body.mc-narrow #mini .form .rememberMe {
    max-width: 100% !important;
    margin: 0 !important;
}

/* ==================================================================
   登录 / 注册 / 找回密码 —— 整块内容区实心
   ------------------------------------------------------------------
   定位过程（用调试色跑出来的）：
       红 #mini        → 不显示（被子元素完全覆盖，没可见区域）
       蓝 横幅          → 正常
       黄 注册提示      → 正常
       绿 #content     → 不显示 ← 就是它

   原因：alpha-override.css 里有一条
       #content { background: transparent !important; }
   那是给管理页面用的（内容区不该有卡片外观），
   但登录页不是两栏结构，透明之后整块就露出背景图了。

   这里只针对游客页（#mini）把内容区做成实心白。
   ================================================================== */
html body #mini.mc-has-side > .row#content {
    background: #ffffff !important;
    border: 1px solid #e6eef8 !important;
    border-radius: 0 0 16px 16px !important;
    box-sizing: border-box;
}

/* 注册提示那行：跟白底融为一体，去掉多余外边距 */
html body #mini.mc-has-side #content > p {
    background: transparent !important;
    margin: 16px auto 14px !important;
}

/* ==================================================================
   主页 hero 卡片：右上角「登录」按钮
   ------------------------------------------------------------------
   位置：绝对定位贴 hero 卡片右侧、垂直居中（截图里圈出来的那块空白）。
   显隐：只对游客显示 —— 布局给 #mini 加了 mc-guest / mc-auth 标记，
         已登录用户那条 .mc-auth 规则会把按钮藏掉。
   ================================================================== */

/* 给按钮一个定位基准 */
.mc-home-hero {
    position: relative;
}

.mc-home-login {
    position: absolute;
    right: 26px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 22px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none !important;
    color: #1f8fe8 !important;
    background: #eaf5ff;
    border: 1px solid #bfdffa;
    transition: background .16s, border-color .16s, color .16s, box-shadow .16s, transform .16s;
    white-space: nowrap;
}
.mc-home-login:hover {
    background: #dcecff;
    border-color: #9ed3f7;
    color: #1559b0 !important;
    box-shadow: 0 5px 16px rgba(44, 178, 255, .24);
    transform: translateY(-50%) scale(1.03);
    text-decoration: none;
}
.mc-home-login svg {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
}

/* 已登录用户不需要看到「登录」 */
.mc-auth .mc-home-login {
    display: none !important;
}

/* 窄屏：绝对定位会压到标题，改成静态排在按钮组下面 */
@media (max-width: 767px) {
    .mc-home-login {
        position: static;
        transform: none;
        margin-top: 14px;
    }
    .mc-home-login:hover {
        transform: none;
    }
}

/* ==================================================================
   已登录后隐藏顶部横幅
   ------------------------------------------------------------------
   那行「无限幻想 与你同行 / 我的世界❤管理面板」是给访客看的门面，
   登录进来之后它就是白占一块地方 —— 每天要看几十次的东西，
   不如把空间让给内容。

   实现：
     布局会给容器加 mc-guest（游客）或 mc-auth（已登录），
       主布局   → .container.mc-auth
       游客布局 → #mini.mc-auth
     这里统一按 .mc-auth 判断，两个布局都覆盖到。
   ================================================================== */
.mc-auth > #header,
.mc-auth > .row#header {
    display: none !important;
}

/* 横幅没了之后，内容区补一点上边距，别贴着容器顶 */
.mc-auth > .row#content {
    margin-top: 18px !important;
}

/* ==================================================================
   面板外观：卡片透明度 + 背景磨砂感（可在设置里调）
   ------------------------------------------------------------------
   两个值由「设置 → 面板设置」控制，
   head.php 把它们输出成 CSS 变量：
       --mc-card-opacity   卡片背景的不透明度（0.3 ~ 1）
       --mc-bg-blur        卡片背后背景的模糊量（0 ~ 20px）

   卡片背景统一写成 rgba(255,255,255,var(--mc-card-opacity))，
   配合 backdrop-filter: blur(var(--mc-bg-blur)) 做出磨砂玻璃效果。
   ================================================================== */

/* ---- 两栏卡片（服务器页的左菜单 + 右内容）---- */
#sidebar .portlet,
#sidebar .portlet-content,
.col-md-9.col-md-offset-3,
.col-md-9.col-md-offset-3.col-toppad,
.col-md-12,
.col-md-12.col-toppad {
    background: rgba(255, 255, 255, var(--mc-card-opacity, 0.97)) !important;
    backdrop-filter: blur(var(--mc-bg-blur, 6px));
    -webkit-backdrop-filter: blur(var(--mc-bg-blur, 6px));
}

/* ---- 横幅卡片 ---- */
.container.mc-has-side > #header,
.container.mc-has-side > .row#header,
#mini.mc-has-side > #header,
#mini.mc-has-side > .row#header {
    backdrop-filter: blur(var(--mc-bg-blur, 6px));
    -webkit-backdrop-filter: blur(var(--mc-bg-blur, 6px));
}

/* ---- 主页 hero 与硬件卡片 ---- */
.mc-home-hero,
.mc-home-card {
    background: rgba(255, 255, 255, var(--mc-card-opacity, 0.97)) !important;
    backdrop-filter: blur(var(--mc-bg-blur, 6px));
    -webkit-backdrop-filter: blur(var(--mc-bg-blur, 6px));
}

/* ---- 服务器列表里的节点分组 ---- */
.mc-node-group,
.mc-sa-item,
.mc-md-item,
.mc-tk-item,
.mc-an-item {
    backdrop-filter: blur(var(--mc-bg-blur, 6px));
    -webkit-backdrop-filter: blur(var(--mc-bg-blur, 6px));
}

/* 磨砂为 0 时去掉模糊，避免无谓的合成开销 */
:root { --mc-bg-blur: 6px; }

/* ==================================================================
   启动优化（方案卡片 + 预览）
   ------------------------------------------------------------------
   配色沿用面板的浅蓝；卡片选中用主色描边 + 淡蓝底，
   跟侧边栏、卡片化的视觉语言保持一致。
   ================================================================== */
.mc-so-wrap { max-width: 860px; }

/* ---- 说明条 ---- */
.mc-so-note {
    display: flex; gap: 11px; align-items: flex-start;
    padding: 14px 16px; margin-bottom: 18px;
    background: #f2f9ff; border: 1px solid #d5e9fb; border-radius: 12px;
    color: #3c5a76; font-size: 13px; line-height: 1.75;
}
.mc-so-note-icon { flex: 0 0 auto; color: #2cb2ff; margin-top: 2px; }
.mc-so-note-body b { display: block; color: #1e3a5f; font-size: 13.5px; margin-bottom: 3px; }
.mc-so-note code {
    padding: 1px 5px; border-radius: 4px;
    background: #e2f0fd; color: #1d6fd0; font-size: 12px;
}

/* ---- 提示 ---- */
.mc-so-flash {
    padding: 11px 15px; margin-bottom: 16px;
    background: #eafaf0; border: 1px solid #bfe9cf; border-radius: 10px;
    color: #1c7a45; font-size: 13px;
}

/* ---- 分区标题 ---- */
.mc-so-sec-title {
    font-size: 13.5px; font-weight: 600; color: #46617c;
    margin: 0 0 11px 2px;
}

/* ---- 方案卡片 ---- */
.mc-so-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }

.mc-so-card {
    display: block; width: 100%; text-align: left; cursor: pointer;
    padding: 14px 16px; border-radius: 12px;
    /* 主题全局给 button 加了 max-height:40px，
       卡片要承载两行文字，这里显式解除，防止再被裁掉。 */
    max-height: none; min-height: 0; height: auto; overflow: visible;
    background: #fff; border: 1px solid #e2edf8;
    transition: border-color .15s, background .15s, box-shadow .15s;
    font-family: inherit;
}
.mc-so-card:hover { border-color: #b6d4f2; background: #fafdff; }
.mc-so-card.is-active {
    border-color: #2cb2ff; background: #f4faff;
    box-shadow: 0 0 0 3px rgba(44, 178, 255, .12);
}

.mc-so-card-head { display: flex; align-items: center; gap: 9px; margin-bottom: 5px; }
.mc-so-card-name { font-size: 14.5px; font-weight: 700; color: #1e3a5f; }
.mc-so-card-tag {
    padding: 1px 8px; border-radius: 20px;
    font-size: 11.5px; font-weight: 600;
    background: #e8f3ff; color: #1d6fd0; border: 1px solid #cfe4fa;
}
.mc-so-card.is-active .mc-so-card-tag { background: #2cb2ff; color: #fff; border-color: #2cb2ff; }
.mc-so-card-check { margin-left: auto; color: #2cb2ff; opacity: 0; transition: opacity .15s; }
.mc-so-card.is-active .mc-so-card-check { opacity: 1; }
.mc-so-card-desc { display: block; font-size: 12.5px; color: #7d93aa; line-height: 1.6; }

/* ---- 内存信息 ---- */
.mc-so-mem {
    padding: 14px 16px; margin-bottom: 18px;
    background: #fff; border: 1px solid #e2edf8; border-radius: 12px;
}
.mc-so-mem-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 7px 0; font-size: 13.5px; color: #46617c;
    border-bottom: 1px dashed #eaf2fa;
}
.mc-so-mem-row:last-of-type { border-bottom: none; }
.mc-so-mem-row b { color: #1e3a5f; font-size: 14px; }
.mc-so-mem-xmx { color: #1d6fd0 !important; }
.mc-so-mem-hint { margin-top: 8px; font-size: 12px; color: #93a8bd; line-height: 1.7; }
.mc-so-mem-hint code { padding: 1px 5px; border-radius: 4px; background: #eef6ff; color: #1d6fd0; }

/* ---- 参数预览 ---- */
.mc-so-prev { margin-bottom: 18px; }
.mc-so-prev-head { display: flex; align-items: center; margin-bottom: 8px; }
.mc-so-prev-title { font-size: 13.5px; font-weight: 600; color: #46617c; }
.mc-so-copy {
    margin-left: auto; padding: 4px 12px; border-radius: 7px; cursor: pointer;
    font-size: 12px; font-weight: 500;
    background: #eef6ff; color: #1d6fd0; border: 1px solid #cfe4fa;
    transition: background .15s, border-color .15s;
}
.mc-so-copy:hover { background: #dcecff; border-color: #b6d4f2; }
.mc-so-copy.is-ok { background: #eafaf0; border-color: #bfe9cf; color: #1c7a45; }
.mc-so-prev-body {
    margin: 0; padding: 13px 15px; border-radius: 11px;
    background: #f7fbff; border: 1px solid #e2edf8;
    font-family: Consolas, Monaco, "Courier New", monospace;
    font-size: 12.5px; line-height: 1.85; color: #2f4f6d;
    white-space: pre-wrap; word-break: break-all;
}

/* ---- 注意事项 ---- */
.mc-so-warn {
    display: flex; gap: 11px; align-items: flex-start;
    padding: 14px 16px; margin-bottom: 20px;
    background: #fffbf0; border: 1px solid #f2e3bd; border-radius: 12px;
    font-size: 13px; line-height: 1.8; color: #7a6321;
}
.mc-so-warn-icon { flex: 0 0 auto; color: #e0a800; margin-top: 2px; }
.mc-so-warn-body b { display: block; color: #6b5518; margin-bottom: 4px; }
.mc-so-warn-body ul { margin: 0; padding-left: 18px; }
.mc-so-warn-body li { margin: 2px 0; }

/* ---- 操作按钮 ---- */
.mc-so-actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.mc-so-btn {
    padding: 10px 22px; border-radius: 10px; cursor: pointer;
    font-size: 13.5px; font-weight: 500; font-family: inherit;
    background: #fff; color: #48627d; border: 1px solid #d7e6f3;
    transition: background .15s, border-color .15s, color .15s, box-shadow .15s;
}
.mc-so-btn:hover { background: #f2f9ff; border-color: #9ed3f7; color: #1f8fe8; }
.mc-so-btn.primary {
    background: linear-gradient(135deg, #2cb2ff, #1f9fe8);
    border: none; color: #fff; font-weight: 600;
    box-shadow: 0 3px 12px rgba(44, 178, 255, .32);
}
.mc-so-btn.primary:hover { box-shadow: 0 6px 18px rgba(44, 178, 255, .46); color: #fff; }
.mc-so-btn:disabled { opacity: .6; cursor: default; }

/* ---- 高级：逐项微调 ---- */
.mc-pm-adv { max-width: 860px; margin-top: 26px; }
.mc-pm-adv-head {
    display: flex; align-items: center; gap: 9px; width: 100%;
    padding: 12px 15px; cursor: pointer; font-family: inherit;
    background: #fff; border: 1px solid #e2edf8; border-radius: 12px;
    font-size: 13.5px; font-weight: 600; color: #46617c; text-align: left;
}
.mc-pm-adv-head:hover { border-color: #b6d4f2; background: #fafdff; }
.mc-pm-adv-caret { display: flex; color: #8fb0cd; transition: transform .18s; }
.mc-pm-adv-head.is-open .mc-pm-adv-caret { transform: rotate(90deg); }
.mc-pm-adv-body { display: none; padding: 14px 0 0; }
.mc-pm-head-count { margin-left: auto; font-size: 12px; font-weight: 500; color: #93a8bd; }

/* 窄屏：卡片与按钮铺满 */
@media (max-width: 767px) {
    .mc-so-actions { justify-content: stretch; }
    .mc-so-btn { flex: 1 1 auto; padding: 11px 12px; }
    .mc-so-card { padding: 13px 14px; }
}
