/* Help center shared dark theme and list page styles. */
/* 全局暗黑主题 - 默认主题色 (MC) */
  :root {
    --steam-bg: var(--cc-dark-bg);
    --steam-card-bg: var(--cc-dark-surface);
    --steam-text: var(--cc-dark-text);
    --steam-blue: var(--cc-brand);
    --steam-accent: var(--cc-brand-strong);
    --theme-primary: var(--cc-brand);
    --theme-primary-rgb: var(--cc-brand-rgb);
  }

body {
    background: var(--cc-dark-page-bg);
    color: var(--steam-text);
  }

  /* 强制覆盖 Header */
  .cc-header {
    background: rgba(var(--cc-dark-bg-rgb), 0.86) !important;
    backdrop-filter: blur(12px) !important;
    border-bottom: 1px solid var(--cc-dark-border) !important;
  }
  .cc-brand span { color: #fff !important; }
  .cc-nav a { color: var(--cc-dark-text) !important; }
  .cc-nav a:hover { color: #fff !important; background: rgba(255,255,255,0.1) !important; }
  .cc-actions .btn-outline {
    color: #fff !important;
    border-color: rgba(255,255,255,0.3) !important;
  }
  .cc-actions .btn-outline:hover {
    background: rgba(255,255,255,0.1) !important;
  }
  .cc-nav-toggle svg path { stroke: #fff !important; }
  .cc-nav-toggle {
    background: rgba(255,255,255,0.08) !important;
    border-color: rgba(255,255,255,0.15) !important;
  }
  .cc-nav-toggle:hover {
    background: rgba(255,255,255,0.15) !important;
  }
  
  /* 移动端导航菜单暗色主题 */
  @media (max-width: 900px) {
    .cc-nav {
      background: rgba(var(--cc-dark-bg-rgb), 0.98) !important;
      border-bottom-color: var(--cc-dark-border) !important;
      box-shadow: 0 8px 32px rgba(0,0,0,0.4) !important;
    }
    .cc-nav a {
      color: #ffffff !important;
      font-size: 15px !important;
      padding: 14px 16px !important;
    }
    .cc-nav a:hover {
      background: rgba(var(--theme-primary-rgb), 0.15) !important;
      color: var(--theme-primary) !important;
    }
  }

  /* 移动端底部导航栏暗黑适配 */
  .mobile-footer-nav {
    background: var(--cc-dark-surface) !important;
    border-top-color: var(--cc-dark-border) !important;
    box-shadow: 0 -6px 20px rgba(0,0,0,0.3) !important;
  }
  .mobile-footer-item {
    color: var(--cc-dark-muted) !important;
  }
  .mobile-footer-item svg {
    stroke: var(--cc-dark-muted) !important;
  }
  .mobile-footer-item.active span {
    color: var(--theme-primary) !important;
  }
  .mobile-footer-item.active svg {
    stroke: var(--theme-primary) !important;
  }

  /* 强制覆盖 Footer */
  .cc-footer {
    background: var(--cc-dark-surface) !important;
    color: var(--cc-dark-muted) !important;
    border-top: 1px solid var(--cc-dark-border);
  }
  .footer-desc, .footer-links a, .copyright, .footer-beian a {
    color: var(--cc-dark-muted) !important;
  }
  .footer-links h4 { color: #fff !important; }

  /* 动态背景 */
  .gaming-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    background: var(--cc-dark-page-bg);
    overflow: hidden;
    pointer-events: none;
  }
  .orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.2;
    animation: orbFloat 20s infinite ease-in-out alternate;
  }
  .orb-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, var(--theme-primary), transparent 70%);
  }
  .orb-2 {
    bottom: -20%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, var(--cc-brand-strong), transparent 70%);
    animation-delay: -5s;
  }
  @keyframes orbFloat {
    0% { transform: translate(0, 0); }
    100% { transform: translate(30px, 40px); }
  }

  /* 帮助列表页面 */
  .help-list-page {
    padding: 30px 0 60px;
    position: relative;
    z-index: 1;
  }

  /* 帮助中心：分类主视图 */
  .help-center-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }
  .help-center-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    background: rgba(var(--cc-dark-bg-rgb), 0.62);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.25s;
    overflow: hidden;
  }
  .help-center-card:hover {
    background: rgba(var(--cc-dark-bg-rgb), 0.82);
    border-color: rgba(var(--theme-primary-rgb), 0.40);
    transform: translateY(-2px);
  }
  .help-center-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--theme-primary-rgb), 0.16);
    flex-shrink: 0;
  }
  .help-center-icon svg {
    width: 22px;
    height: 22px;
    color: var(--theme-primary);
  }
  .help-center-content {
    flex: 1;
    min-width: 0;
  }
  .help-center-title {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .help-center-meta {
    font-size: 12px;
    color: var(--cc-dark-muted);
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .help-center-meta strong {
    color: var(--theme-primary);
    font-weight: 700;
  }
  .help-center-arrow {
    width: 24px;
    height: 24px;
    color: #64748b;
    flex-shrink: 0;
    transition: transform .2s ease, color .2s ease;
  }
  .help-center-card:hover .help-center-arrow {
    color: var(--theme-primary);
    transform: translateX(4px);
  }

  /* 返回按钮 */
  .back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    color: #94a3b8;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s;
    margin-bottom: 20px;
  }
  .back-btn:hover {
    background: rgba(255,255,255,0.12);
    color: #fff;
  }
  .back-btn svg {
    width: 16px;
    height: 16px;
  }

  /* 页面头部 */
  .help-header {
    background: rgba(var(--cc-dark-bg-rgb), 0.62);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 28px;
    margin-bottom: 24px;
    backdrop-filter: blur(8px);
  }
  .help-header-title {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px;
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .help-header-title svg {
    width: 32px;
    height: 32px;
    color: var(--theme-primary);
  }
  .help-header-desc {
    font-size: 15px;
    color: var(--cc-dark-muted);
    margin: 0;
  }
  .help-header-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--cc-dark-border);
  }
  .help-header-stat {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #64748b;
  }
  .help-header-stat svg {
    width: 16px;
    height: 16px;
  }
  .help-header-stat strong {
    color: var(--theme-primary);
    font-weight: 600;
  }

  /* 搜索框 */
  .help-search-form {
    margin-top: 20px;
  }
  .help-search-box {
    display: flex;
    align-items: center;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 4px;
    transition: all 0.3s;
  }
  .help-search-box:focus-within {
    border-color: rgba(var(--theme-primary-rgb), 0.5);
    background: rgba(0,0,0,0.4);
  }
  .help-search-icon {
    width: 20px;
    height: 20px;
    color: #64748b;
    margin-left: 14px;
    flex-shrink: 0;
  }
  .help-search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    padding: 12px 14px;
    font-size: 15px;
    color: #fff;
  }
  .help-search-input::placeholder {
    color: #64748b;
  }
  /* 隐藏浏览器自带的清除按钮 */
  .help-search-input::-webkit-search-cancel-button,
  .help-search-input::-webkit-search-decoration {
    -webkit-appearance: none;
    appearance: none;
  }
  .help-search-input::-ms-clear {
    display: none;
  }
  .help-search-clear {
    width: 36px;
    height: 36px;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin-right: 4px;
    transition: all 0.2s;
  }
  .help-search-clear.is-visible {
    display: flex;
  }
  .help-search-clear svg {
    width: 16px;
    height: 16px;
    color: #94a3b8;
  }
  .help-search-clear:hover {
    background: rgba(255,255,255,0.15);
  }
  .help-search-clear:hover svg {
    color: #fff;
  }
  .help-search-result {
    font-size: 13px;
    color: #64748b;
    margin-top: 10px;
    display: none;
  }
  .help-search-result.show {
    display: block;
  }
  .help-search-result strong {
    color: var(--theme-primary);
  }
  
  /* 搜索高亮 */
  .help-article-item.hidden {
    display: none !important;
  }
  .search-highlight {
    background: rgba(var(--theme-primary-rgb), 0.3);
    color: #fff;
    padding: 1px 3px;
    border-radius: 3px;
  }

  /* 主布局 */
  .help-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 24px;
  }

  /* 文章列表 */
  .help-articles {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .help-article-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: rgba(var(--cc-dark-bg-rgb), 0.62);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s;
  }
  .help-article-item:hover {
    background: rgba(var(--cc-dark-bg-rgb), 0.82);
    border-color: rgba(var(--theme-primary-rgb), 0.4);
    transform: translateX(4px);
  }
  .help-article-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--theme-primary-rgb), 0.15);
    border-radius: 10px;
    flex-shrink: 0;
  }
  .help-article-icon svg {
    width: 24px;
    height: 24px;
    color: var(--theme-primary);
  }
  .help-article-content {
    flex: 1;
    min-width: 0;
  }
  .help-article-title {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 6px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .help-article-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: #64748b;
  }
  .help-article-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
  }
  .help-article-meta svg {
    width: 14px;
    height: 14px;
  }
  .help-article-arrow {
    width: 24px;
    height: 24px;
    color: #475569;
    flex-shrink: 0;
    transition: all 0.3s;
  }
  .help-article-arrow svg {
    width: 100%;
    height: 100%;
  }
  .help-article-item:hover .help-article-arrow {
    color: var(--theme-primary);
    transform: translateX(4px);
  }

  /* 空状态 */
  .help-empty {
    text-align: center;
    padding: 60px 20px;
    background: rgba(var(--cc-dark-bg-rgb), 0.62);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
  }
  .help-empty-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    color: #475569;
  }
  .help-empty-title {
    font-size: 18px;
    font-weight: 600;
    color: #94a3b8;
    margin: 0 0 8px;
  }
  .help-empty-desc {
    font-size: 14px;
    color: #64748b;
    margin: 0;
  }

  /* 右侧边栏 */
  .help-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  .sidebar-card {
    background: rgba(var(--cc-dark-bg-rgb), 0.62);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 20px;
  }
  .sidebar-title {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--cc-dark-border);
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .sidebar-title svg {
    width: 18px;
    height: 18px;
    color: var(--theme-primary);
  }
  .sidebar-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .sidebar-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s;
  }
  .sidebar-item:hover {
    background: rgba(var(--theme-primary-rgb), 0.1);
    border-color: rgba(var(--theme-primary-rgb), 0.3);
  }
  .sidebar-item.active {
    background: rgba(var(--theme-primary-rgb), 0.15);
    border-color: rgba(var(--theme-primary-rgb), 0.4);
  }
  .sidebar-item-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--theme-primary-rgb), 0.15);
    border-radius: 6px;
    flex-shrink: 0;
  }
  .sidebar-item-icon svg {
    width: 16px;
    height: 16px;
    color: var(--theme-primary);
  }
  .sidebar-item-content {
    flex: 1;
    min-width: 0;
  }
  .sidebar-item-title {
    font-size: 13px;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .sidebar-item-meta {
    font-size: 11px;
    color: #64748b;
    margin-top: 2px;
  }

  /* 响应式 */
  @media (max-width: 992px) {
    .help-layout {
      grid-template-columns: 1fr;
    }
    .help-sidebar {
      order: -1;
    }
    .help-center-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }
  @media (max-width: 640px) {
    .help-list-page {
      padding: 20px 0 40px;
    }
    .help-header {
      padding: 20px;
    }
    .help-header-title {
      font-size: 22px;
    }
    .help-article-item {
      padding: 16px;
    }
    .help-article-icon {
      width: 40px;
      height: 40px;
    }
    .help-article-icon svg {
      width: 20px;
      height: 20px;
    }
    .help-article-title {
      font-size: 15px;
    }
    .help-center-grid {
      grid-template-columns: 1fr;
    }
  }

/* Light shell override for help center pages */
body {
  background: var(--cc-page-bg);
  color: var(--cc-text);
}

.gaming-bg {
  display: none;
}

.cc-header {
  background: rgba(255, 255, 255, .92) !important;
  border-bottom: 1px solid var(--cc-border) !important;
}

.cc-brand span,
.cc-nav a {
  color: var(--cc-text) !important;
}

.cc-nav a:hover {
  color: var(--cc-brand) !important;
  background: rgba(var(--cc-brand-rgb), .08) !important;
}

.cc-actions .btn-outline {
  color: var(--cc-brand) !important;
  border-color: rgba(var(--cc-brand-rgb), .42) !important;
}

.cc-actions .btn-outline:hover,
.cc-nav-toggle:hover {
  background: rgba(var(--cc-brand-rgb), .08) !important;
}

.cc-nav-toggle {
  background: #ffffff !important;
  border-color: var(--cc-border) !important;
}

.cc-nav-toggle svg path {
  stroke: var(--cc-text) !important;
}

.cc-footer,
.mobile-footer-nav {
  background: #ffffff !important;
  color: var(--cc-muted) !important;
  border-color: var(--cc-border) !important;
}

.footer-desc,
.footer-links a,
.copyright,
.footer-beian a,
.mobile-footer-item,
.mobile-footer-item svg {
  color: var(--cc-muted) !important;
  stroke: var(--cc-muted) !important;
}

.footer-links h4,
.mobile-footer-item.active span {
  color: var(--cc-brand) !important;
}

.mobile-footer-item.active svg {
  stroke: var(--cc-brand) !important;
}

.help-header,
.help-center-card,
.help-article-item,
.help-sidebar-block,
.help-empty {
  background: var(--cc-surface) !important;
  border-color: var(--cc-border) !important;
  box-shadow: var(--cc-shadow);
}

.help-center-card:hover,
.help-article-item:hover {
  background: #ffffff !important;
  border-color: rgba(var(--cc-brand-rgb), .32) !important;
  box-shadow: var(--cc-shadow-hover);
}

.help-header-title,
.help-center-title,
.help-article-title,
.sidebar-title,
.sidebar-item-title {
  color: var(--cc-text) !important;
  text-shadow: none !important;
}

.help-header-desc,
.help-center-meta,
.help-article-excerpt,
.help-article-meta,
.help-header-stat,
.sidebar-item-meta {
  color: var(--cc-muted) !important;
}

.back-btn,
.help-search-box {
  background: #ffffff !important;
  border-color: var(--cc-border) !important;
  color: var(--cc-muted) !important;
}

.back-btn:hover {
  background: rgba(var(--cc-brand-rgb), .08) !important;
  color: var(--cc-brand) !important;
}

.help-search-box:focus-within {
  background: #ffffff !important;
  border-color: rgba(var(--cc-brand-rgb), .45) !important;
}

.help-search-input {
  color: var(--cc-text) !important;
}

.help-search-input::placeholder {
  color: #94a3b8 !important;
}

@media (max-width: 900px) {
  .cc-nav {
    background: rgba(255, 255, 255, .98) !important;
    border-bottom-color: var(--cc-border) !important;
  }

  .cc-nav a {
    color: var(--cc-text) !important;
  }
}
