/* ===== 全局变量 ===== */
:root {
  --primary: #2B7FFF;
  --primary-light: #F0F7FF;
  --primary-dark: #1a5fd4;
  --success: #52C41A;
  --warning: #FAAD14;
  --danger: #FF4D4F;
  --purple: #722ED1;
  --orange: #FA8C16;
  --text: #333333;
  --text-secondary: #666666;
  --text-light: #999999;
  --bg: #F5F7FA;
  --bg-white: #FFFFFF;
  --border: #E8E8E8;
  --radius: 8px;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
  --max-width: 1200px;
  --tabbar-height: 56px;
}

/* ===== 重置 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
}

/* ===== 顶部导航 ===== */
.header {
  background: var(--primary);
  color: white;
  padding: 0 20px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-title {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.header-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}
.header-btn {
  background: rgba(255,255,255,0.2);
  color: white;
  border: none;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 13px;
  cursor: pointer;
}
.header-btn:hover { background: rgba(255,255,255,0.3); }

/* ===== 团队切换器 ===== */
.team-switcher {
  position: relative;
  margin-right: 8px;
}
.team-switcher-label {
  font-size: 13px;
  padding: 4px 10px;
  background: rgba(255,255,255,0.15);
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
}
.team-switcher-label:hover { background: rgba(255,255,255,0.25); }
.team-switcher-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 4px;
  background: var(--bg-white);
  color: var(--text);
  border-radius: var(--radius);
  box-shadow: var(--shadow), 0 4px 12px rgba(0,0,0,0.15);
  min-width: 200px;
  z-index: 200;
  overflow: hidden;
}
.team-switcher-item {
  padding: 10px 14px;
  font-size: 13px;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.team-switcher-item:last-child { border-bottom: none; }
.team-switcher-item:hover { background: var(--primary-light); }
.team-switcher-item.active { color: var(--primary); font-weight: 600; }

/* ===== 通知铃铛 ===== */
.notification-bell { position: relative; cursor: pointer; font-size: 16px; padding: 4px 8px; border-radius: var(--radius); }
.notification-bell:hover { background: rgba(255,255,255,0.2); }
.notification-badge { position: absolute; top: 2px; right: 2px; min-width: 14px; height: 14px; background: var(--danger); color: #fff; font-size: 10px; border-radius: 7px; display: flex; align-items: center; justify-content: center; padding: 0 3px; }
.notification-panel { position: absolute; top: 48px; right: 12px; width: 320px; max-height: 400px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); z-index: 1000; overflow: hidden; }
.notification-header { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--border); font-weight: 600; font-size: 14px; }
.notification-list { max-height: 340px; overflow-y: auto; padding: 8px; }
.notification-item { padding: 8px 10px; border-radius: 6px; cursor: pointer; font-size: 13px; line-height: 1.4; margin-bottom: 4px; }
.notification-item:hover { background: var(--bg); }
.notification-item.unread { background: var(--primary-light); }
.notification-item .nt-title { font-weight: 600; color: var(--text); }
.notification-item .nt-content { color: var(--text-secondary); font-size: 12px; margin-top: 2px; }
.notification-item .nt-time { color: var(--text-light); font-size: 11px; margin-top: 2px; }
.notification-empty { padding: 20px; text-align: center; color: var(--text-light); font-size: 13px; }

/* ===== 主容器 ===== */
.main-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 20px;
  padding-bottom: calc(var(--tabbar-height) + 28px + 16px);
  min-height: calc(100vh - 48px - var(--tabbar-height));
}

/* ===== ICP备案号 ===== */
.icp-footer {
  position: fixed;
  bottom: var(--tabbar-height);
  left: 0;
  right: 0;
  height: 28px;
  background: var(--bg-white);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99;
  font-size: 12px;
}
.icp-footer a {
  color: var(--text-light);
  text-decoration: none;
}
.icp-footer a:hover {
  color: var(--primary);
  text-decoration: underline;
}

/* ===== 底部导航栏 ===== */
.tabbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--tabbar-height);
  background: var(--bg-white);
  border-top: 1px solid var(--border);
  display: flex;
  z-index: 100;
  max-width: var(--max-width);
  margin: 0 auto;
}
.tabbar-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-light);
  font-size: 11px;
  transition: color 0.2s;
}
.tabbar-item.active { color: var(--primary); }
.tabbar-item .tab-icon { font-size: 20px; margin-bottom: 2px; }

/* ===== 页面容器 ===== */
.page { display: none; }
.page.active { display: block; }

/* ===== 卡片 ===== */
.card {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}
.card-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text);
}

