/*!
 * 摸鱼能力层 - 共享样式
 * 老板键伪装层 / 续玩提示 / 静音胶囊 / 首次引导 / 安全说明
 * 说明：伪装皮肤与摸鱼专区页面样式各自内联，本文件只放跨页面共用部分
 */

/* ============ 伪装遮罩层 ============ */
#moyu-disguise {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: none;
    overflow: hidden;
    font-family: 'JetBrains Mono', Consolas, Monaco, monospace;
    /* 兜底：任何皮肤都要覆盖全屏，避免游戏画面从缝隙露出 */
    background: #1e1e1e;
}
#moyu-disguise.moyu-on { display: block; }
#moyu-disguise * { box-sizing: border-box; }

/* 返回热区：与办公界面融为一体，不做任何按钮样式 */
.moyu-return-hotspot {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 92px;
    height: 22px;
    z-index: 2147483001;
    cursor: default;
}

/* ---- 皮肤：IDE 代码视图（默认，与站点深色主题一致，切换无闪白） ---- */
/* 注意：皮肤根节点选择器必须带上 #moyu-disguise，否则背景会被 ID 选择器覆盖，浅色皮肤会露出深色底 */
/* 同时带 moyu-on 才声明 display:flex（1,2,0 高于 .moyu-on 的 1,1,0），否则隐藏态会被 flex 覆盖 */
#moyu-disguise.moyu-on.moyu-skin-ide,
#moyu-disguise.moyu-on.moyu-skin-terminal,
#moyu-disguise.moyu-on.moyu-skin-excel,
#moyu-disguise.moyu-on.moyu-skin-doc,
#moyu-disguise.moyu-on.moyu-skin-oa,
#moyu-disguise.moyu-on.moyu-skin-mail { display: flex; flex-direction: column; }

/* 皮肤级设计令牌：浅色业务系统（OA / 邮箱 / Excel / Word） */
#moyu-disguise.moyu-skin-oa,
#moyu-disguise.moyu-skin-mail,
#moyu-disguise.moyu-skin-excel,
#moyu-disguise.moyu-skin-doc {
    --msk-primary: #1677ff;
    --msk-line: #e5e6eb;
    --msk-line-soft: #f0f1f3;
    --msk-text: #1f2329;
    --msk-sub: #646a73;
    --msk-weak: #8f959e;
    --msk-bg: #ffffff;
    --msk-bg-soft: #f5f6f8;
    --msk-hover: #f2f3f5;
    font-family: 'Noto Sans SC', 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    font-size: 13px;
    color: var(--msk-text);
}
/* 皮肤级设计令牌：深色开发工具（IDE / 终端） */
#moyu-disguise.moyu-skin-ide,
#moyu-disguise.moyu-skin-terminal {
    --msk-primary: #4a88c7;
    --msk-line: #3d3f42;
    --msk-line-soft: #26282b;
    --msk-text: #d7dae0;
    --msk-sub: #9aa0a6;
    --msk-weak: #6b6f76;
    --msk-bg: #2b2d30;
    --msk-bg-soft: #1e1f22;
    --msk-hover: #313438;
    font-family: 'JetBrains Mono', Consolas, Monaco, monospace;
    font-size: 13px;
    line-height: 20px;
    color: #a9b7c6;
}
#moyu-disguise.moyu-skin-ide { background: #1e1f22; }
#moyu-disguise.moyu-skin-terminal { background: #0c0c0c; color: #cccccc; }
#moyu-disguise.moyu-skin-excel { background: #f3f3f3; font-family: 'Segoe UI', 'Noto Sans SC', sans-serif; }
#moyu-disguise.moyu-skin-doc { background: #eceef1; font-family: 'Noto Sans SC', 'Songti SC', 'SimSun', serif; }
#moyu-disguise.moyu-skin-oa, #moyu-disguise.moyu-skin-mail { background: #f5f6f8; }

/* 光标闪烁（代码 / 文档插入符共用） */
@keyframes moyuCaret { 0%, 50% { opacity: 1; } 50.01%, 100% { opacity: 0; } }
@keyframes mskSpin { to { transform: rotate(360deg); } }
@keyframes mskFadeUp { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

/* ============ 皮肤公共组件（提示 / 网络波动 / 空态 / 按钮 / 输入 / 分页 / 滚动条） ============ */
#moyu-disguise .msk-net,
#moyu-disguise .msk-toast {
    position: absolute;
    left: 50%;
    z-index: 60;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 8px;
    font-family: 'Noto Sans SC', sans-serif;
    font-size: 12.5px;
    line-height: 1.5;
    opacity: 0;
    pointer-events: none;
    transition: transform .26s cubic-bezier(.22, .61, .36, 1), opacity .26s ease;
}
#moyu-disguise .msk-net {
    top: 8px;
    transform: translate(-50%, -160%);
    background: #fffbe6;
    border: 1px solid #ffe58f;
    color: #874d00;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .12);
}
#moyu-disguise .msk-net.msk-on { transform: translate(-50%, 0); opacity: 1; }
#moyu-disguise .msk-net-err { background: #fff1f0; border-color: #ffccc7; color: #cf1322; }
#moyu-disguise .msk-toast {
    top: 58px;
    transform: translate(-50%, -12px);
    background: #fff;
    border: 1px solid var(--msk-line);
    color: var(--msk-text);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .14);
}
#moyu-disguise .msk-toast.msk-on { transform: translate(-50%, 0); opacity: 1; }
#moyu-disguise .msk-toast-ok i { color: #00b42a; }
#moyu-disguise .msk-toast-err i { color: #f53f3f; }
#moyu-disguise .msk-toast-warn i { color: #ff7d00; }
#moyu-disguise .msk-toast-info i { color: #1677ff; }
/* 深色皮肤下原生提示换深色底 */
#moyu-disguise.moyu-skin-ide .msk-toast,
#moyu-disguise.moyu-skin-terminal .msk-toast {
    background: #2b2d30;
    border-color: #3d3f42;
    color: #d7dae0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .55);
}
#moyu-disguise.moyu-skin-ide .msk-net,
#moyu-disguise.moyu-skin-terminal .msk-net {
    background: #3a3320;
    border-color: #5c4d1f;
    color: #e8c97a;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .5);
}
#moyu-disguise.moyu-skin-ide .msk-toast-info i,
#moyu-disguise.moyu-skin-terminal .msk-toast-info i { color: #6ba7e0; }
#moyu-disguise.moyu-skin-ide .msk-toast-ok i,
#moyu-disguise.moyu-skin-terminal .msk-toast-ok i { color: #6fbf73; }

/* 空状态占位 */
#moyu-disguise .msk-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 210px;
    padding: 40px 20px;
    color: var(--msk-weak);
    font-family: 'Noto Sans SC', sans-serif;
    animation: mskFadeUp .3s ease;
}
#moyu-disguise .msk-empty i { font-size: 42px; color: #d5d8dc; margin-bottom: 8px; }
#moyu-disguise .msk-empty b { font-size: 14px; font-weight: 600; color: var(--msk-sub); }
#moyu-disguise .msk-empty span { max-width: 340px; text-align: center; font-size: 12.5px; line-height: 1.7; }
#moyu-disguise.moyu-skin-ide .msk-empty i,
#moyu-disguise.moyu-skin-terminal .msk-empty i { color: #4b5058; }
#moyu-disguise.moyu-skin-ide .msk-empty b,
#moyu-disguise.moyu-skin-terminal .msk-empty b { color: #8b9099; }

