/* 图灵生态统一入口条 — 论坛 + 跨站嵌入 */
.ac-site-header {
  position: sticky;
  top: 0;
  z-index: 1100;
  width: 100%;
  margin: 0;
  padding: 0;
}
.ac-site-header .navbar,
.ac-site-header #site-navbar {
  position: relative !important;
  top: auto !important;
}
/* 顶栏 + 主导航同一 sticky 块内，保持单行 flex 布局 */
.ac-site-header .navbar .container {
  display: flex !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  gap: 10px !important;
  max-width: 1400px !important;
  width: 100% !important;
  min-height: 56px !important;
  margin: 0 auto !important;
  padding: 0 24px !important;
  box-sizing: border-box !important;
  overflow: visible !important;
}
.ac-site-header .nav-brand {
  flex: 0 0 auto !important;
}
.ac-site-header .nav-menu {
  display: flex !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  gap: 2px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  flex: 0 1 auto !important;
  min-width: 0 !important;
}
.ac-site-header .nav-menu > li {
  flex: 0 0 auto !important;
  white-space: nowrap !important;
}
/* 搜索框靠右，与登录区并排，避免被菜单挤压 */
.ac-site-header .navbar .ac-nav-search {
  flex: 0 0 260px !important;
  max-width: 300px !important;
  min-width: 220px !important;
  margin-left: auto !important;
  margin-right: 6px !important;
}
.ac-site-header .nav-user {
  margin-left: 0 !important;
  flex: 0 0 auto !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  white-space: nowrap !important;
}
.ac-ecosystem-strip {
  width: 100%;
  margin: 0;
  background: linear-gradient(90deg, #0b1f3a 0%, #102a4a 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  font-size: 12px;
  line-height: 1;
  z-index: 1;
}
.ac-ecosystem-strip .ac-ecosystem-strip-inner {
  max-width: 1400px !important;
  width: 100% !important;
  margin: 0 auto !important;
  padding: 7px 24px !important;
  box-sizing: border-box !important;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  min-height: 34px;
}
.ac-ecosystem-strip-brand {
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #93c5fd;
  margin-right: 4px;
  white-space: nowrap;
}
.ac-ecosystem-strip-link {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(255, 255, 255, 0.06);
  color: #f8fafc !important;
  text-decoration: none !important;
  font-weight: 600;
  white-space: nowrap;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.ac-ecosystem-strip-link:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(147, 197, 253, 0.55);
  color: #fff !important;
}
body.ac-has-ecosystem-embed {
  padding-top: 34px;
}
#ac-ecosystem-bar.ac-ecosystem-embed-fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
}
@media (max-width: 720px) {
  .ac-ecosystem-strip .ac-ecosystem-strip-inner {
    gap: 6px 8px;
    padding: 8px 16px !important;
  }
  .ac-ecosystem-strip-brand {
    flex: 1 1 100%;
    margin-bottom: 2px;
  }
}