/* ===== 按钮 ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border: none;
  border-radius: var(--radius);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  gap: 4px;
}
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-success { background: var(--success); color: white; }
.btn-danger { background: var(--danger); color: white; }
.btn-outline { background: white; color: var(--primary); border: 1px solid var(--primary); }
.btn-sm { padding: 4px 10px; font-size: 12px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ===== 表单 ===== */
.form-group { margin-bottom: 14px; }
.form-label { display: block; font-size: 13px; color: var(--text-secondary); margin-bottom: 6px; font-weight: 500; }
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
  font-family: inherit;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--primary); }
.form-textarea { resize: vertical; min-height: 60px; white-space: pre-wrap; word-break: break-word; }
.form-input:disabled, .form-select:disabled, .form-textarea:disabled {
  background: #f5f5f5;
  cursor: not-allowed;
}

/* ===== 标签 ===== */
.tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
}
.tag-personal { background: rgba(43,127,255,0.1); color: var(--primary); }
.tag-meeting { background: rgba(114,46,209,0.1); color: var(--purple); }
.tag-task { background: rgba(250,140,22,0.1); color: var(--orange); }
.tag-done { background: rgba(82,196,26,0.1); color: var(--success); }
.tag-overdue { background: rgba(255,77,79,0.1); color: var(--danger); }
.tag-progress { background: rgba(43,127,255,0.1); color: var(--primary); }

/* ===== Toast ===== */
#toast-container {
  position: fixed;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.toast {
  padding: 10px 24px;
  border-radius: var(--radius);
  color: white;
  font-size: 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  animation: toastIn 0.3s ease;
  pointer-events: auto;
}
.toast-info { background: var(--primary); }
.toast-success { background: var(--success); }
.toast-error { background: var(--danger); }
.toast-warning { background: var(--warning); color: #333; }
.toast-out { animation: toastOut 0.3s ease forwards; }

@keyframes toastIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes toastOut { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(-10px); } }

/* ===== Modal ===== */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
}
.modal-overlay.active { display: flex; }
.modal {
  background: white;
  border-radius: 12px;
  width: 90%;
  max-width: 480px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}
.modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-title { font-size: 16px; font-weight: 600; }
.modal-close {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--text-light);
  padding: 4px;
}
.modal-body { padding: 20px; }
.modal-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

/* ===== 弹窗（页面内） ===== */
.popup-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 900;
  display: none;
  align-items: center;
  justify-content: center;
}
.popup-overlay.active { display: flex; }
.popup {
  background: white;
  border-radius: 12px;
  width: 92%;
  max-width: 500px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}
.popup-header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  background: white;
  z-index: 1;
}
.popup-title { font-size: 16px; font-weight: 600; }
.popup-body { padding: 18px; }
.popup-footer {
  padding: 12px 18px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  position: sticky;
  bottom: 0;
  background: white;
}

