/* ============================================================================
   v2-help.css — 花漾培训系统 2.0 使用指南（帮助中心）样式
   Apple 风格，完全复用 style.css 的 CSS 变量（--primary/--accent/--success/
   --danger/--warning/--radius-*/--shadow-*/--space-*）与 .btn/.card 等类名；
   本文件只定义 v2-help- 前缀新类，不与现有类冲突。
   ============================================================================ */

/* --------------------------------------------------------------------------
   1. 页面骨架（复用 .v2-page / .v2-page__header / .v2-tabs 基础样式）
   -------------------------------------------------------------------------- */
.v2-help {
  max-width: 860px;
}

/* --------------------------------------------------------------------------
   2. 角色内容网格
   -------------------------------------------------------------------------- */
.v2-help__grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

/* --------------------------------------------------------------------------
   3. 小节卡片
   -------------------------------------------------------------------------- */
.v2-help__section {
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
}

.v2-help__section-head {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.v2-help__section-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border-radius: var(--radius-full);
  background: var(--accent-bg);
  color: var(--accent);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
}

.v2-help__section-title {
  font-size: 18px;
  font-weight: var(--fw-bold);
  letter-spacing: -0.01em;
  margin: 0;
}

/* 做什么（一句话） */
.v2-help__what {
  display: flex;
  gap: 4px;
  margin: 0 0 var(--space-md);
  font-size: var(--fs-base);
  color: var(--text);
  line-height: var(--lh-relaxed);
}

.v2-help__what-label {
  flex: none;
  font-weight: var(--fw-semibold);
  color: var(--text);
}

/* --------------------------------------------------------------------------
   4. 截图（宽度100%圆角卡片）
   -------------------------------------------------------------------------- */
.v2-help__figure {
  margin: 0 0 var(--space-md);
}

.v2-help__img {
  display: block;
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  background: var(--bg-inset);
}

/* 截图加载失败占位 */
.v2-help__img-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 96px;
  padding: var(--space-md);
  margin-bottom: var(--space-md);
  border: 1px dashed var(--border-light);
  border-radius: var(--radius-lg);
  background: var(--bg-inset);
  color: var(--text-tertiary);
  font-size: var(--fs-sm);
  text-align: center;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   5. 图文步骤
   -------------------------------------------------------------------------- */
.v2-help__step-label {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--text-secondary);
  margin-bottom: var(--space-xs);
}

.v2-help__steps {
  margin: 0 0 var(--space-md);
  padding-left: 22px;
}

.v2-help__steps li {
  margin-bottom: 6px;
  font-size: var(--fs-base);
  color: var(--text);
  line-height: var(--lh-relaxed);
}

.v2-help__steps li:last-child { margin-bottom: 0; }

.v2-help__steps li b { font-weight: var(--fw-semibold); color: var(--accent); }

/* 纯文字说明（无截图节） */
.v2-help__text {
  margin: 0 0 var(--space-md);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  background: var(--success-bg);
  border-left: 3px solid var(--success);
  font-size: var(--fs-base);
  color: var(--text);
  line-height: var(--lh-relaxed);
}

/* --------------------------------------------------------------------------
   6. 注意提示
   -------------------------------------------------------------------------- */
.v2-help__note {
  margin-top: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  background: var(--warning-bg);
  border-left: 3px solid var(--warning);
  font-size: var(--fs-sm);
  color: var(--text);
  line-height: var(--lh-relaxed);
}

.v2-help__note:first-of-type { margin-top: 0; }

.v2-help__note-label {
  font-weight: var(--fw-semibold);
  color: var(--text);
}

/* --------------------------------------------------------------------------
   7. 底部提示
   -------------------------------------------------------------------------- */
.v2-help__footer {
  margin: var(--space-lg) 0 0;
  padding-top: var(--space-md);
  border-top: 1px solid var(--border-light);
  text-align: center;
  font-size: var(--fs-sm);
  color: var(--text-tertiary);
}

/* --------------------------------------------------------------------------
   8. 响应式
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .v2-help__section {
    padding: var(--space-md);
  }
  .v2-help__section-title {
    font-size: 16px;
  }
  .v2-help__steps {
    padding-left: 18px;
  }
}
