/* ================================================
   紫来集运 PC端 - 帮助中心页样式
   ================================================ */

/* ---- 搜索区 ---- */
.help-search-section {
  background: var(--gradient-p-hero);
  padding: var(--space-xl);
  border-radius: var(--r-xl);
  text-align: center;
  margin-bottom: var(--space-xl);
}

.help-search-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 8px;
}

.help-search-desc {
  font-size: 1rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: var(--space-md);
}

.help-search-box {
  display: flex;
  max-width: 560px;
  margin: 0 auto;
  background: var(--bg-white);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(123,63,242,0.2);
}

.help-search-input {
  flex: 1;
  padding: 14px 20px;
  font-size: 1rem;
  border: none;
  outline: none;
}

.help-search-btn {
  padding: 14px 24px;
  background: var(--p);
  color: white;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.help-search-btn:hover {
  background: var(--p2);
}

/* ---- 快速分类 ---- */
.help-categories {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.help-category-card {
  background: var(--bg-white);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  padding: var(--space-md);
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  border: 1.5px solid transparent;
}

.help-category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--p-border);
}

.help-category-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-sm);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.help-category-card:nth-child(1) .help-category-icon { background: var(--p-lighter); color: var(--p); }
.help-category-card:nth-child(2) .help-category-icon { background: var(--ok-bg); color: var(--ok); }
.help-category-card:nth-child(3) .help-category-icon { background: var(--warn-bg); color: var(--warn); }
.help-category-card:nth-child(4) .help-category-icon { background: rgba(59,130,246,0.1); color: #3B82F6; }
.help-category-card:nth-child(5) .help-category-icon { background: rgba(236,72,153,0.1); color: #EC4899; }

.help-category-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text1);
  margin-bottom: 4px;
}

.help-category-count {
  font-size: 0.8125rem;
  color: var(--text3);
}

/* ---- FAQ 折叠 ---- */
.help-faq-section {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.help-faq-sidebar {
  background: var(--bg-white);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  height: fit-content;
}

.help-faq-sidebar-title {
  padding: var(--space-sm) var(--space-md);
  background: var(--p-lighter);
  font-size: 1rem;
  font-weight: 700;
  color: var(--p);
}

.help-faq-nav-item {
  padding: 14px var(--space-md);
  font-size: 0.9375rem;
  color: var(--text2);
  cursor: pointer;
  transition: all 0.2s;
  border-bottom: 1px solid var(--p-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.help-faq-nav-item:last-child {
  border-bottom: none;
}

.help-faq-nav-item:hover {
  background: var(--p-lighter);
  color: var(--p);
}

.help-faq-nav-item.active {
  background: var(--p-lighter);
  color: var(--p);
  font-weight: 600;
}

.help-faq-content {
  background: var(--bg-white);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.help-faq-item {
  border-bottom: 1px solid var(--p-border);
}

.help-faq-item:last-child {
  border-bottom: none;
}

.help-faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text1);
  cursor: pointer;
  transition: all 0.2s;
  gap: 12px;
}

.help-faq-question:hover {
  background: var(--p-lighter);
  color: var(--p);
}

.help-faq-question i {
  transition: transform 0.3s;
  color: var(--text3);
  flex-shrink: 0;
}

.help-faq-item.open .help-faq-question i {
  transform: rotate(180deg);
  color: var(--p);
}

.help-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.help-faq-item.open .help-faq-answer {
  max-height: 500px;
}

.help-faq-answer-inner {
  padding: 0 var(--space-md) var(--space-md);
  font-size: 0.9375rem;
  color: var(--text2);
  line-height: 1.8;
}

/* ---- 禁运品表格 ---- */
.prohibited-table {
  background: var(--bg-white);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: var(--space-xl);
}

.prohibited-table-title {
  padding: var(--space-sm) var(--space-md);
  background: var(--p-lighter);
  font-size: 1rem;
  font-weight: 700;
  color: var(--p);
  display: flex;
  align-items: center;
  gap: 8px;
}

.prohibited-table table {
  width: 100%;
  border-collapse: collapse;
}

.prohibited-table th {
  padding: 12px var(--space-md);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text2);
  background: var(--bg);
  text-align: left;
  border-bottom: 1px solid var(--p-border);
}

.prohibited-table td {
  padding: 12px var(--space-md);
  font-size: 0.875rem;
  color: var(--text1);
  border-bottom: 1px solid var(--p-border);
}

.prohibited-table tr:last-child td {
  border-bottom: none;
}

.prohibited-table tr:hover td {
  background: var(--p-lighter);
}

.prohibited-tag {
  display: inline-flex;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
}

.prohibited-tag.danger {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
}

.prohibited-tag.warn {
  background: var(--warn-bg);
  color: var(--warn);
}

/* ---- 联系客服 ---- */
.contact-section {
  background: var(--gradient-p-hero);
  border-radius: var(--r-xl);
  padding: var(--space-xl);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.contact-card {
  background: rgba(255,255,255,0.15);
  border-radius: var(--r-lg);
  padding: var(--space-md);
  text-align: center;
  color: var(--text-white);
}

.contact-card-icon {
  font-size: 2rem;
  margin-bottom: 12px;
  opacity: 0.9;
}

.contact-card-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.contact-card-text {
  font-size: 0.9375rem;
  opacity: 0.9;
}

/* ---- 响应式 ---- */
@media (max-width: 1024px) {
  .help-categories {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .help-faq-section {
    grid-template-columns: 1fr;
  }
  
  .help-faq-sidebar {
    display: none;
  }
  
  .contact-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .help-categories {
    grid-template-columns: repeat(2, 1fr);
  }
}