/* ===== 横幅 ===== */
.banner {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.banner-info { background: var(--primary-light); color: var(--primary); }
.banner-warning { background: #FFFBE6; color: #D48806; }
.banner-danger { background: #FFF1F0; color: var(--danger); }
.banner-readonly { background: #FAFAFA; color: var(--text-light); }

/* ===== 统计栏 ===== */
.stats-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}
.stat-item {
  flex: 1;
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 12px;
  text-align: center;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
.stat-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}
.stat-number { font-size: 24px; font-weight: 700; }
.stat-label { font-size: 12px; color: var(--text-light); margin-top: 2px; }

/* ===== 筛选栏 ===== */
.filter-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.filter-btn {
  padding: 4px 12px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: white;
  font-size: 12px;
  cursor: pointer;
  color: var(--text-secondary);
  white-space: nowrap;
}
.filter-btn.active { background: var(--primary); color: white; border-color: var(--primary); }

/* ===== 日期导航 ===== */
.date-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
}
.date-nav-btn {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--text-secondary);
}
.date-nav-text {
  font-size: 15px;
  font-weight: 600;
  min-width: 180px;
  text-align: center;
}

/* ===== 日历快捷操作栏 ===== */
.cal-quick-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  padding: 10px 14px;
  background: var(--bg-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.cal-quick-actions .btn {
  flex: 1;
  padding: 10px 0;
  font-size: 14px;
  font-weight: 500;
}

/* ===== 日历 ===== */
.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.calendar-month { font-size: 18px; font-weight: 600; }
.calendar-nav { display: flex; gap: 4px; }
.calendar-nav button {
  background: white;
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 13px;
}
.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 4px;
  padding: 8px 0;
  font-weight: 500;
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}
.calendar-cell {
  aspect-ratio: auto;
  padding: 3px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  position: relative;
  background: white;
  border: 1px solid transparent;
  display: flex;
  flex-direction: column;
  min-height: 80px;
  overflow-y: auto;
}
.calendar-cell:hover { border-color: var(--primary); }
.calendar-cell.other-month { color: var(--text-light); background: #FAFAFA; }
.calendar-cell.today { border-color: var(--primary); background: var(--primary-light); }
.calendar-cell.selected { border-color: var(--primary); border-width: 2px; }
.calendar-cell .day-num { font-weight: 500; font-size: 14px; margin-bottom: 2px; }
.calendar-cell .event-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  margin: 1px 0;
}
.calendar-cell .event-dot.blue { background: var(--primary); }
.calendar-cell .event-dot.purple { background: var(--purple); }
.calendar-cell .event-dot.orange { background: var(--orange); }

/* 日历单元格日程显示 */
.calendar-cell .cal-events-area {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-height: 0;
}
.calendar-cell .cal-period-group {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 1px 0;
}
.calendar-cell .cal-period-label {
  font-size: 8px;
  line-height: 1;
  opacity: 0.7;
  padding-left: 1px;
}
.calendar-cell .cal-event-tag {
  font-size: 9px;
  line-height: 1.2;
  padding: 0 3px;
  border-radius: 2px;
  word-wrap: break-word;
  overflow-wrap: break-word;
  cursor: pointer;
  border-left: 2px solid;
}
.calendar-cell .cal-event-tag.personal {
  background: rgba(43,127,255,0.08);
  color: var(--primary);
  border-left-color: var(--primary);
}
.calendar-cell .cal-event-tag.meeting {
  background: rgba(114,46,209,0.08);
  color: var(--purple);
  border-left-color: var(--purple);
}
.calendar-cell .cal-event-tag.task {
  background: rgba(250,140,22,0.08);
  color: var(--orange);
  border-left-color: var(--orange);
}
.calendar-cell .cal-event-more {
  font-size: 8px;
  color: var(--text-light);
  text-align: center;
}

/* ===== 事件列表 ===== */
.event-list { margin-top: 16px; }
.event-card {
  display: flex;
  align-items: center;
  padding: 10px 12px;
  border-radius: var(--radius);
  margin-bottom: 6px;
  background: white;
  border-left: 3px solid var(--primary);
  gap: 10px;
  cursor: pointer;
  transition: box-shadow 0.2s;
}
.event-card:hover { box-shadow: var(--shadow); }
.event-card-clickable:hover { background: var(--primary-light); }
.event-card.meeting { border-left-color: var(--purple); }
.event-card.task { border-left-color: var(--orange); }
.event-time {
  font-size: 13px;
  color: var(--text-secondary);
  white-space: nowrap;
  min-width: 90px;
}
.event-info { flex: 1; min-width: 0; }
.event-title { font-size: 14px; font-weight: 500; }
.event-desc { font-size: 12px; color: var(--text-light); margin-top: 2px; white-space: pre-wrap; word-break: break-word; }
.event-actions { display: flex; gap: 4px; }

/* ===== 时段区域 ===== */
.period-section { margin-bottom: 16px; }
.period-label {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 8px;
  padding: 6px 10px;
  background: var(--bg);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ===== 任务卡片 ===== */
.task-card {
  background: white;
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 10px;
  box-shadow: var(--shadow);
  border-left: 3px solid var(--border);
}
.task-card.risk-green { border-left-color: var(--success); }
.task-card.risk-yellow { border-left-color: var(--warning); }
.task-card.risk-red { border-left-color: var(--danger); }
.task-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 8px;
}
.task-index { font-size: 13px; color: var(--text-light); font-weight: 600; }
.task-desc { font-size: 14px; font-weight: 500; flex: 1; margin: 0 10px; white-space: pre-wrap; word-break: break-word; }
.task-risk {
  cursor: pointer;
  font-size: 18px;
  padding: 2px;
}
.task-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 8px;
  font-size: 12px;
  color: var(--text-secondary);
}
.task-progress {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.progress-bar {
  flex: 1;
  height: 6px;
  background: #F0F0F0;
  border-radius: 3px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.3s;
}
.progress-fill.green { background: var(--success); }
.progress-fill.yellow { background: var(--warning); }
.progress-fill.red { background: var(--danger); }
.progress-text { font-size: 12px; color: var(--text-secondary); min-width: 36px; }
.task-actions {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
}

/* ===== 文件列表 ===== */
.file-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.file-item {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  background: var(--bg);
  border-radius: 4px;
  font-size: 12px;
}
.file-remove { cursor: pointer; color: var(--danger); font-weight: bold; }

/* ===== 反馈区域 ===== */
.feedback-section { margin-top: 12px; border-top: 1px solid var(--border); padding-top: 10px; }
.feedback-item {
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 13px;
}
.feedback-user { font-weight: 600; color: var(--primary); margin-right: 6px; }
.feedback-time { font-size: 11px; color: var(--text-light); }
.feedback-body { line-height: 1.5; }
.feedback-meta-row { display: flex; align-items: center; gap: 6px; margin-top: 4px; }
.feedback-like-btn {
  font-size: 11px; padding: 1px 6px; line-height: 1.4;
  background: var(--bg); color: var(--text-light); border: 1px solid var(--border); border-radius: 10px;
  cursor: pointer;
}
.feedback-like-btn:hover { background: var(--primary-light); color: var(--primary); border-color: var(--primary); }
.feedback-like-btn.liked { background: var(--primary); color: #fff; border-color: var(--primary); }
.mention-highlight { color: var(--primary); font-weight: 600; }
.btn-xs { font-size: 11px; padding: 1px 6px; line-height: 1.4; border-radius: 3px; }
.btn-xs-outline { font-size: 11px; padding: 1px 6px; line-height: 1.4; border: 1px solid var(--border); border-radius: 3px; background: transparent; color: var(--text-light); cursor: pointer; }
.btn-xs-outline:hover { color: var(--primary); border-color: var(--primary); }
.btn-xs-danger { font-size: 11px; padding: 1px 6px; line-height: 1.4; border: 1px solid var(--border); border-radius: 3px; background: transparent; color: var(--text-light); cursor: pointer; }
.btn-xs-danger:hover { color: #fff; background: var(--danger); border-color: var(--danger); }
.mention-list {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-height: 150px;
  overflow-y: auto;
  width: 100%;
  margin-top: 4px;
  box-shadow: var(--shadow);
}
.mention-item {
  padding: 8px 12px;
  cursor: pointer;
  font-size: 13px;
}
.mention-item:hover { background: var(--primary-light); }

/* ===== 看板 ===== */
.board-container { overflow-x: auto; }
.board-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 600px;
}
.board-table th {
  background: var(--primary-light);
  color: var(--primary);
  padding: 10px 8px;
  text-align: center;
  font-weight: 600;
  white-space: nowrap;
  position: sticky;
  top: 0;
}
.board-table td {
  padding: 10px 8px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.board-table .member-name {
  text-align: left;
  font-weight: 500;
  white-space: nowrap;
}
.board-cell { min-width: 80px; }
.board-progress { font-size: 14px; font-weight: 600; }
.board-risk { font-size: 16px; }

/* 任务看板 */
.taskboard-desc {
  word-wrap: break-word;
  overflow-wrap: break-word;
  text-align: left;
  font-weight: 500;
}

/* ===== 全员时间轴看板 ===== */
.board-timeline-wrapper {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
}

.board-timeline {
  display: flex;
  position: relative;
}

/* 左侧时间轴 */
.board-tl-axis {
  position: relative;
  flex-shrink: 0;
  border-right: 1px solid var(--border);
  background: #FAFBFC;
}

.board-tl-header-spacer {
  height: 55px;
  border-bottom: 2px solid var(--border);
}

.board-tl-label {
  position: absolute;
  left: 0;
  width: 100%;
  height: 20px;
  line-height: 20px;
  text-align: right;
  padding-right: 6px;
  font-size: 10px;
  color: var(--text-light);
  transform: translateY(-10px);
  pointer-events: none;
}

/* 右侧列区域 */
.board-tl-columns {
  flex: 1;
  overflow-x: auto;
  overflow-y: hidden;
}

/* 成员表头 */
.board-tl-headers {
  display: flex;
  background: var(--primary-light);
  border-bottom: 2px solid var(--primary);
  position: sticky;
  top: 0;
  z-index: 10;
}

.board-tl-header {
  padding: 6px 4px;
  text-align: center;
  flex-shrink: 0;
}

.board-member-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 1px;
}

.board-member-name {
  font-size: 10px;
  color: var(--text);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 90px;
  margin: 0 auto;
}

/* 事件区域（网格 + 事件块） */
.board-tl-body {
  position: relative;
  display: flex;
  width: 100%;
}

/* 网格横线 */
.board-tl-grid-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border);
  pointer-events: none;
}

