* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: #f6f8fa;
  min-height: 100vh;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px;
}

.category-banner {
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 12px;
  padding: 28px 32px;
  margin-bottom: 24px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  color: #fff;
}

.category-banner-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  flex-shrink: 0;
}

.category-banner-info {
  flex: 1;
}

.category-banner-info h1 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 6px;
}

.category-banner-desc {
  font-size: 14px;
  opacity: 0.85;
  line-height: 1.6;
  margin-bottom: 10px;
}

.category-banner-meta {
  display: flex;
  gap: 20px;
  font-size: 13px;
  opacity: 0.8;
}

.category-banner-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.content-wrapper {
  display: flex;
  gap: 24px;
}

.content-main {
  flex: 1;
  min-width: 0;
}

.content-sidebar {
  width: 320px;
  flex-shrink: 0;
}

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

.question-card {
  background: #fff;
  border-radius: 10px;
  padding: 20px 24px 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  transition: box-shadow 0.2s;
  text-decoration: none;
  display: block;
}

.question-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.question-card .q-title {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 6px;
  line-height: 1.5;
  text-decoration: none;
  display: block;
}

.question-card .q-title:hover {
  color: #667eea;
}

.question-card .q-excerpt {
  font-size: 14px;
  color: #888;
  line-height: 1.5;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.question-card .q-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  padding-top: 14px;
  border-top: 1px solid #f0f2f5;
}

.question-card .q-actions .q-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 14px;
  color: #666;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.15s;
  cursor: pointer;
  border: none;
  background: none;
  min-width: 64px;
}

.question-card .q-actions .q-action-btn:hover {
  background: #f0f2f5;
  color: #1a73e8;
}

.question-card .q-actions .q-action-btn i {
  font-size: 18px;
}

.question-card .q-actions .q-action-btn .q-action-num {
  font-weight: 600;
  font-size: 15px;
}

.empty-state {
  text-align: center;
  padding: 60px 0;
  color: #bbb;
}

.empty-state i {
  font-size: 40px;
  margin-bottom: 12px;
}

.empty-state p {
  font-size: 14px;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 24px 0;
}

.pagination-info {
  font-size: 13px;
  color: #999;
}

.pagination-btns {
  display: flex;
  gap: 4px;
}

.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #666;
  text-decoration: none;
  transition: all 0.15s;
  border: 1px solid #e8ecf0;
  background: #fff;
}

.page-btn:hover {
  border-color: #667eea;
  color: #667eea;
}

.page-btn.active {
  background: #667eea;
  color: #fff;
  border-color: #667eea;
}

.sidebar-card {
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  margin-bottom: 16px;
}

.sidebar-card .sidebar-title {
  font-size: 15px;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-card .sidebar-title i {
  color: #f59e0b;
}

.hot-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.hot-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  text-decoration: none;
  border-bottom: 1px solid #f5f5f5;
}

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

.hot-item .hot-rank {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.hot-item .hot-rank.top1 { background: #fef2f2; color: #ef4444; }
.hot-item .hot-rank.top2 { background: #fff7ed; color: #f59e0b; }
.hot-item .hot-rank.top3 { background: #fffbeb; color: #d97706; }
.hot-item .hot-rank.normal { background: #f5f5f5; color: #999; }

.hot-item .hot-title {
  font-size: 13px;
  color: #444;
  line-height: 1.4;
  flex: 1;
}

.hot-item:hover .hot-title {
  color: #667eea;
}

.hot-item .hot-meta {
  font-size: 11px;
  color: #bbb;
  margin-top: 3px;
}