/* ===== MyInfoLib — Topbar 通用样式 ===== */
/* 引用方式: <link rel="stylesheet" href="_components/topbar.css"> */

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding: 0 20px;
  transition: box-shadow 0.2s;
}

.topbar-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 48px;
  font-size: 0.9rem;
}

.topbar-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #2c3e50;
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.15s;
}

.topbar-back:hover {
  color: #e67e22;
}

.topbar-back svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.topbar-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #666;
  font-size: 0.85rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar-meta a {
  color: #2c3e50;
  text-decoration: none;
  border-bottom: 1px dashed rgba(44, 62, 80, 0.3);
  transition: color 0.15s, border-color 0.15s;
}

.topbar-meta a:hover {
  color: #e67e22;
  border-bottom-color: #e67e22;
}

.topbar-sep {
  color: #ccc;
  user-select: none;
}

@media (max-width: 600px) {
  .topbar-inner {
    height: 44px;
    font-size: 0.82rem;
    gap: 10px;
  }

  .topbar-meta {
    font-size: 0.78rem;
  }
}