/* 列分隔线 */
.board-tl-col-line {
  position: absolute;
  top: 0;
  width: 1px;
  background: var(--border);
  pointer-events: none;
}

/* 成员列 */
.board-tl-column {
  position: relative;
  flex-shrink: 0;
}

/* 事件时间块 */
.board-tl-block {
  position: absolute;
  border-radius: 4px;
  padding: 3px 5px;
  overflow: hidden;
  cursor: default;
  border-left: 3px solid;
  transition: box-shadow 0.15s;
  box-sizing: border-box;
}

.board-tl-block:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  z-index: 5;
}

.board-tl-block.personal {
  background: rgba(43,127,255,0.1);
  border-left-color: var(--primary);
}

.board-tl-block.meeting {
  background: rgba(114,46,209,0.1);
  border-left-color: var(--purple);
}

.board-tl-block.task {
  background: rgba(250,140,22,0.1);
  border-left-color: var(--orange);
}

.board-tl-block-time {
  font-size: 9px;
  color: var(--text-light);
  line-height: 1.2;
  white-space: nowrap;
}

.board-tl-block-title {
  font-size: 10px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--text);
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* ===== 成员选择 ===== */
.member-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.member-chip {
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid var(--border);
  cursor: pointer;
  font-size: 13px;
  transition: all 0.2s;
}
.member-chip.selected {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* ===== 头像 ===== */
.avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--primary);
  overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-sm { width: 32px; height: 32px; font-size: 14px; }

