/* 内容编辑模式样式 —— 仅在线共享版加载 */
.ce-button {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9999;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid #ffffff59;
  border-radius: 999px;
  color: #f7f3e9;
  background: linear-gradient(135deg, #1c665d, #2e8177);
  font: 700 13px/1.4 "Microsoft YaHei", sans-serif;
  letter-spacing: .04em;
  cursor: pointer;
  box-shadow: 0 10px 26px #05201c38, inset 0 1px #ffffff42;
  user-select: none;
}
.ce-button:hover { filter: brightness(1.06); }
.ce-button.is-active { background: linear-gradient(135deg, #a45f46, #c97e5c); }

.ce-banner {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 9999;
  display: none;
  align-items: center;
  gap: 12px;
  max-width: min(92vw, 640px);
  padding: 10px 16px;
  border: 1px solid #ffffff59;
  border-radius: 16px;
  color: #f7f3e9;
  background: #0a302aee;
  font: 500 13px/1.5 "Microsoft YaHei", sans-serif;
  box-shadow: 0 12px 30px #00161344;
}
.ce-banner.is-visible { display: flex; }
.ce-banner button {
  flex: none;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid #ffffff47;
  border-radius: 10px;
  color: #f2eee2;
  background: #ffffff1c;
  font: 700 12px/1 "Microsoft YaHei", sans-serif;
  cursor: pointer;
}
.ce-banner button:hover { background: #ffffff2e; }

body.ce-editing [data-eid] {
  outline: 1.5px dashed #d9aa62;
  outline-offset: 2px;
  border-radius: 4px;
  cursor: text;
  transition: background-color .15s;
  min-height: 1em;
}
body.ce-editing [data-eid]:hover { background: #d9aa6a26; }
body.ce-editing [data-eid]:focus {
  outline: 1.5px solid #a45f46;
  outline-offset: 2px;
  background: #a45f4612;
}
body.ce-editing a { pointer-events: none; }
body.ce-editing summary { cursor: text; }

.ce-toast {
  position: fixed;
  left: 50%;
  bottom: 78px;
  transform: translateX(-50%) translateY(6px);
  z-index: 10000;
  padding: 8px 16px;
  border-radius: 999px;
  color: #f7f3e9;
  background: #17483fee;
  border: 1px solid #ffffff3d;
  font: 600 12px/1.4 "Microsoft YaHei", sans-serif;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
}
.ce-toast.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); }
.ce-toast.is-error { background: #8a3b2ef2; }
