/* Phase 2: 文献切换器样式 */

.doc-switcher {
  padding: 16px 20px;
  background: linear-gradient(135deg, #fff7e6 0%, #fffbe6 100%);
  border-bottom: 1px solid #ffd591;
}

.doc-switcher-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.current-doc-label {
  font-size: 13px;
  color: #8c8c8c;
  font-weight: 500;
}

.current-doc-name {
  font-size: 14px;
  color: #262626;
  font-weight: 600;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.doc-switcher-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.doc-switch-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  font-size: 13px;
  color: #595959;
  transition: all 0.2s;
  max-width: 200px;
}

.doc-switch-btn:hover {
  border-color: #faad14;
  background: #fffbe6;
}

.doc-switch-btn.active {
  border-color: #faad14;
  background: #fff7e6;
  color: #d46b08;
  font-weight: 500;
}

.doc-indicator {
  font-size: 12px;
  flex-shrink: 0;
}

.doc-switch-btn.active .doc-indicator {
  color: #faad14;
}

.doc-btn-name {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.doc-btn-tokens {
  flex-shrink: 0;
  font-family: 'Monaco', 'Menlo', monospace;
  font-size: 11px;
  color: #52c41a;
  background: #f6ffed;
  padding: 2px 4px;
  border-radius: 2px;
}

.doc-switch-btn.active .doc-btn-tokens {
  background: #fff7e6;
  color: #faad14;
}






