/* assets/css/layout.css - 全局布局与核心导航系统 */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background-color: rgba(11, 15, 23, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.header-top {
  height: 56px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

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

.brand-link {
  display: flex; align-items: center; gap: 10px;
  color: #fff; font-weight: 700; font-size: 1.05rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none;
}

.brand-badge {
  background: var(--nv-green); color: #0b0f14;
  font-weight: 900; font-size: 0.78rem; padding: 3px 8px; border-radius: var(--radius-sm);
  letter-spacing: 0.04em;
  white-space: nowrap;
  flex-shrink: 0;
}

.brand-title {
  white-space: nowrap;
  flex-shrink: 0;
  color: #fff;
  font-weight: 700;
}

.header-actions {
  display: flex; align-items: center; gap: 10px;
  flex-shrink: 0;
  white-space: nowrap;
}

.search-btn {
  display: flex; align-items: center; gap: 8px;
  background-color: var(--bg-surface); border: 1px solid var(--border-subtle);
  color: var(--text-tertiary); padding: 5px 12px; border-radius: var(--radius-sm);
  font-size: 0.82rem; cursor: pointer; transition: all 0.18s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.search-btn:hover { border-color: var(--nv-green); color: var(--text-primary); }

.search-btn kbd {
  background: var(--bg-surface-elevated); border: 1px solid var(--border-medium);
  border-radius: 4px; padding: 1px 5px; font-size: 0.72rem; color: var(--text-secondary);
  font-family: var(--font-mono);
}

.action-pill {
  display: inline-flex; align-items: center;
  font-size: 0.78rem; font-weight: 600; color: var(--text-secondary);
  background: var(--bg-surface); border: 1px solid var(--border-subtle);
  padding: 5px 11px; border-radius: var(--radius-sm); text-decoration: none;
  transition: all 0.18s ease; white-space: nowrap; flex-shrink: 0;
}
.action-pill:hover {
  color: var(--nv-green); border-color: var(--nv-green-border); background: var(--nv-green-dim);
}

.mobile-btn {
  display: none; background: transparent; border: 1px solid var(--border-subtle);
  color: #fff; padding: 5px 9px; border-radius: var(--radius-sm); cursor: pointer;
  font-size: 1rem; flex-shrink: 0;
}

/* Secondary Sticky Subnav Bar */
.subnav-bar {
  background: rgba(14, 20, 30, 0.98);
}

.subnav-inner {
  height: 42px;
  display: flex; align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.subnav-inner::-webkit-scrollbar { display: none; }

.nav-links {
  display: flex; align-items: center; gap: 4px;
  white-space: nowrap;
  padding: 0 2px;
}

.nav-link {
  padding: 4px 11px; font-size: 0.83rem; font-weight: 600;
  color: var(--text-secondary); border-radius: var(--radius-sm);
  transition: all 0.18s ease; text-decoration: none;
  white-space: nowrap; flex-shrink: 0;
  display: inline-flex; align-items: center;
}

.nav-link:hover { color: #fff; background-color: var(--bg-surface-elevated); }

.nav-link.active {
  color: var(--nv-green); background-color: var(--nv-green-dim);
  border: 1px solid var(--nv-green-border); font-weight: 700;
}

.page-container {
  flex: 1; max-width: var(--max-width); width: 100%; margin: 0 auto; padding: 28px 20px 64px;
}

.breadcrumb {
  display: flex; align-items: center; gap: 8px; font-size: 0.84rem;
  color: var(--text-tertiary); margin-bottom: 24px; flex-wrap: wrap;
}

.breadcrumb a { color: var(--text-secondary); text-decoration: none; }
.breadcrumb a:hover { color: var(--nv-green); }
.breadcrumb .separator { color: var(--border-strong); }
.breadcrumb .current { color: var(--text-primary); font-weight: 600; }

.hero-sec {
  margin-bottom: 32px; padding-bottom: 24px; border-bottom: 1px solid var(--border-subtle);
  position: relative;
}

.hero-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.76rem; font-weight: 700; text-transform: uppercase;
  color: var(--nv-green); letter-spacing: 0.08em; margin-bottom: 10px;
  background: var(--nv-green-dim); padding: 3px 10px; border-radius: 999px;
  border: 1px solid var(--nv-green-border);
  white-space: nowrap;
}

.hero-title {
  font-size: 2.1rem; font-weight: 800; color: #fff; line-height: 1.25; margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.hero-desc { font-size: 1.02rem; color: var(--text-secondary); max-width: 950px; line-height: 1.65; }

.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 18px 20px;
  margin-top: auto;
}

.footer-note {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--text-tertiary);
}

/* Mobile Drawer Navigation */
.mobile-drawer {
  display: none; position: fixed; top: 98px; left: 0; right: 0; bottom: 0;
  background: rgba(11, 15, 23, 0.98); backdrop-filter: blur(16px);
  padding: 20px; z-index: 99; flex-direction: column; gap: 10px;
  overflow-y: auto; border-top: 1px solid var(--border-subtle);
}

.mobile-drawer.open { display: flex; }

.mobile-drawer .nav-link {
  font-size: 1rem; padding: 11px 16px; border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle); background: var(--bg-surface);
}

@media (max-width: 980px) {
  .mobile-btn { display: block; }
  .action-pill { display: none; }
  .hero-title { font-size: 1.75rem; }
}

@media (max-width: 640px) {
  .brand-title { font-size: 0.95rem; }
  .search-label { display: none; }
  .search-btn kbd { display: none; }
  .mobile-drawer { top: 98px; }
}
