/* ═══════════════════════════════════════════════════════════════
   使用说明 (Help) Tab
   ═══════════════════════════════════════════════════════════════ */

.help-panel {
  gap: 24px;
}

.help-header {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.help-header h2 {
  margin-bottom: 4px;
}

.help-header p {
  color: var(--muted-fg);
  font-size: 0.95rem;
}

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

.help-nav-link {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 99px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--muted-fg);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.18s ease;
}

.help-nav-link:hover {
  border-color: var(--accent-border);
  background: var(--accent-light);
  color: var(--accent);
}

.help-section {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  scroll-margin-top: 24px;
}

.help-section h3 {
  font-size: 1.1rem;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.help-section h4 {
  font-size: 0.95rem;
  color: var(--accent);
  margin-top: 6px;
}

.help-section p {
  color: var(--fg);
  font-size: 0.92rem;
  line-height: 1.75;
}

.help-section code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85em;
  background: var(--muted);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 6px;
  color: var(--accent);
}

/* 工作流示意 */
.help-flow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 8px 0;
}

.help-flow-step {
  flex: 1;
  min-width: 130px;
  background: var(--muted);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--fg);
  text-align: center;
}

.help-flow-step small {
  display: block;
  margin-top: 4px;
  font-weight: 400;
  color: var(--muted-fg);
  font-size: 0.78rem;
}

.help-flow-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
  font-size: 0.75rem;
  margin-right: 6px;
}

.help-flow-arrow {
  color: var(--muted-fg);
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* 有序步骤 */
.help-steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
  counter-reset: help-step;
  list-style: none;
}

.help-steps li {
  position: relative;
  padding-left: 36px;
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--fg);
}

.help-steps li::before {
  counter-increment: help-step;
  content: counter(help-step);
  position: absolute;
  left: 0;
  top: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
  font-size: 0.78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 说明列表 */
.help-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-left: 20px;
}

.help-list li {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--fg);
}

/* 表格 */
.help-table-wrap {
  overflow-x: auto;
}

.help-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.help-table th {
  text-align: left;
  padding: 10px 14px;
  background: var(--muted);
  color: var(--muted-fg);
  font-weight: 600;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.help-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--fg);
  vertical-align: top;
}

.help-table tbody tr:last-child td {
  border-bottom: none;
}

.help-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 99px;
  background: var(--muted);
  border: 1px solid var(--border);
  color: var(--muted-fg);
  font-size: 0.75rem;
  white-space: nowrap;
}

.help-tag-required {
  background: var(--error-light);
  border-color: rgba(239, 68, 68, 0.3);
  color: var(--error);
}

/* FAQ */
.help-faq-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 18px;
  background: var(--muted);
}

.help-faq-q {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--fg);
  margin-bottom: 6px;
}

.help-faq-a {
  font-size: 0.88rem;
  color: var(--muted-fg);
  line-height: 1.7;
}

@media (max-width: 600px) {
  .help-section {
    padding: 20px 18px;
  }
  .help-flow {
    flex-direction: column;
    align-items: stretch;
  }
  .help-flow-arrow {
    transform: rotate(90deg);
    align-self: center;
  }
}
