.community-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: #f5f7fa;
}

.community-header {
  background: linear-gradient(45deg, #667eea 0%, #764ba2 100%);
  padding: 30px 20px;
  color: white;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);

  h1 {
    margin: 0;
    font-size: 2.2rem;
    font-weight: 700;
  }

  .header-subtitle {
    margin: 8px 0 0;
    font-size: 1rem;
    opacity: 0.9;
  }
}

.community-stats {
  display: flex;
  justify-content: space-around;
  max-width: 600px;
  margin: 30px auto 0;
  padding: 15px 0;
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 12px;
}

.stat-item {
  text-align: center;
  padding: 0 15px;
}

.stat-number {
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.2;
}

.stat-label {
  font-size: 0.75rem;
  opacity: 0.85;
  margin-top: 4px;
}

.main-content {
  flex: 1;
  padding: 20px 0 40px;
}

.content-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.content-card {
  background: white;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;

  &:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
  }
}

.card-title {
  margin: 0 0 15px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
}

.tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
  color: white;
  font-weight: 500;

  &:hover {
    transform: scale(1.05);
    opacity: 0.9;
  }

  &.tag-fashion {
    background: #ff6b6b;
  }

  &.tag-eco {
    background: #4ecdc4;
  }

  &.tag-minimal {
    background: #45b7d1;
  }

  &.tag-vintage {
    background: #96ceb4;
  }
}

.ranking-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ranking-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  background: #f8f9fa;
  border-radius: 12px;
  transition: background 0.2s ease;

  &:hover {
    background: #e9ecef;
  }
}

.ranking-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rank-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 1rem;

  &.rank-1 {
    background: linear-gradient(45deg, #ff6b6b, #ffa726);
  }

  &.rank-2 {
    background: linear-gradient(45deg, #4ecdc4, #44a08d);
  }

  &.rank-3 {
    background: linear-gradient(45deg, #667eea, #764ba2);
  }
}

.ranking-details {
  .designer-name {
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 2px;
  color: #333;
  }

  .designer-likes {
    font-size: 0.75rem;
    color: #666;
  }
}

.rank-crown, .rank-medal {
  font-size: 1.25rem;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}

.work-item {
  border-radius: 12px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);

  &:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  }

  &.work-1 {
    background: linear-gradient(45deg, #a8edea 0%, #fed6e3 100%);
  }

  &.work-2 {
    background: linear-gradient(45deg, #667eea 0%, #764ba2 100%);
  }
}

/* 响应式设计 */
@media (max-width: 600px) {
  .community-header {
    padding: 20px 15px;

    h1 {
      font-size: 1.8rem;
    }
  }

  .community-stats {
    margin: 20px auto 0;
    padding: 10px 0;
  }

  .stat-number {
    font-size: 1.5rem;
  }

  .content-container {
    padding: 0 15px;
  }

  .works-grid {
    grid-template-columns: 1fr;
  }
}