/* ============================================================
   TinyMCE 编辑器 DZ 论坛 2006 经典风格皮肤（Discuz! 5.x 发帖框）
   视觉基准：经典蓝 #2b5897 / 边框浅蓝灰 #b7c4d3 / 工具栏浅蓝底 #eef3fa
             正文区白底黑字宋体 12px / hover 浅蓝 #d5e8f7
   作用范围：.tox（TinyMCE 7 UI 前缀），后台与前台编辑器共用
   ============================================================ */

/* ---------- 整体容器：浅色细边框，去掉现代阴影圆角 ---------- */
.tox.tox-tinymce {
  border: 1px solid #b7c4d3 !important;
  background: #fff !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  font-family: SimSun, '宋体', Tahoma, sans-serif !important;
  font-size: 12px !important;
}

/* ---------- 工具栏：浅蓝底 + 细分隔线 ---------- */
.tox .tox-toolbar,
.tox .tox-toolbar__overflow,
.tox .tox-toolbar__primary {
  background: #eef3fa !important;
  background-image: none !important;
  border: 0 !important;
  border-bottom: 1px solid #c8d4e0 !important;
  padding: 3px !important;
}
.tox .tox-toolbar__group {
  padding: 0 1px !important;
  border: 0 !important;
}

/* 工具按钮：小尺寸扁平图标，hover 浅蓝高亮（DZ 经典小图标风） */
.tox .tox-tbtn {
  background: transparent !important;
  color: #333 !important;
  border: 1px solid transparent !important;
  border-radius: 2px !important;
  width: 22px !important;
  height: 22px !important;
  font-family: SimSun, '宋体', sans-serif !important;
  box-shadow: none !important;
}
.tox .tox-tbtn:hover:not(:disabled) {
  background: #d5e8f7 !important;
  border-color: #9cbce0 !important;
}
.tox .tox-tbtn:active:not(:disabled) {
  background: #c3ddf4 !important;
}
.tox .tox-tbtn--enabled {
  background: #d5e8f7 !important;
  border-color: #9cbce0 !important;
}
.tox .tox-tbtn svg {
  fill: #333 !important;
}

/* 中文文字按钮：自动宽度（text 按钮内部为 .tox-tbtn__select-label） */
.tox .tox-tbtn:has(.tox-tbtn__select-label) {
  width: auto !important;
  padding: 0 8px !important;
  font-size: 12px !important;
}

/* 文字按钮与下拉区分：下拉带 aria-haspopup（白底细框），纯文字按钮透明底随 hover 高亮 */
.tox .tox-tbtn--select:not([aria-haspopup]) {
  background: transparent !important;
  border-color: transparent !important;
}
.tox .tox-tbtn--select:not([aria-haspopup]):hover {
  background: #d5e8f7 !important;
  border-color: #9cbce0 !important;
}
.tox .tox-tbtn--select:not([aria-haspopup]):active,
.tox .tox-tbtn--select:not([aria-haspopup]).tox-tbtn--enabled {
  background: #c3ddf4 !important;
  border-color: #9cbce0 !important;
}

/* 带文字的下拉按钮（字体/字号/颜色） */
.tox .tox-tbtn--select,
.tox .tox-tbtn--bespoke {
  background: #fff !important;
  color: #333 !important;
  border-color: #b7c4d3 !important;
  height: 22px !important;
}

/* ---------- 下拉面板 / 菜单：白底细框，选中经典蓝 ---------- */
.tox .tox-menu,
.tox .tox-collection {
  background: #fff !important;
  border: 1px solid #b7c4d3 !important;
  border-radius: 0 !important;
  box-shadow: 2px 2px 6px rgba(0, 0, 0, .25) !important;
}
.tox .tox-collection__item {
  color: #333 !important;
  border-radius: 0 !important;
  font-family: SimSun, '宋体', sans-serif !important;
  font-size: 12px !important;
}
.tox .tox-collection__item--active {
  background: #2b5897 !important;
  color: #fff !important;
}
.tox .tox-collection__item svg {
  fill: #333 !important;
}
.tox .tox-collection__item--active svg {
  fill: #fff !important;
}
.tox .tox-collection--list .tox-collection__group {
  border: 0 !important;
}

/* ---------- 对话框：白底 + DZ 经典蓝标题栏 ---------- */
.tox .tox-dialog {
  background: #fff !important;
  border: 1px solid #2b5897 !important;
  border-radius: 0 !important;
  box-shadow: 3px 3px 8px rgba(0, 0, 0, .35) !important;
}
.tox .tox-dialog__header {
  background: #2b5897 !important;
  background-image: none !important;
  padding: 5px 10px !important;
  border: 0 !important;
}
.tox .tox-dialog__title {
  color: #fff !important;
  font-family: SimSun, '宋体', sans-serif !important;
  font-size: 12px !important;
}
.tox .tox-dialog__body,
.tox .tox-dialog__body-content {
  background: #fff !important;
  color: #333 !important;
}
.tox .tox-dialog__footer {
  background: #f5f8fb !important;
  border: 0 !important;
}
.tox .tox-dialog__body-iframe {
  background: #fff !important;
}
.tox .tox-label,
.tox .tox-toolbar__label {
  color: #333 !important;
}

/* 输入控件 */
.tox .tox-textfield,
.tox .tox-textarea,
.tox .tox-listbox,
.tox .tox-selectfield select {
  background: #fff !important;
  color: #333 !important;
  border: 1px solid #b7c4d3 !important;
  border-radius: 0 !important;
  font-family: SimSun, '宋体', sans-serif !important;
  font-size: 12px !important;
}

/* 对话框按钮：主按钮 DZ 经典蓝、次按钮浅灰 */
.tox .tox-button,
.tox .tox-button--primary {
  background: #2b5897 !important;
  color: #fff !important;
  border: 1px solid #1e3f6b !important;
  border-radius: 2px !important;
  font-family: SimSun, '宋体', sans-serif !important;
  font-size: 12px !important;
  text-transform: none !important;
  box-shadow: none !important;
}
.tox .tox-button:hover,
.tox .tox-button--primary:hover {
  background: #3a6db5 !important;
  box-shadow: none !important;
}
.tox .tox-button--secondary {
  background: #f0f0f0 !important;
  color: #333 !important;
  border: 1px solid #b7c4d3 !important;
}
.tox .tox-button--secondary:hover {
  background: #e5e5e5 !important;
}

/* ---------- 快捷工具条（选中文字浮条） ---------- */
.tox .tox-pop__dialog {
  background: #eef3fa !important;
  border: 1px solid #b7c4d3 !important;
  border-radius: 0 !important;
  box-shadow: 2px 2px 6px rgba(0, 0, 0, .25) !important;
}

/* ---------- 通知条 ---------- */
.tox .tox-notification {
  background: #fff !important;
  color: #333 !important;
  border: 1px solid #b7c4d3 !important;
  border-radius: 0 !important;
}

/* 颜色选择器面板 */
.tox .tox-swatches__picker-btn,
.tox .tox-color-input {
  background: #fff !important;
  border: 1px solid #b7c4d3 !important;
  border-radius: 0 !important;
}
