/* 官网搭建器 — 与 main.css 变量一致 */
.wzdj-page main {
  max-width: 1600px;
  margin: 0 auto;
}

.wzdj-builder {
  display: grid;
  grid-template-columns: minmax(260px, 320px) 1fr;
  gap: 0;
  min-height: calc(100vh - var(--header-h) - 120px);
  max-width: 1600px;
  margin: 0 auto;
  padding: 16px 20px 48px;
}

.wzdj-builder__toolbar {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-bottom: 16px;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.wzdj-builder__toolbar-lead {
  flex: 1;
  min-width: 200px;
}

.wzdj-builder__toolbar-lead h1 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
}

.wzdj-builder__sub {
  margin: 6px 0 0;
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 42rem;
}

.wzdj-builder__sub-link {
  display: inline-block;
  margin-left: 2px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  padding: 2px 6px 3px;
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.95), rgba(34, 211, 238, 0.85));
  box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.35), 0 2px 12px rgba(59, 130, 246, 0.35);
  transition: filter 0.15s ease, transform 0.15s ease;
}

button.wzdj-builder__sub-link {
  font-family: inherit;
  border: none;
  cursor: pointer;
  vertical-align: baseline;
}

.wzdj-builder__sub-link:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.wzdj-builder__sub-link:focus-visible {
  outline: 2px solid rgba(34, 211, 238, 0.8);
  outline-offset: 2px;
}

.wzdj-builder__hint {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
  width: 100%;
}

.wb-btn {
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.wb-btn:hover {
  background: rgba(59, 130, 246, 0.2);
  border-color: rgba(59, 130, 246, 0.45);
}

.wb-btn--primary {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.35), rgba(34, 211, 238, 0.2));
  border-color: rgba(59, 130, 246, 0.5);
}

.wb-btn--ghost {
  background: transparent;
}

/* 左侧组件库 */
.wb-palette {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: calc(100vh - 200px);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(17, 17, 20, 0.85);
  backdrop-filter: blur(8px);
}

.wb-palette__scroll {
  overflow-y: auto;
  padding: 12px;
  flex: 1;
}

.wb-palette__cat {
  margin-bottom: 16px;
}

.wb-palette__cat:last-child {
  margin-bottom: 0;
}

.wb-palette__title {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
  margin: 0 0 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}

.wb-palette-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  margin-bottom: 8px;
  font-size: 0.8125rem;
  color: var(--text);
  background: var(--surface);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  cursor: grab;
  transition: border-color 0.2s, background 0.2s;
}

.wb-palette-item:hover {
  border-color: rgba(59, 130, 246, 0.45);
  background: rgba(59, 130, 246, 0.08);
}

.wb-palette-item:active {
  cursor: grabbing;
}

.wb-palette-item small {
  display: block;
  margin-top: 4px;
  font-size: 0.6875rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* 右侧画布 */
.wb-canvas-wrap {
  display: flex;
  flex-direction: column;
  min-height: 520px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(10, 10, 12, 0.6);
  overflow: hidden;
}

.wb-canvas__label {
  padding: 10px 20px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
  text-align: center;
  line-height: 1.55;
}

.wb-canvas {
  position: relative;
  flex: 1;
  padding: 12px;
  overflow: auto;
  min-height: 560px;
  outline: none;
}

.wb-canvas.wb-canvas--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.875rem;
  padding: 20px;
}

.wb-canvas:not(.wb-canvas--empty) {
  display: block;
}

.wb-drop-hint {
  pointer-events: none;
  text-align: center;
  padding: 24px;
  border: 2px dashed rgba(59, 130, 246, 0.25);
  border-radius: var(--radius);
  max-width: 360px;
}

/* 画布中的块（自由定位 + 四角缩放） */
.wb-block {
  position: absolute;
  margin: 0;
  border: 2px solid transparent;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.wb-block.is-selected {
  border-color: rgba(59, 130, 246, 0.65);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.35);
}

/* 浮动客服：搭建区只保留气泡，无标题栏与四角缩放点 */
.wb-block--float-only {
  border: none !important;
  box-shadow: none !important;
  background: transparent;
}

