/* ===== 教程页公共样式 ===== */
:root {
  --primary: #6C5CE7;
  --primary-light: #A29BFE;
  --primary-dark: #5A4BD1;
  --primary-bg: #F0EDFF;
  --success: #00B894;
  --success-bg: #E6FFF7;
  --warning: #FDCB6E;
  --danger: #E17055;
  --text-primary: #1A1A2E;
  --text-secondary: #636E72;
  --text-light: #B2BEC3;
  --bg: #F5F5FA;
  --bg-white: #FFFFFF;
  --border: #E8E8EE;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.06);
  --radius: 16px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ===== 导航 ===== */
.guide-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 1.5rem;
}

.guide-nav-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.guide-nav-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.guide-nav-links {
  display: flex;
  gap: 1.25rem;
  font-size: 0.85rem;
}

.guide-nav-links a {
  color: var(--text-secondary);
  font-weight: 500;
}

.guide-nav-links a:hover {
  color: var(--primary);
  text-decoration: none;
}

/* ===== Hero ===== */
.guide-hero {
  background: linear-gradient(150deg, #1A1A2E 0%, #2D1B69 40%, #5A4BD1 100%);
  color: white;
  padding: 4rem 1.5rem 3.5rem;
  text-align: center;
}

.guide-hero h1 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
}

.guide-hero .subtitle {
  font-size: 1.1rem;
  opacity: 0.85;
  max-width: 600px;
  margin: 0 auto 2rem;
  line-height: 1.8;
}

.guide-hero .cta-btn {
  display: inline-block;
  padding: 0.85rem 2.5rem;
  background: white;
  color: var(--primary-dark);
  border-radius: 100px;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.2s;
}

.guide-hero .cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  text-decoration: none;
}

/* ===== Breadcrumb ===== */
.breadcrumb {
  max-width: 900px;
  margin: 1rem auto 0;
  padding: 0 1.5rem;
  font-size: 0.82rem;
  color: var(--text-light);
}

.breadcrumb a { color: var(--text-secondary); }

/* ===== 文章主体 ===== */
.guide-body {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.guide-body h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary-bg);
  color: var(--text-primary);
}

.guide-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 1.5rem 0 0.6rem;
  color: var(--text-primary);
}

.guide-body p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.guide-body ul, .guide-body ol {
  margin: 0.5rem 0 1rem 1.5rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.guide-body li {
  margin-bottom: 0.5rem;
}

/* ===== 功能卡片 ===== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.feature-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
  transition: all 0.2s;
}

.feature-card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-md);
}

.feature-card .f-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.feature-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.feature-card p {
  font-size: 0.82rem;
  margin-bottom: 0;
}

/* ===== 步骤指南 ===== */
.step-list {
  counter-reset: steps;
  margin: 1.5rem 0;
}

.step-item {
  counter-increment: steps;
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
}

.step-item::before {
  content: counter(steps);
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.step-item .step-content h4 {
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

.step-item .step-content p {
  font-size: 0.88rem;
  margin-bottom: 0;
}

/* ===== 提示框 ===== */
.tip-box {
  background: var(--primary-bg);
  border-left: 4px solid var(--primary);
  border-radius: 0 8px 8px 0;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.tip-box.success {
  background: var(--success-bg);
  border-color: var(--success);
}

/* ===== FAQ ===== */
.faq-list {
  margin: 1.5rem 0;
}

.faq-item {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.faq-q {
  padding: 1rem 1.25rem;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}

.faq-q::after {
  content: '+';
  font-size: 1.2rem;
  color: var(--text-light);
  transition: transform 0.2s;
}

.faq-q.open::after {
  transform: rotate(45deg);
}

.faq-a {
  display: none;
  padding: 0 1.25rem 1rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.faq-a.open {
  display: block;
}

/* ===== 平台标签 ===== */
.platform-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

.platform-tag {
  padding: 0.35rem 0.85rem;
  background: var(--primary-bg);
  color: var(--primary-dark);
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 600;
}

/* ===== CTA 区域 ===== */
.cta-section {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: var(--radius);
  padding: 2.5rem;
  text-align: center;
  color: white;
  margin: 3rem 0 1rem;
}

.cta-section h3 {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
  color: white;
}

.cta-section p {
  opacity: 0.9;
  color: white;
  margin-bottom: 1.5rem;
}

.cta-section .cta-btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: white;
  color: var(--primary-dark);
  border-radius: 100px;
  font-weight: 700;
  transition: all 0.2s;
}

.cta-section .cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  text-decoration: none;
}

/* ===== 底部 ===== */
.guide-footer {
  text-align: center;
  padding: 2rem 1.5rem;
  color: var(--text-light);
  font-size: 0.82rem;
  border-top: 1px solid var(--border);
}

.guide-footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 0.75rem;
}

.guide-footer-links a { color: var(--text-secondary); font-size: 0.82rem; }

/* ===== 响应式 ===== */
@media (max-width: 768px) {
  .guide-hero { padding: 3rem 1rem 2.5rem; }
  .guide-hero h1 { font-size: 1.6rem; }
  .guide-body { padding: 1.5rem 1rem 3rem; }
  .feature-grid { grid-template-columns: 1fr; }
  .step-item { flex-direction: column; align-items: flex-start; }
  .guide-nav-links { gap: 0.75rem; font-size: 0.8rem; }
}

/* ===== FAQ 交互 ===== */