/* ===== 个人中心 ===== */
.profile-header {
  text-align: center;
  padding: 24px 0;
}
.profile-name { font-size: 18px; font-weight: 600; margin-top: 8px; }
.profile-role { font-size: 13px; color: var(--text-light); }
.profile-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}
.profile-tab {
  flex: 1;
  text-align: center;
  padding: 10px;
  font-size: 14px;
  cursor: pointer;
  color: var(--text-secondary);
  border-bottom: 2px solid transparent;
}
.profile-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  font-weight: 600;
}

/* 团队成员行 */
.member-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}
.member-row:hover { background: var(--bg); }
.member-remove-btn {
  font-size: 11px;
  padding: 3px 8px;
}

/* ===== 加载状态 ===== */
.loading { text-align: center; padding: 40px; color: var(--text-light); }
.loading::after { content: '...'; animation: dots 1.5s steps(4, end) infinite; }
@keyframes dots { 0%, 20% { content: '.'; } 40% { content: '..'; } 60%, 100% { content: '...'; } }

.empty { text-align: center; padding: 40px; color: var(--text-light); font-size: 14px; }

/* ===== 响应式 ===== */
@media (min-width: 768px) {
  .main-container { padding-bottom: calc(var(--tabbar-height) + 28px + 16px); }
}

@media (max-width: 767px) {
  .stats-bar { flex-wrap: wrap; }
  .stat-item { min-width: 80px; }
}

/* ===== 登录页面 ===== */
.login-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  padding: 20px;
}

.login-card {
  width: 100%;
  max-width: 380px;
  background: var(--bg-white);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 32px 28px;
}

.login-logo {
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}

.login-subtitle {
  text-align: center;
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 24px;
}

.login-error {
  background: #FFF2F0;
  border: 1px solid #FFCCC7;
  border-radius: 6px;
  padding: 8px 12px;
  color: var(--danger);
  font-size: 13px;
  margin-top: 8px;
}

.login-switch {
  text-align: center;
  font-size: 13px;
  color: var(--text-light);
  margin-top: 16px;
}

.login-switch a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.login-switch a:hover {
  text-decoration: underline;
}

.login-tab {
  flex: 1;
  text-align: center;
  padding: 10px 0;
  font-size: 14px;
  cursor: pointer;
  color: var(--text-light);
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
  user-select: none;
}

.login-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  font-weight: 600;
}

.login-tab:hover:not(.active) {
  color: var(--text-primary);
}

.login-footer {
  text-align: center;
  font-size: 11px;
  color: var(--text-light);
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* ===== 周看板 / 月看板 ===== */

/* 视图切换标签 */
.wb-view-tabs {
  display: flex;
  background: var(--bg-white);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.wb-view-tab {
  flex: 1;
  text-align: center;
  padding: 10px;
  font-size: 13px;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all 0.2s;
  border-bottom: 2px solid transparent;
}
.wb-view-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  font-weight: 600;
}

/* 统计概览 */
.wb-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}
.wb-stat-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 10px;
  text-align: center;
  box-shadow: var(--shadow);
}
.wb-stat-num {
  font-size: 22px;
  font-weight: 700;
}
.wb-stat-label {
  font-size: 11px;
  color: var(--text-light);
  margin-top: 2px;
}

