:root {
  --bg: #f8fafc;
  --panel: #ffffff;
  --border: #e5e7eb;
  --text: #111827;
  --muted: #6b7280;
  --primary: #14b8a6;
  --primary-dark: #0f766e;
  --primary-soft: #ecfeff;
  --shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button,
a {
  font: inherit;
}

code,
pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.guide-page {
  padding: 32px 16px 48px;
}

.guide-shell {
  max-width: 1280px;
  margin: 0 auto;
}

.page-hero {
  text-align: center;
  margin-bottom: 28px;
}

.page-hero h1 {
  margin: 0;
  font-size: 36px;
  line-height: 1.1;
  font-weight: 800;
}

.page-hero p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.guide-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.guide-sidebar {
  position: sticky;
  top: 24px;
  display: grid;
  gap: 16px;
}

.card,
.step-card,
.cta-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.sidebar-card {
  padding: 12px;
}

.sidebar-intro {
  padding: 8px 10px 14px;
}

.sidebar-intro h2,
.support-head h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
}

.sidebar-intro p,
.support-head p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.section-nav {
  display: grid;
  gap: 10px;
}

.section-link {
  width: 100%;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 18px;
  padding: 14px;
  text-align: left;
  display: flex;
  gap: 12px;
  cursor: pointer;
  transition: 0.2s ease;
}

.section-link:hover,
.section-link.active {
  border-color: rgba(20, 184, 166, 0.25);
  background: var(--primary-soft);
}

.step-badge,
.section-number,
.mini-badge {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-weight: 800;
  flex: 0 0 auto;
  box-shadow: 0 10px 24px rgba(20, 184, 166, 0.22);
}

.section-copy {
  min-width: 0;
}

.section-copy strong {
  display: block;
  font-size: 14px;
}

.section-copy small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.support-card {
  overflow: hidden;
}

.support-head {
  padding: 16px 18px 12px;
  border-bottom: 1px solid var(--border);
}

.support-card img {
  width: 100%;
}

.guide-content {
  min-width: 0;
}

.guide-section {
  display: none;
}

.guide-section.active {
  display: block;
}

.guide-section + .guide-section {
  margin-top: 24px;
}

.section-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}

.section-number {
  width: 40px;
  height: 40px;
  border-radius: 14px;
}

.section-header h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 800;
}

.section-header p {
  margin: 6px 0 0;
  color: var(--muted);
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px;
  border-bottom: 1px solid var(--border);
}

.tab-button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 12px 16px;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 700;
}

.tab-button.active {
  background: var(--primary-soft);
  color: var(--primary-dark);
}

.tag {
  display: inline-flex;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  background: rgba(20, 184, 166, 0.12);
}

.tab-panel {
  display: none;
  padding: 24px;
}

.tab-panel.active {
  display: block;
}

.step-card {
  padding: 24px;
  margin-top: 18px;
}

.step-card:first-child {
  margin-top: 0;
}

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

.step-card-head h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
}

.mini-badge {
  width: 30px;
  height: 30px;
  font-size: 14px;
}

.step-card p {
  margin: 0 0 14px;
  color: #374151;
  line-height: 1.75;
}

.text-list {
  display: grid;
  gap: 12px;
}

.text-list p {
  margin: 0;
}

.step-card img {
  margin-top: 16px;
  border-radius: 18px;
  border: 1px solid var(--border);
}

.note {
  padding: 14px 16px;
  border-radius: 16px;
  line-height: 1.7;
  margin: 14px 0;
  border: 1px solid transparent;
}

.note-blue,
.note.info {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
}

.note-yellow {
  background: #fefce8;
  border-color: #fde68a;
  color: #a16207;
}

.note-green {
  background: #f0fdf4;
  border-color: #86efac;
  color: #15803d;
}

.note-red {
  background: #fef2f2;
  border-color: #fca5a5;
  color: #b91c1c;
}

.note-rose {
  background: #fff1f2;
  border-color: #fda4af;
  color: #be123c;
}

.note-indigo {
  background: #eef2ff;
  border-color: #c7d2fe;
  color: #4338ca;
}

.note-orange {
  background: #fff7ed;
  border-color: #fdba74;
  color: #c2410c;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 16px 0;
}

.button-row.compact {
  margin-top: 12px;
}

.action-button {
  border: 0;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 14px;
  padding: 12px 18px;
  cursor: pointer;
  font-weight: 700;
  transition: 0.2s ease;
}

.action-button.primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
}

.action-button.secondary {
  background: #fff;
  border: 1px solid var(--border);
  color: #374151;
}

.action-button.indigo {
  background: linear-gradient(135deg, #6366f1, #4338ca);
  color: #fff;
}

.action-button:hover {
  transform: translateY(-1px);
}

.code-block {
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--border);
  margin-top: 16px;
}

.code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #f3f4f6;
  color: var(--muted);
  font-size: 12px;
}

.copy-button {
  border: 0;
  background: #fff;
  border-radius: 10px;
  padding: 6px 12px;
  cursor: pointer;
  color: #374151;
  font-size: 12px;
}

.code-block pre {
  margin: 0;
  padding: 16px;
  overflow-x: auto;
  background: #0f172a;
  color: #f8fafc;
  line-height: 1.7;
  font-size: 13px;
}

.grid-notes {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 16px 0;
}

.mini-note {
  padding: 14px;
  background: #f9fafb;
  border: 1px solid var(--border);
  border-radius: 16px;
  display: grid;
  gap: 6px;
}

.mini-note strong {
  font-size: 14px;
}

.mini-note span {
  font-size: 13px;
  color: #4b5563;
  line-height: 1.6;
}

.cta-card {
  margin-top: 20px;
  padding: 28px;
  text-align: center;
  background: linear-gradient(180deg, #f0fdfa, #ecfeff);
}

.cta-title {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: var(--primary-dark);
}

.cta-subtitle {
  margin: 10px 0 0;
  color: #0f766e;
}

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-item {
  padding: 0;
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 20px;
  font-weight: 700;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-answer {
  border-top: 1px solid var(--border);
  padding: 16px 20px 20px;
  color: #4b5563;
  line-height: 1.8;
}

@media (max-width: 1023px) {
  .guide-layout {
    grid-template-columns: 1fr;
  }

  .guide-sidebar {
    position: static;
  }

  .section-nav {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .guide-page {
    padding: 20px 12px 36px;
  }

  .page-hero h1 {
    font-size: 28px;
  }

  .section-header h2 {
    font-size: 24px;
  }

  .tab-panel,
  .step-card,
  .cta-card {
    padding: 18px;
  }

  .grid-notes {
    grid-template-columns: 1fr;
  }
}
