/* ============ Tutorial 站专用样式(继承主站视觉) ============ */

/* 章节大卡片网格 */
.tut-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px; margin-top: 32px;
}
.tut-ch-card {
  padding: 24px; border-radius: 14px;
  background: linear-gradient(180deg, rgba(110,92,255,.06) 0%, rgba(110,92,255,.02) 100%);
  border: 1px solid rgba(110,92,255,.15);
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.tut-ch-card:hover {
  transform: translateY(-3px);
  border-color: rgba(110,92,255,.4);
  box-shadow: 0 10px 30px rgba(110,92,255,.15);
}
.tut-ch-num {
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  color: #6e5cff; letter-spacing: .12em; margin-bottom: 6px;
}
.tut-ch-title { font-size: 18px; font-weight: 600; margin-bottom: 4px; }
.tut-ch-en { font-size: 11px; color: #6a6a82; font-family: 'JetBrains Mono', monospace; margin-bottom: 14px; }
.tut-ch-desc { font-size: 13px; color: #9a9ab0; margin-bottom: 16px; line-height: 1.7; }
.tut-ch-list { list-style: none; padding: 0; margin: 0; }
.tut-ch-list li { margin-bottom: 8px; font-size: 13px; }
.tut-ch-list a {
  color: #c8c8d8; display: flex; gap: 8px; align-items: baseline; padding: 6px 0;
  border-bottom: 1px dashed rgba(255,255,255,.04); transition: color .2s;
}
.tut-ch-list a:hover { color: #fff; }
.tut-ch-list .sec-num { color: #6e5cff; font-family: 'JetBrains Mono', monospace; font-size: 11px; min-width: 36px; }
.tut-ch-foot {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 18px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.06);
  font-size: 12px; color: #6a6a82;
}

/* ============ 教程文章页布局 ============ */
.tut-article {
  max-width: 880px; margin: 0 auto; padding: 60px 32px 100px;
}
.tut-back {
  display: inline-block; font-size: 13px; color: #8a8a9e;
  margin-bottom: 32px; transition: color .2s;
}
.tut-back:hover { color: #fff; }
.tut-meta {
  display: flex; gap: 12px; align-items: center; font-size: 12px;
  color: #6a6a82; margin-bottom: 14px; font-family: 'JetBrains Mono', monospace;
}
.tut-meta .tag {
  padding: 3px 10px; border-radius: 100px;
  background: rgba(110,92,255,.12); color: #b8b0ff; font-size: 11px;
}
.tut-article h1 {
  font-size: clamp(32px, 5vw, 44px); line-height: 1.2;
  letter-spacing: -.02em; margin-bottom: 16px; font-weight: 700;
}
.tut-article h2 {
  font-size: 24px; margin: 48px 0 16px; font-weight: 600;
  padding-top: 12px; border-top: 1px solid rgba(255,255,255,.06);
}
.tut-article h3 { font-size: 18px; margin: 28px 0 12px; font-weight: 600; color: #d8d8e8; }
.tut-article p { font-size: 15px; color: #c0c0d0; line-height: 1.85; margin-bottom: 16px; }
.tut-article ul, .tut-article ol { margin: 16px 0 16px 24px; }
.tut-article li { font-size: 15px; color: #c0c0d0; line-height: 1.85; margin-bottom: 6px; }
.tut-article strong { color: #fff; font-weight: 600; }
.tut-article code {
  font-family: 'JetBrains Mono', monospace; font-size: 13px;
  padding: 2px 6px; border-radius: 4px;
  background: rgba(110,92,255,.1); color: #b8b0ff;
}
.tut-article pre {
  background: #0d0e15; border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px; padding: 20px; margin: 20px 0;
  overflow-x: auto; font-size: 13px; line-height: 1.7;
}
.tut-article pre code {
  background: none; padding: 0; color: #d8d8e8; font-size: 13px;
}
.tut-callout {
  margin: 24px 0; padding: 18px 20px; border-radius: 10px;
  background: linear-gradient(135deg, rgba(110,92,255,.08), rgba(0,212,255,.05));
  border-left: 3px solid #6e5cff;
  font-size: 14px; color: #d0d0e0;
}
.tut-callout strong { color: #fff; }
.tut-cta {
  margin: 48px 0 24px; padding: 32px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(110,92,255,.12), rgba(0,212,255,.08));
  border: 1px solid rgba(110,92,255,.25);
  text-align: center;
}
.tut-cta h3 { margin: 0 0 8px; font-size: 22px; }
.tut-cta p { color: #b0b0c0; margin-bottom: 20px; font-size: 14px; }
.tut-cta-btn {
  display: inline-block; padding: 12px 28px; border-radius: 8px;
  background: linear-gradient(135deg, #6e5cff 0%, #00d4ff 100%);
  color: #fff; font-weight: 600; font-size: 14px;
  transition: transform .2s, box-shadow .2s;
}
.tut-cta-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(110,92,255,.4); color: #fff; }

.tut-nav-foot {
  display: flex; justify-content: space-between; gap: 16px;
  margin-top: 60px; padding-top: 32px; border-top: 1px solid rgba(255,255,255,.06);
}
.tut-nav-foot a {
  flex: 1; padding: 16px 20px; border-radius: 10px;
  background: rgba(110,92,255,.04); border: 1px solid rgba(110,92,255,.12);
  font-size: 13px; color: #a8a8bc; transition: all .2s;
}
.tut-nav-foot a:hover { background: rgba(110,92,255,.08); color: #fff; }
.tut-nav-foot .nav-dir { font-size: 11px; color: #6a6a82; display: block; margin-bottom: 4px; font-family: 'JetBrains Mono', monospace; }
.tut-nav-foot .nav-title { color: #fff; font-weight: 500; }
.tut-nav-foot .next { text-align: right; }

@media (max-width: 768px) {
  .tut-article { padding: 40px 20px 60px; }
  .tut-grid { grid-template-columns: 1fr; }
  .tut-nav-foot { flex-direction: column; }
  .tut-nav-foot .next { text-align: left; }
}
