/* 项目列表页面样式 */
.projects-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
  }
  
  .projects-header {
    text-align: center;
    margin-bottom: 3rem;
  }
  
  .projects-title {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
  }
  
  .projects-subtitle {
    font-size: 1.1rem;
    color: #7f8c8d;
    max-width: 700px;
    margin: 0 auto;
  }
  
  .projects-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2.5rem;
  }
  
  .filter-btn {
    padding: 8px 20px;
    background-color: #f8f9fa;
    border: none;
    border-radius: 30px;
    font-size: 0.95rem;
    color: #2c3e50;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
  }
  
  .filter-btn:hover {
    background-color: #e9ecef;
    transform: translateY(-2px);
  }
  
  .filter-btn.active {
    background-color: #3498db;
    color: white;
    box-shadow: 0 3px 10px rgba(52, 152, 219, 0.3);
  }
  
  .projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
  }
  
  .project-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
  }
  
  .project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
  }
  
  .project-cover {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease, opacity 0.3s ease;
    opacity: 0;
    background-color: #f5f5f5;
  }
  
  .project-cover.loaded {
    opacity: 1;
  }
  
  .project-card:hover .project-cover {
    transform: scale(1.05);
  }
  
  .project-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
  }
  
  .project-title {
    font-size: 1.3rem;
    color: #2c3e50;
    margin-bottom: 0.8rem;
    font-weight: 600;
  }
  
  .project-description {
    color: #5a6c7d;
    margin-bottom: 1.2rem;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  
  .project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.2rem;
  }
  
  .project-tag {
    padding: 3px 8px;
    background: #f1f8ff;
    color: #3498db;
    border-radius: 4px;
    font-size: 0.8rem;
  }
  
  .project-category {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 10px;
    background: rgba(0,0,0,0.6);
    color: white;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    z-index: 2;
  }
  
  .project-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #eee;
    padding-top: 1rem;
  }
  
  .project-date {
    font-size: 0.85rem;
    color: #7f8c8d;
  }
  
  .project-link {
    padding: 6px 12px;
    background: linear-gradient(90deg, #3498db, #9b59b6);
    color: white !important;
    border-radius: 4px;
    text-decoration: none !important;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border-bottom: none !important;
  }
  
  .project-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(52, 152, 219, 0.3);
    color: white !important;
  }
  
  .no-projects {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 0;
    color: #7f8c8d;
  }
  
  .no-projects i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #bdc3c7;
  }
  
  .no-projects p {
    margin-bottom: 0.5rem;
  }
  
  .no-projects code {
    background: #f8f9fa;
    padding: 3px 8px;
    border-radius: 4px;
    font-family: monospace;
  }
  
  /* 响应式设计 */
  @media (max-width: 768px) {
    .projects-grid {
      grid-template-columns: 1fr;
    }
    
    .projects-filter {
      justify-content: flex-start;
      overflow-x: auto;
      padding-bottom: 1rem;
      margin-left: -1rem;
      margin-right: -1rem;
      padding-left: 1rem;
      padding-right: 1rem;
      gap: 0.5rem;
    }
    
    .filter-btn {
      white-space: nowrap;
    }
    
    .projects-title {
      font-size: 2rem;
    }
  }