/* 周视图网格容器 */
.wb-week-grid-wrap {
  background: var(--bg-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.wb-week-grid {
  min-width: 680px;
  border-collapse: collapse;
  font-size: 12px;
  width: 100%;
}
.wb-week-grid th {
  background: var(--primary-light);
  color: var(--primary);
  padding: 8px 4px;
  text-align: center;
  font-weight: 600;
  position: sticky;
  top: 0;
  z-index: 5;
  border-bottom: 2px solid var(--primary);
  cursor: default;
  min-width: 80px;
  white-space: nowrap;
}
.wb-week-grid th.wb-col-member {
  min-width: 90px;
  text-align: left;
  padding-left: 10px;
  background: var(--primary);
  color: #fff;
}
.wb-week-grid th.wb-today-col {
  background: #FFF7E6;
  color: var(--warning);
}
.wb-week-grid td {
  padding: 6px 4px;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid #f0f0f0;
  min-height: 60px;
}
.wb-week-grid td.wb-cell-member {
  padding: 8px 10px;
  white-space: nowrap;
  font-weight: 500;
  background: #FAFBFC;
  border-right: 2px solid var(--border);
  font-size: 13px;
}
.wb-week-grid td.wb-cell-today {
  background: #FFFBE6;
}
.wb-week-grid td.wb-cell-empty {
  color: var(--text-light);
  font-size: 20px;
  text-align: center;
  vertical-align: middle;
  padding: 20px 4px;
  opacity: 0.3;
}

/* 周视图 - 任务条 */
.wb-task-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px 5px;
  margin-bottom: 2px;
  border-radius: 3px;
  border-left: 3px solid;
  cursor: pointer;
  font-size: 11px;
  line-height: 1.3;
  transition: box-shadow 0.15s;
  overflow: hidden;
}
.wb-task-bar:hover {
  box-shadow: 0 1px 4px rgba(0,0,0,0.12);
}
.wb-task-bar.risk-green { border-left-color: var(--success); background: rgba(82,196,26,0.08); }
.wb-task-bar.risk-yellow { border-left-color: var(--warning); background: rgba(250,173,20,0.08); }
.wb-task-bar.risk-red { border-left-color: var(--danger); background: rgba(255,77,79,0.08); }
.wb-task-bar-desc {
  flex: 1;
  min-width: 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
  color: var(--text);
}
.wb-task-bar-status {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.wb-task-bar-status.status-done { background: var(--success); }
.wb-task-bar-status.status-in_progress { background: var(--primary); }
.wb-task-bar-status.status-overdue { background: var(--danger); }
.wb-task-bar-status.status-pending { background: var(--text-light); }

.wb-task-more {
  font-size: 10px;
  color: var(--text-light);
  padding: 2px 5px;
  cursor: pointer;
}

/* 月视图 - 日历格子 */
.wb-month-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}
.wb-month-cell {
  background: var(--bg-white);
  border-radius: 4px;
  padding: 4px;
  cursor: pointer;
  border: 1px solid transparent;
  min-height: 72px;
  transition: border-color 0.2s;
  display: flex;
  flex-direction: column;
}
.wb-month-cell:hover { border-color: var(--primary); }
.wb-month-cell.other-month { background: #FAFAFA; opacity: 0.5; }
.wb-month-cell.today { border-color: var(--primary); background: var(--primary-light); }
.wb-month-cell .day-num {
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 2px;
}
.wb-month-cell .day-num.weekend { color: var(--text-light); }
.wb-month-stats {
  display: flex;
  gap: 3px;
  flex-wrap: wrap;
  margin-top: 2px;
}
.wb-month-dot {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 10px;
  padding: 1px 4px;
  border-radius: 3px;
  white-space: nowrap;
}
.wb-month-dot.done { background: rgba(82,196,26,0.12); color: var(--success); }
.wb-month-dot.progress { background: rgba(43,127,255,0.1); color: var(--primary); }
.wb-month-dot.overdue { background: rgba(255,77,79,0.1); color: var(--danger); }
.wb-month-dot.pending { background: #F0F0F0; color: var(--text-light); }

/* 日详情弹窗 */

/* ===== 会议纪要 ===== */

/* 会议卡片 */
.mn-card {
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.15s;
  border-left: 4px solid var(--primary);
  padding: 12px 16px;
}
.mn-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  transform: translateY(-1px);
}
.mn-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.mn-card-left { flex: 1; min-width: 0; }
.mn-card-date {
  display: block;
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 2px;
}
.mn-card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  word-break: break-word;
}
.mn-card-right { flex-shrink: 0; }
.mn-card-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--text-light);
  margin-top: 8px;
}

