/**
 * 内页顶栏：与 archive-ai_tool / taxonomy-tool_category 模板末尾内联样式一致
 * 供未输出该内联块的模板（如标签归档）加载，避免导航缺样式。
 *
 * @package AI_Tools_Navigator
 */

.page-wrapper .main-content .content-area {
  padding: 16px;
}

.page-wrapper .main-content > .top-bar {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* 顶部快捷条 */
.top-bar {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
}
.top-bar-inner {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 16px;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
}
.top-bar-inner::-webkit-scrollbar {
  display: none;
}
.top-link {
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  padding: 4px 12px;
  border-radius: 4px;
  flex-shrink: 0;
}
.top-link:hover {
  background: rgba(255, 255, 255, 0.15);
}
.top-link.highlight {
  background: #fbbf24;
  color: #1f2937;
  font-weight: 500;
}

/* 主导航栏（与内页内联块一致；WAP 细部由 theme-responsive 覆盖） */
.main-header {
  background: #fff;
  border-bottom: 1px solid var(--border-color, #e5e7eb);
  position: sticky;
  top: 0;
  z-index: 50;
}
.main-header-inner {
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  height: 56px;
}
.hamburger-btn {
  display: none;
  padding: 8px;
  background: transparent;
  border: none;
  font-size: 20px;
  cursor: pointer;
}
.header-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.logo-icon.ait-brand-logo-img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: contain;
  display: block;
  background: transparent;
  flex-shrink: 0;
}
.logo-text {
  font-size: 16px;
  font-weight: 700;
}
.header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.header-nav-link {
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 6px;
}
.header-nav-link:hover,
.header-nav-link.active {
  background: var(--bg-secondary, #f9fafb);
  color: var(--primary-color, #6366f1);
}
.header-search {
  margin-left: auto;
}
.search-toggle {
  padding: 8px;
  background: transparent;
  border: none;
  font-size: 18px;
  cursor: pointer;
}

/* 内页 .site-footer 卡片（标签页等） */
.site-footer {
  background: var(--bg-primary, #fff);
  border-radius: var(--radius-lg, 10px);
  padding: 20px;
  margin-top: 16px;
}
.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color, #e5e7eb);
}
.footer-brand {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-color, #6366f1);
  margin-bottom: 6px;
}
.footer-desc {
  font-size: 12px;
  color: var(--text-secondary, #6b7280);
}
.footer-links {
  display: flex;
  gap: 16px;
}
.footer-links a {
  font-size: 12px;
  color: var(--text-secondary, #6b7280);
}
.footer-copyright {
  text-align: center;
}
.footer-copyright p {
  font-size: 11px;
  color: var(--text-light, #9ca3af);
}

/* 回到顶部（与内页一致） */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  background: var(--primary-color, #6366f1);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  z-index: 100;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
  }
}
