/* ===== 增强版导航栏样式 ===== */
:root {
  --gmp-primary: #3a86ff;       
  --gmp-secondary: #8338ec;    
  --gmp-text-dark: #2b2d42;    
  --gmp-text-light: #f0f0f0;  
  /* 修改玻璃效果透明度为0.7，增加可读性 */
  --gmp-glass: rgba(255, 255, 255, 0.7);
  --gmp-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  /* 调整渐变方向为135度，增加层次感 */
  --gmp-gradient: linear-gradient(135deg, #4a90e2, #1c6fd8);
  
  /* 新增专门用于背景的蓝色变量 */
  --gmp-bg-blue: #e6f0ff;  /* 柔和的浅蓝色背景 */
  --gmp-bg-dark-blue: #1a73e8; /* 深蓝色用于对比 */
}

/* 主容器 */
.gmp-navigation-container {
  margin: 0 auto;
  position: relative;
  display: flex;
  align-items: center;
  height: 4.5rem;
  padding: 0 2.5rem;
  background: var(--gmp-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: var(--gmp-shadow);
  z-index: 1000;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 滚动时的样式变化 */
.gmp-navigation-container.scrolled {
  height: 4rem;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
}

/* LOGO区域 (可点击) */
.gmp-brand-identity {
  display: flex;
  align-items: center;
  margin-right: 3.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.gmp-brand-identity:hover {
  transform: translateY(-1px);
}

.gmp-logo-symbol {
  font-size: 1.8rem;
  color: var(--gmp-primary);
  margin-right: 0.8rem;
  transition: transform 0.3s ease;
}

.gmp-brand-identity:hover .gmp-logo-symbol {
  transform: scale(1.1);
}

.gmp-logo-type {
  font-size: 1.4rem;
  /* 字体加粗 */
  font-weight: 800; 
  color: var(--gmp-text-dark);
  letter-spacing: 0.5px;
  background: var(--gmp-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% auto;
  transition: all 0.3s ease;
}

.gmp-brand-identity:hover .gmp-logo-type {
  background-position: right center;
}

/* 导航菜单 */
.gmp-primary-navigation {
  display: flex;
  gap: 2.2rem;
}

.gmp-nav-item {
  position: relative;
  padding: 0.8rem 0;
}

.gmp-nav-link {
  position: relative;
  font-size: 0.95rem;
  font-weight: 600; 
  /* 先把文字颜色设为透明，用于显示背景渐变 */
  color: #CE0000; 
  background: linear-gradient(90deg, #ffffff, #f0f0f0); /* 明亮的渐变颜色 */
  -webkit-background-clip: text;
  background-clip: text;
  transition: all 0.3s ease;
  padding: 0.5rem 0;
}

.gmp-nav-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gmp-gradient);
  transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.gmp-nav-item:hover .gmp-nav-link::before,
.gmp-nav-item.active .gmp-nav-link::before {
  width: 100%;
}

.gmp-nav-item.active .gmp-nav-link {
  color: var(--gmp-primary);
  font-weight: 700;
}

/* 用户控制区 */
.gmp-user-controls {
  margin-left: auto;
  display: flex;
  align-items: center;
}

.gmp-user-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #f5f7fa, #e4e7eb);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.gmp-user-avatar::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid transparent;
  border-radius: 50%;
  background: var(--gmp-gradient) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  transition: all 0.3s ease;
}

.gmp-user-avatar:hover {
  transform: translateY(-2px);
}

.gmp-user-avatar:hover::after {
  border-width: 3px;
  transform: rotate(180deg);
}

.gmp-username {
  font-size: 0.9rem;
  /* 用户名加粗 */
  font-weight: 600; 
  color: var(--gmp-text-dark);
  margin-left: 0.8rem;
  transition: all 0.3s ease;
  position: relative;
}

.gmp-username::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gmp-gradient);
  transition: width 0.3s ease;
}

/* QQ联系方式容器 */
.gmp-contact-qq {
  position: relative;
  display: inline-flex;
  margin-right: 1rem; /* 替代mr-4保持间距 */
}

/* 主按钮样式 */
.gmp-contact-qq > div:first-child {
  display: flex;
  align-items: center;
  background-color: #eff6ff; /* bg-blue-50 */
  border: 1px solid #dbeafe; /* border-blue-100 */
  border-radius: 9999px;
  padding: 0.375rem 1rem;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

/* 悬停效果 */
.gmp-contact-qq > div:first-child:hover {
  background-color: #dbeafe; /* hover:bg-blue-100 */
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
  transform: translateY(-1px);
}

/* 图标样式 */
.gmp-contact-qq .fab.fa-qq {
  color: #2563eb; /* text-blue-600 */
  font-size: 1.125rem;
  margin-right: 0.5rem;
}

/* 文字样式 */
.gmp-contact-qq span {
  font-weight: 500;
  font-size: 0.875rem;
  letter-spacing: 0.025em;
  color: #1e40af; /* text-blue-800 */
}

.gmp-contact-qq .text-blue-500 {
  color: #3b82f6;
}

.gmp-contact-qq .text-blue-700 {
  color: #1d4ed8;
}

/* 提示框样式 */
.gmp-contact-qq > div:last-child {
  position: absolute;
  left: 50%;
  bottom: -2rem;
  transform: translateX(-50%);
  opacity: 0;
  background-color: #2563eb; /* bg-blue-600 */
  color: white;
  font-size: 0.75rem;
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  white-space: nowrap;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  pointer-events: none;
  z-index: 10;
}

/* 悬停时显示提示 */
.gmp-contact-qq:hover > div:last-child {
  opacity: 1;
  bottom: -2.25rem;
}

/* 复制图标微调 */
.gmp-contact-qq > div:last-child .fas.fa-copy {
  margin-right: 0.25rem;
  font-size: 0.65rem;
}

#userMenuToggle:hover .gmp-username::after {
  width: 100%;
}


/* 响应式设计 */
@media (max-width: 768px) {
  .gmp-navigation-container {
    padding: 0 1.5rem;
    height: 4rem;
  }
  
  .gmp-primary-navigation {
    display: none;
  }
  
  .gmp-logo-type {
    font-size: 1.2rem;
  }
  
}

/* 通知样式 */
.notification-item.unread {
    background-color: #f8f9fa;
    border-left: 3px solid #007bff;
}

.notification-item.read {
    opacity: 0.7;
}

.notification-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.25rem;
    height: 1.25rem;
    font-size: 0.75rem;
    font-weight: 600;
}

#notificationsModal {
    backdrop-filter: blur(5px);
}

#notificationsModal > div {
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