.wb-block--float-only .wb-block__chrome,
.wb-block--float-only .wb-block__handles {
  display: none !important;
}

.wb-block--float-only .wb-block__inner {
  border: none !important;
  background: transparent !important;
  border-radius: 0 !important;
}

.wb-block--float-only.is-selected {
  border: none !important;
  box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.55);
}

body:not(.wb-preview-mode) .wb-block--float-only .wb-embed-float__fab {
  cursor: grab;
}

body:not(.wb-preview-mode) .wb-block--float-only .wb-embed-float__fab:active {
  cursor: grabbing;
}

.wb-block__chrome {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  margin-bottom: 0;
  flex-shrink: 0;
  background: rgba(59, 130, 246, 0.12);
  border-radius: 8px 8px 0 0;
  font-size: 0.6875rem;
  color: var(--text-muted);
}

.wb-block__chrome span:not(.wb-block__grip) {
  flex: 1;
  min-width: 80px;
  font-weight: 600;
  color: rgba(226, 232, 240, 0.85);
}

.wb-block__grip {
  cursor: grab;
  user-select: none;
  padding: 0 0.35rem;
  opacity: 0.7;
}

.wb-block__grip:active {
  cursor: grabbing;
}

.wb-block.is-dragging {
  opacity: 0.55;
}

.wb-block__chrome button {
  padding: 4px 8px;
  font-size: 0.6875rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  cursor: pointer;
}

.wb-block__chrome button:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: rgba(239, 68, 68, 0.45);
}

.wb-block__chrome button[data-act="zup"]:hover,
.wb-block__chrome button[data-act="zdown"]:hover {
  background: rgba(59, 130, 246, 0.25);
  border-color: rgba(59, 130, 246, 0.45);
}

.wb-block__handles {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
}

.wb-block__handle {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: var(--cyan);
  border: 1px solid rgba(0, 0, 0, 0.4);
  pointer-events: none;
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.35);
  opacity: 0;
  transition: opacity 0.15s;
}

.wb-block.is-selected .wb-block__handle {
  opacity: 1;
  pointer-events: auto;
}

.wb-block__handle--nw {
  top: -6px;
  left: -6px;
  cursor: nwse-resize;
}

.wb-block__handle--ne {
  top: -6px;
  right: -6px;
  cursor: nesw-resize;
}

.wb-block__handle--sw {
  bottom: -6px;
  left: -6px;
  cursor: nesw-resize;
}

.wb-block__handle--se {
  bottom: -6px;
  right: -6px;
  cursor: nwse-resize;
}

.wb-block__inner {
  flex: 1;
  min-height: 0;
  width: 100%;
  margin: 0;
  overflow: auto;
  border-radius: 0 0 8px 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-top: none;
  box-sizing: border-box;
}

.wb-block__inner--overflow-visible {
  overflow: visible !important;
}

.wb-editable {
  outline: none;
}

.wb-editable:focus {
  box-shadow: inset 0 0 0 1px rgba(34, 211, 238, 0.45);
}

/* 组件内部通用样式（与首页气质接近） */
.wb-comp {
  padding: 16px 20px;
  color: var(--text);
}

.wb-comp--nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  border-bottom: 1px solid var(--border);
}

.wb-comp__logo {
  font-weight: 800;
  font-size: 1rem;
}

.wb-comp__links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.wb-comp--hero {
  text-align: center;
  padding: 32px 20px;
}

.wb-comp__eyebrow {
  font-size: 0.75rem;
  color: var(--cyan);
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.wb-comp__title {
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 800;
  margin: 0 0 12px;
  line-height: 1.2;
}

.wb-comp__desc {
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 20px;
  font-size: 0.9375rem;
}

.wb-comp__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.wb-comp__btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid rgba(59, 130, 246, 0.45);
  background: rgba(59, 130, 246, 0.2);
}

.wb-comp__btn--ghost {
  background: transparent;
  border-color: var(--border);
}

