/**
 * layout.css — 顶部/底部导航、页面容器与响应式断点。
 * 移动端优先：移动端用底部 Tab，桌面端（>=768px）切换为顶部导航。
 */

/* 顶部导航（移动端仅显示品牌，桌面端显示完整导航） */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 15, 20, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  height: var(--nav-h);
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.brand:hover {
  color: var(--accent);
}

.header-nav {
  display: none;
  gap: 4px;
}

.nav-link {
  padding: 6px 14px;
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 14px;
}

.nav-link:hover {
  color: var(--text);
}

.nav-link.is-active {
  color: var(--text);
  background: var(--surface);
}

/* 页面主体 */
.page-main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 16px 16px calc(var(--bottom-h) + 24px);
}

/* 底部 Tab（移动端） */
.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  height: var(--bottom-h);
  display: flex;
  background: rgba(20, 23, 31, 0.96);
  border-top: 1px solid var(--border);
}

.tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 13px;
}

.tab.is-active {
  color: var(--accent);
}

/* 桌面端：显示顶部导航，隐藏底部 Tab */
@media (min-width: 768px) {
  .header-nav {
    display: flex;
  }

  .bottom-nav {
    display: none;
  }

  .page-main {
    padding-bottom: 24px;
  }
}