/* 会议详情 Popup */
.mn-detail {
  padding: 0;
}
.mn-detail-info {
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--primary-light);
}
.mn-detail-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  background: var(--bg-white);
  position: sticky;
  top: 0;
  z-index: 2;
}
.mn-detail-tab {
  flex: 1;
  text-align: center;
  padding: 10px 8px;
  font-size: 13px;
  cursor: pointer;
  color: var(--text-secondary);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.mn-detail-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  font-weight: 600;
}
.mn-detail-content {
  padding: 16px 18px;
  max-height: 40vh;
  overflow-y: auto;
}

/* 议程项 */
.mn-agenda-item {
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
}
.mn-agenda-item:last-child { border-bottom: none; }
.mn-agenda-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.mn-agenda-notes {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  padding: 6px 10px;
  background: var(--bg);
  border-radius: 6px;
}

/* 决议项 */
.mn-decision-item {
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
}
.mn-decision-item:last-child { border-bottom: none; }
.mn-decision-header {
  display: flex;
  align-items: center;
  gap: 8px;
}
.mn-decision-num {
  font-size: 12px;
  font-weight: 700;
  color: var(--purple);
  background: rgba(114,46,209,0.1);
  padding: 2px 6px;
  border-radius: 3px;
}
.mn-decision-title {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
}
.mn-decision-note {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 4px;
  padding-left: 28px;
}

/* 行动项 */
.mn-action-item {
  padding: 10px 12px;
  border-radius: 8px;
  margin-bottom: 8px;
  border: 1px solid var(--border);
  background: var(--bg-white);
  transition: background 0.2s;
}
.mn-action-item.done {
  background: #F6FFED;
  border-color: rgba(82,196,26,0.3);
  opacity: 0.85;
}
.mn-action-item.overdue {
  border-color: var(--danger);
  background: #FFF2F0;
}
.mn-action-check {
  font-size: 18px;
  flex-shrink: 0;
}
.mn-action-desc {
  font-size: 14px;
  word-break: break-word;
}
.mn-action-item.done .mn-action-desc {
  text-decoration: line-through;
  color: var(--text-light);
}
.mn-action-meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: var(--text-light);
  margin-top: 6px;
  padding-left: 26px;
}

/* 会议编辑器 */
.mn-editor {
  padding: 0;
}
.mn-editor-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 12px;
}
.mn-editor-tab {
  padding: 6px 14px;
  border-radius: 16px;
  font-size: 12px;
  cursor: pointer;
  color: var(--text-secondary);
  background: var(--bg);
  border: 1px solid var(--border);
  transition: all 0.2s;
}
.mn-editor-tab.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}
.mn-agenda-row, .mn-decision-row, .mn-action-row {
  padding: 8px 10px;
  margin-bottom: 8px;
  background: var(--bg);
  border-radius: 8px;
  border: 1px solid var(--border);
}
.mn-member-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.mn-member-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: 16px;
  border: 1px solid var(--border);
  font-size: 13px;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s;
}
.mn-member-chip:hover { border-color: var(--primary); }
.mn-member-chip.selected {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* 可见性自定义人员 chip */
.mn-vis-member-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 12px;
  border: 1px solid var(--border);
  font-size: 12px;
  cursor: pointer;
  user-select: none;
}
.mn-vis-member-chip:hover { border-color: var(--primary); }

/* ===== 全屏编辑器 ===== */
.mn-full-editor-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.5);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.mn-full-editor {
  background: var(--bg-white);
  border-radius: 12px;
  width: 95vw;
  max-width: 860px;
  height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 40px rgba(0,0,0,0.25);
  transition: all 0.3s ease;
  overflow: hidden;
}
.mn-full-editor.maximized {
  width: 100vw;
  max-width: 100vw;
  height: 100vh;
  border-radius: 0;
}
.mn-full-editor-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  flex-shrink: 0;
}
.mn-full-editor-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}
.mn-full-editor-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px;
  -webkit-overflow-scrolling: touch;
}

/* 编辑器 textarea 自动换行 */
.mn-editor-textarea {
  min-height: 150px;
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-wrap: break-word;
  line-height: 1.7;
  font-size: 14px;
  resize: vertical;
  padding: 10px 12px;
  width: 100%;
}
/* 编辑器内的普通 form-input 等也适当增大 */
.mn-full-editor-body .form-textarea {
  min-height: 120px;
  line-height: 1.7;
  font-size: 14px;
}

/* 行动项编辑行 */
.mn-action-row-edit {
  padding: 10px 12px;
  margin-bottom: 10px;
  background: var(--bg);
  border-radius: 8px;
  border: 1px solid var(--border);
}
.mn-action-row-detail {
  margin-top: 8px;
  padding: 8px;
  background: var(--bg-white);
  border-radius: 6px;
  border: 1px dashed var(--border);
}

