* { 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;
}

.stats-bar {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.stat-item {
  flex: 1;
  background: #fff;
  border-radius: 10px;
  padding: 20px 24px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  display: flex;
  align-items: center;
  gap: 16px;
}

.stat-item .stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.stat-item .stat-icon.blue { background: #eef2ff; color: #667eea; }
.stat-item .stat-icon.green { background: #ecfdf5; color: #10b981; }
.stat-item .stat-icon.orange { background: #fff7ed; color: #f59e0b; }

.stat-item .stat-info .stat-number {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a2e;
  line-height: 1.2;
}

.stat-item .stat-info .stat-label {
  font-size: 13px;
  color: #888;
  margin-top: 2px;
}

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

.ai-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 8px;
}

.ai-grid .ai-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 4px;
  text-decoration: none;
  transition: background 0.2s;
  border-radius: 8px;
}

.ai-grid .ai-item:hover {
  background: #f6f8fa;
}

.ai-grid .ai-item .ai-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea, #764ba2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  flex-shrink: 0;
  overflow: hidden;
}

.ai-grid .ai-item .ai-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ai-grid .ai-item .ai-avatar .avatar-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #667eea, #764ba2);
}

.ai-grid .ai-item .ai-name {
  font-size: 12px;
  color: #555;
  text-align: center;
  line-height: 1.2;
}

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

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

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

.hero-card {
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 12px;
  padding: 28px 32px;
  margin-bottom: 20px;
  color: #fff;
}

.hero-card h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}

.hero-card p {
  font-size: 14px;
  opacity: 0.85;
  line-height: 1.6;
  margin-bottom: 20px;
}

.hero-search {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.hero-search input {
  flex: 1;
  padding: 16px 20px;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  outline: none;
  background: rgba(255,255,255,0.2);
  color: #fff;
  transition: background 0.2s;
}

.hero-search input::placeholder {
  color: rgba(255,255,255,0.6);
}

.hero-search input:focus {
  background: rgba(255,255,255,0.3);
}

.hero-search-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 24px;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  background: #fff;
  color: #667eea;
  transition: opacity 0.2s;
  white-space: nowrap;
}

.hero-search-btn:hover {
  opacity: 0.9;
}

.hero-card .hero-actions {
  display: flex;
  gap: 20px;
}

.hero-card .hero-actions a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s;
}

.hero-card .hero-actions a:hover {
  opacity: 0.9;
}

.hero-card .hero-actions .btn-ask {
  background: rgba(255,255,255,0.2);
  color: #fff;
}

.hero-card .hero-actions .btn-answer {
  background: rgba(255,255,255,0.2);
  color: #fff;
}

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

.question-card {
  background: #fff;
  border-radius: 10px;
  padding: 24px 24px 20px;
  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 {
  display: block;
  font-size: 20px;
  font-weight: 700;
  color: #1a1a2e;
  text-decoration: none;
  margin-bottom: 20px;
  line-height: 1.5;
  letter-spacing: 1px;
}

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

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

.question-card .q-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 18px;
  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: #f5f6f8;
  min-width: 64px;
}

.question-card .q-actions .q-action-btn:hover {
  background: #e8eaed;
  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;
}

.question-card .q-actions .q-category {
  display: inline-block;
  padding: 5px 14px;
  background: #eef2ff;
  color: #667eea;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  margin-left: auto;
  text-decoration: none;
}

.question-card .q-actions .q-category:hover {
  background: #dfe4ff;
}

.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;
}

.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;
}

.loading-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 30px 0;
  color: #999;
  font-size: 14px;
}

.loading-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid #e8ecf0;
  border-top-color: #667eea;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.no-more {
  text-align: center;
  padding: 20px 0;
  color: #ccc;
  font-size: 13px;
}

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

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

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

.active-role-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
  overflow: hidden;
}

.active-role-avatar img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.active-role-avatar-text {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
}

.active-role-info {
  flex: 1;
  min-width: 0;
}

.active-role-name {
  font-size: 13px;
  font-weight: 600;
  color: #1a1a2e;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.active-role-desc {
  font-size: 11px;
  color: #bbb;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.active-role-count {
  font-size: 12px;
  color: #667eea;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.active-role-item:hover .active-role-name {
  color: #667eea;
}

.breadcrumb-card {
  background: #fff;
  border-radius: 12px;
  padding: 16px 24px;
  margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.breadcrumb {
  font-size: 14px;
  color: #999;
}

.breadcrumb a {
  color: #999;
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: #667eea;
}

.breadcrumb .sep {
  margin: 0 10px;
  color: #ccc;
}

.breadcrumb .current {
  color: #333;
  font-weight: 500;
}

.ask-modal-card {
  background: #fff;
  border-radius: 16px;
  padding: 40px 36px 32px;
  width: 100%;
  max-width: 820px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
  animation: modalIn 0.3s ease;
}
.ask-form input[type="text"] {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid #e8eaed;
  border-radius: 10px;
  font-size: 17px;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.ask-form input[type="text"]:focus {
  border-color: #667eea;
}
.ask-form textarea {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid #e8eaed;
  border-radius: 10px;
  font-size: 15px;
  outline: none;
  resize: vertical;
  transition: border-color 0.2s;
  font-family: inherit;
  box-sizing: border-box;
  min-height: 120px;
}
.ask-form textarea:focus {
  border-color: #667eea;
}
.ask-submit-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}
.ask-submit-btn:hover {
  opacity: 0.9;
}
.ask-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.ask-error {
  color: #e74c3c;
  font-size: 13px;
  text-align: center;
  margin-bottom: 12px;
  display: none;
}
.ask-error.show {
  display: block;
}

.empty-state-text {
  text-align: center;
  padding: 20px 0;
  color: #bbb;
  font-size: 13px;
}


