@import url('../shared.css');

/* 笔记菜单 */
.notes-menu {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 15px;
  padding: 2.5rem;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  margin-bottom: 3rem;
  border: 1px solid rgba(255,255,255,0.5);
  backdrop-filter: blur(10px);
}

.menu-title {
  color: #2c3e50;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid #eee;
  font-size: 2rem;
  position: relative;
}

.menu-title::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100px;
  height: 3px;
  background: linear-gradient(90deg, #3498db, #2c3e50);
  border-radius: 3px;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.menu-category {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border-radius: 12px;
  padding: 2rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  border: 1px solid rgba(255,255,255,0.5);
}

.menu-category:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.1);
}

.menu-category h3 {
  color: #2c3e50;
  margin-bottom: 1.5rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid #eee;
  font-size: 1.4rem;
  position: relative;
}

.menu-category h3::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, #3498db, #2c3e50);
  border-radius: 2px;
}

.category-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.category-link {
  color: #3498db;
  text-decoration: none;
  padding: 0.8rem 0;
  border-bottom: 1px dashed #eee;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  position: relative;
}

.category-link::before {
  content: '→';
  margin-right: 10px;
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
}

.category-link:hover {
  color: #2980b9;
  padding-left: 10px;
}

.category-link:hover::before {
  opacity: 1;
  transform: translateX(0);
}

/* GitHub Star按钮 */
#github-stars {
  display: inline-block;
  margin-bottom: 2.5rem;
}

#github-stars-button {
  display: flex;
  align-items: center;
  background: linear-gradient(90deg, #0366d6, #0256b9);
  color: #fff;
  text-decoration: none;
  padding: 12px 25px;
  border-radius: 30px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(3, 102, 214, 0.3);
}

#github-stars-button:hover {
  background: linear-gradient(90deg, #0256b9, #01469c);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(3, 102, 214, 0.4);
}

#github-stars-button span:last-child {
  margin-left: 10px;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .menu-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .notes-menu {
    padding: 2rem 1.5rem;
  }
  
  .menu-category {
    padding: 1.5rem;
  }
  
  .menu-title {
    font-size: 1.7rem;
  }
}

@media (max-width: 480px) {
  .menu-category {
    padding: 1.2rem;
  }
  
  .category-link {
    padding: 0.6rem 0;
  }
  
  #github-stars-button {
    padding: 10px 20px;
  }
}