:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --dark: #0f172a;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.navbar {
  background: rgba(15, 23, 42, 0.95) !important;
  backdrop-filter: blur(10px);
}

.navbar-brand {
  color: var(--primary) !important;
}

.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

.hero {
  padding: 80px 0;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.feature-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  transition: transform 0.2s;
}

.feature-card:hover {
  transform: translateY(-4px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: #e0e7ff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--primary);
}

.provider-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  opacity: 0.6;
}

.provider-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
}

.provider-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.model-card {
  background: white;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  transition: all 0.2s;
  cursor: pointer;
}

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

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

.model-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: var(--primary);
}

.model-name {
  font-weight: 600;
  margin: 0;
}

.model-provider {
  font-size: 12px;
  color: #64748b;
}

.model-price {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: #64748b;
}

.price-input {
  color: #059669;
}

.price-output {
  color: #dc2626;
}

.chat-container {
  height: calc(100vh - 120px);
  display: flex;
  flex-direction: column;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.message {
  max-width: 80%;
  padding: 12px 16px;
  border-radius: 12px;
  margin-bottom: 12px;
}

.message-user {
  background: var(--primary);
  color: white;
  margin-left: auto;
  border-bottom-right-radius: 4px;
}

.message-assistant {
  background: #f1f5f9;
  margin-right: auto;
  border-bottom-left-radius: 4px;
}

.chat-input {
  padding: 16px;
  background: white;
  border-top: 1px solid #e2e8f0;
}

.sidebar {
  background: #f8fafc;
  border-right: 1px solid #e2e8f0;
  height: calc(100vh - 56px);
  overflow-y: auto;
}

.nav-tabs .nav-link {
  border: none;
  color: #64748b;
}

.nav-tabs .nav-link.active {
  color: var(--primary);
  border-bottom: 2px solid var(--primary);
}

.table-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.premium-badge {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.status-online { background: #10b981; }
.status-warning { background: #f59e0b; }
.status-offline { background: #ef4444; }

@media (max-width: 768px) {
  .hero { padding: 40px 0; }
  .hero h1 { font-size: 2rem; }
}

/* 九紫离火 - 紫红渐变主题 */
.code-block {
  background: linear-gradient(135deg, #1a0a1f 0%, #2d1b3d 50%, #1f0a14 100%) !important;
  color: #e0c0f0 !important;
  border: 1px solid #9b59b6;
  border-radius: 8px;
  padding: 16px !important;
  font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
  font-size: 14px;
  line-height: 1.5;
  overflow-x: auto;
  box-shadow: 0 2px 8px rgba(155, 89, 182, 0.2);
}

.code-block code {
  color: #d4a5e8 !important;
  background: transparent !important;
  padding: 0 !important;
}
