/* 「关于本站」弹窗所见即所得编辑（2026-11-18）：工具栏 + 编辑态 */
#modal-about.ab2.ab2-editing { z-index: 2147483100 !important; }
#modal-about.ab2-editing .about-card { max-width: 820px; width: min(820px, calc(100vw - 24px)); }
#modal-about.ab2-editing .modal-head { display: none; }
#modal-about.ab2-editing .ab2-acts { pointer-events: none; opacity: .75; }
#modal-about.ab2-editing .ab2-sep { display: none; }
#modal-about.ab2-editing #hub-about-body { outline: none; min-height: 120px; caret-color: #4c3fd3; }
#modal-about.ab2-editing #hub-about-body:focus-within .ab2-sec:focus-within { box-shadow: 0 0 0 2px rgba(76, 63, 211, .28), 0 6px 20px rgba(40, 30, 120, .06); }
#modal-about.ab2-editing #hub-about-body a { cursor: text; }
#modal-about.ab2-editing .ab2-ic { user-select: none; }
#modal-about.ab2-editing .ab2-rail { top: 112px; }
#modal-about.abe-painting #hub-about-body, #modal-about .abe-painting #hub-about-body { cursor: copy; }
#modal-about .about-card.abe-painting #hub-about-body { cursor: copy; }

.abe-bar {
  flex: none; position: relative; z-index: 7;
  padding: 8px 10px 6px; background: #1f1b45; color: #e9e6ff;
  font: 13px/1.2 "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", system-ui, sans-serif;
  box-shadow: 0 6px 18px rgba(20, 14, 60, .25);
}
.abe-row { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.abe-title { display: inline-flex; align-items: center; gap: 4px; margin-right: 4px; white-space: nowrap; }
.abe-title b { font-weight: 800; }
.abe-sep { width: 1px; height: 22px; background: rgba(255, 255, 255, .18); margin: 0 3px; }
.abe-grow { flex: 1 1 8px; }
.abe-bar button, .abe-bar select, .abe-colorwrap {
  height: 32px; min-width: 32px; padding: 0 8px; border: 0; border-radius: 9px; cursor: pointer;
  font: inherit; color: #e9e6ff; background: rgba(255, 255, 255, .09);
  display: inline-flex; align-items: center; justify-content: center; gap: 3px; white-space: nowrap;
}
.abe-bar select { padding: 0 6px; appearance: auto; }
.abe-bar select option { color: #1d1b29; background: #fff; }
.abe-bar button:hover:not(:disabled), .abe-bar select:hover, .abe-colorwrap:hover { background: rgba(255, 255, 255, .18); }
.abe-bar button:disabled { opacity: .35; cursor: default; }
.abe-bar button.on { background: #ffd99a; color: #2a1f5c; }
.abe-bar button.b { font-weight: 900; }
.abe-bar button.i { font-style: italic; font-family: Georgia, serif; }
.abe-bar button.u { text-decoration: underline; }
.abe-bar button.s { text-decoration: line-through; }
.abe-colorwrap { position: relative; font-weight: 900; }
.abe-colordot { width: 14px; height: 4px; border-radius: 2px; position: absolute; left: 50%; bottom: 5px; margin-left: -7px; background: #000; box-shadow: 0 0 0 1px rgba(255, 255, 255, .6); }
.abe-colorwrap span { transform: translateY(-2px); }
.abe-color { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; border: 0; padding: 0; }
.abe-painter.on { animation: abe-blink 1s ease-in-out infinite; }
@keyframes abe-blink { 50% { box-shadow: 0 0 0 3px rgba(255, 217, 154, .45); } }
.abe-bar .abe-primary { background: linear-gradient(135deg, #ffe0a6, #f6bb63); color: #2a1f5c; font-weight: 800; padding: 0 16px; }
.abe-bar .abe-primary:hover { background: linear-gradient(135deg, #ffe8bd, #f8c679) !important; }
.abe-bar .abe-ghost { background: transparent; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.abe-row2 { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.abe-row2 button { height: 30px !important; }
.abe-info {
  display: flex; min-width: 0; align-items: center; gap: 6px; flex-wrap: wrap; min-height: 18px;
  font-size: 12px; color: rgba(233, 230, 255, .78);
}
.abe-info b { padding: 1px 8px; border-radius: 999px; background: rgba(255, 217, 154, .18); color: #ffd99a; font-weight: 700; }
.abe-sw { width: 12px; height: 12px; border-radius: 4px; flex: none; box-shadow: 0 0 0 1px rgba(255, 255, 255, .5); }

@media (max-width: 640px) {
  .abe-bar { padding: 8px 8px 6px; }
  .abe-row { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .abe-row::-webkit-scrollbar { display: none; }
  .abe-bar button span, .abe-title { display: none; }
  .abe-info { font-size: 11px; }
  .abe-row > * { flex: none; }
  .abe-bar select.abe-block { min-width: 86px; }
  #modal-about.ab2-editing .about-card { width: 100%; }
}

/* 可视化编辑：关于本站按钮上的「编辑弹窗」角标 */
html.hve-on #btn-copy-page { position: relative; }
.hve-about-badge {
  position: absolute; top: -10px; right: -6px; z-index: 3; padding: 2px 8px; border-radius: 999px;
  font: 700 11px/1.5 "PingFang SC", "Microsoft YaHei UI", system-ui, sans-serif; color: #2a1f5c;
  background: #ffd99a; box-shadow: 0 4px 10px rgba(20, 14, 60, .3); cursor: pointer; white-space: nowrap;
}
.hve-about-badge:hover { background: #ffe8bd; }

#abe-toast { position: fixed; z-index: 2147483300; left: 50%; top: 14px; transform: translate(-50%, -8px); padding: 9px 16px; border-radius: 12px; background: #1f1b45; color: #fff; font: 600 13px/1.4 "PingFang SC", "Microsoft YaHei UI", system-ui, sans-serif; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; max-width: calc(100vw - 32px); box-shadow: 0 10px 30px rgba(20, 14, 60, .4); }
#abe-toast.show { opacity: 1; transform: translate(-50%, 0); }
#abe-toast.err { background: #b3261e; }

/* 控制台「页面文字」里的入口 */
.adm-about-edit { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: linear-gradient(135deg, #f3f1fe, #fbf2e1); border: 1px solid #e2defb; }
.adm-about-sum { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: #4a4560; line-height: 1.55; }
.adm-about-sum b { color: #3a2fb0; }
