/* 多功能白板 — 页面样式。变量沿用 site.css。 */

.wb2-page main { max-width: 1200px; }

.wb2-app {
  border: 1px solid var(--line, #e3e6ea);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
}

.wb2-tools, .wb2-props {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.6rem;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--line, #e3e6ea);
  background: var(--card, #fafbfc);
}

.wb2-t, .wb2-b {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 34px; height: 34px;
  padding: 0 0.55rem;
  border: 1px solid var(--line, #e3e6ea);
  border-radius: 8px;
  background: #fff;
  color: inherit;
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}
.wb2-t:hover, .wb2-b:hover { border-color: var(--accent, #1971c2); }
.wb2-t[aria-pressed="true"] { background: var(--accent, #1971c2); color: var(--accent-text, #fff); border-color: var(--accent, #1971c2); }
.wb2-primary { background: var(--accent, #1971c2); color: var(--accent-text, #fff); border-color: var(--accent, #1971c2); font-weight: 600; }

.wb2-colors { display: flex; gap: 0.35rem; margin-right: 0.4rem; }
.wb2-c {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 2px solid transparent;
  background: var(--pc);
  cursor: pointer;
  padding: 0;
  box-shadow: inset 0 0 0 3px #fff;
}
.wb2-c.active { border-color: var(--accent, #1971c2); }

.wb2-prop { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.85rem; }
.wb2-prop select {
  font: inherit; font-size: 0.85rem;
  min-height: 30px;
  border: 1px solid var(--line, #e3e6ea);
  border-radius: 7px;
  background: #fff;
  padding: 0 0.3rem;
}

.wb2-stage { position: relative; height: min(66vh, 620px); touch-action: none; overflow: hidden; }
.wb2-stage canvas { display: block; width: 100%; height: 100%; }
.wb2-editor {
  position: absolute;
  z-index: 5;
  min-width: 120px;
  border: 1.5px dashed var(--accent, #1971c2);
  border-radius: 4px;
  background: rgba(255,255,255,.92);
  font-size: 22px;
  padding: 2px 4px;
  outline: none;
}

.wb2-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-top: 1px solid var(--line, #e3e6ea);
  background: var(--card, #fafbfc);
}
.wb2-foot-l, .wb2-foot-r { display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; }
.wb2-zoom { min-width: 3.2em; text-align: center; font-size: 0.82rem; color: var(--muted, #6b7280); }

@media (max-width: 640px) {
  .wb2-stage { height: min(58vh, 480px); }
  .wb2-t { min-width: 30px; height: 30px; }
}
