/* API文档页面样式 */
@import url('home.css');

.docs-main {
  min-height: 100vh;
}

.page-header {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  text-align: center;
  padding: 4rem 2rem;
}

.page-header h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.page-header p {
  font-size: 1.25rem;
  opacity: 0.9;
}

.docs-content {
  max-width: 1200px;
  margin: 4rem auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 3rem;
}

.docs-sidebar {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
  position: sticky;
  top: 100px;
}

.docs-sidebar h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.docs-sidebar ul {
  list-style: none;
  padding: 0;
}

.docs-sidebar li {
  margin-bottom: 0.75rem;
}

.docs-sidebar a {
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

.docs-sidebar a:hover {
  color: var(--primary-color);
}

.docs-body article {
  margin-bottom: 3rem;
}

.docs-body h2 {
  font-size: 2rem;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  text-align: left;
}

.docs-body h3 {
  font-size: 1.5rem;
  color: var(--text-primary);
  margin: 2rem 0 1rem;
}

.docs-body p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.docs-body pre {
  background: #1e293b;
  color: #e2e8f0;
  padding: 1.5rem;
  border-radius: 8px;
  overflow-x: auto;
  margin: 1rem 0;
}

.docs-body code {
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
}

.docs-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}

.docs-body th,
.docs-body td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.docs-body th {
  background: var(--bg-light);
  font-weight: 600;
  color: var(--text-primary);
}

.docs-body td {
  color: var(--text-secondary);
}

@media (max-width: 768px) {
  .page-header h1 {
    font-size: 2rem;
  }
  
  .docs-content {
    grid-template-columns: 1fr;
  }
  
  .docs-sidebar {
    position: static;
  }
}
