/* ========================================
   帮助中心样式 - Help Center Styles
   ======================================== */

:root {
  --help-primary: #2B6DE8;
  --help-primary-light: #5B8DEF;
  --help-primary-dark: #1E5AC7;
  --help-accent: #10B981;
  --help-warning: #F59E0B;
  --help-text: #1e293b;
  --help-text-secondary: #64748b;
  --help-text-muted: #94a3b8;
  --help-bg: #f8fafc;
  --help-border: #e2e8f0;
  --help-white: #ffffff;
}

/* ========== Hero Section ========== */
.help-hero {
  position: relative;
  padding: 100px 0 80px;
  margin-top: 70px;
  background: linear-gradient(135deg, #2B6DE8 0%, #6366F1 50%, #8B5CF6 100%);
  overflow: hidden;
}

.help-hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.help-hero .hero-circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
}

.help-hero .hero-circle-1 {
  width: 400px;
  height: 400px;
  top: -100px;
  right: -100px;
  animation: floatSlow 10s ease-in-out infinite;
}

.help-hero .hero-circle-2 {
  width: 300px;
  height: 300px;
  bottom: -80px;
  left: -80px;
  animation: floatSlow 12s ease-in-out infinite reverse;
}

.help-hero .hero-circle-3 {
  width: 150px;
  height: 150px;
  top: 50%;
  left: 20%;
  animation: floatSlow 8s ease-in-out infinite;
}

.help-hero .hero-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

@keyframes floatSlow {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-20px) scale(1.02); }
}

.help-hero .container {
  position: relative;
  z-index: 2;
  text-align: center;
}

.help-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: rgba(255,255,255,0.15);
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  margin-bottom: 20px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
}

.help-hero-title {
  font-size: 42px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 16px;
  line-height: 1.2;
}

.help-hero-subtitle {
  font-size: 17px;
  color: rgba(255,255,255,0.9);
  margin: 0 0 32px;
  line-height: 1.8;
}

/* 搜索框 */
.help-search-box {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}

.help-search-input {
  width: 100%;
  height: 56px;
  padding: 0 140px 0 24px;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  color: var(--help-text);
  background: #fff;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
  outline: none;
}

.help-search-input::placeholder {
  color: var(--help-text-muted);
}

.help-search-btn {
  position: absolute;
  right: 8px;
  top: 8px;
  height: 40px;
  padding: 0 24px;
  background: var(--help-primary);
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 8px;
}

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

/* 热门标签 */
.help-hot-tags {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.help-hot-tags span {
  color: rgba(255,255,255,0.7);
  font-size: 14px;
}

.help-hot-tags a {
  padding: 6px 16px;
  background: rgba(255,255,255,0.12);
  border-radius: 20px;
  font-size: 13px;
  color: #fff;
  text-decoration: none;
  transition: all 0.2s;
}

.help-hot-tags a:hover {
  background: rgba(255,255,255,0.25);
}

/* ========== 分类区域 ========== */
.help-category {
  padding: 60px 0;
  background: var(--help-bg);
}

.help-section-title {
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  color: var(--help-text);
  margin-bottom: 40px;
}

.help-category-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}

.help-category-card {
  background: var(--help-white);
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  transition: all 0.3s;
  text-decoration: none;
  display: block;
}

.help-category-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(43, 109, 232, 0.15);
}

.help-category-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, rgba(43, 109, 232, 0.1) 0%, rgba(99, 102, 241, 0.1) 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.help-category-icon img {
  width: 32px;
  height: 32px;
}

.help-category-icon svg {
  width: 32px;
  height: 32px;
  color: var(--help-primary);
}

.help-category-icon .iconify {
  font-size: 32px;
  color: var(--help-primary);
}

.help-category-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--help-text);
  margin-bottom: 8px;
}

.help-category-count {
  font-size: 13px;
  color: var(--help-text-muted);
}

.help-category-list {
  margin-top: 16px;
  text-align: left;
}

.help-category-list a {
  display: block;
  padding: 8px 0;
  font-size: 14px;
  color: var(--help-text-secondary);
  text-decoration: none;
  border-bottom: 1px dashed var(--help-border);
  transition: color 0.2s;
}

