* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto",
    "Helvetica Neue", Arial, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  padding: 20px;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
}

.header {
  text-align: center;
  margin-bottom: 40px;
  color: white;
}

.header h1 {
  font-size: 3rem;
  margin-bottom: 10px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.header p {
  font-size: 1.2rem;
  opacity: 0.9;
}

.stats {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin: 30px 0;
  flex-wrap: wrap;
}

.stat-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 20px;
  text-align: center;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-number {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 5px;
}

.stat-label {
  font-size: 0.9rem;
  opacity: 0.8;
}

.platform-section {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  margin-bottom: 30px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
}

.platform-header {
  padding: 16px 20px;
  border-bottom: 2px solid #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.platform-title {
  font-size: 1.4rem;
  font-weight: bold;
  color: #333;
  display: flex;
  align-items: center;
  gap: 15px;
}

.platform-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: white;
  font-weight: bold;
}

.platform-count {
  background: #e3f2fd;
  color: #1976d2;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
}

.platform-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pin-button {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  padding: 6px 10px;
  border-radius: 16px;
  font-size: 0.85rem;
  color: #333;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pin-button:hover {
  border-color: #667eea;
  color: #667eea;
}

.pin-button.active {
  background: #e3f2fd;
  border-color: #1976d2;
  color: #1976d2;
}

.emoji-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 15px;
  padding: 30px;
}

.emoji-item {
  background: white;
  border-radius: 15px;
  padding: 10px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  border: 2px solid transparent;
}

.emoji-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  border-color: #667eea;
}

.emoji-image {
  width: 30px;
  height: 30px;
  object-fit: contain;
  margin-bottom: 10px;
  border-radius: 8px;
}

.emoji-description {
  font-size: 0.85rem;
  color: #666;
  font-weight: 500;
  min-height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 平台颜色主题 */
.tieba {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}
.zhihu {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
.xiaohongshu {
  background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
}
.douyin {
  background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}
.bilibili {
  background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 100%);
}
.weibo {
  background: linear-gradient(135deg, #ff6b6b 0%, #ffa726 100%);
}

/* 响应式设计 */
@media (max-width: 768px) {
  .header h1 {
    font-size: 2rem;
  }

  .stats {
    gap: 15px;
  }

  .emoji-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    padding: 16px;
  }

  .emoji-item {
    padding: 8px;
  }

  .emoji-image {
    width: 28px;
    height: 28px;
  }

  .platform-header {
    padding: 12px 16px;
    flex-direction: row;
    gap: 8px;
    text-align: left;
  }
}

/* 加载动画 */
.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 200px;
  color: #666;
  font-size: 1.2rem;
}

/* 搜索功能 */
.search-container {
  text-align: center;
  margin-bottom: 30px;
}

.search-input {
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 25px;
  padding: 15px 25px;
  font-size: 1rem;
  width: 100%;
  max-width: 400px;
  outline: none;
  transition: all 0.3s ease;
}

.search-input:focus {
  background: white;
  border-color: #667eea;
  box-shadow: 0 0 20px rgba(102, 126, 234, 0.3);
}

.search-input::placeholder {
  color: #999;
}

/* 提示动画 */
@keyframes fadeInOut {
  0%,
  100% {
    opacity: 0;
    transform: translateY(-20px);
  }
  10%,
  90% {
    opacity: 1;
    transform: translateY(0);
  }
}