.wb-comp--section {
  padding: 24px 16px;
}

.wb-comp--btn-single {
  padding: 16px 20px;
  text-align: center;
}

.wb-comp--btn-single .wb-link-slot--btn {
  justify-content: center;
}

.wb-comp--divider {
  padding: 10px 20px;
}

.wb-comp__hr {
  display: block;
  width: 100%;
  border: none;
  height: 1px;
  margin: 0;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

.wb-comp__h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 8px;
}

.wb-comp__sub {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin: 0 0 20px;
}

.wb-comp--grid3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}

.wb-comp__card {
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}

.wb-comp__card h3 {
  margin: 0 0 8px;
  font-size: 0.9375rem;
}

.wb-comp__card p {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.wb-comp--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: center;
}

@media (max-width: 640px) {
  .wb-comp--split {
    grid-template-columns: 1fr;
  }
}

.wb-comp__ph {
  min-height: 120px;
  border-radius: var(--radius);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  background: rgba(59, 130, 246, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.75rem;
}

/* 腹部 · 轮播 */
.wb-comp--carousel {
  position: relative;
  padding: 0;
}

.wb-carousel__viewport {
  overflow: hidden;
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
}

.wb-carousel__track {
  display: flex;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.wb-carousel__slide {
  box-sizing: border-box;
  padding: 12px 16px 20px;
}

.wb-carousel__ph {
  min-height: 160px;
  border-radius: 10px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  background: linear-gradient(145deg, rgba(59, 130, 246, 0.12), rgba(34, 211, 238, 0.06));
  padding: 12px;
  color: var(--text-muted);
  font-size: 0.8125rem;
}

.wb-carousel__ph:not(.wb-allow-img) {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
}

/* 可上传图位 */
.wb-allow-img {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}

.wb-allow-img__body {
  flex: 1;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px;
  border-radius: 8px;
  border: 1px dashed rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.15);
}

.wb-carousel__ph.wb-allow-img .wb-allow-img__body {
  min-height: 100px;
}

.wb-allow-img__img {
  display: block;
  width: 100%;
  max-height: 280px;
  object-fit: contain;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
}

.wb-img-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.wb-img-btn {
  font-family: inherit;
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(59, 130, 246, 0.15);
  color: var(--text);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.wb-img-btn:hover {
  background: rgba(59, 130, 246, 0.28);
  border-color: rgba(59, 130, 246, 0.45);
}

.wb-img-btn--clear {
  background: rgba(255, 255, 255, 0.06);
}

.wb-img-btn--clear:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.35);
}

.wb-img-file {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
}

/* 可配置链接（导航 / 按钮 / 页脚） */
.wb-link-slot {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  vertical-align: middle;
  max-width: 100%;
}

.wb-comp__links .wb-link-slot {
  margin: 0 2px;
}

.wb-footer-nav-links .wb-link-slot {
  margin: 0 4px;
}

.wb-comp__actions .wb-link-slot--btn {
  margin: 0 6px;
}

.wb-link-slot__row {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.wb-comp__links .wb-link-slot__a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
}

.wb-comp__links .wb-link-slot__a:hover {
  color: var(--cyan);
}

.wb-footer-nav-links .wb-link-slot__a {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-decoration: none;
}

.wb-foot-ul {
  margin: 0;
  padding-left: 1.1em;
}

.wb-foot-ul .wb-link-slot__a {
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-decoration: none;
}

.wb-foot-ul .wb-link-slot__a:hover {
  color: var(--cyan);
}

.wb-link-slot__gear {
  font-family: inherit;
  font-size: 0.625rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: rgba(59, 130, 246, 0.12);
  color: var(--text-muted);
  cursor: pointer;
  flex-shrink: 0;
}

.wb-link-slot__gear:hover {
  color: var(--text);
  border-color: rgba(59, 130, 246, 0.45);
}

