/* 帮助页面样式 */
#help-content {
  line-height: 1.6;
  color: #333333;
  font-size: 16px;
  margin-top: 30px;
}

#help-content .loading {
  text-align: center;
  padding: 2rem;
  color: #cccccc;
}

#help-content .error-message {
  text-align: center;
  padding: 2rem;
  color: #ff6b6b;
}

#help-content .retry-btn {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 1rem;
}

#help-content .retry-btn:hover {
  background-color: #0056b3;
}

/* 覆盖从后端获取内容的内联样式 */
#help-content *[style] {
  color: #333333 !important;
  font-family: inherit !important;
  line-height: 1.6 !important;
  text-align: inherit !important;
  background: none !important;
}

#help-content p {
  margin-bottom: 1rem;
  color: #333333;
  font-size: 16px;
  line-height: 1.6;
}

#help-content h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  font-weight: bold;
  color: #333333;
  line-height: 1.3;
}

#help-content h4 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
  font-weight: bold;
  color: #333333;
  line-height: 1.3;
}

#help-content h5 {
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  font-weight: bold;
  color: #333333;
  line-height: 1.3;
}

#help-content strong {
  font-weight: bold;
  color: #333333;
}

#help-content ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

#help-content ul {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

#help-content li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
  color: #333333;
}

#help-content ol li {
  list-style-type: decimal;
  color: #333333;
}

#help-content ul li {
  list-style-type: disc;
  color: #333333;
}



/* 移除所有内联样式并应用统一样式 */
#help-content div,
#help-content span,
#help-content p,
#help-content h3,
#help-content h4,
#help-content h5 {
  background: none !important;
  background-color: transparent !important;
  border: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* 重新应用需要的 margin */
#help-content p,
#help-content h3,
#help-content h4,
#help-content h5 {
  margin-bottom: 1rem !important;
}

#help-content h3 {
  margin-top: 2rem !important;
}

#help-content h4 {
  margin-top: 1.5rem !important;
}

#help-content h5 {
  margin-top: 1rem !important;
}

/* 链接样式 */
#help-content a {
  color: #4dabf7;
  text-decoration: none;
}

#help-content a:hover {
  text-decoration: underline;
}

/* 文本对齐 */
#help-content .ql-align-center {
  text-align: center !important;
}

#help-content .ql-align-right {
  text-align: right !important;
}

#help-content .ql-align-justify {
  text-align: justify !important;
}

/* 帮助类型特定样式 */
.help-paragraph {
  margin-bottom: 1rem;
}

.help-heading {
  font-weight: bold;
  color: #333333;
  line-height: 1.3;
}

.help-h3 {
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.help-h4 {
  font-size: 1.25rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.help-h5 {
  font-size: 1.1rem;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.help-list {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.help-list-item {
  margin-bottom: 0.5rem;
}

.help-strong {
  font-weight: bold;
}