/* 按钮 / 输入 / 分页 / 标签页 */
#moyu-disguise .msk-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 30px;
    padding: 0 14px;
    border: 1px solid var(--msk-line);
    border-radius: 4px;
    background: #fff;
    color: var(--msk-text);
    font-family: 'Noto Sans SC', sans-serif;
    font-size: 13px;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    user-select: none;
    transition: background .16s, border-color .16s, transform .08s, box-shadow .16s;
}
#moyu-disguise .msk-btn:hover { background: var(--msk-hover); border-color: #c9cdd4; }
#moyu-disguise .msk-btn:active { transform: translateY(1px); background: #e8eaed; }
#moyu-disguise .msk-btn:focus-visible { outline: 2px solid rgba(22, 119, 255, .45); outline-offset: 1px; }
#moyu-disguise .msk-btn-primary { background: var(--msk-primary); border-color: var(--msk-primary); color: #fff; }
#moyu-disguise .msk-btn-primary:hover { background: #4090ff; border-color: #4090ff; }
#moyu-disguise .msk-btn-primary:active { background: #0e5fd8; border-color: #0e5fd8; }
#moyu-disguise .msk-btn-danger { background: #fff; border-color: #f76560; color: #f53f3f; }
#moyu-disguise .msk-btn-danger:hover { background: #ffece8; }
#moyu-disguise .msk-btn-ghost { background: transparent; }
#moyu-disguise .msk-btn-ghost:hover { background: var(--msk-hover); }
#moyu-disguise .msk-btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
#moyu-disguise .msk-loading { opacity: .85; pointer-events: none; }
#moyu-disguise .msk-spin {
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: mskSpin .7s linear infinite;
    vertical-align: -2px;
}
#moyu-disguise .msk-input {
    width: 100%;
    border: none;
    background: transparent;
    outline: none;
    color: inherit;
    font-family: 'Noto Sans SC', sans-serif;
    font-size: 12.5px;
}
#moyu-disguise .msk-input::placeholder { color: var(--msk-weak); }
#moyu-disguise .msk-tab {
    height: 30px;
    padding: 0 14px;
    border: 1px solid transparent;
    border-radius: 4px;
    background: transparent;
    color: var(--msk-sub);
    font-family: 'Noto Sans SC', sans-serif;
    font-size: 13px;
    cursor: pointer;
    transition: background .16s, color .16s, border-color .16s;
}
#moyu-disguise .msk-tab em { font-style: normal; font-size: 12px; margin-left: 3px; color: var(--msk-weak); }
#moyu-disguise .msk-tab:hover { background: var(--msk-hover); color: var(--msk-text); }
#moyu-disguise .msk-tab.on { background: #e8f3ff; border-color: #bedaff; color: var(--msk-primary); font-weight: 600; }
#moyu-disguise .msk-tab.on em { color: var(--msk-primary); }
#moyu-disguise .msk-tab:active { transform: translateY(1px); }
#moyu-disguise .msk-pg {
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
    margin-left: 4px;
    border: 1px solid var(--msk-line);
    border-radius: 4px;
    background: #fff;
    color: var(--msk-text);
    font-family: 'Noto Sans SC', sans-serif;
    font-size: 12.5px;
    line-height: 1;
    cursor: pointer;
    transition: border-color .16s, color .16s, background .16s;
}
#moyu-disguise .msk-pg:hover:not(:disabled) { border-color: var(--msk-primary); color: var(--msk-primary); }
#moyu-disguise .msk-pg:active:not(:disabled) { transform: translateY(1px); }
#moyu-disguise .msk-pg.on { background: var(--msk-primary); border-color: var(--msk-primary); color: #fff; }
#moyu-disguise .msk-pg:disabled { opacity: .45; cursor: not-allowed; }

/* 统一滚动条：细、圆、悬停加深，消除浏览器原生粗条 */
#moyu-disguise .msk-scroll { scrollbar-width: thin; scrollbar-color: rgba(0, 0, 0, .2) transparent; }
#moyu-disguise .msk-scroll::-webkit-scrollbar { width: 10px; height: 10px; }
#moyu-disguise .msk-scroll::-webkit-scrollbar-track { background: transparent; }
#moyu-disguise .msk-scroll::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, .2);
    border: 2px solid transparent;
    border-radius: 6px;
    background-clip: padding-box;
}
#moyu-disguise .msk-scroll::-webkit-scrollbar-thumb:hover { background: rgba(0, 0, 0, .34); background-clip: padding-box; }
#moyu-disguise.moyu-skin-ide .msk-scroll,
#moyu-disguise.moyu-skin-terminal .msk-scroll { scrollbar-color: rgba(255, 255, 255, .18) transparent; }
#moyu-disguise.moyu-skin-ide .msk-scroll::-webkit-scrollbar-thumb,
#moyu-disguise.moyu-skin-terminal .msk-scroll::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .18); background-clip: padding-box; }
#moyu-disguise.moyu-skin-ide .msk-scroll::-webkit-scrollbar-thumb:hover,
#moyu-disguise.moyu-skin-terminal .msk-scroll::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, .3); background-clip: padding-box; }