.wb-link-slot__panel {
  margin-top: 6px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  z-index: 3;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.wb-link-slot__url {
  flex: 1;
  min-width: 160px;
  max-width: 100%;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 0.75rem;
  font-family: inherit;
}

.wb-link-slot__nb {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.6875rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.wb-link-slot__ok {
  font-family: inherit;
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid rgba(59, 130, 246, 0.45);
  background: rgba(59, 130, 246, 0.2);
  color: var(--text);
  cursor: pointer;
}

.wb-link-slot__ok:hover {
  background: rgba(59, 130, 246, 0.35);
}

.wb-link-slot--btn .wb-link-slot__row {
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.wb-link-slot--btn .wb-comp__btn {
  text-decoration: none;
  cursor: default;
}

body.wb-preview-mode .wb-link-slot__gear,
body.wb-preview-mode .wb-link-slot__panel {
  display: none !important;
}

/* 腹部组件：嵌入式浮动客服（仅气泡 + 展开面板，无占位框与二维码） */
.wb-embed-float.wb-comp {
  position: relative;
  padding: 0;
  margin: 0;
  min-width: 52px;
  min-height: 52px;
}

.wb-embed-float__fab {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(145deg, rgba(59, 130, 246, 0.95), rgba(34, 211, 238, 0.75));
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s;
}

.wb-embed-float__fab:hover {
  transform: scale(1.05);
}

.wb-embed-float__fab[aria-expanded="true"] {
  background: linear-gradient(145deg, rgba(34, 211, 238, 0.85), rgba(59, 130, 246, 0.7));
}

.wb-embed-float__icon {
  width: 24px;
  height: 24px;
}

.wb-embed-float__panel {
  position: absolute;
  right: 0;
  bottom: 58px;
  width: min(260px, calc(100vw - 48px));
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(17, 17, 20, 0.96);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  z-index: 20;
}

.wb-embed-float__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text);
}

.wb-embed-float__head-title {
  font-weight: 700;
}

body:not(.wb-preview-mode) .wb-embed-float__head {
  cursor: grab;
}

body:not(.wb-preview-mode) .wb-embed-float__head .wb-embed-float__close {
  cursor: pointer;
}

.wb-embed-float__close {
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

.wb-embed-float__close:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #fecaca;
}

.wb-embed-float__body-display,
.wb-embed-float__body-edit {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

body:not(.wb-preview-mode) .wb-embed-float__body-display {
  display: none !important;
}

body.wb-preview-mode .wb-embed-float__body-edit {
  display: none !important;
}

.wb-embed-float__row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.wb-embed-float__row--file {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.wb-embed-float__lbl {
  flex-shrink: 0;
}

.wb-embed-float__inp {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  font-size: 0.8125rem;
}

.wb-embed-float__file {
  flex: 1;
  min-width: 120px;
  font-size: 0.6875rem;
  color: var(--text-muted);
}

.wb-embed-float__clear-img {
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  font-size: 0.6875rem;
  cursor: pointer;
}

.wb-embed-float__clear-img:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #fecaca;
}

.wb-embed-float__img-preview-wrap {
  min-height: 0;
}

.wb-embed-float__preview-img {
  max-width: 100%;
  max-height: 120px;
  border-radius: 8px;
  object-fit: contain;
  border: 1px solid var(--border);
}

.wb-embed-float__preview-img[hidden] {
  display: none !important;
}

.wb-embed-float__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
  align-items: center;
}

.wb-embed-float__save {
  flex: 1;
  min-width: 100px;
  padding: 8px 14px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(145deg, rgba(59, 130, 246, 0.9), rgba(34, 211, 238, 0.65));
}

.wb-embed-float__save:hover {
  filter: brightness(1.06);
}

.wb-embed-float__del-block {
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(239, 68, 68, 0.45);
  cursor: pointer;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #fecaca;
  background: rgba(127, 29, 29, 0.35);
}

.wb-embed-float__del-block:hover {
  background: rgba(185, 28, 28, 0.45);
  border-color: rgba(248, 113, 113, 0.55);
}

.wb-embed-float__tel,
.wb-embed-float__mailto {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--text);
  word-break: break-all;
}

.wb-embed-float__tel {
  background: rgba(59, 130, 246, 0.2);
  border: 1px solid rgba(59, 130, 246, 0.35);
}

