/* 导航按钮样式（沿用旧版） */
.nav-btn {
  text-decoration: none;
  color: #2D3350;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 12px;
  transition: all 0.3s ease;
  font-size: 14px;
  border: 2px solid rgba(255,255,255,0.6);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}
.nav-btn:hover {
  background: rgba(37, 99, 235, 0.07);
  color: var(--brand);
}
.nav-btn.primary {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-light) 100%);
  color: #fff;
  border: none;
}
.nav-btn.primary:hover {
  background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand) 100%);
}

/* 额度显示（与旧版一致） */
.quota-display {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #64748b;
  margin-right: 12px;
}
.quota-display i {
  color: #f59e0b;
}

/* 用户欢迎文本（与旧版一致） */
.user-welcome {
  color: #2D3350;
  font-size: 14px;
  font-weight: 500;
  padding: 0 8px;
}

/* 退出按钮（与旧版一致） */
.nav-btn.logout {
  background: #ef4444;
  color: #fff;
  border: none;
}
.nav-btn.logout:hover {
  background: #dc2626;
}

@media (max-width: 768px) {
  #mobileMenu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(360px, 86vw);
    padding: 16px 16px 24px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(14px);
    box-shadow: -12px 0 30px rgba(0, 0, 0, 0.14);
    border-top-left-radius: 16px;
    border-bottom-left-radius: 16px;
    overflow-y: auto;
    transform: translateX(110%);
    transition: transform 0.25s ease;
    z-index: 1001;
  }

  #mobileMenu.is-open {
    transform: translateX(0);
  }

  .mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.35);
    backdrop-filter: blur(2px);
    z-index: 1000;
  }

  .mobile-menu-close {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-bottom: 12px;
  }

  .mobile-menu-close-btn {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: rgba(255, 255, 255, 0.92);
    color: #0f172a;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    line-height: 1;
  }

  #mobileMenu .quota-display {
    margin-right: 0;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.65);
  }

  #mobileMenu .nav-btn.block {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.65);
  }

  #userAreaMobile {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
  }
}
