/* 站内信共享样式（assets/inbox.js 配套，2026-08-23）
   暖纸系配色跟 site.css 变量走；所有类名 mmi- 前缀，不跟各页面样式打架 */

.mmi-anchor { position: relative; display: inline-flex; align-items: center; }
.mmi-anchor.mmi-fixed { position: fixed; top: 10px; right: 12px; z-index: 9999; }

.mmi-bell {
  position: relative; border: 1px solid var(--line, #ece0cb); background: #fff;
  border-radius: 999px; padding: 6px 12px; font-size: 14px; line-height: 1;
  cursor: pointer; color: var(--ink, #6b5b4a); font-family: inherit;
}
.mmi-bell:hover { border-color: var(--accent, #c08a5a); }

/* 未读徽标：红底感叹号，闪烁提醒 */
.mmi-badge {
  position: absolute; top: -7px; right: -7px; min-width: 16px; height: 16px;
  border-radius: 8px; background: #c0392b; color: #fff; font-size: 11px;
  line-height: 16px; text-align: center; padding: 0 4px; font-weight: 700;
  animation: mmi-blink 1s steps(2, start) infinite; pointer-events: none;
}
@keyframes mmi-blink { 50% { opacity: .2; } }

.mmi-panel {
  position: fixed; top: 52px; right: 12px; z-index: 9999; width: 330px;
  max-width: calc(100vw - 24px); max-height: 72vh; display: flex; flex-direction: column;
  background: #fffdf9; border: 1px solid var(--line, #ece0cb); border-radius: 14px;
  box-shadow: 0 10px 34px rgba(80, 60, 40, .18); overflow: hidden;
  font-size: 13px; color: var(--ink, #6b5b4a);
}
.mmi-panel[hidden] { display: none; }

.mmi-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px; border-bottom: 1px dashed var(--line, #ece0cb);
  font-weight: 600; font-size: 14px;
}
.mmi-head button {
  border: 0; background: none; color: var(--accent, #c08a5a); font-size: 12px;
  cursor: pointer; font-family: inherit; padding: 0;
}

.mmi-list { overflow-y: auto; flex: 1; }
.mmi-empty { text-align: center; color: var(--ink-faint, #bfb198); padding: 30px 0; font-size: 12.5px; }

.mmi-msg { border-bottom: 1px dashed var(--line, #ece0cb); padding: 10px 14px; cursor: pointer; }
.mmi-msg:hover { background: rgba(192, 138, 90, .05); }
.mmi-msg.unread { background: var(--accent-soft, rgba(192, 138, 90, .13)); }
.mmi-msg-top { display: flex; align-items: center; gap: 6px; }
.mmi-kind {
  flex-shrink: 0; font-size: 11px; border-radius: 6px; padding: 1px 7px;
  background: #f1ede7; color: var(--ink-dim, #97876f);
}
.mmi-kind.redeem { background: var(--accent-soft, rgba(192, 138, 90, .13)); color: #8a6a44; border: 1px solid rgba(192, 138, 90, .4); }
.mmi-kind.help_reply { background: #e8f0e4; color: #4a7d4f; }
.mmi-kind.payment_notice { background: #f6e3e1; color: #a0392f; }
.mmi-dot { flex-shrink: 0; width: 7px; height: 7px; border-radius: 50%; background: #c0392b; }
.mmi-title { flex: 1; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mmi-title:empty::before { content: "（无标题）"; color: var(--ink-faint, #bfb198); font-weight: 400; }
.mmi-time { flex-shrink: 0; font-size: 11px; color: var(--ink-faint, #bfb198); font-variant-numeric: tabular-nums; }
.mmi-body { display: none; margin-top: 7px; line-height: 1.8; white-space: pre-wrap; word-break: break-word; color: var(--ink, #6b5b4a); }
.mmi-msg.open .mmi-body { display: block; }

.mmi-foot { border-top: 1px dashed var(--line, #ece0cb); padding: 10px 14px; text-align: center; }
.mmi-help {
  border: 1px solid var(--line, #ece0cb); background: #fff; border-radius: 999px;
  padding: 7px 16px; font-size: 12.5px; cursor: pointer; color: var(--ink-dim, #97876f); font-family: inherit;
}
.mmi-help:hover { border-color: var(--accent, #c08a5a); color: var(--accent, #c08a5a); }

/* 「需要帮助？」报告表单 */
.mmi-report { padding: 12px 14px; overflow-y: auto; }
.mmi-report textarea {
  width: 100%; box-sizing: border-box; min-height: 96px; resize: vertical;
  border: 1px solid var(--line, #ece0cb); border-radius: 10px; padding: 10px 12px;
  font-size: 13px; font-family: inherit; color: var(--ink, #6b5b4a); background: #fff; line-height: 1.7;
}
.mmi-report .mmi-tip { font-size: 11.5px; color: var(--ink-faint, #bfb198); margin: 6px 0; line-height: 1.7; }
.mmi-thumbs { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0; }
.mmi-thumbs .mmi-thumb { position: relative; width: 52px; height: 52px; border-radius: 8px; overflow: hidden; background: #f3f1ee; }
.mmi-thumbs .mmi-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mmi-thumbs .mmi-thumb button {
  position: absolute; top: 2px; right: 2px; border: 0; border-radius: 50%; width: 16px; height: 16px;
  line-height: 16px; padding: 0; font-size: 10px; cursor: pointer; background: rgba(0, 0, 0, .55); color: #fff;
}
.mmi-report .mmi-ops { display: flex; gap: 8px; margin-top: 8px; }
.mmi-report .mmi-ops button {
  flex: 1; border-radius: 10px; padding: 9px 0; font-size: 13px; cursor: pointer; font-family: inherit;
}
.mmi-report .mmi-send { border: 0; background: var(--accent, #c08a5a); color: #fff; font-weight: 600; }
.mmi-report .mmi-send:disabled { opacity: .55; cursor: default; }
.mmi-report .mmi-back { border: 1px solid var(--line, #ece0cb); background: #fff; color: var(--ink-dim, #97876f); }
.mmi-ok { color: #4a7d4f; text-align: center; padding: 26px 10px; line-height: 2; }
.mmi-err { color: #c0453f; font-size: 12px; margin-top: 6px; }