.wb-embed-float__mailto {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
}

.wb-embed-float__tel:hover,
.wb-embed-float__mailto:hover {
  filter: brightness(1.08);
}

.wb-embed-float__disp-img {
  max-width: 100%;
  border-radius: 8px;
  border: 1px solid var(--border);
  object-fit: contain;
}

.wb-embed-float__empty {
  margin: 0;
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.wb-carousel__cap {
  margin: 10px 0 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-align: center;
}

.wb-carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(10, 10, 12, 0.85);
  color: var(--text);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
}

.wb-carousel__btn:hover {
  background: rgba(59, 130, 246, 0.25);
  border-color: rgba(59, 130, 246, 0.45);
}

.wb-carousel__prev {
  left: 8px;
}

.wb-carousel__next {
  right: 8px;
}

.wb-carousel__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 12px 0 4px;
}

.wb-carousel__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.wb-carousel__dot.is-active {
  background: var(--cyan);
  transform: scale(1.2);
}

.wb-comp--stats {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 16px;
  text-align: center;
}

.wb-comp__stat-num {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--cyan);
}

.wb-comp--cta {
  text-align: center;
  padding: 28px 20px;
  border-radius: var(--radius);
  border: 1px solid rgba(59, 130, 246, 0.25);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), transparent);
}

.wb-comp--quote {
  font-style: italic;
  padding: 20px;
  border-left: 3px solid var(--accent);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 0 8px 8px 0;
}

.wb-comp--form .wb-row {
  margin-bottom: 10px;
}

.wb-comp--form label {
  display: block;
  font-size: 0.75rem;
  margin-bottom: 4px;
  color: var(--text-muted);
}

.wb-comp--form input,
.wb-comp--form textarea {
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  font-family: inherit;
}

.wb-comp--pricing {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.wb-comp__price {
  text-align: center;
  padding: 16px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.wb-comp__price strong {
  display: block;
  font-size: 1.25rem;
  margin: 8px 0;
  color: var(--cyan);
}

.wb-comp--faq details {
  margin-bottom: 8px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.wb-comp--faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.875rem;
}

.wb-comp--footer {
  padding: 20px;
  border-top: 1px solid var(--border);
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.wb-comp--footercols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.wb-comp--footercols ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.wb-comp--footercols li {
  margin-bottom: 6px;
}

.wb-comp__social {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 12px;
}

.wb-comp__dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
}

.wb-comp--topbar {
  font-size: 0.75rem;
  padding: 8px 16px;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  color: var(--text-muted);
}

/* 预览模式 */
body.wb-preview-mode .site-header,
body.wb-preview-mode .site-footer {
  display: none !important;
}

body.wb-preview-mode .wzdj-builder__toolbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  margin: 0;
  border-radius: 0;
}

body.wb-preview-mode .wzdj-builder__sub {
  display: none !important;
}

body.wb-preview-mode #wbBtnClear {
  display: none !important;
}

body.wb-preview-mode .wzdj-builder {
  grid-template-columns: 1fr;
  max-width: none;
  padding: 72px 0 0;
  min-height: 100vh;
}

body.wb-preview-mode .wb-palette {
  display: none;
}

body.wb-preview-mode .wb-canvas-wrap {
  border: none;
  min-height: calc(100vh - 72px);
}

body.wb-preview-mode .wb-block__chrome,
body.wb-preview-mode .wb-block__handles {
  display: none !important;
}

body.wb-preview-mode .wb-img-actions {
  display: none !important;
}

body.wb-preview-mode .wb-block {
  border: none;
  margin: 0;
}

body.wb-preview-mode .wb-block__inner {
  border: none;
  background: transparent;
  height: 100%;
}

body.wb-preview-mode .wb-block__inner--overflow-visible {
  height: auto;
  min-height: 0;
  overflow: visible !important;
}

@media (max-width: 960px) {
  .wzdj-builder {
    grid-template-columns: 1fr;
  }

  .wb-palette {
    max-height: 280px;
  }
}
