.guide-page-body {
  background: #f1f5f9;
  min-height: 100dvh;
  color: #0f172a;
}

.guide-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  max-width: 880px;
  margin: 0 auto;
  padding: 16px 20px;
}

.guide-top .logo {
  font-weight: 700;
  font-size: 17px;
  color: #4f46e5;
  text-decoration: none;
}

.guide-top-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.guide-top-nav a {
  font-size: 14px;
  font-weight: 600;
  color: #475569;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #e2e8f0;
}

.guide-top-nav a:hover {
  color: #4f46e5;
  border-color: #c7d2fe;
}

.guide-top-nav a.guide-nav-primary {
  background: #4f46e5;
  color: #fff;
  border-color: #4f46e5;
}

.guide-top-nav a.guide-nav-primary:hover {
  background: #4338ca;
  color: #fff;
}

.guide-page {
  max-width: 880px;
  margin: 0 auto;
  padding: 8px 20px 56px;
}

.guide-hero {
  margin-bottom: 20px;
}

.guide-hero-badge {
  display: inline-block;
  margin: 0 0 10px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 700;
  color: #4338ca;
  background: #eef2ff;
  border-radius: 999px;
}

.guide-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 4vw, 1.85rem);
  line-height: 1.25;
}

.guide-lead {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: #475569;
}

.guide-value-flow {
  margin-bottom: 28px;
  padding: 18px 20px;
  background: linear-gradient(135deg, #eef2ff 0%, #f8fafc 100%);
  border: 1px solid #c7d2fe;
  border-radius: 16px;
}

.guide-value-flow-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 6px;
}

.guide-flow-item {
  font-size: 14px;
  font-weight: 700;
  color: #312e81;
  padding: 8px 12px;
  background: #fff;
  border-radius: 10px;
  border: 1px solid #e0e7ff;
  white-space: nowrap;
}

.guide-flow-item-start {
  border-color: #a5b4fc;
  background: #fff;
}

.guide-flow-item-end {
  background: #4f46e5;
  color: #fff;
  border-color: #4f46e5;
}

.guide-flow-arrow {
  font-size: 18px;
  font-weight: 700;
  color: #6366f1;
  line-height: 1;
}

.guide-value-caption {
  margin: 14px 0 0;
  text-align: center;
  font-size: 14px;
  line-height: 1.55;
  color: #475569;
}

.guide-toc {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 16px 18px;
  margin-bottom: 28px;
}

.guide-toc h2 {
  margin: 0 0 12px;
  font-size: 14px;
  color: #64748b;
  font-weight: 600;
}

.guide-toc-group-label {
  margin: 12px 0 8px;
  font-size: 12px;
  font-weight: 700;
  color: #6366f1;
  text-transform: none;
}

.guide-toc-group-label:first-of-type {
  margin-top: 0;
}

.guide-toc-start,
.guide-toc-grow {
  margin: 0 0 4px;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px 16px;
}

.guide-toc a {
  font-size: 14px;
  color: #4f46e5;
  text-decoration: none;
  line-height: 1.4;
}

.guide-toc a:hover {
  text-decoration: underline;
}

.guide-steps-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.guide-step {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 22px 22px 24px;
  scroll-margin-top: 16px;
}

.guide-step-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
}

.guide-step-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: #eef2ff;
  color: #4f46e5;
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.guide-step-head h2 {
  margin: 0;
  font-size: clamp(1.05rem, 3vw, 1.2rem);
  line-height: 1.35;
}

.guide-step-sub {
  margin: -6px 0 10px 50px;
  font-size: 14px;
  font-weight: 600;
  color: #6366f1;
}

.guide-step-highlight {
  border-color: #c7d2fe;
  box-shadow: 0 4px 20px rgba(79, 70, 229, 0.06);
}

.guide-step-body {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: #334155;
}

.guide-step-tip {
  margin: 12px 0 0;
  padding: 12px 14px;
  background: #f8fafc;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.55;
  color: #64748b;
}

.guide-media {
  margin-top: 18px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  background: #e2e8f0;
}

.guide-shot {
  display: none;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

.guide-shot.is-loaded {
  display: block;
}

.guide-shot-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 180px;
  padding: 24px 20px;
  text-align: center;
  color: #64748b;
}

.guide-shot-fallback.is-hidden {
  display: none;
}

.guide-shot-fallback-icon {
  font-size: 28px;
  opacity: 0.7;
}

.guide-shot-fallback p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}

.guide-shot-fallback .guide-shot-path {
  font-size: 11px;
  color: #94a3b8;
  word-break: break-all;
  max-width: 100%;
}

.guide-footer-note {
  margin-top: 32px;
  padding: 16px 18px;
  background: #fff;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  font-size: 14px;
  line-height: 1.6;
  color: #475569;
}

@media (max-width: 520px) {
  .guide-top {
    padding: 14px 16px;
  }

  .guide-page {
    padding: 4px 16px 40px;
  }

  .guide-step {
    padding: 18px 16px 20px;
  }

  .guide-toc-start,
  .guide-toc-grow {
    grid-template-columns: 1fr;
  }

  .guide-step-sub {
    margin-left: 0;
    margin-top: 4px;
  }

  .guide-flow-item {
    font-size: 13px;
    padding: 6px 10px;
  }

  .guide-shot-fallback {
    min-height: 140px;
    padding: 20px 16px;
  }
}