.help-category-list a:last-child {
  border-bottom: none;
}

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

/* ========== 热门文章 ========== */
.help-popular {
  padding: 60px 0;
  background: var(--help-white);
}

.help-popular-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.help-article-card {
  background: var(--help-bg);
  border-radius: 12px;
  padding: 24px;
  transition: all 0.3s;
}

.help-article-card:hover {
  background: linear-gradient(135deg, rgba(43, 109, 232, 0.05) 0%, rgba(99, 102, 241, 0.05) 100%);
  transform: translateY(-4px);
}

.help-article-card a {
  text-decoration: none;
}

.help-article-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--help-text);
  margin-bottom: 8px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.help-article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--help-text-muted);
}

.help-article-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ========== 分类列表页 ========== */
.help-list-page {
  padding-top: 70px;
  min-height: 100vh;
  background: var(--help-bg);
}

.help-breadcrumb {
  padding: 20px 0;
  font-size: 14px;
  color: var(--help-text-secondary);
}

.help-breadcrumb a {
  color: var(--help-text-secondary);
  text-decoration: none;
}

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

.help-breadcrumb span {
  margin: 0 8px;
  color: var(--help-text-muted);
}

.help-list-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  padding-bottom: 60px;
}

/* 侧边栏 */
.help-sidebar {
  background: var(--help-white);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  height: fit-content;
  position: sticky;
  top: 90px;
}

.help-sidebar-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--help-text);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--help-border);
  margin-bottom: 16px;
}

.help-nav-group {
  margin-bottom: 20px;
}

.help-nav-parent {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--help-text);
  cursor: pointer;
}

.help-nav-parent img {
  width: 24px;
  height: 24px;
}

.help-nav-parent svg {
  width: 24px;
  height: 24px;
  color: var(--help-primary);
  flex-shrink: 0;
}

.help-nav-children {
  padding-left: 34px;
}

.help-nav-children a {
  display: block;
  padding: 8px 0;
  font-size: 14px;
  color: var(--help-text-secondary);
  text-decoration: none;
  transition: all 0.2s;
}

.help-nav-children a:hover,
.help-nav-children a.active {
  color: var(--help-primary);
}

.help-nav-children a.active {
  font-weight: 500;
}

/* 文章列表 */
.help-list-main {
  background: var(--help-white);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.help-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--help-border);
  margin-bottom: 20px;
}

.help-list-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--help-text);
}

.help-list-count {
  font-size: 14px;
  color: var(--help-text-muted);
}

.help-article-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.help-article-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--help-border);
}

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

.help-article-item a {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--help-text);
  font-size: 15px;
  transition: color 0.2s;
}

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

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

.help-article-item .views {
  margin-left: auto;
  font-size: 13px;
  color: var(--help-text-muted);
}

/* 分页 */
.help-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 30px;
}

.help-pagination a,
.help-pagination span {
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.2s;
}

.help-pagination a {
  background: var(--help-bg);
  color: var(--help-text-secondary);
}

.help-pagination a:hover {
  background: var(--help-primary);
  color: #fff;
}

.help-pagination span.current {
  background: var(--help-primary);
  color: #fff;
}

/* ========== 文章详情页 ========== */
.help-detail-page {
  padding-top: 70px;
  min-height: 100vh;
  background: var(--help-bg);
}

.help-detail-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  padding-bottom: 60px;
}

.help-detail-main {
  background: var(--help-white);
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.help-detail-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--help-text);
  margin-bottom: 16px;
  line-height: 1.4;
}

.help-detail-meta {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--help-border);
  margin-bottom: 32px;
  font-size: 14px;
  color: var(--help-text-muted);
}

.help-detail-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.help-detail-content {
  font-size: 15px;
  line-height: 1.8;
  color: var(--help-text);
}

.help-detail-content h2 {
  font-size: 20px;
  font-weight: 600;
  margin: 32px 0 16px;
  color: var(--help-text);
}

.help-detail-content h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 24px 0 12px;
  color: var(--help-text);
}

