/* Axis Studio 官网教程页专用样式：只用于 website/tutorials/，不影响现有页面。 */
.tut-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.tut-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .06);
  color: #e6eaff;
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 13px;
}
.tut-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}
.tut-toc {
  position: sticky;
  top: 86px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}
.tut-toc h2 {
  font-size: 14px;
  margin-bottom: 10px;
}
.tut-toc ol {
  list-style: none;
  display: grid;
  gap: 4px;
  font-size: 13.5px;
}
.tut-toc a {
  display: block;
  padding: 7px 10px;
  border-radius: 8px;
  color: var(--muted);
}
.tut-toc a:hover {
  background: var(--panel2);
  color: var(--text);
}
.tut-article {
  min-width: 0;
  display: grid;
  gap: 22px;
}
.tut-step {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.tut-step-head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 24px 26px 0;
}
.tut-no {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  background: var(--grad);
  font-family: var(--mono);
}
.tut-step-head h2 {
  font-size: 21px;
  line-height: 1.35;
}
.tut-step-head p {
  color: var(--muted);
  font-size: 14.5px;
  margin-top: 6px;
}
.tut-step-body {
  padding: 18px 26px 24px;
  display: grid;
  gap: 16px;
}
.tut-step-body h3 {
  font-size: 16px;
  margin-top: 6px;
}
.tut-step-body p,
.tut-step-body li {
  font-size: 14.5px;
  color: #2c3a5c;
}
.tut-step-body ul,
.tut-step-body ol {
  padding-left: 22px;
  display: grid;
  gap: 8px;
}
.tut-figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, #f4f6ff 0%, #ffffff 70%);
  padding: 14px;
}
.tut-figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  background: #fff;
}
.tut-figure figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12.5px;
}
.tut-note,
.tut-warn,
.tut-tip {
  border-radius: 12px;
  padding: 13px 15px;
  font-size: 14px;
  line-height: 1.65;
}
.tut-note {
  background: rgba(99, 102, 241, .08);
  border: 1px solid rgba(99, 102, 241, .24);
}
.tut-warn {
  background: rgba(245, 158, 11, .1);
  border: 1px solid rgba(245, 158, 11, .3);
}
.tut-tip {
  background: rgba(52, 211, 153, .1);
  border: 1px solid rgba(52, 211, 153, .3);
}
.tut-code {
  font-family: var(--mono);
  font-size: 13px;
  background: #0e1530;
  color: #dbe2f7;
  border-radius: 12px;
  padding: 14px 16px;
  overflow-x: auto;
  white-space: pre;
  line-height: 1.6;
}
.tut-meta-table td:first-child {
  white-space: nowrap;
  font-weight: 700;
}
.tut-next {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
@media (max-width: 980px) {
  .tut-layout {
    grid-template-columns: 1fr;
  }
  .tut-toc {
    position: static;
  }
}
@media (max-width: 640px) {
  .tut-step-head,
  .tut-step-body {
    padding-left: 18px;
    padding-right: 18px;
  }
  .tut-step-head h2 {
    font-size: 19px;
  }
}
