/* ── Article Layout ── */
.article-main {
  padding-top: 48px;
  padding-bottom: 80px;
}

.article-container {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

/* ── Breadcrumb ── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 28px;
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}

.breadcrumb a:hover {
  color: var(--text);
  text-decoration: none;
}

.breadcrumb-sep {
  color: var(--muted2);
}

/* ── Article Header ── */
.article-header {
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.article-header h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 12px;
  color: var(--text);
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 14px;
}

.article-meta time {
  display: flex;
  align-items: center;
  gap: 5px;
}

.article-desc {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.75;
  margin: 0;
}

/* ── Article Body ── */
.article-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ── Step Card ── */
.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
}

.step-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.step-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: var(--badge-live);
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
}

.step-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.step-card ul li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
}

.step-card ul li::before {
  content: "•";
  color: var(--accent);
  font-size: 16px;
  line-height: 1.4;
  flex-shrink: 0;
}

/* ── Key Point Box ── */
.key-point {
  margin-top: 16px;
  padding: 14px 16px;
  background: rgba(59, 130, 246, 0.06);
  border: 1px solid rgba(59, 130, 246, 0.18);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  font-size: 13.5px;
  color: var(--text);
  line-height: 1.7;
}

.key-point strong {
  color: var(--accent);
}

/* ── Timeline ── */
.timeline-block {
  margin-bottom: 20px;
}

.timeline-block:last-of-type {
  margin-bottom: 0;
}

.timeline-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 12px;
}

.timeline-label.bad  { color: #f87171; }
.timeline-label.good { color: var(--badge-live); }

.timeline {
  display: flex;
  align-items: flex-start;
  gap: 0;
  overflow-x: auto;
  padding-bottom: 4px;
}

.timeline-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  min-width: 80px;
}

.timeline-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-bottom: 8px;
}

.timeline-bad  .timeline-dot { background: #f87171; }
.timeline-good .timeline-dot { background: var(--badge-live); }

.timeline-time {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
  text-align: center;
}

.timeline-desc {
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  line-height: 1.4;
  max-width: 72px;
}

.timeline-connector {
  flex: 1;
  min-width: 24px;
  margin-top: 5px;
}

.timeline-bad  .timeline-connector { border-top: 2px dashed #f87171; }
.timeline-good .timeline-connector { border-top: 2px solid var(--badge-live); }

.timeline-note {
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--muted);
  padding: 8px 12px;
  background: rgba(255,255,255,0.03);
  border-radius: 6px;
  border: 1px solid var(--border);
}

.timeline-note.highlight {
  color: var(--badge-live);
  border-color: rgba(34, 197, 94, 0.2);
  background: rgba(34, 197, 94, 0.05);
}

/* ── Setup Grid ── */
.setup-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 4px;
}

.setup-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
}

.setup-card-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.setup-tag {
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 999px;
  font-weight: 600;
}

.setup-tag-blue {
  background: rgba(59,130,246,0.12);
  color: #60a5fa;
  border: 1px solid rgba(59,130,246,0.2);
}

.setup-tag-purple {
  background: rgba(168,85,247,0.12);
  color: #c084fc;
  border: 1px solid rgba(168,85,247,0.2);
}

.setup-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.setup-card ul li {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.55;
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.setup-card ul li::before {
  content: "✓";
  color: var(--badge-live);
  font-size: 11px;
  flex-shrink: 0;
  margin-top: 1px;
}

.setup-card code {
  display: block;
  margin-top: 8px;
  padding: 10px 12px;
  background: rgba(0,0,0,0.3);
  border-radius: 6px;
  font-size: 11.5px;
  color: #a5f3fc;
  line-height: 1.6;
  word-break: break-all;
  font-family: 'SFMono-Regular', Consolas, monospace;
}

/* ── Tip Box ── */
.tip-box {
  border-left: 3px solid #f97316;
  background: rgba(249, 115, 22, 0.06);
  border-radius: 0 8px 8px 0;
  padding: 14px 16px;
  font-size: 13.5px;
  color: var(--text);
  line-height: 1.7;
}

.tip-box strong {
  color: #fb923c;
}

.tip-box ul {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tip-box ul li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.tip-box ul li::before {
  content: "•";
  color: #f97316;
  flex-shrink: 0;
}

/* ── Summary Image ── */
.summary-image-wrap {
  margin-top: 8px;
  text-align: center;
}

.summary-image-wrap > p {
  font-size: 12px;
  color: var(--muted2);
  margin-bottom: 12px;
}

.summary-image-container {
  position: relative;
  display: inline-block;
  width: 100%;
}

.summary-image {
  max-width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border);
  display: block;
  margin: 0 auto;
}

.image-watermark {
  position: absolute;
  bottom: 14px;
  right: 14px;
  background: rgba(0, 0, 0, 0.52);
  color: rgba(255, 255, 255, 0.82);
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 5px;
  letter-spacing: 0.04em;
  pointer-events: none;
  backdrop-filter: blur(4px);
}

/* ── Tutorial Card (list page) ── */
.tutorial-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tutorial-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 24px;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}

.tutorial-card:hover {
  background: var(--surface-hover);
  border-color: var(--border-strong);
  transform: translateY(-1px);
  text-decoration: none;
  color: inherit;
}

.tutorial-card-body h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.tutorial-card-body p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 8px;
}

.tutorial-card-date {
  font-size: 12px;
  color: var(--muted2);
}

.tutorial-card-arrow {
  font-size: 18px;
  color: var(--muted);
  flex-shrink: 0;
  transition: color 0.15s;
}

.tutorial-card:hover .tutorial-card-arrow {
  color: var(--text);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .setup-grid {
    grid-template-columns: 1fr;
  }

  .timeline {
    gap: 0;
  }

  .timeline-item {
    min-width: 64px;
  }
}
