/* 极点 · 浮动按钮统一 + 深色模式修复 + 整体优化 */

/* ===== 隐藏重复的客服按钮，统一使用侧边工具栏 ===== */
.support-launch,
.service-float,
.service-btn {
  display: none !important;
}

/* 侧边工具栏位置优化，避免遮挡 */
.qy-side-dock {
  right: 16px !important;
  bottom: 24px !important;
  z-index: 95 !important;
  gap: 10px !important;
}

.qy-dock-btn {
  width: 48px !important;
  height: 48px !important;
  border-radius: 14px !important;
}

/* 客服按钮特殊样式 */
.qy-dock-support {
  background: linear-gradient(135deg, #10b981, #059669) !important;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35) !important;
}

.qy-dock-support:hover {
  background: linear-gradient(135deg, #34d399, #10b981) !important;
  box-shadow: 0 10px 28px rgba(16, 185, 129, 0.45) !important;
}

.qy-dock-support::after {
  background: #fbbf24 !important;
  border-color: #fff !important;
}

/* ===== 深色模式背景与对比度修复 ===== */
.dark body,
.dark .of-site {
  background: #0f172a !important;
  color: #e2e8f0 !important;
}

.dark .of-main,
.dark .container {
  background: transparent !important;
}

/* FAQ / 你可能还想知道 区域 */
.dark .of-faq,
.dark [class*="faq"],
.dark .of-section {
  background: transparent !important;
}

.dark .of-faq-item,
.dark details,
.dark .of-empty {
  background: #1e293b !important;
  border-color: #334155 !important;
  color: #e2e8f0 !important;
}

.dark .of-faq-item summary,
.dark details summary {
  color: #f1f5f9 !important;
}

.dark .of-faq-item p,
.dark details p,
.dark .of-empty p {
  color: #94a3b8 !important;
}

/* 导航深色 */
.dark .of-nav,
.dark .sf-nav,
.dark .nav {
  background: rgba(15, 23, 42, 0.95) !important;
  border-bottom-color: #1e293b !important;
}

.dark .of-nav button,
.dark .sf-nav button,
.dark .navlinks button {
  color: #cbd5e1 !important;
}

.dark .of-nav .active,
.dark .sf-nav .active,
.dark .navlinks button.active {
  background: #1e3a5f !important;
  color: #60a5fa !important;
}

/* 卡片深色 */
.dark .card,
.dark .of-product-card,
.dark .of-card,
.dark .panel,
.dark .sidebar-card,
.dark .of-docs-grid article,
.dark .of-customer-layout aside {
  background: #1e293b !important;
  border-color: #334155 !important;
  color: #e2e8f0 !important;
}

/* 按钮深色适配 */
.dark .btn.ghost,
.dark .ghost {
  background: #334155 !important;
  color: #e2e8f0 !important;
  border-color: #475569 !important;
}

.dark .btn.primary,
.dark .primary {
  background: #3b82f6 !important;
  color: #fff !important;
}

/* 输入框深色 */
.dark input,
.dark select,
.dark textarea {
  background: #0f172a !important;
  border-color: #334155 !important;
  color: #e2e8f0 !important;
}

/* 试玩台深色 */
.dark .sf-site,
.dark .sf-canvas,
.dark .sf-editor-tools,
.dark .sf-inspector {
  background: #1e293b !important;
  border-color: #334155 !important;
  color: #e2e8f0 !important;
}

/* ===== 在线授权 / 客服面板优化 ===== */
.qy-support-box,
.support-window {
  border-radius: 16px !important;
  box-shadow: 0 20px 50px rgba(0,0,0,0.2) !important;
  border: 1px solid #e2e8f0 !important;
}

.dark .qy-support-box,
.dark .support-window {
  background: #1e293b !important;
  border-color: #334155 !important;
  color: #e2e8f0 !important;
}

/* ===== 整体间距与对齐优化 ===== */
.of-main {
  padding-top: 24px !important;
  padding-bottom: 100px !important;
}

.container {
  padding-bottom: 100px !important;
}

/* 底部安全区 */
@media (max-width: 768px) {
  .qy-side-dock {
    right: 12px !important;
    bottom: 16px !important;
  }
  .of-main, .container {
    padding-bottom: 120px !important;
  }
}

/* ===== 授权方案页面优化 ===== */
.of-license-card,
.of-entitlement-card {
  background: linear-gradient(135deg, #1e3a5f 0%, #0f172a 100%) !important;
}

.dark .of-license-card,
.dark .of-entitlement-card {
  background: linear-gradient(135deg, #1e3a5f 0%, #0f172a 100%) !important;
}
