/* 今日热榜一比一复刻样式 - inspiration.css */

.main-content {
  flex: 1;
  overflow-y: auto;
  background: #f4f6f8;
  min-height: 100vh;
  padding: 0;
}

/* 顶部时间栏 */
.top-bar {
  background: white;
  border-bottom: 1px solid #e2e8f0;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 10;
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 24px;
}

.app-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-icon {
  width: 20px;
  height: 20px;
  color: #f56565;
}

.app-name {
  font-size: 16px;
  font-weight: 600;
  color: #2d3748;
}

.datetime {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.date {
  font-size: 14px;
  font-weight: 500;
  color: #2d3748;
}

.weekday {
  font-size: 12px;
  color: #718096;
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f7fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.top-btn:hover {
  background: #edf2f7;
  border-color: #cbd5e0;
}

.btn-icon {
  width: 16px;
  height: 16px;
  color: #4a5568;
}

/* 热榜网格 */
.hot-grid {
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  max-width: 1440px;
  margin: 0 auto;
}

.platform-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  height: 500px;
}

.platform-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* 卡片头部 */
.card-header {
  background: #f7fafc;
  padding: 12px 16px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.platform-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.platform-icon {
  width: 16px;
  height: 16px;
  color: #4a5568;
}

.platform-name {
  font-size: 14px;
  font-weight: 600;
  color: #2d3748;
}

.hot-label {
  font-size: 12px;
  color: #718096;
  background: #edf2f7;
  padding: 2px 6px;
  border-radius: 10px;
}

/* 热点列表 */
.topics-container {
  padding: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.hot-item {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  border-bottom: 1px solid #f7fafc;
  transition: background-color 0.2s ease;
  cursor: pointer;
  min-height: 40px;
}

.hot-item:last-child {
  border-bottom: none;
}

.hot-item:hover {
  background: #f7fafc;
}

.rank-badge {
  min-width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  border-radius: 3px;
  margin-right: 10px;
  flex-shrink: 0;
}

/* 排名颜色 - 完全按照今日热榜 */
.rank-1 {
  background: #f56565;
  color: white;
}

.rank-2 {
  background: #ed8936;
  color: white;
}

.rank-3 {
  background: #ecc94b;
  color: white;
}

.rank-4, .rank-5 {
  background: #48bb78;
  color: white;
}

.rank-6, .rank-7, .rank-8, .rank-9, .rank-10 {
  background: #cbd5e0;
  color: #4a5568;
}

.hot-title {
  display: block;
  font-size: 13px;
  font-weight: 400;
  color: #2d3748;
  line-height: 1.5;
  text-decoration: none;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  position: relative;
}

.hot-title:hover {
  color: #f56565;
}

/* Tooltip样式 - 悬停显示完整标题 */
.hot-item {
  position: relative;
}

.hot-item:hover .hot-title::after {
  content: attr(title);
  position: absolute;
  left: 0;
  top: 100%;
  margin-top: 4px;
  padding: 8px 12px;
  background: rgba(45, 55, 72, 0.95);
  color: white;
  font-size: 12px;
  line-height: 1.4;
  border-radius: 6px;
  white-space: normal;
  word-wrap: break-word;
  max-width: 280px;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  pointer-events: none;
}

/* 只在标题被截断时显示tooltip */
.hot-title {
  cursor: pointer;
}

/* 卡片底部 */
.card-footer {
  background: #f7fafc;
  padding: 8px 16px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: #718096;
}

.update-time {
  font-size: 11px;
}

.card-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.action-btn {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 3px;
  transition: background-color 0.2s ease;
}

.action-btn:hover {
  background: #e2e8f0;
}

.action-icon {
  width: 12px;
  height: 12px;
  color: #718096;
}

/* 无数据状态 */
.no-data {
  padding: 40px 16px;
  text-align: center;
  color: #a0aec0;
  font-size: 13px;
}

/* Coming Soon 页面样式保留 */
.coming-soon-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 40px;
}

.coming-soon-card {
  background: linear-gradient(135deg, #ffffff, #f9fefa);
  border: 1px solid #d4edd9;
  border-radius: 24px;
  padding: 60px 80px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(32, 197, 125, 0.12);
  max-width: 600px;
  width: 100%;
  position: relative;
}

.coming-soon-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, #20C57D, #4ECDC4);
  border-radius: 50%;
  margin-bottom: 40px;
  box-shadow: 0 8px 32px rgba(32, 197, 125, 0.3);
}

.coming-soon-icon .icon {
  width: 60px;
  height: 60px;
  color: white;
}

.coming-soon-title {
  font-size: 36px;
  font-weight: 900;
  color: #000000;
  margin: 0 0 16px 0;
}

.coming-soon-subtitle {
  font-size: 24px;
  font-weight: 500;
  color: #20C57D;
  margin: 0 0 32px 0;
}

.coming-soon-description {
  margin-bottom: 48px;
}

.coming-soon-description p {
  color: #6c757d;
  font-size: 16px;
  line-height: 1.6;
  margin: 0 0 8px 0;
}

.coming-soon-description .wait-text {
  font-weight: 600;
  color: #495057;
  margin-top: 16px;
}

.feature-preview {
  display: flex;
  justify-content: center;
  gap: 40px;
}

.preview-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.preview-icon {
  width: 64px;
  height: 64px;
  background: #20C57D;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.preview-label {
  font-size: 14px;
  font-weight: 500;
  color: #495057;
}

/* 响应式设计 */
@media (max-width: 1200px) {
  .hot-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .hot-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .top-bar {
    padding: 12px 16px;
  }
  
  .datetime {
    display: none;
  }
}

@media (max-width: 600px) {
  .hot-grid {
    grid-template-columns: 1fr;
    padding: 16px;
    gap: 12px;
  }
  
  .top-bar-left {
    gap: 16px;
  }
  
  .app-name {
    font-size: 14px;
  }
  
  .platform-card {
    margin-bottom: 0;
  }
  
  .hot-item {
    padding: 8px 12px;
  }
  
  .topics-container {
    min-height: 280px;
  }
  
  /* Coming Soon 响应式 */
  .coming-soon-container {
    padding: 20px;
  }

  .coming-soon-card {
    padding: 40px 32px;
  }

  .coming-soon-icon {
    width: 100px;
    height: 100px;
  }

  .coming-soon-icon .icon {
    width: 50px;
    height: 50px;
  }

  .coming-soon-title {
    font-size: 28px;
  }

  .coming-soon-subtitle {
    font-size: 20px;
  }

  .feature-preview {
    flex-direction: column;
    gap: 24px;
  }

  .preview-item {
    flex-direction: row;
    gap: 16px;
  }

  .preview-icon {
    width: 48px;
    height: 48px;
  }
}