/* Header 样式 */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-height); background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  display: flex; align-items: center; padding: 0 24px;
}
.header-inner {
  display: flex; align-items: center; width: 100%; max-width: var(--content-max-width); margin: 0 auto;
}
.header-logo {
  font-size: var(--font-size-xl); font-weight: 700; color: var(--color-text);
  letter-spacing: -0.5px; margin-right: 40px; white-space: nowrap;
}
.header-logo span { color: var(--color-text-muted); font-weight: 400; font-size: var(--font-size-sm); margin-left: 8px; }
.header-nav { display: flex; gap: 4px; }
.header-nav a {
  padding: 8px 16px; border-radius: var(--border-radius);
  font-size: var(--font-size-base); color: var(--color-text-secondary);
  transition: all 0.2s; font-weight: 500;
}
.header-nav a:hover { color: var(--color-text); background: var(--color-bg-secondary); }
.header-nav a.active { color: var(--color-text); background: var(--color-bg-secondary); }
.header-nav a.nav-create {
  background: transparent;
  color: #22c55e !important;
  font-weight: 700;
  border-radius: 20px;
  padding: 8px 20px;
}
.header-nav a.nav-create:hover {
  background: rgba(34, 197, 94, 0.1);
  color: #16a34a !important;
}
.header-nav a.nav-create.active {
  background: rgba(34, 197, 94, 0.1);
  color: #16a34a !important;
}
.header-search {
  margin-left: auto; position: relative;
}
.header-search input {
  width: 240px; padding: 8px 16px 8px 36px; border: 1px solid var(--color-border);
  border-radius: 20px; background: var(--color-bg-secondary); font-size: var(--font-size-sm);
  outline: none; transition: all 0.2s;
}
.header-search input:focus { border-color: var(--color-primary); background: var(--color-bg); width: 300px; }
.header-search .search-icon {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  color: var(--color-text-muted); font-size: 14px;
}
.mobile-menu-btn {
  display: none; background: none; border: none; font-size: 20px; padding: 8px; color: var(--color-text);
}
@media (max-width: 768px) {
  .header-search { display: none; }
  .header-nav { display: none; }
  .mobile-menu-btn { display: block; margin-left: auto; }
}

/* 移动端浮动创作按钮 */
.mobile-create-btn {
  display: none;
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: #fff;
  border: none;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(34, 197, 94, 0.4);
  transition: all 0.3s ease;
  align-items: center;
  justify-content: center;
}

.mobile-create-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.5);
}

.mobile-create-btn:active {
  transform: scale(0.95);
}

@media (max-width: 768px) {
  .mobile-create-btn {
    display: flex;
  }
}

/* 移动端侧边栏菜单 */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 89;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-menu-overlay.show {
  display: block;
  opacity: 1;
}