/* ============ 皮肤：IDE（PhpStorm 深色） ============ */
.moyu-skin-ide .mi-menubar {
    display: flex;
    align-items: center;
    gap: 2px;
    height: 34px;
    padding: 0 10px;
    background: #2b2d30;
    border-bottom: 1px solid #191a1c;
    font-family: 'Noto Sans SC', sans-serif;
    font-size: 12.5px;
    color: #9da0a8;
    flex-shrink: 0;
}
.moyu-skin-ide .mi-brand { display: flex; align-items: center; justify-content: center; width: 28px; color: #6fbf73; font-size: 14px; }
.moyu-skin-ide .mi-menu { height: 24px; line-height: 24px; padding: 0 9px; border-radius: 4px; cursor: default; transition: background .14s, color .14s; }
.moyu-skin-ide .mi-menu:hover { background: #3a3d41; color: #d7dae0; }
.moyu-skin-ide .mi-menu.on { background: #3a3d41; color: #d7dae0; }
.moyu-skin-ide .mi-proj { margin-left: auto; color: #7f848e; font-size: 12px; }
.moyu-skin-ide .mi-proj em { font-style: normal; color: #6897bb; }

.moyu-skin-ide .mi-tabs { display: flex; height: 34px; background: #1e1f22; border-bottom: 1px solid #191a1c; overflow: hidden; flex-shrink: 0; }
.moyu-skin-ide .mi-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 34px;
    padding: 0 12px;
    border-right: 1px solid #191a1c;
    color: #7f848e;
    font-size: 12.5px;
    white-space: nowrap;
    cursor: default;
    transition: background .14s, color .14s;
}
.moyu-skin-ide .mi-tab:hover { background: #26282b; color: #b0b4bb; }
.moyu-skin-ide .mi-tab.on { background: #1e1f22; color: #d7dae0; box-shadow: inset 0 2px 0 0 #4a88c7; }
.moyu-skin-ide .mi-dot { width: 7px; height: 7px; border-radius: 50%; background: #6fbf73; flex-shrink: 0; }
.moyu-skin-ide .mi-x { width: 14px; height: 14px; margin-left: 2px; border-radius: 3px; text-align: center; font-style: normal; font-size: 13px; line-height: 14px; color: #6b6f76; }
.moyu-skin-ide .mi-x:hover { background: #3a3d41; color: #d7dae0; }

.moyu-skin-ide .mi-main { display: flex; flex: 1; min-height: 0; }
.moyu-skin-ide .mi-side {
    display: flex;
    flex-direction: column;
    width: 230px;
    flex-shrink: 0;
    background: #2b2d30;
    border-right: 1px solid #191a1c;
}
.moyu-skin-ide .mi-sidehead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 30px;
    padding: 0 10px;
    border-bottom: 1px solid #191a1c;
    font-family: 'Noto Sans SC', sans-serif;
    font-size: 11.5px;
    color: #8b9099;
    flex-shrink: 0;
}
.moyu-skin-ide .mi-sideact i { margin-left: 8px; color: #6b6f76; font-size: 11px; cursor: pointer; }
.moyu-skin-ide .mi-sideact i:hover { color: #d7dae0; }
.moyu-skin-ide .mi-tree { flex: 1; overflow-y: auto; padding: 4px 0; min-height: 0; }
.moyu-skin-ide .mi-item {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 22px;
    padding-right: 8px;
    color: #b0b4bb;
    font-size: 12.5px;
    line-height: 22px;
    white-space: nowrap;
    overflow: hidden;
    cursor: default;
    transition: background .12s;
}
.moyu-skin-ide .mi-item:hover { background: #313438; }
.moyu-skin-ide .mi-item.on { background: rgba(74, 136, 199, .24); color: #d7dae0; }
.moyu-skin-ide .mi-item i { width: 12px; font-size: 11px; text-align: center; flex-shrink: 0; }
.moyu-skin-ide .mi-dir > i { color: #6897bb; }
.moyu-skin-ide .mi-dir > span { color: #cdd0d4; }
.moyu-skin-ide .mi-ic-php { color: #8892bf; }
.moyu-skin-ide .mi-ic-json { color: #dcdcaa; }
.moyu-skin-ide .mi-ic-env { color: #6a8759; }
.moyu-skin-ide .mi-ic-gen { color: #7f848e; }

.moyu-skin-ide .mi-edit { display: flex; flex-direction: column; flex: 1; min-width: 0; background: #1e1f22; }
.moyu-skin-ide .mi-crumb {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 26px;
    padding: 0 12px;
    border-bottom: 1px solid #191a1c;
    font-family: 'Noto Sans SC', sans-serif;
    font-size: 11.5px;
    color: #7f848e;
    flex-shrink: 0;
}
.moyu-skin-ide .mi-crumb i { font-size: 9px; color: #5c6067; }
.moyu-skin-ide .mi-crumb span { color: #9aa0a6; }
.moyu-skin-ide .mi-body { display: flex; flex: 1; min-height: 0; padding: 8px 0; font-family: 'JetBrains Mono', Consolas, Monaco, monospace; font-size: 12.5px; line-height: 20px; }
.moyu-skin-ide .mi-gutter { width: 52px; flex-shrink: 0; padding-right: 14px; text-align: right; color: #4b5058; user-select: none; }
.moyu-skin-ide .mi-gutter div { height: 20px; }
.moyu-skin-ide .mi-code { flex: 1; min-width: 0; padding-left: 14px; overflow: auto; white-space: pre; }
.moyu-skin-ide .mi-ln { display: block; height: 20px; transition: background .12s; }
.moyu-skin-ide .mi-ln.on { background: rgba(74, 136, 199, .16); box-shadow: inset 2px 0 0 #4a88c7; }
.moyu-skin-ide .mi-code .mi-fold { color: #4b5058; }
.moyu-skin-ide .k { color: #cc7832; }
.moyu-skin-ide .s { color: #6a8759; }
.moyu-skin-ide .c { color: #7a8087; font-style: italic; }
.moyu-skin-ide .f { color: #ffc66d; }
.moyu-skin-ide .n { color: #6897bb; }
.moyu-skin-ide .mi-caret { display: inline-block; width: 8px; height: 15px; background: #d7dae0; vertical-align: -2px; animation: moyuCaret 1s steps(1) infinite; }

.moyu-skin-ide .mi-status {
    display: flex;
    align-items: center;
    gap: 14px;
    height: 24px;
    padding: 0 12px;
    background: #2b2d30;
    border-top: 1px solid #191a1c;
    font-family: 'Noto Sans SC', sans-serif;
    font-size: 11.5px;
    color: #8b9099;
    flex-shrink: 0;
}
.moyu-skin-ide .mi-status i { font-size: 11px; }
.moyu-skin-ide .mi-branch i { color: #6897bb; margin-right: 4px; }
.moyu-skin-ide .mi-st-err i { color: #f48771; }
.moyu-skin-ide .mi-st-warn i { color: #dcdcaa; }
.moyu-skin-ide .mi-pos { font-family: 'JetBrains Mono', monospace; }
.moyu-skin-ide .mi-right { display: flex; gap: 12px; margin-left: auto; color: #7f848e; }
.moyu-skin-ide .mi-ver { font-family: 'JetBrains Mono', monospace; color: #62666d; }

/* ============ 皮肤：终端（运维实时日志） ============ */
.moyu-skin-terminal .mt-titlebar {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 30px;
    padding: 0 12px;
    background: #2b2b2b;
    border-bottom: 1px solid #3c3c3c;
    font-family: 'Noto Sans SC', sans-serif;
    font-size: 12px;
    color: #cccccc;
    flex-shrink: 0;
}
.moyu-skin-terminal .mt-dots { display: flex; gap: 6px; }
.moyu-skin-terminal .mt-dots i { width: 12px; height: 12px; border-radius: 50%; }
.moyu-skin-terminal .mt-dots i:nth-child(1) { background: #ff5f57; }
.moyu-skin-terminal .mt-dots i:nth-child(2) { background: #febc2e; }
.moyu-skin-terminal .mt-dots i:nth-child(3) { background: #28c840; }
.moyu-skin-terminal .mt-tabs { display: flex; gap: 2px; }
.moyu-skin-terminal .mt-tabs span {
    height: 22px;
    padding: 0 12px;
    line-height: 22px;
    border-radius: 4px;
    color: #a0a0a0;
    font-size: 11.5px;
    cursor: default;
    transition: background .14s, color .14s;
}
.moyu-skin-terminal .mt-tabs span:hover { background: #3a3a3a; color: #e0e0e0; }
.moyu-skin-terminal .mt-tabs span.on { background: #0c0c0c; color: #ffffff; box-shadow: inset 0 -2px 0 #0078d4; }
.moyu-skin-terminal .mt-title { margin-left: auto; color: #8a8a8a; font-size: 11.5px; }
.moyu-skin-terminal .mt-log {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 10px 14px;
    font-family: 'JetBrains Mono', Consolas, Monaco, monospace;
    font-size: 12.5px;
    line-height: 19px;
    white-space: pre-wrap;
    word-break: break-all;
}
.moyu-skin-terminal .mt-line { display: block; min-height: 19px; }
.moyu-skin-terminal .mt-line.mt-sh { margin-top: 6px; }
.moyu-skin-terminal .mt-time { color: #6a737d; }
.moyu-skin-terminal .mt-ps1, .moyu-skin-terminal .mt-ps2 { color: #4ec9b0; }
.moyu-skin-terminal .mt-cmd { color: #dcdcaa; }
.moyu-skin-terminal .dim { color: #858585; }
.moyu-skin-terminal .ok { color: #4ec9b0; }
.moyu-skin-terminal .warn { color: #dcdcaa; }
.moyu-skin-terminal .err { color: #f48771; }
.moyu-skin-terminal .mt-prompt {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 26px;
    padding: 0 14px;
    border-top: 1px solid #262626;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12.5px;
    flex-shrink: 0;
}
.moyu-skin-terminal .mt-in {
    flex: 1;
    min-width: 0;
    padding: 0;
    border: none;
    background: transparent;
    outline: none;
    color: #e0e0e0;
    font-family: 'JetBrains Mono', Consolas, Monaco, monospace;
    font-size: 12.5px;
    caret-color: #4ec9b0;
}
.moyu-skin-terminal .mt-in::placeholder { color: #6a737d; }
.moyu-skin-terminal .mt-status {
    display: flex;
    align-items: center;
    gap: 16px;
    height: 22px;
    padding: 0 12px;
    background: #1f1f1f;
    border-top: 1px solid #3c3c3c;
    font-family: 'Noto Sans SC', sans-serif;
    font-size: 11px;
    color: #9d9d9d;
    flex-shrink: 0;
}
.moyu-skin-terminal .mt-ok { color: #4ec9b0; }
.moyu-skin-terminal .mt-right { margin-left: auto; font-family: 'JetBrains Mono', monospace; color: #7a7a7a; }

/* ============ 皮肤：Excel（经营数据） ============ */
.moyu-skin-excel .me-titlebar {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 30px;
    padding: 0 12px;
    background: #217346;
    color: #fff;
    font-size: 12px;
    flex-shrink: 0;
}
.moyu-skin-excel .me-logo i { font-size: 14px; }
.moyu-skin-excel .me-doc { font-weight: 600; }
.moyu-skin-excel .me-user { display: flex; align-items: center; gap: 6px; margin-left: auto; font-size: 11.5px; color: rgba(255, 255, 255, .9); }
.moyu-skin-excel .me-ribbon { display: flex; align-items: flex-end; gap: 2px; height: 34px; padding: 0 8px; background: #f3f3f3; border-bottom: 1px solid #d0d0d0; flex-shrink: 0; }
.moyu-skin-excel .me-rb { height: 30px; padding: 0 12px; line-height: 30px; border-bottom: 2px solid transparent; color: #444; font-size: 12px; cursor: default; transition: background .14s, color .14s; }
.moyu-skin-excel .me-rb:hover { background: #e8e8e8; }
.moyu-skin-excel .me-rb.on { background: #fff; border-bottom-color: #217346; color: #217346; font-weight: 600; }
.moyu-skin-excel .me-formula { display: flex; align-items: center; height: 26px; background: #fff; border-bottom: 1px solid #d0d0d0; font-size: 12px; flex-shrink: 0; }
.moyu-skin-excel .me-name { display: flex; align-items: center; width: 96px; height: 100%; padding: 0 8px; border-right: 1px solid #d0d0d0; color: #444; font-family: 'JetBrains Mono', monospace; }
.moyu-skin-excel .me-fx { width: 30px; text-align: center; color: #217346; font-weight: 700; font-style: italic; }
.moyu-skin-excel .me-fxval { display: flex; align-items: center; flex: 1; height: 100%; padding: 0 8px; border-left: 1px solid #ececec; color: #333; font-family: 'JetBrains Mono', monospace; overflow: hidden; white-space: nowrap; }
.moyu-skin-excel .me-grid { flex: 1; min-height: 0; overflow: auto; background: #fff; }
.moyu-skin-excel .me-table { width: 100%; border-collapse: collapse; table-layout: fixed; background: #fff; font-size: 12px; user-select: none; }
.moyu-skin-excel .me-table th, .moyu-skin-excel .me-table td {
    height: 24px;
    padding: 0 6px;
    border: 1px solid #e0e0e0;
    font-weight: 400;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.moyu-skin-excel .me-ch, .moyu-skin-excel .me-rh, .moyu-skin-excel .me-corner {
    background: #f0f0f0;
    color: #666;
    text-align: center;
    font-weight: 600;
    cursor: pointer;
    transition: background .12s, color .12s;
}
.moyu-skin-excel .me-rn, .moyu-skin-excel .me-rh { width: 40px; }
.moyu-skin-excel .me-ch { width: 92px; }
.moyu-skin-excel .me-ch:hover, .moyu-skin-excel .me-rh:hover { background: #e2e2e2; }
.moyu-skin-excel .me-hl { background: #cfe3cf; color: #1a5c3a; }
.moyu-skin-excel .me-cell { background: #fff; cursor: cell; transition: background .12s; }
.moyu-skin-excel .me-cell:hover { background: #f7faf7; }
.moyu-skin-excel .me-sel { position: relative; outline: 2px solid #217346; outline-offset: -2px; }
.moyu-skin-excel .num { text-align: right; }
.moyu-skin-excel .me-total th, .moyu-skin-excel .me-total td { background: #f5faf7; font-weight: 700; color: #1a5c3a; }
.moyu-skin-excel .me-tabs { display: flex; align-items: center; height: 26px; padding: 0 6px; background: #f3f3f3; border-top: 1px solid #d0d0d0; overflow-x: auto; flex-shrink: 0; }
.moyu-skin-excel .me-tab { display: inline-flex; align-items: center; gap: 6px; height: 100%; padding: 0 12px; border-bottom: 2px solid transparent; color: #555; font-size: 12px; white-space: nowrap; cursor: default; transition: background .14s, color .14s; }
.moyu-skin-excel .me-tab i { font-size: 11px; color: #217346; }
.moyu-skin-excel .me-tab:hover { background: #e8e8e8; }
.moyu-skin-excel .me-tab.on { background: #fff; border-bottom-color: #217346; color: #217346; font-weight: 600; }
.moyu-skin-excel .me-status {
    display: flex;
    align-items: center;
    gap: 18px;
    height: 22px;
    padding: 0 12px;
    background: #217346;
    color: #fff;
    font-size: 11px;
    flex-shrink: 0;
}
.moyu-skin-excel .me-ready { font-weight: 600; }
.moyu-skin-excel .me-right { display: flex; gap: 14px; margin-left: auto; }
.moyu-skin-excel .me-zoom { padding: 0 6px; border-radius: 3px; cursor: pointer; transition: background .14s; }
.moyu-skin-excel .me-zoom:hover { background: rgba(255, 255, 255, .18); }
.moyu-skin-excel .me-ver { opacity: .85; font-family: 'JetBrains Mono', monospace; }

/* ============ 皮肤：Word（项目复盘文档） ============ */
.moyu-skin-doc .md-titlebar {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 32px;
    padding: 0 12px;
    background: #2b579a;
    color: #fff;
    font-size: 12px;
    flex-shrink: 0;
}
.moyu-skin-doc .md-logo i { font-size: 14px; }
.moyu-skin-doc .md-doc { font-weight: 600; }
.moyu-skin-doc .md-saved { display: flex; align-items: center; gap: 6px; margin-left: auto; font-size: 11.5px; color: rgba(255, 255, 255, .88); }
.moyu-skin-doc .md-ribbon { display: flex; flex-direction: column; background: #fff; border-bottom: 1px solid #d7dae0; flex-shrink: 0; }
.moyu-skin-doc .md-tabs { display: flex; align-items: center; gap: 2px; height: 28px; padding: 0 10px; background: #fff; border-bottom: 1px solid #eef0f2; }
.moyu-skin-doc .md-tab { height: 100%; padding: 0 14px; line-height: 28px; border-bottom: 2px solid transparent; color: #444; font-size: 12.5px; cursor: default; transition: background .14s, color .14s; }
.moyu-skin-doc .md-tab:hover { background: #f5f6f8; }
.moyu-skin-doc .md-tab.on { color: #2b579a; border-bottom-color: #2b579a; font-weight: 600; }
.moyu-skin-doc .md-rgroup { display: flex; align-items: center; gap: 2px; height: 52px; padding: 0 8px; background: #fafbfc; overflow-x: auto; }
.moyu-skin-doc .md-rbtn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 56px;
    height: 46px;
    border-radius: 4px;
    color: #444;
    font-size: 10.5px;
    white-space: nowrap;
    cursor: default;
    transition: background .14s, transform .08s;
}
.moyu-skin-doc .md-rbtn i { font-size: 15px; color: #2b579a; }
.moyu-skin-doc .md-rbtn:hover { background: #e8eef6; }
.moyu-skin-doc .md-rbtn:active { background: #d6e2f0; transform: translateY(1px); }
.moyu-skin-doc .md-canvas { flex: 1; min-height: 0; overflow: auto; padding: 26px 0; background: #eceef1; }
.moyu-skin-doc .md-page {
    width: 660px;
    max-width: 86%;
    margin: 0 auto;
    padding: 52px 64px;
    background: #fff;
    box-shadow: 0 2px 14px rgba(0, 0, 0, .16);
    transition: transform .2s ease;
}
.moyu-skin-doc .md-page h1 { margin-bottom: 8px; font-size: 21px; font-weight: 700; text-align: center; letter-spacing: 1px; }
.moyu-skin-doc .md-meta { margin-bottom: 24px; padding-bottom: 12px; border-bottom: 1px solid #eef0f2; color: #888; font-size: 12px; text-align: center; }
.moyu-skin-doc .md-page h2 { margin: 20px 0 8px; font-size: 15px; font-weight: 700; color: #1a3c6e; }
.moyu-skin-doc .md-page p { margin-bottom: 10px; font-size: 13px; line-height: 2; text-indent: 2em; color: #333; text-align: justify; }
.moyu-skin-doc .md-page b { color: #1f2329; }
.moyu-skin-doc .md-page ul { margin: 0 0 10px; padding-left: 26px; list-style: disc; }
.moyu-skin-doc .md-page li { font-size: 13px; line-height: 1.9; color: #333; }
.moyu-skin-doc .md-table { width: 100%; margin: 6px 0 14px; border-collapse: collapse; font-size: 12.5px; text-indent: 0; }
.moyu-skin-doc .md-table th { padding: 5px 8px; background: #f2f5fa; border: 1px solid #d7dae0; color: #23486e; font-size: 12px; font-weight: 600; text-align: center; }
.moyu-skin-doc .md-table td { padding: 5px 8px; border: 1px solid #e0e3e8; color: #333; text-align: center; }
.moyu-skin-doc .md-table tbody tr:nth-child(even) td { background: #fafbfc; }
.moyu-skin-doc .md-caret { display: inline-block; width: 1px; height: 14px; background: #222; vertical-align: -2px; animation: moyuCaret 1s steps(1) infinite; }
.moyu-skin-doc .md-status {
    display: flex;
    align-items: center;
    gap: 16px;
    height: 24px;
    padding: 0 12px;
    background: #2b579a;
    color: #fff;
    font-size: 11px;
    flex-shrink: 0;
}
.moyu-skin-doc .md-right { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.moyu-skin-doc .md-zoom { padding: 0 6px; border-radius: 3px; cursor: pointer; transition: background .14s; }
.moyu-skin-doc .md-zoom:hover { background: rgba(255, 255, 255, .18); }
.moyu-skin-doc .md-ver { opacity: .85; font-family: 'JetBrains Mono', monospace; }

/* ============ 皮肤：OA 协同办公平台 ============ */
.moyu-skin-oa .mo-topbar, .moyu-skin-mail .mo-topbar {
    position: relative;
    z-index: 30;
    display: flex;
    align-items: center;
    gap: 16px;
    height: 48px;
    padding: 0 16px;
    background: #fff;
    border-bottom: 1px solid var(--msk-line);
    box-shadow: 0 1px 3px rgba(0, 0, 0, .03);
    flex-shrink: 0;
}
.moyu-skin-oa .mo-logo, .moyu-skin-mail .mo-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border-radius: 6px;
    background: var(--msk-primary);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}
.moyu-skin-mail .mo-logo-mail { font-size: 13px; }
.moyu-skin-oa .mo-brand, .moyu-skin-mail .mo-brand { display: flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 700; color: var(--msk-text); }
.moyu-skin-oa .mo-brand em, .moyu-skin-mail .mo-brand em {
    padding: 0 5px;
    border: 1px solid #bedaff;
    border-radius: 3px;
    background: #e8f3ff;
    color: var(--msk-primary);
    font-size: 11px;
    font-style: normal;
    font-weight: 600;
}
.moyu-skin-oa .mo-navmenu { display: flex; gap: 4px; margin-left: 10px; }
.moyu-skin-oa .mo-navmenu span { height: 30px; padding: 0 12px; line-height: 30px; border-radius: 4px; color: var(--msk-sub); font-size: 13px; cursor: default; transition: background .14s, color .14s; }
.moyu-skin-oa .mo-navmenu span:hover { background: var(--msk-hover); color: var(--msk-text); }
.moyu-skin-oa .mo-navmenu span.on { color: var(--msk-primary); font-weight: 600; }
.moyu-skin-oa .mo-tsearch, .moyu-skin-mail .mo-tsearch {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 240px;
    height: 30px;
    margin-left: auto;
    padding: 0 10px;
    border: 1px solid transparent;
    border-radius: 6px;
    background: var(--msk-hover);
    transition: background .18s, border-color .18s, box-shadow .18s;
}
.moyu-skin-oa .mo-tsearch:focus-within, .moyu-skin-mail .mo-tsearch:focus-within {
    background: #fff;
    border-color: var(--msk-primary);
    box-shadow: 0 0 0 2px rgba(22, 119, 255, .12);
}
.moyu-skin-oa .mo-tsearch i, .moyu-skin-mail .mo-tsearch i { color: var(--msk-weak); font-size: 12px; }
.moyu-skin-oa .mo-tsearch em, .moyu-skin-mail .mo-tsearch em {
    flex-shrink: 0;
    padding: 0 4px;
    border: 1px solid #dee0e3;
    border-radius: 3px;
    background: #fff;
    color: var(--msk-weak);
    font-size: 11px;
    font-style: normal;
}
.moyu-skin-oa .mo-topright, .moyu-skin-mail .mo-topright { display: flex; align-items: center; gap: 6px; margin-left: 6px; }
.moyu-skin-oa .mo-bell, .moyu-skin-mail .mo-bell {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 6px;
    color: var(--msk-sub);
    cursor: pointer;
    transition: background .16s, color .16s;
}
.moyu-skin-oa .mo-bell:hover, .moyu-skin-mail .mo-bell:hover { background: var(--msk-hover); color: var(--msk-text); }
.moyu-skin-oa .mo-bell em, .moyu-skin-mail .mo-bell em {
    position: absolute;
    top: 2px;
    right: 1px;
    min-width: 15px;
    padding: 0 3px;
    border-radius: 8px;
    background: #f53f3f;
    color: #fff;
    font-size: 10px;
    font-style: normal;
    line-height: 15px;
    text-align: center;
}
.moyu-skin-oa .mo-me, .moyu-skin-mail .mo-me { display: flex; align-items: center; gap: 6px; padding: 3px 8px 3px 3px; border-radius: 20px; cursor: pointer; transition: background .16s; }
.moyu-skin-oa .mo-me:hover, .moyu-skin-mail .mo-me:hover { background: var(--msk-hover); }
.moyu-skin-oa .mo-ava, .moyu-skin-mail .mo-ava {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1677ff, #4a9bff);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
}
.moyu-skin-oa .mo-me i, .moyu-skin-mail .mo-me i { color: var(--msk-weak); font-size: 10px; }
.moyu-skin-oa .mo-menu {
    position: absolute;
    top: 50px;
    right: 14px;
    z-index: 40;
    width: 156px;
    padding: 5px;
    border: 1px solid var(--msk-line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .18s, transform .18s, visibility .18s;
}
.moyu-skin-oa .mo-menu.msk-on { opacity: 1; visibility: visible; transform: translateY(0); }
.moyu-skin-oa .mo-menu a { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 5px; color: var(--msk-text); font-size: 13px; cursor: pointer; transition: background .14s; }
.moyu-skin-oa .mo-menu a i { width: 14px; color: var(--msk-weak); }
.moyu-skin-oa .mo-menu a:hover { background: var(--msk-hover); }
.moyu-skin-oa .mo-menu a.mo-quit { margin-top: 4px; border-top: 1px solid var(--msk-line-soft); color: #f53f3f; }
.moyu-skin-oa .mo-menu a.mo-quit i { color: #f53f3f; }

.moyu-skin-oa .mo-shell, .moyu-skin-mail .mo-shell { position: relative; display: flex; flex: 1; min-height: 0; background: var(--msk-bg-soft); }
.moyu-skin-oa .mo-side, .moyu-skin-mail .mo-side {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    width: 200px;
    padding: 10px 8px;
    background: #fff;
    border-right: 1px solid var(--msk-line);
}
.moyu-skin-oa .mo-side a, .moyu-skin-mail .mo-side a {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 36px;
    padding: 0 12px;
    border-radius: 6px;
    color: #4e5969;
    font-size: 13px;
    cursor: pointer;
    transition: background .16s, color .16s;
}
.moyu-skin-oa .mo-side a i, .moyu-skin-mail .mo-side a i { color: var(--msk-weak); font-size: 13px; }
.moyu-skin-oa .mo-side a:hover, .moyu-skin-mail .mo-side a:hover { background: var(--msk-hover); }
.moyu-skin-oa .mo-side a.on, .moyu-skin-mail .mo-side a.on { background: #e8f3ff; color: var(--msk-primary); font-weight: 600; }
.moyu-skin-oa .mo-side a.on i, .moyu-skin-mail .mo-side a.on i { color: var(--msk-primary); }
.moyu-skin-oa .mo-side a em, .moyu-skin-mail .mo-side a em {
    min-width: 20px;
    margin-left: auto;
    padding: 1px 7px;
    border-radius: 9px;
    background: var(--msk-hover);
    color: var(--msk-weak);
    font-size: 11px;
    font-style: normal;
    text-align: center;
}
.moyu-skin-oa .mo-side a.on em { background: #bedaff; color: var(--msk-primary); }
.moyu-skin-mail .mo-side a.mo-side-new {
    justify-content: center;
    margin-top: 8px;
    background: #e8f3ff;
    color: var(--msk-primary);
    font-weight: 600;
}
.moyu-skin-oa .mo-sidefoot, .moyu-skin-mail .mo-sidefoot { margin-top: auto; padding: 10px 12px 4px; border-top: 1px solid var(--msk-line-soft); color: #c0c4cc; font-size: 11px; }

/* OA 主区：工具栏 / 表头 / 列表 / 分页 */
.moyu-skin-oa .mo-main {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    margin: 12px;
    border: 1px solid var(--msk-line);
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}
.moyu-skin-oa .mo-toolbar { display: flex; align-items: center; gap: 12px; height: 52px; padding: 0 16px; border-bottom: 1px solid var(--msk-line-soft); flex-shrink: 0; }
.moyu-skin-oa .mo-title { font-size: 15px; font-weight: 600; color: var(--msk-text); }
.moyu-skin-oa .mo-filters { display: flex; gap: 4px; margin-left: 8px; }
.moyu-skin-oa .mo-tools { display: flex; gap: 8px; margin-left: auto; }
.moyu-skin-oa .mo-thead {
    display: flex;
    align-items: center;
    height: 40px;
    padding: 0 16px;
    border-bottom: 1px solid var(--msk-line-soft);
    background: #f7f8fa;
    color: #86909c;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
}
.moyu-skin-oa .mo-list { flex: 1; min-height: 0; overflow-y: auto; }
.moyu-skin-oa .mo-row {
    display: flex;
    align-items: center;
    height: 52px;
    padding: 0 16px;
    border-bottom: 1px solid #f5f6f8;
    color: var(--msk-text);
    font-size: 13px;
    cursor: pointer;
    animation: mskFadeUp .24s ease;
    transition: background .14s;
}
.moyu-skin-oa .mo-row:hover { background: #f7f9fc; }
.moyu-skin-oa .mo-row:active { background: #eff4ff; }
.moyu-skin-oa .mo-c1, .moyu-skin-mail .mo-c1 { flex-shrink: 0; width: 152px; font-family: 'JetBrains Mono', monospace; font-size: 12px; color: #86909c; }
.moyu-skin-oa .mo-c2 { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; overflow: hidden; }
.moyu-skin-oa .mo-c2 b { font-weight: 500; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.moyu-skin-oa .mo-c2 i { color: #a9aeb8; font-size: 11.5px; font-style: normal; }
.moyu-skin-oa .mo-c3 { display: flex; flex-direction: column; gap: 2px; flex-shrink: 0; width: 118px; }
.moyu-skin-oa .mo-c3 i { color: #a9aeb8; font-size: 11.5px; font-style: normal; }
.moyu-skin-oa .mo-c4 { flex-shrink: 0; width: 74px; }
.moyu-skin-oa .mo-c5 { flex-shrink: 0; width: 88px; }
.moyu-skin-oa .mo-c6 { flex-shrink: 0; width: 88px; font-family: 'JetBrains Mono', monospace; font-size: 12px; color: #86909c; text-align: right; }
.moyu-skin-oa .mo-thead .mo-c1, .moyu-skin-oa .mo-thead .mo-c6 { font-family: inherit; font-size: 12px; }
.moyu-skin-oa .mo-c4 em, .moyu-skin-oa .mo-c5 em, .moyu-skin-oa .mo-d-title em, .moyu-skin-oa .mo-d-meta b[class^="st-"] {
    display: inline-block;
    padding: 1px 8px;
    border-radius: 10px;
    font-size: 11.5px;
    font-style: normal;
    font-weight: 500;
    line-height: 18px;
}
.moyu-skin-oa .pri-urgent { background: #ffece8; color: #f53f3f; }
.moyu-skin-oa .pri-high { background: #fff3e8; color: #ff7d00; }
.moyu-skin-oa .pri-normal { background: #e8f3ff; color: var(--msk-primary); }
.moyu-skin-oa .pri-low { background: var(--msk-hover); color: #86909c; }
.moyu-skin-oa .st-wait { background: #fff7e8; color: #ff9a00; }
.moyu-skin-oa .st-do { background: #e8f3ff; color: var(--msk-primary); }
.moyu-skin-oa .st-done { background: #e8ffea; color: #00b42a; }
.moyu-skin-oa .mo-pager {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 46px;
    padding: 0 16px;
    border-top: 1px solid var(--msk-line-soft);
    flex-shrink: 0;
}
.moyu-skin-oa .mo-pg-info, .moyu-skin-mail .mo-pg-info { color: #86909c; font-size: 12px; }
.moyu-skin-oa .mo-pg-btns, .moyu-skin-mail .mo-pg-btns { display: flex; align-items: center; }

/* OA 详情抽屉 */
.moyu-skin-oa .mo-drawer { position: absolute; inset: 0; z-index: 50; visibility: hidden; pointer-events: none; }
.moyu-skin-oa .mo-drawer.msk-on { visibility: visible; pointer-events: auto; }
.moyu-skin-oa .mo-drawer-mask { position: absolute; inset: 0; background: rgba(0, 0, 0, .35); opacity: 0; transition: opacity .26s ease; }
.moyu-skin-oa .mo-drawer.msk-on .mo-drawer-mask { opacity: 1; }
.moyu-skin-oa .mo-drawer-panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    width: 440px;
    max-width: 92%;
    background: #fff;
    box-shadow: -8px 0 26px rgba(0, 0, 0, .14);
    transform: translateX(100%);
    transition: transform .3s cubic-bezier(.22, .61, .36, 1);
}
.moyu-skin-oa .mo-drawer.msk-on .mo-drawer-panel { transform: translateX(0); }
.moyu-skin-oa .mo-drawer-head { display: flex; align-items: center; justify-content: space-between; height: 48px; padding: 0 16px; border-bottom: 1px solid var(--msk-line-soft); color: var(--msk-text); font-size: 15px; flex-shrink: 0; }
.moyu-skin-oa .mo-drawer-head i { display: flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 5px; color: var(--msk-weak); cursor: pointer; transition: background .14s, color .14s; }
.moyu-skin-oa .mo-drawer-head i:hover { background: var(--msk-hover); color: var(--msk-text); }
.moyu-skin-oa .mo-drawer-body { flex: 1; min-height: 0; overflow-y: auto; padding: 16px; }
.moyu-skin-oa .mo-d-title { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 14px; }
.moyu-skin-oa .mo-d-title em { flex-shrink: 0; margin-top: 2px; }
.moyu-skin-oa .mo-d-title b { color: var(--msk-text); font-size: 15px; font-weight: 600; line-height: 1.55; }
.moyu-skin-oa .mo-d-meta {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 9px 16px;
    margin-bottom: 18px;
    padding: 12px 14px;
    border-radius: 8px;
    background: #f7f8fa;
}
.moyu-skin-oa .mo-d-meta span { display: flex; align-items: center; gap: 6px; color: #86909c; font-size: 12px; }
.moyu-skin-oa .mo-d-meta b { color: var(--msk-text); font-size: 12.5px; font-weight: 500; }
.moyu-skin-oa .mo-d-sec { position: relative; margin-bottom: 12px; padding-left: 9px; color: var(--msk-text); font-size: 13px; font-weight: 600; }
.moyu-skin-oa .mo-d-sec::before { content: ''; position: absolute; left: 0; top: 2px; bottom: 2px; width: 3px; border-radius: 2px; background: var(--msk-primary); }
.moyu-skin-oa .mo-timeline { position: relative; margin-bottom: 18px; padding-left: 22px; }
.moyu-skin-oa .mo-timeline::before { content: ''; position: absolute; left: 5px; top: 8px; bottom: 18px; width: 2px; background: var(--msk-line); }
.moyu-skin-oa .mo-node { position: relative; padding-right: 60px; padding-bottom: 14px; }
.moyu-skin-oa .mo-dot { position: absolute; left: -22px; top: 3px; width: 12px; height: 12px; border: 2px solid #c9cdd4; border-radius: 50%; background: #fff; transition: border-color .2s, background .2s, box-shadow .2s; }
.moyu-skin-oa .mo-node.done .mo-dot { border-color: #00b42a; background: #00b42a; }
.moyu-skin-oa .mo-node.doing .mo-dot { border-color: var(--msk-primary); background: #fff; box-shadow: 0 0 0 3px rgba(22, 119, 255, .16); }
.moyu-skin-oa .mo-nb b { color: var(--msk-text); font-size: 13px; font-weight: 500; }
.moyu-skin-oa .mo-nb i { display: block; margin-top: 2px; color: #a9aeb8; font-size: 11.5px; font-style: normal; }
.moyu-skin-oa .mo-node.todo .mo-nb b { color: #86909c; }
.moyu-skin-oa .mo-nt { position: absolute; top: 1px; right: 0; color: #86909c; font-size: 11.5px; }
.moyu-skin-oa .mo-node.doing .mo-nt { color: var(--msk-primary); }
.moyu-skin-oa .mo-node.done .mo-nt { color: #00b42a; }
.moyu-skin-oa .mo-logs { padding: 10px 14px; margin-bottom: 18px; border-radius: 8px; background: #f7f8fa; color: #4e5969; font-size: 12px; }
.moyu-skin-oa .mo-logs div { display: flex; gap: 10px; padding: 5px 0; border-bottom: 1px dashed #ececec; }
.moyu-skin-oa .mo-logs div:last-child { border-bottom: none; }
.moyu-skin-oa .mo-logs span { flex-shrink: 0; width: 48px; color: #a9aeb8; font-family: 'JetBrains Mono', monospace; }
.moyu-skin-oa .mo-d-attach { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 18px; padding: 9px 12px; border-radius: 8px; background: #f7f8fa; color: #4e5969; font-size: 12px; }
.moyu-skin-oa .mo-d-attach i { color: var(--msk-primary); }
.moyu-skin-oa .mo-att-size { color: #a9aeb8; font-size: 11px; }
.moyu-skin-oa .mo-d-actions { display: flex; gap: 8px; padding-top: 4px; }
.moyu-skin-oa .mo-appfoot, .moyu-skin-mail .mo-appfoot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 34px;
    padding: 0 16px;
    background: var(--msk-bg-soft);
    border-top: 1px solid var(--msk-line);
    color: #a9aeb8;
    font-size: 11.5px;
    flex-shrink: 0;
}

/* ============ 皮肤：企业邮箱 ============ */
.moyu-skin-mail .mo-mlist { display: flex; flex-direction: column; flex-shrink: 0; width: 384px; background: #fff; border-right: 1px solid var(--msk-line); }
.moyu-skin-mail .mo-mhead { display: flex; align-items: center; justify-content: space-between; height: 44px; padding: 0 14px; border-bottom: 1px solid var(--msk-line-soft); color: var(--msk-text); font-size: 14px; font-weight: 600; flex-shrink: 0; }
.moyu-skin-mail .mo-mhead-tools { display: flex; gap: 4px; }
.moyu-skin-mail .mo-mhead-tools i { display: flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 5px; color: var(--msk-weak); font-size: 12px; cursor: pointer; transition: background .16s, color .16s; }
.moyu-skin-mail .mo-mhead-tools i:hover { background: var(--msk-hover); color: var(--msk-primary); }
.moyu-skin-mail .mo-mrows { flex: 1; min-height: 0; overflow-y: auto; }
.moyu-skin-mail .mo-mrow {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 14px;
    border-bottom: 1px solid #f5f6f8;
    cursor: pointer;
    animation: mskFadeUp .24s ease;
    transition: background .14s;
}
.moyu-skin-mail .mo-mrow:hover { background: #f7f9fc; }
.moyu-skin-mail .mo-mrow.on { background: #e8f3ff; }
.moyu-skin-mail .mo-mstar { flex-shrink: 0; width: 18px; padding-top: 1px; color: #c9cdd4; font-size: 13px; text-align: center; transition: color .14s; }
.moyu-skin-mail .mo-mstar:hover, .moyu-skin-mail .mo-mstar.on { color: #ff9a00; }
.moyu-skin-mail .mo-mfrom { flex-shrink: 0; width: 118px; padding-top: 1px; color: #4e5969; font-size: 12.5px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.moyu-skin-mail .mo-msub { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.moyu-skin-mail .mo-msub b { color: var(--msk-text); font-size: 13px; font-weight: 500; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.moyu-skin-mail .mo-msub i { color: #a9aeb8; font-size: 11.5px; font-style: normal; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.moyu-skin-mail .mo-mrow.un .mo-msub b { font-weight: 700; }
.moyu-skin-mail .mo-mclip { margin-top: 3px; color: var(--msk-weak); font-size: 11px; }
.moyu-skin-mail .mo-mtime { flex-shrink: 0; padding-top: 1px; color: #a9aeb8; font-size: 11.5px; }
.moyu-skin-mail .mo-mrow.un .mo-mtime { color: var(--msk-primary); }
.moyu-skin-mail .mo-mpager { display: flex; align-items: center; justify-content: space-between; height: 40px; padding: 0 14px; border-top: 1px solid var(--msk-line-soft); color: #a9aeb8; font-size: 11.5px; flex-shrink: 0; }
.moyu-skin-mail .mo-read { flex: 1; min-width: 0; overflow-y: auto; padding: 22px 26px; background: #fff; }
.moyu-skin-mail .mo-r-head { padding-bottom: 14px; margin-bottom: 16px; border-bottom: 1px solid var(--msk-line-soft); }
.moyu-skin-mail .mo-r-subj { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.moyu-skin-mail .mo-r-subj em { color: var(--msk-text); font-size: 17px; font-style: normal; font-weight: 600; line-height: 1.45; }
.moyu-skin-mail .mo-r-tags { display: flex; flex-shrink: 0; gap: 6px; padding-top: 3px; }
.moyu-skin-mail .mo-r-tags b { padding: 1px 7px; border-radius: 9px; font-size: 11px; font-weight: 500; }
.moyu-skin-mail .mo-r-new { background: #ffece8; color: #f53f3f; }
.moyu-skin-mail .mo-r-att { background: var(--msk-hover); color: #86909c; }
.moyu-skin-mail .mo-r-meta { display: flex; align-items: center; gap: 10px; }
.moyu-skin-mail .mo-r-ava {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4a9bff, #1677ff);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}
.moyu-skin-mail .mo-r-who { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.moyu-skin-mail .mo-r-who b { color: var(--msk-text); font-size: 13px; font-weight: 600; }
.moyu-skin-mail .mo-r-who i { color: #a9aeb8; font-size: 11.5px; font-style: normal; }
.moyu-skin-mail .mo-r-time { flex-shrink: 0; color: #86909c; font-size: 12px; }
.moyu-skin-mail .mo-r-line { margin-top: 10px; color: #86909c; font-size: 12px; }
.moyu-skin-mail .mo-r-body { color: #333; font-size: 13.5px; line-height: 1.9; }
.moyu-skin-mail .mo-r-body p { margin-bottom: 12px; }
.moyu-skin-mail .mo-r-sign { padding-top: 10px; border-top: 1px dashed #ececec; color: #a9aeb8; font-size: 12px; }
.moyu-skin-mail .mo-r-attach { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 14px 0; padding: 10px 14px; border-radius: 8px; background: #f7f8fa; color: #4e5969; font-size: 12.5px; }
.moyu-skin-mail .mo-r-attach i { color: var(--msk-primary); font-size: 15px; }
.moyu-skin-mail .mo-r-attach em { margin-right: 10px; color: #a9aeb8; font-size: 11.5px; font-style: normal; }
.moyu-skin-mail .mo-r-actions { display: flex; gap: 8px; margin-top: 16px; }


/* ============ 续玩提示条 ============ */
#moyu-resume-bar {
    position: fixed;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    z-index: 900;
    display: none;
    align-items: center;
    gap: 12px;
    padding: 8px 14px;
    border-radius: 10px;
    background: rgba(15, 23, 42, .94);
    border: 1px solid rgba(148, 163, 184, .22);
    box-shadow: 0 8px 26px rgba(0, 0, 0, .38);
    color: #cbd5e1;
    font-size: 12.5px;
    font-family: 'Noto Sans SC', sans-serif;
}
#moyu-resume-bar.moyu-on { display: flex; }
#moyu-resume-bar .mr-txt { color: #94a3b8; }
#moyu-resume-bar button {
    border: 1px solid rgba(99, 102, 241, .45);
    background: rgba(99, 102, 241, .22);
    color: #c7d2fe;
    border-radius: 7px;
    padding: 4px 12px;
    font-size: 12.5px;
    cursor: pointer;
    font-family: inherit;
}
#moyu-resume-bar button.mr-ghost { border-color: rgba(148, 163, 184, .25); background: transparent; color: #94a3b8; }
#moyu-resume-bar button:hover { border-color: rgba(99, 102, 241, .8); }

/* ============ 静音胶囊 ============ */
#moyu-mute-pill {
    position: fixed;
    right: 14px;
    bottom: 14px;
    z-index: 901;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 100px;
    background: rgba(15, 23, 42, .9);
    border: 1px solid rgba(148, 163, 184, .22);
    color: #94a3b8;
    font-size: 12px;
    cursor: pointer;
    user-select: none;
    font-family: 'Noto Sans SC', sans-serif;
}
#moyu-mute-pill:hover { border-color: rgba(99, 102, 241, .6); color: #cbd5e1; }
#moyu-mute-pill.moyu-muted { color: #fbbf24; border-color: rgba(251, 191, 36, .35); }
#moyu-mute-pill .mp-k { opacity: .6; font-family: 'JetBrains Mono', monospace; }

/* ============ 首次引导 ============ */
#moyu-onboard {
    position: fixed;
    inset: 0;
    z-index: 2147482500;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(3, 7, 18, .82);
    backdrop-filter: blur(6px);
    font-family: 'Noto Sans SC', sans-serif;
}
#moyu-onboard.moyu-on { display: flex; }
#moyu-onboard .mo-card {
    width: 660px;
    max-width: 92vw;
    background: #0f172a;
    border: 1px solid rgba(99, 102, 241, .28);
    border-radius: 16px;
    padding: 26px 28px 22px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
    color: #e2e8f0;
}
#moyu-onboard h3 { font-size: 18px; margin-bottom: 4px; }
#moyu-onboard .mo-tip { color: #94a3b8; font-size: 12.5px; margin-bottom: 18px; }
#moyu-onboard .mo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
#moyu-onboard .mo-item { background: rgba(30, 41, 59, .55); border: 1px solid rgba(148, 163, 184, .14); border-radius: 12px; padding: 14px; }
#moyu-onboard .mo-item h4 { font-size: 13.5px; margin-bottom: 6px; color: #c7d2fe; }
#moyu-onboard .mo-item p { font-size: 12px; color: #94a3b8; line-height: 1.6; }
#moyu-onboard select, #moyu-onboard input {
    width: 100%; margin-top: 8px; padding: 6px 8px; border-radius: 7px;
    border: 1px solid rgba(148, 163, 184, .25); background: rgba(15, 23, 42, .9); color: #e2e8f0; font-size: 12.5px;
}
#moyu-onboard .mo-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
#moyu-onboard button { border-radius: 9px; padding: 8px 18px; font-size: 13px; cursor: pointer; font-family: inherit; border: 1px solid transparent; }
#moyu-onboard .mo-go { background: #6366f1; color: #fff; }
#moyu-onboard .mo-skip { background: transparent; color: #94a3b8; border-color: rgba(148, 163, 184, .25); }
#moyu-onboard .mo-note { margin-top: 14px; font-size: 11.5px; color: #64748b; line-height: 1.7; border-top: 1px solid rgba(148, 163, 184, .12); padding-top: 12px; }

/* ============ 轻量提示 ============ */
#moyu-toast {
    position: fixed;
    left: 50%;
    top: 68px;
    transform: translateX(-50%);
    z-index: 2150;
    padding: 7px 16px;
    border-radius: 8px;
    background: rgba(15, 23, 42, .95);
    border: 1px solid rgba(99, 102, 241, .35);
    color: #cbd5e1;
    font-size: 12.5px;
    font-family: 'Noto Sans SC', sans-serif;
    opacity: 0;
    transition: opacity .18s ease;
    pointer-events: none;
}
#moyu-toast.moyu-on { opacity: 1; }

@media (max-width: 900px) {
    .moyu-skin-ide .mi-side { width: 180px; }
    .moyu-skin-oa .mo-side, .moyu-skin-mail .mo-side { width: 160px; }
    .moyu-skin-mail .mo-mlist { width: 100%; }
    .moyu-skin-mail .mo-read { display: none; }
    .moyu-skin-oa .mo-navmenu { display: none; }
}

@media (max-width: 640px) {
    #moyu-onboard .mo-grid { grid-template-columns: 1fr; }
    .moyu-skin-doc .md-page { max-width: 94%; padding: 30px 22px; }
    .moyu-skin-ide .mi-side { display: none; }
    .moyu-skin-oa .mo-side { display: none; }
    .moyu-skin-oa .mo-tsearch, .moyu-skin-mail .mo-tsearch { width: 150px; }
    .moyu-skin-oa .mo-c3, .moyu-skin-oa .mo-c4 { display: none; }
    .moyu-skin-oa .mo-c1 { width: 116px; }
    .moyu-skin-oa .mo-drawer-panel { width: 100%; }
    .moyu-skin-doc .md-rbtn { width: 46px; }
}

/* ============ 模式切换按钮 ============ */
/* 左下角固定：不遮挡 sticky 页头（72px），菜单向上展开 */
#moyu-modebar {
    position: fixed;
    left: 14px;
    bottom: 14px;
    z-index: 2147482000;
    display: flex;
    flex-direction: column-reverse;
    align-items: flex-start;
    font-family: 'Noto Sans SC', sans-serif;
    user-select: none;
}
#moyu-modebar.moyu-hide { display: none; }

/* 当前模式胶囊：低调，悬停才明显 */
#moyu-modebar .mmb-cur {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 100px;
    background: rgba(15, 23, 42, .9);
    border: 1px solid rgba(148, 163, 184, .22);
    color: #94a3b8;
    font-size: 12.5px;
    cursor: pointer;
    transition: border-color .18s, color .18s, box-shadow .18s;
}
#moyu-modebar .mmb-cur:hover {
    border-color: rgba(99, 102, 241, .55);
    color: #cbd5e1;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
}
.mmb-arw {
    transition: transform .18s;
    font-style: normal;
    transform: rotate(180deg);
}
#moyu-modebar.moyu-open .mmb-arw { transform: rotate(0); }

/* 展开面板：位于胶囊上方，向上展开 */
#moyu-modebar .mmb-menu {
    display: none;
    margin-bottom: 8px;
    min-width: 280px;
    background: rgba(15, 23, 42, .97);
    border: 1px solid rgba(148, 163, 184, .22);
    border-radius: 12px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, .5);
    padding: 6px;
}
#moyu-modebar.moyu-open .mmb-menu { display: block; }

.mmb-menu button {
    display: block;
    width: 100%;
    text-align: left;
    background: transparent;
    border: 0;
    border-radius: 9px;
    padding: 9px 12px;
    cursor: pointer;
    font-family: inherit;
}
.mmb-menu button:hover { background: rgba(99, 102, 241, .16); }
.mmb-menu button b {
    display: block;
    font-size: 13px;
    color: #e2e8f0;
    font-weight: 600;
}
.mmb-menu button span {
    display: block;
    margin-top: 3px;
    font-size: 11.5px;
    color: #94a3b8;
    line-height: 1.55;
}
button[data-mode].on {
    background: rgba(99, 102, 241, .2);
    box-shadow: inset 2px 0 0 0 #6366f1;
}
button[data-mode].on b { color: #c7d2fe; }

.mmb-help {
    margin-top: 4px;
    border-top: 1px solid rgba(148, 163, 184, .14);
    color: #94a3b8;
    font-size: 12px;
}
.mmb-help i {
    color: #94a3b8;
    margin-right: 6px;
    font-style: normal;
}

/* ============ 模式说明弹窗 ============ */
#moyu-modehelp {
    position: fixed;
    inset: 0;
    z-index: 2147482200;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(3, 7, 18, .72);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    font-family: 'Noto Sans SC', sans-serif;
}
#moyu-modehelp.moyu-on { display: flex; }

.mmh-card {
    width: 560px;
    max-width: 92vw;
    background: #0f172a;
    border: 1px solid rgba(99, 102, 241, .28);
    border-radius: 16px;
    padding: 22px 24px 18px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
    color: #e2e8f0;
}
.mmh-card h3 {
    font-size: 16px;
    margin-bottom: 14px;
}
.mmh-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.mmh-item {
    background: rgba(30, 41, 59, .55);
    border: 1px solid rgba(148, 163, 184, .14);
    border-radius: 12px;
    padding: 12px 14px;
}
.mmh-item h4 {
    font-size: 13.5px;
    color: #c7d2fe;
    margin-bottom: 6px;
}
.mmh-item p {
    font-size: 12px;
    color: #94a3b8;
    line-height: 1.7;
}
.mmh-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 16px;
}
#moyu-modehelp button {
    border-radius: 9px;
    padding: 7px 18px;
    font-size: 13px;
    cursor: pointer;
    font-family: inherit;
    background: #6366f1;
    color: #fff;
    border: 1px solid transparent;
}

@media (max-width: 640px) {
    .mmb-menu { min-width: 240px; }
    .mmh-card { padding: 18px 16px 14px; }
}

/* ============ 全伪装通用外壳令牌 ============ */
/* 全伪装：隐藏站点通用页头/页脚等"游戏感"元素，页面自身再叠加办公外壳 */
html.moyu-full zzx-header,
html.moyu-full .tool-header,
html.moyu-full .zzx-footer,
html.moyu-full footer.site-footer { display: none !important; }

/* Vue 会把 <zzx-header> 渲染为普通 <div>，上面的标签选择器匹配不到；
   以下选择器命中组件根容器（整块含页头、登录弹窗、客服/返回顶部悬浮按钮），
   避免全伪装下站点导航栏与悬浮按钮穿出、压住办公外壳顶部 */
html.moyu-full #app > div > header { display: none !important; }
html.moyu-full #app > div:has(> header) { display: none !important; }

/* 全伪装：模式按钮上移，避开办公外壳底部的表格标签栏(26px)+状态栏(22px) */
html.moyu-full #moyu-modebar { bottom: 56px; }
/* 全伪装：静音胶囊同步上移，避免压住表格状态栏 */
html.moyu-full #moyu-mute-pill { bottom: 56px; }