/* 编辑区域分隔 */
.mn-editor-section-sep {
  border-top: 2px solid var(--border);
  margin: 12px 0;
}

/* 可见人员chip */
.mn-vis-member-chip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 8px;
  border-radius: 12px;
  border: 1px solid var(--border);
  font-size: 11px;
  cursor: pointer;
  user-select: none;
  background: var(--bg-white);
}

/* 文件列表mini */
.file-list-mini {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}
.file-chip {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px 8px;
  border-radius: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  font-size: 11px;
  color: var(--text-secondary);
}
.file-chip:hover { background: var(--primary-light); }

/* 文件项-sm（小号链接） */
.file-item-sm {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--bg);
  font-size: 11px;
  color: var(--primary);
  text-decoration: none;
  border: 1px solid var(--border);
}
.file-item-sm:hover { background: var(--primary-light); }

/* 搜索高亮 */
mark {
  background: #FFF3B0;
  color: inherit;
  padding: 0 1px;
  border-radius: 2px;
}

/* ===== 会议详情全屏覆盖层 ===== */
.mn-detail-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.5);
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mn-detail-overlay .mn-full-editor-container {
  width: 95vw;
  max-width: 900px;
  height: 92vh;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: white;
  box-shadow: 0 8px 40px rgba(0,0,0,0.25);
}
.mn-detail-overlay .mn-full-editor-container.maximized {
  width: 100vw;
  max-width: 100vw;
  height: 100vh;
  border-radius: 0;
}
.mn-detail-info-bar {
  background: #f8f9fa;
  padding: 14px 18px;
  border-radius: 8px;
  margin-bottom: 16px;
  border: 1px solid #e8e8e8;
}
.mn-detail-content-full {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
}
.mn-detail-section {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px dashed #e8e8e8;
}
.mn-detail-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}
.mn-detail-section-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--primary);
}
.mn-detail-attendee-chip {
  display: inline-block;
  padding: 4px 10px;
  border: 1px solid #d9d9d9;
  border-radius: 16px;
  font-size: 13px;
  background: #f5f5f5;
  margin: 2px 0;
}
.mn-detail-agenda-item {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 8px;
  border-left: 3px solid var(--primary);
}
.mn-detail-agenda-topic {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 6px;
  color: var(--text);
}
.mn-detail-agenda-notes {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}
.mn-detail-notes-box {
  background: rgba(var(--primary-rgb, 24,144,255), 0.04);
  border: 1px solid rgba(var(--primary-rgb, 24,144,255), 0.2);
  border-radius: 8px;
  padding: 12px 14px;
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.6;
}
.mn-detail-decision-item {
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
}
.mn-detail-decision-item:last-child { border-bottom: none; }
.mn-detail-action-item {
  padding: 12px 14px;
  margin-bottom: 8px;
  border-left: 3px solid var(--primary);
  background: #fafafa;
  border-radius: 0 8px 8px 0;
}
.mn-detail-action-check {
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  user-select: none;
}

/* 响应式 */
@media (max-width: 600px) {
  .mn-detail-overlay .mn-full-editor-container {
    width: 100vw;
    height: 100vh;
    border-radius: 0;
    max-width: 100vw;
  }
}
.mn-action-item .file-item-sm {
  margin: 2px;
}

/* 响应式：小屏全屏编辑器铺满 */
@media (max-width: 600px) {
  .mn-full-editor {
    width: 100vw;
    height: 100vh;
    border-radius: 0;
    max-width: 100vw;
  }
  .mn-full-editor-body { padding: 12px; }
  .mn-full-editor-header { padding: 10px 12px; }
}

/* ===== 统计详情覆盖层 ===== */
.mn-stats-detail-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.5);
  z-index: 10002;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mn-stats-detail-container {
  width: 90vw;
  max-width: 700px;
  max-height: 85vh;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: white;
  box-shadow: 0 8px 40px rgba(0,0,0,0.25);
}
.mn-stats-detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid #eee;
  background: #f8f9fa;
}
.mn-stats-detail-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}
.mn-stats-detail-body {
  padding: 16px 20px;
  overflow-y: auto;
  flex: 1;
}
.mn-stats-detail-item {
  padding: 12px 14px;
  border-radius: 8px;
  background: #f8f9fa;
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1.5;
}
.mn-stats-detail-item:last-child { margin-bottom: 0; }
.mn-stats-detail-item .item-title {
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 4px;
}
.mn-stats-detail-item .item-meta {
  font-size: 12px;
  color: var(--text-light);
}
.mn-stats-detail-item .item-badge {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 4px;
  font-size: 11px;
  margin-left: 6px;
}
.mn-stats-detail-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-light);
  font-size: 14px;
}
