* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #0d1117;
  color: #c9d1d9;
  line-height: 1.6;
}

/* Header */
.guide-header {
  height: 60px;
  background-color: #161b22;
  border-bottom: 1px solid #30363d;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-left .logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-logo-img {
  width: 24px;
  height: 24px;
}

.logo-text {
  font-weight: 700;
  font-size: 16px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.badge {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  background-color: rgba(56, 189, 248, 0.1);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.2);
  letter-spacing: 0.5px;
}

.header-right {
  display: flex;
  gap: 12px;
}

.btn-link {
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05);
  color: #c9d1d9;
  transition: all 0.2s;
}

.btn-link:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}

.back-link {
  border-color: rgba(139, 92, 246, 0.3);
  color: #b388ff;
  background: rgba(139, 92, 246, 0.1);
}

.back-link:hover {
  background: rgba(139, 92, 246, 0.2);
}

/* Layout */
.container {
  display: flex;
  max-width: 1400px;
  margin: 0 auto;
  min-height: calc(100vh - 60px);
}

/* Sidebar */
.sidebar {
  width: 260px;
  border-right: 1px solid #30363d;
  padding: 24px 0;
  background-color: #0d1117;
  flex-shrink: 0;
}

.sidebar ul {
  list-style: none;
}

.sidebar li {
  padding: 10px 24px;
  margin: 4px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: #8b949e;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar li:hover {
  background-color: #161b22;
  color: #c9d1d9;
}

.sidebar li.active {
  background-color: rgba(88, 166, 255, 0.1);
  color: #58a6ff;
  border-left: 3px solid #58a6ff;
  border-radius: 0 6px 6px 0;
}

.sidebar li.highlight {
  color: #00e68a;
}
.sidebar li.highlight.active {
  background-color: rgba(0, 230, 138, 0.1);
  border-left-color: #00e68a;
  color: #00e68a;
}

/* Content Area */
.content {
  flex-grow: 1;
  padding: 48px;
  max-width: 900px;
  background-color: #0d1117;
}

/* Markdown Styles */
.content h1 {
  font-size: 32px;
  border-bottom: 1px solid #30363d;
  padding-bottom: 12px;
  margin-bottom: 24px;
  color: #fff;
}

.content h2 {
  font-size: 24px;
  margin-top: 36px;
  margin-bottom: 16px;
  color: #fff;
}

.content h3 {
  font-size: 18px;
  margin-top: 24px;
  margin-bottom: 12px;
  color: #e6edf3;
}

.content p {
  margin-bottom: 16px;
}

.content ul, .content ol {
  margin-bottom: 16px;
  padding-left: 24px;
}

.content li {
  margin-bottom: 6px;
}

.content code {
  background-color: rgba(110, 118, 129, 0.4);
  padding: 2px 6px;
  border-radius: 6px;
  font-family: monospace;
  font-size: 13px;
}

.content pre {
  background-color: #161b22;
  border: 1px solid #30363d;
  border-radius: 6px;
  padding: 16px;
  overflow-x: auto;
  margin-bottom: 24px;
}

.content pre code {
  background-color: transparent;
  padding: 0;
}

.content a {
  color: #58a6ff;
  text-decoration: none;
}

.content a:hover {
  text-decoration: underline;
}

.content strong {
  color: #fff;
}

.alert-note {
  padding: 12px 16px;
  background-color: rgba(56, 189, 248, 0.1);
  border-left: 4px solid #38bdf8;
  border-radius: 4px;
  margin-bottom: 16px;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeIn 0.3s ease-out forwards;
}
