
    :root {
      --hxt-color-brand: #2B6BFF;
      --hxt-color-brand-dark: #1A4FD8;
      --hxt-color-accent: #FE6E27;
      --hxt-color-accent-ink: #FFFFFF;
      --hxt-color-bg: #F7F9FC;
      --hxt-color-surface: #FFFFFF;
      --hxt-color-ink: #1A1F2C;
      --hxt-color-ink-secondary: #4B5563;
      --hxt-color-ink-tertiary: #6B7280;
      --hxt-color-border: #E5E7EB;
      --hxt-color-border-light: #F3F4F6;
      --hxt-color-success: #10B981;
      --hxt-color-warning: #F59E0B;
      --hxt-color-error: #EF4444;
      --hxt-color-hero-bg: linear-gradient(135deg, #0B1D4A 0%, #1E3A8A 50%, #2563EB 100%);
      --hxt-shadow-sm: 0 1px 2px 0 rgba(0,0,0,0.05);
      --hxt-shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
      --hxt-shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
      --hxt-radius-sm: 6px;
      --hxt-radius-md: 10px;
      --hxt-radius-lg: 16px;
      --hxt-font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
      --hxt-font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
      --hxt-space-xs: 0.25rem;
      --hxt-space-sm: 0.5rem;
      --hxt-space-md: 1rem;
      --hxt-space-lg: 1.5rem;
      --hxt-space-xl: 2rem;
      --hxt-space-2xl: 3rem;
      --hxt-space-3xl: 4rem;
      --hxt-max-content: 1200px;
    }

    *, *::before, *::after { box-sizing: border-box; }

    html { scroll-behavior: smooth; }

    body {
      margin: 0;
      font-family: var(--hxt-font-sans);
      color: var(--hxt-color-ink);
      background: var(--hxt-color-bg);
      line-height: 1.6;
    }

    /* Header */
    .site-header {
      background: var(--hxt-color-hero-bg);
      color: #fff;
      position: relative;
      overflow: hidden;
    }

    .site-header::before {
      content: "";
      position: absolute;
      inset: 0;
      background-image: radial-gradient(circle at 20% 30%, rgba(255,255,255,0.08) 0%, transparent 50%),
                        radial-gradient(circle at 80% 70%, rgba(255,255,255,0.05) 0%, transparent 40%);
      pointer-events: none;
    }

    .header-inner {
      max-width: var(--hxt-max-content);
      margin: 0 auto;
      padding: var(--hxt-space-xl) var(--hxt-space-lg);
      position: relative;
      z-index: 1;
    }

    .header-top {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: var(--hxt-space-lg);
      margin-bottom: var(--hxt-space-xl);
      flex-wrap: wrap;
    }

    .brand-link {
      display: inline-flex;
      align-items: center;
      gap: var(--hxt-space-sm);
      color: #fff;
      text-decoration: none;
      font-size: 1.25rem;
      font-weight: 700;
    }

    .brand-link svg {
      width: 32px;
      height: 32px;
      flex-shrink: 0;
    }

    .header-actions a {
      color: rgba(255,255,255,0.9);
      text-decoration: none;
      font-size: 0.875rem;
      transition: color 0.2s;
    }

    .header-actions a:hover { color: #fff; }

    .hero-title {
      font-size: clamp(1.75rem, 5vw, 2.75rem);
      font-weight: 700;
      margin: 0 0 var(--hxt-space-sm);
      line-height: 1.2;
    }

    .hero-subtitle {
      font-size: clamp(1rem, 2vw, 1.125rem);
      color: rgba(255,255,255,0.85);
      margin: 0 0 var(--hxt-space-xl);
      max-width: 640px;
    }

    .search-box {
      position: relative;
      max-width: 720px;
    }

    .search-box input {
      width: 100%;
      padding: var(--hxt-space-md) var(--hxt-space-md) var(--hxt-space-md) 3rem;
      font-size: 1rem;
      border: none;
      border-radius: var(--hxt-radius-lg);
      box-shadow: var(--hxt-shadow-lg);
      outline: none;
      transition: box-shadow 0.2s;
    }

    .search-box input:focus {
      box-shadow: 0 0 0 3px rgba(43, 107, 255, 0.3), var(--hxt-shadow-lg);
    }

    .search-box svg {
      position: absolute;
      left: var(--hxt-space-md);
      top: 50%;
      transform: translateY(-50%);
      width: 22px;
      height: 22px;
      color: var(--hxt-color-ink-tertiary);
      pointer-events: none;
    }

    .search-clear {
      position: absolute;
      right: var(--hxt-space-md);
      top: 50%;
      transform: translateY(-50%);
      background: none;
      border: none;
      color: var(--hxt-color-ink-tertiary);
      cursor: pointer;
      padding: var(--hxt-space-xs);
      display: none;
      font-size: 0.875rem;
    }

    .search-clear.visible { display: block; }

    /* Portal tabs */
    .portal-bar {
      background: var(--hxt-color-surface);
      border-bottom: 1px solid var(--hxt-color-border);
      position: sticky;
      top: 0;
      z-index: 100;
    }

    .portal-inner {
      max-width: var(--hxt-max-content);
      margin: 0 auto;
      padding: 0 var(--hxt-space-lg);
      display: flex;
      gap: var(--hxt-space-xs);
    }

    .portal-tab {
      padding: var(--hxt-space-md) var(--hxt-space-xl);
      border: none;
      background: none;
      font-size: 1rem;
      font-weight: 600;
      color: var(--hxt-color-ink-secondary);
      cursor: pointer;
      position: relative;
      transition: color 0.2s;
    }

    .portal-tab:hover { color: var(--hxt-color-brand); }

    .portal-tab.active {
      color: var(--hxt-color-brand);
    }

    .portal-tab.active::after {
      content: "";
      position: absolute;
      bottom: 0;
      left: var(--hxt-space-md);
      right: var(--hxt-space-md);
      height: 3px;
      background: var(--hxt-color-brand);
      border-radius: 2px 2px 0 0;
    }

    /* Main layout */
    .help-layout {
      max-width: var(--hxt-max-content);
      margin: 0 auto;
      padding: var(--hxt-space-xl) var(--hxt-space-lg);
      display: grid;
      grid-template-columns: 260px 1fr;
      gap: var(--hxt-space-2xl);
      align-items: start;
    }

    /* Sidebar */
    .sidebar {
      position: sticky;
      top: 73px;
      max-height: calc(100vh - 89px);
      overflow-y: auto;
      padding-right: var(--hxt-space-sm);
    }

    .sidebar-title {
      font-size: 0.75rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      color: var(--hxt-color-ink-tertiary);
      margin: 0 0 var(--hxt-space-md);
      padding-left: var(--hxt-space-sm);
    }

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

    .nav-list li { margin-bottom: var(--hxt-space-xs); }

    .nav-list a {
      display: block;
      padding: var(--hxt-space-sm) var(--hxt-space-md);
      color: var(--hxt-color-ink-secondary);
      text-decoration: none;
      border-radius: var(--hxt-radius-md);
      font-size: 0.9375rem;
      transition: all 0.2s;
    }

    .nav-list a:hover {
      background: var(--hxt-color-border-light);
      color: var(--hxt-color-ink);
    }

    .nav-list a.active {
      background: rgba(43, 107, 255, 0.08);
      color: var(--hxt-color-brand);
      font-weight: 600;
    }

    .nav-list .nav-indent { padding-left: var(--hxt-space-xl); }

    /* Content */
    .content { min-width: 0; }

    .portal-panel { display: none; }
    .portal-panel.active { display: block; }

    .category-section {
      background: var(--hxt-color-surface);
      border-radius: var(--hxt-radius-lg);
      padding: var(--hxt-space-xl);
      margin-bottom: var(--hxt-space-lg);
      box-shadow: var(--hxt-shadow-sm);
      scroll-margin-top: 89px;
    }

    .category-header {
      display: flex;
      align-items: center;
      gap: var(--hxt-space-md);
      margin-bottom: var(--hxt-space-lg);
      padding-bottom: var(--hxt-space-md);
      border-bottom: 1px solid var(--hxt-color-border-light);
    }

    .category-icon {
      width: 44px;
      height: 44px;
      border-radius: var(--hxt-radius-md);
      display: flex;
      align-items: center;
      justify-content: center;
      background: rgba(43, 107, 255, 0.08);
      color: var(--hxt-color-brand);
      flex-shrink: 0;
    }

    .category-icon svg { width: 24px; height: 24px; }

    .category-title {
      font-size: 1.25rem;
      font-weight: 700;
      margin: 0;
    }

    .category-desc {
      font-size: 0.875rem;
      color: var(--hxt-color-ink-secondary);
      margin: var(--hxt-space-xs) 0 0;
    }

    .faq-group {
      margin-bottom: var(--hxt-space-xl);
    }

    .faq-group:last-child { margin-bottom: 0; }

    .faq-group-title {
      font-size: 1rem;
      font-weight: 600;
      color: var(--hxt-color-ink);
      margin: 0 0 var(--hxt-space-md);
      display: flex;
      align-items: center;
      gap: var(--hxt-space-sm);
    }

    .faq-group-title::before {
      content: "";
      width: 4px;
      height: 16px;
      background: var(--hxt-color-accent);
      border-radius: 2px;
    }

    details.faq-item {
      border: 1px solid var(--hxt-color-border);
      border-radius: var(--hxt-radius-md);
      margin-bottom: var(--hxt-space-sm);
      background: var(--hxt-color-surface);
      overflow: hidden;
    }

    details.faq-item[open] {
      border-color: var(--hxt-color-brand);
      box-shadow: 0 0 0 1px var(--hxt-color-brand);
    }

    summary.faq-question {
      padding: var(--hxt-space-md) var(--hxt-space-lg);
      font-weight: 500;
      cursor: pointer;
      list-style: none;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: var(--hxt-space-md);
      transition: background 0.2s;
    }

    summary.faq-question::-webkit-details-marker { display: none; }

    summary.faq-question:hover { background: var(--hxt-color-border-light); }

    summary.faq-question::after {
      content: "";
      width: 10px;
      height: 10px;
      border-right: 2px solid var(--hxt-color-ink-tertiary);
      border-bottom: 2px solid var(--hxt-color-ink-tertiary);
      transform: rotate(45deg);
      transition: transform 0.2s;
      flex-shrink: 0;
    }

    details.faq-item[open] summary.faq-question::after {
      transform: rotate(-135deg);
    }

    .faq-answer {
      padding: 0 var(--hxt-space-lg) var(--hxt-space-lg);
      color: var(--hxt-color-ink-secondary);
      font-size: 0.9375rem;
      line-height: 1.75;
    }

    .faq-answer p { margin: 0 0 var(--hxt-space-md); }
    .faq-answer p:last-child { margin-bottom: 0; }

    .faq-answer ul, .faq-answer ol {
      margin: 0 0 var(--hxt-space-md);
      padding-left: 1.5rem;
    }

    .faq-answer li { margin-bottom: var(--hxt-space-xs); }

    .faq-answer a {
      color: var(--hxt-color-brand);
      text-decoration: none;
    }

    .faq-answer a:hover { text-decoration: underline; }

    .faq-answer code {
      background: var(--hxt-color-border-light);
      padding: 0.125rem 0.375rem;
      border-radius: var(--hxt-radius-sm);
      font-family: var(--hxt-font-mono);
      font-size: 0.875em;
    }

    .faq-answer .highlight {
      background: #FEF3C7;
      padding: 0 2px;
      border-radius: 2px;
    }

    /* Search results */
    .search-empty {
      display: none;
      text-align: center;
      padding: var(--hxt-space-3xl) var(--hxt-space-lg);
      color: var(--hxt-color-ink-secondary);
    }

    .search-empty.visible { display: block; }

    .search-empty svg {
      width: 64px;
      height: 64px;
      color: var(--hxt-color-border);
      margin-bottom: var(--hxt-space-md);
    }

    .search-result-count {
      font-size: 0.875rem;
      color: var(--hxt-color-ink-tertiary);
      margin-bottom: var(--hxt-space-lg);
    }

    /* Footer */
    .site-footer {
      background: var(--hxt-color-surface);
      border-top: 1px solid var(--hxt-color-border);
      padding: var(--hxt-space-xl) var(--hxt-space-lg);
      margin-top: var(--hxt-space-2xl);
    }

    .footer-inner {
      max-width: var(--hxt-max-content);
      margin: 0 auto;
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: var(--hxt-space-lg);
      flex-wrap: wrap;
    }

    .footer-contact {
      font-size: 0.9375rem;
      color: var(--hxt-color-ink-secondary);
    }

    .footer-contact strong { color: var(--hxt-color-ink); }

    .footer-links {
      display: flex;
      gap: var(--hxt-space-lg);
    }

    .footer-links a {
      color: var(--hxt-color-ink-secondary);
      text-decoration: none;
      font-size: 0.875rem;
    }

    .footer-links a:hover { color: var(--hxt-color-brand); }

    .copyright {
      width: 100%;
      text-align: center;
      font-size: 0.8125rem;
      color: var(--hxt-color-ink-tertiary);
      margin-top: var(--hxt-space-md);
    }

    /* Mobile */
    @media (max-width: 900px) {
      .help-layout {
        grid-template-columns: 1fr;
        gap: var(--hxt-space-lg);
      }

      .sidebar {
        position: relative;
        top: auto;
        max-height: none;
        background: var(--hxt-color-surface);
        border-radius: var(--hxt-radius-lg);
        padding: var(--hxt-space-md);
        box-shadow: var(--hxt-shadow-sm);
      }

      .nav-list {
        display: flex;
        flex-wrap: wrap;
        gap: var(--hxt-space-xs);
      }

      .nav-list li { margin-bottom: 0; }

      .nav-list a {
        padding: var(--hxt-space-sm) var(--hxt-space-md);
        white-space: nowrap;
      }

      .nav-list .nav-indent { padding-left: var(--hxt-space-md); }

      .portal-tab {
        flex: 1;
        text-align: center;
        padding: var(--hxt-space-md);
      }
    }

    @media (max-width: 640px) {
      .header-inner { padding: var(--hxt-space-lg); }
      .category-section { padding: var(--hxt-space-lg); }
      .footer-inner { flex-direction: column; text-align: center; }
    }

    /* Print */
    @media print {
      .portal-bar, .sidebar, .search-box, .header-actions { display: none; }
      .help-layout { grid-template-columns: 1fr; }
      .portal-panel { display: block !important; }
      details.faq-item[open] { page-break-inside: avoid; }
      .site-header { background: #fff; color: #000; }
      .site-header::before { display: none; }
      .hero-title, .hero-subtitle { color: #000; }
    }

    /* Reduced motion */
    @media (prefers-reduced-motion: reduce) {
      html { scroll-behavior: auto; }
      * { transition: none !important; }
    }
  

/* hxt-help-v2-side-20261017 (Kevin 21:58令): 新片段版心在 v2_side 侧栏下让位（与 v2-leftside 独立页规则同模式） */
@media (min-width:768px){
  body.hxt-help-page:has(aside#J_v2Side) .site-header .header-inner,
  body.hxt-help-page:has(aside#J_v2Side) .portal-inner,
  body.hxt-help-page:has(aside#J_v2Side) .help-layout{
    margin-left:clamp(180px, calc((100vw - 1200px)/2), 100%) !important;
    margin-right:auto !important;
  }
  body.menu-mini.hxt-help-page:has(aside#J_v2Side) .site-header .header-inner,
  body.hxt-help-page:has(aside#J_v2Side.v2-side-mini) .site-header .header-inner,
  body.menu-mini.hxt-help-page:has(aside#J_v2Side) .portal-inner,
  body.hxt-help-page:has(aside#J_v2Side.v2-side-mini) .portal-inner,
  body.menu-mini.hxt-help-page:has(aside#J_v2Side) .help-layout,
  body.hxt-help-page:has(aside#J_v2Side.v2-side-mini) .help-layout{
    margin-left:clamp(60px, calc((100vw - 1200px)/2), 100%) !important;
  }
}