.help-detail-content p {
  margin-bottom: 16px;
}

.help-detail-content img {
  max-width: 100%;
  border-radius: 8px;
  margin: 16px 0;
}

.help-detail-content pre,
.help-detail-content code {
  background: var(--help-bg);
  border-radius: 6px;
  padding: 2px 6px;
  font-family: Consolas, Monaco, monospace;
  font-size: 14px;
}

.help-detail-content pre {
  padding: 16px;
  overflow-x: auto;
}

/* 反馈区域 */
.help-feedback {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--help-border);
  text-align: center;
}

.help-feedback-title {
  font-size: 16px;
  color: var(--help-text);
  margin-bottom: 20px;
}

.help-feedback-btns {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.help-feedback-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 32px;
  border: 2px solid var(--help-border);
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--help-text-secondary);
  background: var(--help-white);
  cursor: pointer;
  transition: all 0.2s;
}

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

.help-feedback-btn.yes:hover {
  border-color: var(--help-accent);
  color: var(--help-accent);
  background: rgba(16, 185, 129, 0.05);
}

.help-feedback-btn.no:hover {
  border-color: var(--help-warning);
  color: var(--help-warning);
  background: rgba(245, 158, 11, 0.05);
}

.help-feedback-btn.active.yes {
  border-color: var(--help-accent);
  background: var(--help-accent);
  color: #fff;
}

.help-feedback-btn.active.no {
  border-color: var(--help-warning);
  background: var(--help-warning);
  color: #fff;
}

/* 相关文章 */
.help-related {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--help-border);
}

.help-related-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--help-text);
  margin-bottom: 20px;
}

.help-related-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.help-related-list li {
  padding: 10px 0;
  border-bottom: 1px dashed var(--help-border);
}

.help-related-list li:last-child {
  border-bottom: none;
}

.help-related-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--help-text-secondary);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.help-related-list a::before {
  content: '›';
  color: var(--help-primary);
  font-weight: bold;
}

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

/* ========== 搜索结果页 ========== */
.help-search-result {
  padding: 24px;
}

.help-search-info {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--help-border);
  margin-bottom: 20px;
}

.help-search-keyword {
  font-size: 18px;
  color: var(--help-text);
}

.help-search-keyword em {
  color: var(--help-primary);
  font-style: normal;
  font-weight: 600;
}

.help-search-count {
  font-size: 14px;
  color: var(--help-text-muted);
  margin-top: 8px;
}

.help-search-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--help-border);
}

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

.help-search-item-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.help-search-item-title a {
  color: var(--help-text);
  text-decoration: none;
}

.help-search-item-title a:hover {
  color: var(--help-primary);
}

.help-search-item-title em {
  color: var(--help-primary);
  font-style: normal;
}

.help-search-item-desc {
  font-size: 14px;
  color: var(--help-text-secondary);
  line-height: 1.6;
}

.help-search-item-desc em {
  color: var(--help-primary);
  font-style: normal;
  font-weight: 500;
}

/* 空结果 */
.help-empty {
  text-align: center;
  padding: 80px 0;
  color: var(--help-text-muted);
}

.help-empty .iconify {
  font-size: 64px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.help-empty p {
  font-size: 16px;
}

/* ========== 响应式 ========== */
@media (max-width: 1200px) {
  .help-category-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 992px) {
  .help-category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .help-popular-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .help-list-layout,
  .help-detail-layout {
    grid-template-columns: 1fr;
  }
  
  .help-sidebar {
    position: static;
    display: none;
  }
}

@media (max-width: 768px) {
  .help-hero {
    padding: 80px 0 60px;
  }
  
  .help-hero-title {
    font-size: 28px;
  }
  
  .help-search-input {
    height: 50px;
    padding: 0 120px 0 16px;
    font-size: 14px;
  }
  
  .help-search-btn {
    padding: 0 16px;
  }
  
  .help-category-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .help-popular-grid {
    grid-template-columns: 1fr;
  }
  
  .help-detail-main {
    padding: 24px;
  }
  
  .help-detail-title {
    font-size: 22px;
  }
}

