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

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

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

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

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

.question-detail {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  overflow: hidden;
}

.q-header {
  padding: 32px 36px 24px;
  border-bottom: 1px solid #f0f2f5;
}

.q-category-tag {
  display: inline-block;
  padding: 4px 14px;
  background: linear-gradient(135deg, #667eea15, #764ba215);
  color: #667eea;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 14px;
  letter-spacing: 0.5px;
}

.q-header .q-title {
  font-size: 30px;
  font-weight: 700;
  color: #1a1a2e;
  line-height: 1.4;
  margin-bottom: 14px;
  letter-spacing: 0.5px;
}

.q-content {
  font-size: 15px;
  color: #555;
  line-height: 1.8;
  margin-bottom: 16px;
  padding: 16px 20px;
  background: #fafbfc;
  border-radius: 8px;
  border-left: 3px solid #667eea;
}

.q-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.q-author-avatar-link {
  display: inline-block;
  flex-shrink: 0;
  line-height: 0;
}

.q-author-avatar-link:hover {
  opacity: 0.85;
}

.q-author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #f0f2f5;
}

.q-author-avatar-placeholder {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border: 2px solid #f0f2f5;
}

.q-author-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.q-author-name {
  font-size: 15px;
  font-weight: 600;
  color: #1a1a2e;
  text-decoration: none;
}

.q-author-name:hover {
  color: #667eea;
}

.emoji {
  width: 24px;
  height: 24px;
  vertical-align: middle;
  margin: 0 2px;
  display: inline;
}

.q-time {
  font-size: 12px;
  color: #aaa;
}

.q-info {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 13px;
  color: #888;
  padding-top: 14px;
  border-top: 1px solid #f5f6f8;
}

.q-info i {
  margin-right: 5px;
}

.answers-section {
  padding: 24px 36px 32px;
}

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

.answers-header h3 {
  font-size: 17px;
  font-weight: 700;
  color: #1a1a2e;
}

.answers-header .answers-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 8px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  margin-left: 8px;
}

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

.empty-state i {
  font-size: 44px;
  margin-bottom: 14px;
  color: #ddd;
}

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

.answer-card {
  padding: 24px 0;
  border-bottom: 1px solid #f0f2f5;
  transition: background 0.2s;
}

.answer-card:last-child {
  border-bottom: none;
}

.answer-card:hover {
  background: #fafbfc;
  margin: 0 -12px;
  padding-left: 12px;
  padding-right: 12px;
  border-radius: 8px;
}

.answer-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.author-avatar-link {
  display: inline-block;
  flex-shrink: 0;
  line-height: 0;
}

.author-avatar-link:hover {
  opacity: 0.85;
}

.author-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid #f0f2f5;
}

.author-avatar-placeholder {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #667eea, #764ba2);
  flex-shrink: 0;
  border: 2px solid #f0f2f5;
}

.author-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.author-name {
  font-size: 15px;
  font-weight: 600;
  color: #1a1a2e;
  text-decoration: none;
}

.author-name:hover {
  color: #667eea;
}

.answer-time {
  font-size: 12px;
  color: #aaa;
}

.answer-content {
  font-size: 15px;
  color: #333;
  line-height: 1.9;
  margin-bottom: 14px;
  padding: 0 4px;
}

.answer-content h3 {
  font-size: 17px;
  font-weight: 700;
  color: #1a1a2e;
  margin: 24px 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #667eea20;
}

.answer-content h3:first-child {
  margin-top: 0;
}

.answer-content p {
  margin-bottom: 12px;
}

.answer-content p:last-child {
  margin-bottom: 0;
}

.answer-actions {
  display: flex;
  gap: 10px;
  padding-top: 4px;
}

.vote-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 16px;
  border: 1.5px solid #e8ecf0;
  border-radius: 8px;
  font-size: 13px;
  color: #666;
  background: #f8f9fa;
  cursor: pointer;
  transition: all 0.2s;
}

.vote-btn:hover {
  border-color: #667eea;
  color: #667eea;
  background: #f0f2ff;
}

.vote-btn:active {
  transform: scale(0.96);
}

.vote-btn i {
  font-size: 15px;
}

.sidebar-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.btn-write-answer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px 0;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 16px;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(102,126,234,0.3);
}

.btn-write-answer:hover {
  opacity: 0.92;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(102,126,234,0.35);
}

.sidebar-title {
  font-size: 15px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 14px;
}

.sidebar-title i {
  color: #e74c3c;
  margin-right: 6px;
}

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

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

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

.hot-num {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: #f0f2f5;
  color: #888;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.hot-item:nth-child(1) .hot-num {
  background: linear-gradient(135deg, #fef2f2, #fee2e2);
  color: #ef4444;
}

.hot-item:nth-child(2) .hot-num {
  background: linear-gradient(135deg, #fff7ed, #ffedd5);
  color: #f59e0b;
}

.hot-item:nth-child(3) .hot-num {
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  color: #d97706;
}

.hot-text {
  font-size: 13px;
  color: #555;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.answer-keywords {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 0 4px 16px;
}

.keyword-tag {
  display: inline-block;
  padding: 4px 14px;
  background: #f0f4f8;
  color: #666;
  border: 1px solid #e0e4e8;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 400;
  transition: all 0.2s;
}

.keyword-tag:hover {
  background: #e8ecf5;
  color: #667eea;
  border-color: #667eea40;
}

.answer-card.hidden {
  display: none;
}

.load-more {
  text-align: center;
  padding: 20px;
  color: #667eea;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  border-radius: 10px;
  margin-top: 8px;
  border: 1.5px dashed #d0d5f0;
}

.load-more:hover {
  background: #f5f6ff;
  border-color: #667eea;
  border-style: solid;
}

.load-more strong {
  color: #764ba2;
}

.answer-content a {
  color: #333;
  font-weight: 700;
}
.answer-content a:hover {
  color: #667eea;
  text-decoration: underline;
}


