@import url("../assets/css/column-header.css?v=20260843");
:root{--pc-container-width:100%;--pc-container-padding:16px;--pc-reading-width:100%;--pc-grid-gap:20px;}@media (min-width:1200px){:root{--pc-container-width:1000px;--pc-reading-width:780px;}}html{background:#f4f6fb;}
/* 左右内边距用变量，与 .container 保持一致（避免 shorthand 覆盖后贴边） */
.mt-main { padding: 28px var(--pc-container-padding) 40px; }

/* 提示条 */
.mt-msg { background: #eafaf0; border: 1px solid #bfe6cd; color: #1f9d55; border-radius: 8px; padding: 10px 14px; margin-bottom: 14px; font-size: 14px; }
.mt-err { background: #fdeeee; border: 1px solid #f3c5c5; color: #d33; border-radius: 8px; padding: 10px 14px; margin-bottom: 14px; font-size: 14px; }
.mt-tip { color: #9aa3b2; font-size: 13px; margin: 6px 0 0; }
.mt-hint { color: #9aa3b2; font-size: 12.5px; line-height: 1.7; margin: 2px 0 0; }

/* 栏目 tab：待处理 / 已完成 / 已删除 */
.mt-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 14px; padding-bottom: 12px; border-bottom: 1px solid #e8ecf3; }
.mt-tab { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: #5a6474; text-decoration: none; padding: 7px 15px; border-radius: 999px; background: #fff; border: 1px solid #e3e8ef; }
.mt-tab:hover { border-color: #b9cef2; color: #2f6fed; }
.mt-tab em { font-style: normal; font-size: 12px; background: #eef3ff; color: #2f6fed; border-radius: 10px; padding: 1px 7px; }
.mt-tab.active { background: #2f6fed; color: #fff; border-color: #2f6fed; }
.mt-tab.active em { background: rgba(255,255,255,.24); color: #fff; }

/* 筛选 */
.mt-filter { display: flex; gap: 10px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; }
.mt-filter select {
  border: 1px solid #dfe4ec; border-radius: 8px; padding: 9px 12px; font-size: 14px;
  background: #fff; color: #33415c; outline: none;
}
.mt-filter .mt-label { font-size: 13px; color: #6b7686; display: inline-flex; align-items: center; gap: 6px; }
.mt-clear { font-size: 14px; color: #2f6fed; text-decoration: none; }

/* 新增 / 编辑面板 */
.mt-panel {
  background: #fff; border: 1px solid #e8ecf3; border-radius: 12px;
  padding: 16px 18px; margin-bottom: 20px; box-shadow: 0 4px 16px rgba(31,45,61,.05);
}
.mt-panel h2 { margin: 0 0 12px; font-size: 16px; color: #2b3a4d; }
.mt-form { display: flex; flex-direction: column; gap: 10px; }
.mt-form-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.mt-form-foot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.mt-field { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: #6b7686; }
.mt-field-title { font-size: 13px; color: #6b7686; }
.mt-field[hidden] { display: none; }
.mt-field input[type=text],
.mt-field input[type=date],
.mt-field input[type=number],
.mt-field input[type=password],
.mt-field select,
.mt-field textarea {
  border: 1px solid #dfe4ec; border-radius: 8px; padding: 9px 12px; font-size: 14px;
  color: #2b3a4d; outline: none; background: #fff; box-sizing: border-box;
}
.mt-field input:focus, .mt-field select:focus, .mt-field textarea:focus { border-color: #2f6fed; box-shadow: 0 0 0 3px rgba(47,111,237,.12); }
.mt-field textarea { resize: vertical; min-height: 52px; }
.mt-f-name { flex: 2 1 240px; min-width: 220px; }
.mt-f-content { width: 100%; }
.mt-remind-field.is-disabled { opacity: .55; }
.mt-remind-field.is-disabled input { background: #f5f7fa; cursor: not-allowed; }
.mt-btn {
  display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box;
  height: 38px; padding: 0 18px; border: 0; border-radius: 8px; cursor: pointer;
  background: #2f6fed; color: #fff; font-size: 14px; text-decoration: none;
}
.mt-btn:hover { background: #2257c4; }
.mt-btn-ghost { background: #fff; color: #2f6fed; border: 1px solid #b9cef2; }
.mt-btn-ghost:hover { background: #f0f6ff; }
.mt-btn-danger { background: #d33; color: #fff; }
.mt-btn-danger:hover { background: #b32b2b; }

/* 富文本编辑器（功能对齐 /blog 后台编辑器） */
/* 注意：不能给 .mt-rte 加 overflow:hidden，否则工具栏 sticky 失效 */
.mt-rte { border: 1px solid #dfe4ec; border-radius: 10px; background: #fff; position: relative; }
.mt-rte-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px;
  padding: 7px 9px; background: #f7f9fc; border-bottom: 1px solid #e8ecf3;
  position: sticky; top: 0; z-index: 11; border-radius: 10px 10px 0 0;
}
.mt-rte-toolbar.is-stuck { box-shadow: 0 6px 16px rgba(31,45,61,.13); border-radius: 0; background: #eef1f6; }
.mt-rte-btn {
  height: 30px; min-width: 30px; padding: 0 8px; border: 1px solid transparent; border-radius: 6px;
  background: #fff; color: #33415c; font-size: 13px; line-height: 1; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 4px; white-space: nowrap;
  flex-shrink: 0;
}
.mt-rte-btn:hover { background: #e9eef6; }
.mt-rte-btn.active { background: #2f6fed; color: #fff; }
.mt-rte-btn.locked { background: #1f9d55; color: #fff; }
.mt-rte-btn svg.ic { width: 18px; height: 18px; display: block; pointer-events: none; }
.mt-rte-sel {
  height: 30px; border: 1px solid #dfe4ec; border-radius: 6px; background: #fff;
  font-size: 13px; color: #33415c; padding: 0 6px; max-width: 116px; width: auto; flex: none;
}
.mt-rte-sep { width: 1px; height: 18px; background: #d5dce7; margin: 0 3px; flex-shrink: 0; }
.mt-rte-color { display: inline-flex; align-items: center; gap: 3px; height: 30px; padding: 0 6px; border: 1px solid #dfe4ec; border-radius: 6px; background: #fff; cursor: pointer; font-size: 13px; color: #33415c; flex-shrink: 0; }
.mt-rte-color .cc { font-weight: 700; line-height: 1; }
.mt-rte-color .cc-text { font-weight: 700; border-bottom: 3px solid #e03131; padding-bottom: 1px; line-height: 1; }
.mt-rte-color .cc-bg { font-weight: 700; background: #ffe066; padding: 0 3px; border-radius: 3px; line-height: 1; }
.mt-rte-color input[type=color] { width: 20px; height: 20px; border: 0; background: none; padding: 0; cursor: pointer; }
.mt-rte-surface {
  min-height: 140px; max-height: 520px; overflow: auto; padding: 12px 14px;
  font-size: 14.5px; line-height: 1.75; color: #2b3a4d; outline: none;
  word-break: break-word; border-radius: 0 0 10px 10px;
}
.mt-rte-surface.is-empty::before { content: attr(data-placeholder); color: #a9b2c0; pointer-events: none; }
.mt-rte-surface.mt-rte-painting { cursor: copy; }
.mt-rte-surface h1 { font-size: 24px; margin: 12px 0 8px; }
.mt-rte-surface h2 { font-size: 20px; margin: 10px 0 6px; }
.mt-rte-surface h3 { font-size: 17px; margin: 9px 0 6px; }
.mt-rte-surface h4 { font-size: 15.5px; margin: 8px 0 6px; }
.mt-rte-surface h5 { font-size: 14.5px; margin: 8px 0 6px; }
.mt-rte-surface h6 { font-size: 13.5px; margin: 8px 0 6px; }
.mt-rte-surface p { margin: 6px 0; }
.mt-rte-surface ul, .mt-rte-surface ol { padding-left: 22px; margin: 6px 0; }
.mt-rte-surface blockquote { margin: 8px 0; padding: 6px 12px; border-left: 3px solid #b9cef2; background: #f6f9ff; color: #5a6474; }
.mt-rte-surface pre { background: #1e2530; color: #e6edf3; padding: 10px 12px; border-radius: 8px; overflow: auto; }
.mt-rte-surface table { border-collapse: collapse; width: 100%; margin: 10px 0; }
.mt-rte-surface th, .mt-rte-surface td { border: 1px solid #cfd6e0; padding: 6px 10px; min-width: 60px; }
.mt-rte-surface img { max-width: 100%; height: auto; }
.mt-rte-surface a { color: #2f6fed; }

/* 表情面板 */
.mt-emoji-panel {
  display: none; position: absolute; top: 46px; left: 10px; z-index: 30;
  width: 300px; max-height: 220px; overflow: auto; background: #fff;
  border: 1px solid #dfe4ec; border-radius: 10px; box-shadow: 0 8px 24px rgba(31,45,61,.16);
  padding: 8px; grid-template-columns: repeat(8, 1fr); gap: 2px;
}
.mt-emoji-panel.open { display: grid; }
.mt-emoji-panel button { border: 0; background: none; font-size: 20px; padding: 4px; cursor: pointer; border-radius: 6px; line-height: 1; }
.mt-emoji-panel button:hover { background: #eef3ff; }

/* 多图插入弹窗 */
.mt-rte-modal { position: fixed; inset: 0; z-index: 2100; display: flex; align-items: center; justify-content: center; padding: 20px; }
.mt-rte-modal[hidden] { display: none; }
.mt-rte-modal-backdrop { position: absolute; inset: 0; background: rgba(15,23,42,.55); }
.mt-rte-modal-box {
  position: relative; background: #fff; border-radius: 12px; width: min(560px, 94vw);
  max-height: 86vh; display: flex; flex-direction: column; overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.mt-rte-modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border-bottom: 1px solid #eceef2; font-size: 16px; font-weight: 600; color: #1f2d3d;
}
.mt-rte-modal-x { border: 0; background: none; font-size: 22px; line-height: 1; cursor: pointer; color: #8a93a3; }
.mt-rte-modal-body { padding: 14px 18px; overflow: auto; }
.mt-rte-modal-tip { font-size: 13px; color: #7b8697; margin: 0 0 8px; line-height: 1.6; }
.mt-rte-modal-ta {
  width: 100%; border: 1px solid #dfe4ec; border-radius: 8px; padding: 10px 12px;
  font-size: 13.5px; line-height: 1.6; color: #2b3a4d; font-family: inherit; resize: vertical;
}
.mt-rte-modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 12px 18px 16px; }

/* 板块标题 */
.mt-section-title { display: flex; align-items: center; gap: 8px; font-size: 18px; margin: 26px 0 12px; color: #2b3a4d; }
.mt-count { background: #eef3ff; color: #2f6fed; font-size: 12px; padding: 2px 10px; border-radius: 10px; }

/* 事项卡片 */
.mt-card {
  background: #fff; border-radius: 10px; padding: 14px 16px; margin-bottom: 10px;
  border: 1px solid #e8ecf3; box-shadow: 0 2px 8px rgba(31,45,61,.04);
}
.mt-card.is-done { background: #fbfcfe; }
.mt-card.is-deleted { background: #fbfbfc; border-style: dashed; }

.mt-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
/* 事项标题：统一红色显示 */
.mt-name { font-weight: 600; font-size: 15px; color: #d33; }
.mt-cat { font-size: 12px; color: #6b7686; background: #fff; border: 1px solid #e3e8ef; padding: 2px 8px; border-radius: 8px; white-space: nowrap; }
.mt-due { font-size: 13px; color: #6b7686; }
.mt-due.over { color: #d33; font-weight: 600; }
.mt-due.none { color: #a9b2c0; }
.mt-ov { background: #d33; color: #fff; font-size: 12px; padding: 2px 8px; border-radius: 8px; white-space: nowrap; }
.mt-remind { font-size: 12px; color: #b8860b; white-space: nowrap; }
.mt-done-badge { background: #1f9d55; color: #fff; font-size: 12px; padding: 2px 8px; border-radius: 8px; white-space: nowrap; }
.mt-del-badge { background: #8a93a3; color: #fff; font-size: 12px; padding: 2px 8px; border-radius: 8px; white-space: nowrap; }
.mt-lock-badge { background: #fff3e0; color: #b26a00; border: 1px solid #ffe0b2; font-size: 12px; padding: 1px 8px; border-radius: 8px; white-space: nowrap; }
.mt-nocontent { margin: 8px 0 0; font-size: 13px; color: #a9b2c0; }

/* 事项内容（富文本展示） */
.mt-content { margin-top: 10px; font-size: 14.5px; line-height: 1.78; color: #3c4759; word-break: break-word; }
.mt-content h1 { font-size: 22px; } .mt-content h2 { font-size: 19px; } .mt-content h3 { font-size: 16px; }
.mt-content h4 { font-size: 15px; } .mt-content h5 { font-size: 14px; } .mt-content h6 { font-size: 13px; }
.mt-content p { margin: 8px 0; }
.mt-content ul, .mt-content ol { padding-left: 22px; margin: 8px 0; }
.mt-content li { margin: 4px 0; }
.mt-content blockquote { margin: 10px 0; padding: 8px 14px; border-left: 3px solid #b9cef2; background: #f6f9ff; color: #5a6474; border-radius: 0 6px 6px 0; }
.mt-content pre { background: #1e2530; color: #e6edf3; padding: 10px 12px; border-radius: 8px; overflow: auto; }
.mt-content code { background: #eef1f6; padding: 1px 5px; border-radius: 4px; font-size: 13px; }
.mt-content img { max-width: 100%; height: auto; border-radius: 6px; }
.mt-content table { border-collapse: collapse; width: 100%; margin: 10px 0; }
.mt-content th, .mt-content td { border: 1px solid #d9dee6; padding: 6px 10px; }
.mt-content a { color: #2f6fed; }

/* 口令解锁区 */
.mt-lock { margin-top: 10px; background: #f7f9fc; border: 1px dashed #cfd9e8; border-radius: 10px; padding: 12px 14px; }
.mt-lock-title { margin: 0 0 4px; font-size: 14px; font-weight: 600; color: #33415c; }
.mt-lock-tip { margin: 0 0 10px; font-size: 13px; color: #8a93a3; }
.mt-lock-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.mt-lock-form input {
  flex: 1 1 200px; border: 1px solid #dfe4ec; border-radius: 8px; padding: 9px 12px;
  font-size: 14px; color: #2b3a4d; outline: none; background: #fff;
}
.mt-lock-form input:focus { border-color: #2f6fed; box-shadow: 0 0 0 3px rgba(47,111,237,.12); }

/* 操作按钮 */
.mt-actions { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.mt-actions form { margin: 0; }
.mt-link-btn {
  border: 0; background: transparent; color: #2f6fed; font-size: 13px; cursor: pointer; padding: 4px 6px;
}
.mt-link-btn:hover { text-decoration: underline; }
.mt-link-btn.ok { color: #1f9d55; }
.mt-link-btn.del { color: #d33; }

/* 编辑折叠 */
.mt-edit { margin-top: 10px; }
.mt-edit > summary { cursor: pointer; color: #2f6fed; font-size: 13px; list-style: none; display: inline-block; }
.mt-edit > summary::-webkit-details-marker { display: none; }
.mt-edit > summary::before { content: '✎ '; }
.mt-edit[open] > summary { margin-bottom: 8px; }
.mt-edit form { background: #fff; border: 1px solid #e3e8ef; border-radius: 8px; padding: 12px; }

/* 操作确认弹窗 */
.mt-modal { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 20px; }
.mt-modal[hidden] { display: none; }
.mt-modal-backdrop { position: absolute; inset: 0; background: rgba(15,23,42,.55); }
.mt-modal-box {
  position: relative; background: #fff; border-radius: 12px; padding: 20px 22px 18px;
  width: min(420px, 100%); box-shadow: 0 20px 60px rgba(0,0,0,.28);
}
.mt-modal-title { margin: 0 0 8px; font-size: 16px; color: #2b3a4d; }
.mt-modal-text { margin: 0 0 18px; font-size: 14px; line-height: 1.7; color: #5a6474; }
.mt-modal-foot { display: flex; justify-content: flex-end; gap: 10px; }
body.mt-modal-open { overflow: hidden; }

/* 页脚返回首页链接 */
.site-footer .mt-foot-home { font-size: 14px; color: #c4ccd8; text-decoration: none; }
.site-footer .mt-foot-home:hover { color: #fff; text-decoration: underline; }

/* 防刷蜜罐：真人看不见，自动化脚本会把它填上 */
.mt-hp {
  position: absolute !important;
  left: -9999px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

@media (max-width: 640px) {
  .mt-field { width: 100%; }
  .mt-form-row .mt-field { flex: 1 1 100%; }
  .mt-line { gap: 6px; }
  .mt-actions { margin-left: 0; width: 100%; }
  .mt-card { padding: 12px 12px; }
  .mt-rte-surface { min-height: 120px; }
}
