/* ========== Help Center ========== */
/* ========== Help Center Styles ========== */

.help-page {
  min-height: 100vh;
  background: #f5f6f8;
}

/* ========== Topbar ========== */
.help-topbar {
  background: var(--primary);
  padding: 12px 0;
}

.help-topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.help-topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.help-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--primary-foreground);
}

.help-logo-icon {
  width: 36px;
  height: 36px;
  background: var(--accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.help-logo-text {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-foreground);
}

.help-topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.help-topbar-right a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
}

.help-topbar-right a:hover {
  color: var(--primary-foreground);
}

/* ========== Search Bar ========== */
.help-search-bar {
  background: white;
  border-bottom: 1px solid #e8e8e8;
  padding: 20px 0;
}

.help-search-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.help-search-form {
  max-width: 640px;
  margin: 0 auto;
  position: relative;
}

.help-search-input {
  width: 100%;
  padding: 12px 100px 12px 20px;
  border: 2px solid #e0e0e0;
  border-radius: 24px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.help-search-input:focus {
  border-color: var(--primary);
}

.help-search-btn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  padding: 8px 20px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 20px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s;
}

.help-search-btn:hover {
  background: var(--primary-hover);
}

/* ========== Main Content ========== */
.help-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 20px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
}

/* ========== Sidebar Navigation ========== */
.help-sidebar {
  position: sticky;
  top: 32px;
  height: fit-content;
}

.help-sidebar-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.help-sidebar-title {
  padding: 16px 20px;
  font-size: 16px;
  font-weight: 600;
  color: var(--primary);
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.help-nav-section {
  border-bottom: 1px solid #f0f0f0;
}

.help-nav-section:last-child {
  border-bottom: none;
}

.help-nav-section-title {
  padding: 12px 20px 8px;
  font-size: 12px;
  font-weight: 600;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.help-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  color: #666;
  text-decoration: none;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.help-nav-item:hover {
  color: var(--primary);
  background: #f8f9fa;
}

.help-nav-item.active {
  color: var(--primary);
  background: #f0f4ff;
  font-weight: 500;
}

.help-nav-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--primary);
}

.help-nav-badge {
  background: #ff4d4f;
  color: white;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 10px;
  font-weight: 500;
}

.help-nav-toggle {
  font-size: 12px;
  color: #999;
  transition: transform 0.2s;
}

.help-nav-toggle.collapsed {
  transform: rotate(-90deg);
}

/* ========== Article Content ========== */
.help-content {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.help-content-header {
  padding: 24px 32px;
  border-bottom: 1px solid #f0f0f0;
}

.help-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #999;
  margin-bottom: 12px;
}

.help-breadcrumb a {
  color: #666;
  text-decoration: none;
  transition: color 0.2s;
}

.help-breadcrumb a:hover {
  color: var(--primary);
}

.help-breadcrumb span {
  color: #ccc;
}

.help-content-title {
  font-size: 24px;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.4;
}

.help-content-meta {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 12px;
  font-size: 13px;
  color: #999;
}

.help-content-body {
  padding: 32px;
}

/* Article Sections */
.help-article-section {
  margin-bottom: 32px;
}

.help-article-section:last-child {
  margin-bottom: 0;
}

.help-article-section h3 {
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f0f0f0;
}

.help-article-section p {
  font-size: 14px;
  color: #666;
  line-height: 1.8;
  margin-bottom: 12px;
}

.help-article-section p:last-child {
  margin-bottom: 0;
}

/* Steps */
.help-steps {
  counter-reset: step;
}

.help-step {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  align-items: flex-start;
}

.help-step:last-child {
  margin-bottom: 0;
}

.help-step-number {
  width: 28px;
  height: 28px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  flex-shrink: 0;
}

.help-step-content {
  flex: 1;
  padding-top: 4px;
}

.help-step-content strong {
  display: block;
  font-size: 14px;
  color: #1a1a1a;
  margin-bottom: 4px;
}

.help-step-content p {
  font-size: 13px;
  color: #888;
  margin: 0;
  line-height: 1.6;
}

/* Tips */
.help-tip {
  background: #fffbe6;
  border: 1px solid #ffe58f;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
}

.help-tip:last-child {
  margin-bottom: 0;
}

.help-tip-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #d48806;
  margin-bottom: 8px;
}

.help-tip-content {
  font-size: 13px;
  color: #8c6d1f;
  line-height: 1.7;
}

.help-tip-content p {
  margin-bottom: 4px;
  color: #8c6d1f;
}

.help-tip-content p:last-child {
  margin-bottom: 0;
}

/* FAQ */
.help-faq-item {
  border-bottom: 1px solid #f0f0f0;
  padding: 16px 0;
}

.help-faq-item:last-child {
  border-bottom: none;
}

.help-faq-question {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: #1a1a1a;
  margin-bottom: 8px;
}

.help-faq-q-icon {
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.help-faq-answer {
  font-size: 13px;
  color: #666;
  line-height: 1.8;
  padding-left: 24px;
  display: none;
}

.help-faq-answer.show {
  display: block;
}

/* Table */
.help-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
  font-size: 13px;
}

.help-table:last-child {
  margin-bottom: 0;
}

.help-table th,
.help-table td {
  padding: 12px 16px;
  text-align: left;
  border: 1px solid #e8e8e8;
}

.help-table th {
  background: #f8f9fa;
  font-weight: 600;
  color: #1a1a1a;
}

.help-table td {
  color: #666;
}

.help-table tr:hover td {
  background: #fafafa;
}

/* Related Articles */
.help-related {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #f0f0f0;
}

.help-related-title {
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 16px;
}

.help-related-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.help-related-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  text-decoration: none;
  font-size: 13px;
  padding: 10px 14px;
  background: #f8f9fa;
  border-radius: 6px;
  transition: all 0.2s;
}

.help-related-item:hover {
  background: #f0f4ff;
}

.help-related-item::before {
  content: '';
  width: 4px;
  height: 4px;
  background: var(--primary);
  border-radius: 50%;
  flex-shrink: 0;
}

/* Article Feedback */
.help-feedback {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #f0f0f0;
  text-align: center;
}

.help-feedback-text {
  font-size: 14px;
  color: #666;
  margin-bottom: 12px;
}

.help-feedback-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.help-feedback-btn {
  padding: 8px 24px;
  border: 1px solid #e0e0e0;
  border-radius: 20px;
  background: white;
  color: #666;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.help-feedback-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.help-feedback-btn.active {
  background: #e6f7e6;
  border-color: #52c41a;
  color: #52c41a;
}

/* ========== Responsive ========== */
@media (max-width: 900px) {
  .help-main {
    grid-template-columns: 240px 1fr;
    gap: 24px;
  }

  .help-content-header {
    padding: 20px 24px;
  }

  .help-content-body {
    padding: 24px;
  }

  .help-content-title {
    font-size: 20px;
  }

  .help-related-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .help-main {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .help-sidebar {
    position: static;
  }

  .help-content-header {
    padding: 16px 20px;
  }

  .help-content-body {
    padding: 20px;
  }

  .help-content-title {
    font-size: 18px;
  }

  .help-topbar-right {
    display: none;
  }

  .help-feedback-buttons {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .help-search-inner {
    padding: 0 12px;
  }

  .help-search-input {
    padding: 10px 80px 10px 16px;
    font-size: 13px;
  }

  .help-main {
    padding: 20px 12px;
  }

  .help-breadcrumb {
    font-size: 12px;
  }

  .help-tip {
    padding: 12px;
  }

  .help-table th,
  .help-table td {
    padding: 10px 12px;
    font-size: 12px;
  }
}
