/* 统一站点外壳：导航、页脚与移动端菜单 */
html { scroll-behavior: smooth; }
#trial { scroll-margin-top: 86px; }
.header .navbar { min-height: 72px; height: auto; }
.logo { display: inline-flex; align-items: center; flex-shrink: 0; }
.logo:hover { opacity: .9; }
.hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(0, 102, 204, .18);
  border-radius: 10px;
  background: rgba(255, 255, 255, .92);
  color: var(--primary-color, #0066cc);
  cursor: pointer;
}
.nav-link.active { color: var(--primary-color, #0066cc); }
.nav-link.active::after { width: 100%; }
.site-footer { background: #222b35; color: #fff; padding: 56px 0 28px; margin-top: 50px; }
.site-footer.no-margin { margin-top: 0; }
.footer-main { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; margin-bottom: 36px; }
.footer-brand h3, .footer-contact h4 { margin-bottom: 14px; }
.footer-brand p, .footer-contact p { color: #c5ccd3; margin: 4px 0; }
.footer-contact a:hover, .footer-bottom a:hover { color: #61b8ff; }
.footer-bottom { padding-top: 20px; border-top: 1px solid #3b4652; color: #9da8b3; text-align: center; }
.icon { display: inline-flex; align-items: center; justify-content: center; }
.ck-editor__editable_inline { min-height: 320px; }
.editor-status { margin-top: 8px; color: #667085; font-size: 14px; }
.local-demo-placeholder { margin: 20px 0; padding: 36px 24px; border: 1px solid #dce9f5; border-radius: 12px; background: linear-gradient(135deg,#f4f9ff,#e9f4ff); text-align: center; color: #456; }
@media (max-width: 768px) {
  .header .navbar { min-height: 64px; }
  .hamburger { display: inline-flex !important; position: relative; z-index: 1002; }
  .nav-menu {
    display: none !important;
    position: absolute;
    top: calc(100% + 8px);
    left: 16px;
    right: 16px;
    z-index: 1001;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    flex-direction: column;
    align-items: stretch !important;
    gap: 0 !important;
    padding: 12px;
    border: 1px solid rgba(0, 102, 204, .12);
    border-radius: 14px;
    background: rgba(255,255,255,.98);
    box-shadow: 0 18px 50px rgba(20,45,75,.18);
  }
  .nav-menu.is-open { display: flex !important; }
  .nav-item { margin: 0 !important; width: 100%; }
  .nav-link { display: flex !important; align-items: center; justify-content: space-between; width: 100%; padding: 12px 14px !important; color: #263442 !important; border-radius: 8px; }
  .nav-link.btn { margin: 4px 0; justify-content: center; }
  .nav-link:hover { background: #f0f7ff; }
  .nav-link::after { display: none; }
  .dropdown {
    position: static !important;
    display: none !important;
    width: 100% !important;
    min-width: 0 !important;
    padding: 4px 0 8px 14px !important;
    opacity: 1 !important;
    transform: none !important;
    box-shadow: none !important;
    background: transparent !important;
  }
  .nav-item.submenu-open > .dropdown { display: block !important; }
  .dropdown-item { padding: 0 !important; }
  .dropdown-link { display: block; padding: 10px 14px; border-radius: 8px; color: #4a5968 !important; }
  .dropdown-link:hover { padding-left: 18px; background: #edf6ff; }
  body.menu-open { overflow: hidden; }
  .footer-main { flex-direction: column; gap: 24px; }
  .site-footer { padding: 42px 0 24px; }
  .detail-content [style*="grid-template-columns: repeat(2"] { grid-template-columns: 1fr !important; }
  .detail-page [style*="grid-template-columns: repeat(3"] { grid-template-columns: 1fr !important; }
  .publish-container { padding: 24px 18px; }
}
