/* ===== 全伪装：整体伪装为办公界面（摸鱼专区 / 摸鱼论坛共用） ===== */
.myf-shell { display: none; }
html.moyu-full .my-wrap,
html.moyu-full .mf-wrap { display: none !important; }
html.moyu-full .myf-shell { display: flex; flex-direction: column; }
html.moyu-full body { background: #f3f3f3; }
html.moyu-full { background: #f3f3f3; }

.myf-shell { box-sizing: border-box; height: 100vh; min-height: 560px; overflow: hidden; background: #f3f3f3; color: #1f2329; font-family: 'Segoe UI','Noto Sans SC',sans-serif; font-size: 13px; padding-top: 52px; }
.myf-bar { display: flex; align-items: center; gap: 18px; height: 40px; padding: 0 16px; background: #217346; color: #fff; position: relative; }
.myf-logo { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; }
.myf-home { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 4px;
    color: #eaf5ee; font-size: 12.5px; text-decoration: none; transition: background .14s; margin-right: -6px; }
.myf-home:hover { background: rgba(255,255,255,.18); color: #fff; }
.myf-tabs { display: flex; gap: 2px; }
.myf-tabs span { padding: 5px 12px; border-radius: 4px; font-size: 12.5px; color: #d7ebe1; cursor: default; }
.myf-tabs span.on { background: rgba(255,255,255,.18); color: #fff; }
.myf-user { margin-left: auto; display: flex; align-items: center; gap: 10px; font-size: 12px; color: #d7ebe1; }
.myf-close { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px;
    border-radius: 4px; color: #eaf5ee; text-decoration: none; font-size: 13px; line-height: 1; }
.myf-close:hover { background: #c0392b; color: #fff; }
.myf-main { display: flex; align-items: stretch; flex: 1 1 auto; min-height: 0; }
.myf-side { width: 208px; flex-shrink: 0; background: #fff; border-right: 1px solid #e2e5e9; padding: 12px 0; overflow-y: auto; }
.myf-side-t { padding: 6px 16px; color: #64748b; font-size: 11.5px; }
.myf-side ul { list-style: none; margin: 0 0 8px; padding: 0; }
.myf-side li { display: flex; align-items: center; gap: 8px; padding: 8px 16px; color: #4e5969; cursor: default; }
.myf-side li.on { background: #e8f3ff; color: #1677ff; border-left: 2px solid #1677ff; }
.myf-side li i { width: 14px; text-align: center; opacity: .8; }
.myf-note { margin: 4px 12px; padding: 7px 10px; background: #f7f8fa; border-radius: 6px; color: #64748b; font-size: 11.5px; line-height: 1.6; }
.myf-work { position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; background: #fff; overflow: hidden; }
.myf-formula { display: flex; align-items: center; height: 30px; flex-shrink: 0; border-bottom: 1px solid #e2e5e9; background: #fbfbfb; }
.myf-namebox { width: 78px; flex-shrink: 0; padding: 0 10px; color: #4e5969; border-right: 1px solid #e2e5e9; font-size: 12px; }
.myf-fx { width: 34px; flex-shrink: 0; text-align: center; color: #64748b; font-style: italic; border-right: 1px solid #e2e5e9; font-size: 12px; }
.myf-ftext { flex: 1; min-width: 0; padding: 0 10px; color: #4e5969; font-size: 12px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.myf-grid { flex: 1 1 auto; min-height: 0; overflow: auto; background: #fff; }
.myf-grid::-webkit-scrollbar { width: 12px; height: 12px; }
.myf-grid::-webkit-scrollbar-thumb { background: #c8ccd2; border: 3px solid #fff; border-radius: 6px; }
.myf-grid::-webkit-scrollbar-thumb:hover { background: #aeb4bd; }
.myf-grid::-webkit-scrollbar-track { background: #f7f8fa; }
.myf-table { width: 100%; border-collapse: collapse; font-size: 12px; table-layout: auto; }
.myf-table th, .myf-table td { border: 1px solid #d9dde2; padding: 5px 8px; text-align: left; color: #4e5969; font-weight: 400; }
.myf-table thead th { position: sticky; top: 0; z-index: 3; height: 24px; background: #f0f1f3; color: #64748b; text-align: center; font-weight: 500; }
.myf-table .myf-rown { background: #f0f1f3; text-align: center; color: #8a9099; font-weight: 400; }
.myf-status { flex-shrink: 0; display: flex; align-items: center; gap: 20px; height: 30px; padding: 0 14px; background: #217346; color: #d7ebe1; font-size: 11.5px; }
.myf-status span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.myf-entry { position: relative; }
.myf-entry-btn { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 4px; border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.12); color: #fff; font-size: 12px; cursor: pointer; font-family: inherit; }
.myf-entry-btn:hover { background: rgba(255,255,255,.24); }
.myf-entry-menu { display: none; position: absolute; right: 0; top: 30px; z-index: 30; min-width: 220px; background: #fff; border: 1px solid #d9dde2; border-radius: 6px; box-shadow: 0 8px 26px rgba(0,0,0,.16); padding: 6px; }
.myf-entry.on .myf-entry-menu { display: block; }
.myf-entry-menu a { display: block; padding: 7px 10px; border-radius: 5px; color: #4e5969; text-decoration: none; font-size: 12.5px; }
.myf-entry-menu a:hover { background: #f2f3f5; }
.myf-entry-menu a b { color: #1f2329; font-weight: 600; }
.myf-entry-menu a i { width: 16px; color: #217346; margin-right: 6px; }
.myf-entry-menu a em { float: right; color: #a9aeb8; font-style: normal; font-size: 11px; }

/* 侧栏：员工心声入口 */
.myf-side li[data-myf-voice] { cursor: pointer; position: relative; }
.myf-side li[data-myf-voice]:hover { background: #f2f3f5; color: #1677ff; }
.myf-dot { width: 5px; height: 5px; border-radius: 50%; background: #d9534f; margin-left: auto; flex-shrink: 0; }

/* 全伪装：员工心声（只占 A、B 两列，右侧 C~G 仍保留台账数据） */
.myf-block-cell { position: relative; padding: 0 !important; background: #fff; vertical-align: top; overflow: hidden; }
.myf-block-cell::before { content: ''; position: absolute; z-index: 3; top: 0; bottom: 0; left: var(--myf-ab, 50%);
    border-left: 1px solid #d9dde2; pointer-events: none; }
/* 阅读区按行高补画横向格子线：覆盖在内容之上，保持整张表连续网格观感（挡住字可接受） */
.myf-block-cell::after { content: ''; position: absolute; z-index: 4; top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none; background-image: repeating-linear-gradient(to bottom,
        transparent 0, transparent calc(var(--myf-rowh, 30px) - 1px),
        #d9dde2 calc(var(--myf-rowh, 30px) - 1px), #d9dde2 var(--myf-rowh, 30px)); }

.myf-card { position: absolute; top: 0; left: 0; width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 12px; }
.myf-card td { border: 1px solid #e2e5e9; padding: 4px 8px; vertical-align: top; }
.myf-card-k { background: #f7f8fa; color: #64748b; white-space: nowrap; }
.myf-card-no { color: #4e5969; font-family: Consolas, 'SFMono-Regular', Menlo, monospace; font-size: 11.5px; }
.myf-card-author { display: inline-block; max-width: 58%; color: #1f2329; overflow: hidden;
    white-space: nowrap; text-overflow: ellipsis; vertical-align: bottom; }
.myf-card-time { margin-left: 8px; color: #8a9099; font-size: 11.5px; white-space: nowrap; }

/* 内容摘要与回复：固定高度，保证挖洞块与右侧台账行高对齐；超出时在格子里滚动查看 */
.myf-feed { height: 140px; overflow-y: auto; overscroll-behavior: contain; }
.myf-feed::-webkit-scrollbar { width: 10px; }
.myf-feed::-webkit-scrollbar-thumb { background: #c8ccd2; border: 3px solid #fff; border-radius: 5px; }
.myf-feed::-webkit-scrollbar-thumb:hover { background: #aeb4bd; }
.myf-feed::-webkit-scrollbar-track { background: #f7f8fa; }
.myf-feed-post { color: #1f2329; line-height: 1.7; word-break: break-word; white-space: pre-wrap; }
.myf-feed-reply { margin-top: 5px; color: #4e5969; font-size: 11.5px; line-height: 1.65; word-break: break-word; }
.myf-feed-reply b { color: #1677ff; font-weight: 400; }
.myf-feed-tip { color: #a9aeb8; font-size: 11.5px; line-height: 1.8; }

.myf-card-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.myf-card-react { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.myf-cr { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px;
    border: 1px solid #e2e5e9; border-radius: 4px; background: #fff; color: #4e5969;
    font-family: inherit; font-size: 11.5px; line-height: 16px; cursor: pointer;
    transition: background .12s, border-color .12s, color .12s; }
.myf-cr:hover { background: #eef4ff; border-color: #cfe1ff; color: #1677ff; }
.myf-cr:disabled { opacity: .6; cursor: default; }
.myf-cr.is-mine { background: #eef4ff; border-color: #bfd8ff; color: #1677ff; }
.myf-cr-label { white-space: nowrap; }
.myf-cr em { font-style: normal; color: #8a9099; font-size: 11px; }
.myf-cr.is-mine em { color: #1677ff; }
.myf-card-state { color: #a9aeb8; font-size: 11px; }
.myf-card-next { margin-left: auto; padding: 2px 9px; border: 1px solid #d9dde2; border-radius: 3px;
    background: #fff; color: #4e5969; font-family: inherit; font-size: 11.5px; line-height: 17px; cursor: pointer; }
.myf-card-next:hover { background: #f2f3f5; border-color: #cfe1ff; color: #1677ff; }
.myf-card-next:disabled { opacity: .55; cursor: default; }

/* 进入阅读时只高亮帖子区域，随后渐隐；用独立覆盖层，避免覆盖横向格子线 */
.myf-focus-layer { position: absolute; inset: 0; z-index: 6; pointer-events: none; opacity: 0;
    background: rgba(33,115,70,.18); box-shadow: inset 0 0 0 2px #217346; }
.myf-block-cell.is-focus .myf-focus-layer { animation: myfFocus 2.8s ease-out forwards; }
@keyframes myfFocus {
    0% { opacity: 0; }
    12% { opacity: 1; }
    50% { opacity: .7; }
    100% { opacity: 0; }
}

@media (max-width: 860px) { .myf-side { display: none; } }
