/* eAgent Tutorial — matches landing black theme */
:root {
  --bg: #020202;
  --text: #fafafa;
  --muted: #71717a;
  --accent: #3b82f6;
  --border: rgba(255,255,255,0.08);
  --font-sans: "Inter", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

code, pre, kbd {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.tut-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: rgba(2,2,2,0.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  font-family: var(--font-sans);
}

.tut-nav a.brand {
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.35;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.tut-nav a:not(.brand) {
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.35;
  letter-spacing: 0;
  color: #e4e4e7;
  text-decoration: none;
}

.tut-nav a:not(.brand):hover {
  color: var(--accent);
  text-decoration: none;
}

.tut-wrap {
  display: grid;
  grid-template-columns: 220px 1fr;
  max-width: 1100px;
  margin: 0 auto;
  gap: 2rem;
  padding: 2rem;
}

.tut-sidebar {
  position: sticky;
  top: 4.5rem;
  align-self: start;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.45;
}

.tut-sidebar ul { list-style: none; }
.tut-sidebar li { margin-bottom: 0.45rem; }
.tut-sidebar a { color: var(--muted); text-decoration: none; }
.tut-sidebar a:hover { color: var(--accent); }

.tut-main h1 {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 0.5rem;
}

.tut-lead {
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.55;
  margin-bottom: 2.5rem;
}

.tut-main section {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.tut-main h2 {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
  color: #e4e4e7;
}

.tut-main h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.4;
  margin: 1.25rem 0 0.5rem;
  color: #a1a1aa;
}

.tut-main p, .tut-main li {
  color: #d4d4d8;
  font-size: 0.9375rem;
  line-height: 1.7;
  margin-bottom: 0.65rem;
}

.tut-main ol, .tut-main ul { padding-left: 1.25rem; margin-bottom: 1rem; }

.tut-fig {
  margin: 1.25rem 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #0a0a0a;
}

.tut-fig img { width: 100%; height: auto; display: block; }

.tut-fig figcaption {
  padding: 0.65rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

.tut-table-wrap { overflow-x: auto; margin: 1rem 0; }

table.tut-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  line-height: 1.5;
}

.tut-table th, .tut-table td {
  border: 1px solid var(--border);
  padding: 0.55rem 0.75rem;
  text-align: left;
}

.tut-table th {
  background: rgba(59,130,246,0.12);
  color: #93c5fd;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.tut-table td { color: #d4d4d8; }

.tut-dialog {
  background: #0f0f0f;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.15rem;
  margin: 0.75rem 0;
  font-size: 0.9375rem;
  line-height: 1.65;
}

.tut-dialog .user { color: #93c5fd; margin-bottom: 0.5rem; }
.tut-dialog .agent { color: #4ade80; }

.tut-faq dt {
  font-weight: 600;
  line-height: 1.45;
  color: #e4e4e7;
  margin-top: 1rem;
}

.tut-faq dd {
  color: #a1a1aa;
  font-size: 0.9375rem;
  line-height: 1.65;
  margin: 0.35rem 0 0 0;
}

.tut-foot {
  text-align: center;
  padding: 2rem;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

@media (max-width: 768px) {
  .tut-wrap { grid-template-columns: 1fr; }
  .tut-sidebar { position: static; }
}
