/* ===== Help Center — Figma Frame 108:25 (Red Color Scheme) ===== */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@700;800&family=Noto+Sans+SC:wght@300;400;500;700&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Noto Sans SC', 'PingFang SC', system-ui, sans-serif;
  background: #051424;
  color: #fff;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ===== Nav ===== */

.help-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(2,6,23,0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  height: 80px;
  display: flex;
  align-items: center;
}

.help-nav-container {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.help-nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.help-nav-logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.help-nav-logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.help-nav-logo-text {
  font-family: 'Manrope', sans-serif;
  font-size: 30px;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
}

.help-nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.help-nav-link {
  font-size: 14px;
  font-weight: 600;
  color: #64748b;
  text-decoration: none;
  padding-bottom: 4px;
  transition: color 0.2s;
}

.help-nav-link:hover {
  color: #c8c5ca;
}

.help-nav-link.active {
  color: #dc2626;
  border-bottom: 2px solid #dc2626;
}

.help-nav-gh-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(220,38,38,0.1);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  color: #fff;
  font-size: 14px;
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
  flex-shrink: 0;
}

.help-nav-gh-btn:hover {
  background: rgba(220,38,38,0.15);
  border-color: rgba(255,255,255,0.18);
}

.help-nav-gh-btn svg {
  width: 14px;
  height: 14px;
  color: #dc2626;
}

/* ===== Page ===== */

.help-page {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

/* Hero Background — 4-layer red gradient (Figma frame 108:26, 1280×800 inside container) */

.help-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 800px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
  overflow: hidden;
}

/* Layer 1 — linear: red on RIGHT side (x>81%), fades to transparent by ~19% from left */
.help-hero-grad-top {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    270deg,
    rgba(220,38,38,0.15) 0%,
    rgba(220,38,38,0.07) 12%,
    transparent 22%,
    transparent 100%
  );
  opacity: 0.65;
}

/* Layer 2 — blur overlay: centered at top, 1000×600, 120px blur */
.help-hero-blur-dot {
  position: absolute;
  top: 0;
  left: 140px;
  right: 140px;
  height: 600px;
  border-radius: 12px;
  background: rgba(220,38,38,0.28);
  filter: blur(120px);
}

/* Layer 3 — dual radial gradients: centers at top (50%,0%), elliptical */
.help-hero-grad-radial {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70.7% 35.4% at 50% 0%, rgba(220,38,38,0.2) 0%, transparent 50%),
    radial-gradient(ellipse 62.5% 39% at 50% 0%, rgba(220,38,38,0.25) 0%, transparent 70%);
}

/* Layer 4 — bottom 128px fade to page bg (Figma: y=672, h=128) */
.help-hero-grad-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 128px;
  background: linear-gradient(0deg, #051424 0%, transparent 100%);
}

/* ===== Container ===== */

.help-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 80px 40px;
  display: flex;
  gap: 48px;
  position: relative;
  z-index: 1;
}

/* ===== Sidebar ===== */

.help-sidebar {
  position: fixed;
  top: 112px;
  left: calc(50% - 640px + 40px);
  width: 256px;
  flex-shrink: 0;
  align-self: flex-start;
  max-height: calc(100vh - 144px);
  overflow-y: auto;
  z-index: 50;

  /* Floating glass effect */
  background: rgba(5, 20, 36, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 20px;

  /* Subtle glow */
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.help-sidebar::-webkit-scrollbar { width: 3px; }
.help-sidebar::-webkit-scrollbar-track { background: transparent; }
.help-sidebar::-webkit-scrollbar-thumb { background: rgba(220, 38, 38, 0.25); border-radius: 2px; }

/* ===== Page Scrollbar ===== */

.help-page::-webkit-scrollbar { width: 6px; }
.help-page::-webkit-scrollbar-track { background: #051424; }
.help-page::-webkit-scrollbar-thumb { background: rgba(220, 38, 38, 0.3); border-radius: 3px; }
.help-page::-webkit-scrollbar-thumb:hover { background: rgba(220, 38, 38, 0.5); }

body::-webkit-scrollbar { width: 6px; }
body::-webkit-scrollbar-track { background: #051424; }
body::-webkit-scrollbar-thumb { background: rgba(220, 38, 38, 0.3); border-radius: 3px; }
body::-webkit-scrollbar-thumb:hover { background: rgba(220, 38, 38, 0.5); }

.help-sidebar-label {
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 10px;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 2px;
  padding: 0 16px 16px;
}

.help-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.help-sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px 12px 18px;
  border-radius: 4px;
  color: #94a3b8;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: 0;
  outline: none;
  transition: color 0.2s ease, background 0.2s ease;
}

.help-sidebar-link:hover,
.help-sidebar-link:focus,
.help-sidebar-link:focus-visible,
.help-sidebar-link:active {
  border: 0;
  outline: none;
  color: #cbd5e1;
  background: rgba(255,255,255,0.03);
}

.help-sidebar-link.active {
  color: #ef4444;
  font-weight: 600;
  border-radius: 4px;
  border: 0;
  border-left: 2px solid #dc2626;
  padding-left: 16px;
  background: linear-gradient(
    90deg,
    rgba(220,38,38,0.2) 39.9%,
    rgba(118,20,20,0) 100%
  );
}

.help-sidebar-icon {
  width: 14px;
  height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.help-sidebar-link.active .help-sidebar-icon,
.help-sidebar-link:hover .help-sidebar-icon {
  opacity: 1;
}

/* ===== Main Content ===== */

.help-main {
  flex: 1;
  min-width: 0;
  margin-left: 304px;
  display: flex;
  flex-direction: column;
  gap: 96px;
}

/* ===== Section ===== */

.help-section {
  scroll-margin-top: 112px;
}

.help-section-intro {
  margin-bottom: 48px;
}

.help-section-intro h1 {
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 48px;
  font-weight: 700;
  line-height: 1.0;
  color: #fff;
  margin-bottom: 23px;
}

.help-section-intro p {
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 20px;
  color: #94a3b8;
  line-height: 1.6;
  max-width: 672px;
}

.help-section-heading-sm {
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 30px;
  font-weight: 700;
  color: #fff;
  text-align: center;
}

/* ===== Step Cards ===== */

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

.help-glass-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 24px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.help-glass-card:hover {
  border-color: rgba(220,38,38,0.2);
  transform: translateY(-2px);
}

.help-glass-card-body {
  padding: 32px 32px 0;
  flex: 1;
}

.help-card-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 9999px;
  background: rgba(220,38,38,0.1);
  color: #dc2626;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.help-glass-card h3 {
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.help-glass-card p {
  font-size: 14px;
  color: #94a3b8;
  line-height: 1.65;
}

.help-glass-card code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: #dc2626;
  background: rgba(220,38,38,0.08);
  padding: 1px 6px;
  border-radius: 4px;
}

kbd {
  display: inline-block;
  padding: 1px 7px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: #dc2626;
  background: rgba(220,38,38,0.08);
  border: 1px solid rgba(220,38,38,0.2);
  border-radius: 4px;
  line-height: 1.6;
}

/* Card tip */
.help-card-tip {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 24px 24px;
  padding: 10px 14px;
  background: rgba(220,38,38,0.08);
  border: 1px solid rgba(220,38,38,0.15);
  border-radius: 8px;
  font-size: 11px;
  font-weight: 500;
  color: #dc2626;
}

.help-card-tip svg {
  color: #dc2626;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Card progress bar */
.help-card-progress {
  margin: 0 24px 24px;
}

.help-card-progress-bar-wrap {
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 12px 14px;
}

.help-card-progress-top {
  display: flex;
  justify-content: space-between;
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 10px;
  font-weight: 700;
  color: #94a3b8;
  margin-bottom: 10px;
}

.help-card-progress-track {
  height: 6px;
  background: rgba(255,255,255,0.06);
  border-radius: 3px;
  overflow: hidden;
}

.help-card-progress-fill {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #dc2626, #ef4444);
  border-radius: 3px;
}

/* Card search demo */
.help-card-search-demo {
  margin: 0 24px 24px;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 10px 14px;
}

.help-search-query {
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: #dc2626;
  margin-bottom: 4px;
}

.help-search-result {
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 10px;
  color: #64748b;
}

/* ===== Feature Grid ===== */

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

.help-glass-card-lg {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 32px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 40px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.help-glass-card-lg:hover {
  border-color: rgba(220,38,38,0.2);
}

.help-feature-card-privacy {
  background: rgba(5,20,36,0.8);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
}

.help-feature-blur-dot {
  position: absolute;
  width: 128px;
  height: 128px;
  border-radius: 50%;
  background: rgba(220,38,38,0.05);
  filter: blur(64px);
  pointer-events: none;
  top: -32px;
  right: -32px;
}

.help-glass-card-lg-inner {
  position: relative;
  z-index: 1;
}

.help-card-icon-lg-feature {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(220,38,38,0.1);
  color: #dc2626;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.help-glass-card-lg h3 {
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 15px;
}

.help-glass-card-lg p {
  font-size: 14px;
  color: #94a3b8;
  line-height: 1.65;
}

.help-glass-card-lg kbd {
  display: inline-block;
  padding: 1px 7px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: #dc2626;
  background: rgba(220,38,38,0.08);
  border: 1px solid rgba(220,38,38,0.2);
  border-radius: 4px;
  line-height: 1.6;
}

.help-card-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 15px;
  font-size: 10px;
  font-weight: 700;
  color: #94a3b8;
}

.help-card-tag-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #dc2626;
}

/* ===== Tables ===== */

.help-table-wrap {
  overflow-x: auto;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.05);
  background: rgba(255,255,255,0.02);
  margin-bottom: 32px;
}

.help-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.help-table th {
  padding: 16px 20px;
  text-align: left;
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.02);
}

.help-table td {
  padding: 14px 20px;
  color: #cbd5e1;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  line-height: 1.6;
}

.help-table tr:last-child td {
  border-bottom: none;
}

.help-table td code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: #dc2626;
  background: rgba(220,38,38,0.08);
  padding: 1px 6px;
  border-radius: 4px;
  white-space: nowrap;
}

.help-table td strong {
  color: #fff;
  font-weight: 600;
}

/* ===== Syntax Sub Grid ===== */

.help-syntax-sub-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.help-syntax-sub-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 16px;
  padding: 24px;
  transition: border-color 0.3s ease;
}

.help-syntax-sub-card:hover {
  border-color: rgba(220,38,38,0.15);
}

.help-syntax-sub-card h4 {
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.help-syntax-sub-card p {
  font-size: 14px;
  color: #94a3b8;
  line-height: 1.65;
}

.help-syntax-sub-card code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: #dc2626;
  background: rgba(220,38,38,0.08);
  padding: 1px 6px;
  border-radius: 4px;
}

.help-syntax-sub-card strong {
  color: #fff;
  font-weight: 600;
}

/* ===== Badge ===== */

.help-badge {
  display: inline-block;
  padding: 2px 10px;
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: #dc2626;
  background: rgba(220,38,38,0.12);
  border: 1px solid rgba(220,38,38,0.25);
  border-radius: 9999px;
  line-height: 1.6;
}

/* ===== Body Text ===== */

.help-text {
  font-size: 16px;
  color: #94a3b8;
  line-height: 1.7;
  margin-bottom: 32px;
}

.help-text kbd {
  display: inline-block;
  padding: 1px 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: #dc2626;
  background: rgba(220,38,38,0.08);
  border: 1px solid rgba(220,38,38,0.2);
  border-radius: 4px;
  line-height: 1.6;
}

/* ===== Preview Grid (3 columns) ===== */

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

/* ===== Explorer Grid (2 columns) ===== */

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

/* ===== FAQ ===== */

.help-faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 768px;
  margin: 0 auto;
}

.help-faq-item {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 16px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  overflow: hidden;
  transition: all 0.25s;
}

.help-faq-item:hover {
  border-color: rgba(220,38,38,0.15);
}

.help-faq-item.open {
  background: rgba(5,20,36,0.8);
  border-color: rgba(255,255,255,0.08);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
}

.help-faq-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 32px;
  background: none;
  border: none;
  color: #cbd5e1;
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
  transition: color 0.2s;
}

.help-faq-btn:hover {
  color: #fff;
}

.help-faq-btn svg {
  width: 14px;
  height: 14px;
  min-width: 14px;
  color: #64748b;
  transition: transform 0.3s ease;
}

.help-faq-item.open .help-faq-btn svg {
  transform: rotate(180deg);
  color: #dc2626;
}

.help-faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 32px;
}

.help-faq-item.open .help-faq-content {
  max-height: 300px;
  padding: 0 32px 24px;
}

.help-faq-content::before {
  content: '';
  display: block;
  margin-bottom: 16px;
  height: 1px;
  background: rgba(255,255,255,0.05);
}

.help-faq-content p {
  font-size: 14px;
  color: #94a3b8;
  line-height: 1.7;
}

/* ===== Footer ===== */

.help-footer {
  background: #0b0b0d;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 80px 0;
  position: relative;
  z-index: 1;
}

.help-footer-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 48px;
}

.help-footer-col-brand {
  max-width: 280px;
}

.help-footer-logo {
  font-family: 'Manrope', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  display: block;
  margin-bottom: 16px;
}

.help-footer-col-brand p {
  font-size: 14px;
  color: #64748b;
  line-height: 1.65;
  margin-bottom: 31px;
}

.help-footer-copy {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: #64748b;
}

.help-footer-col h5 {
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #94a3b8;
  margin-bottom: 20px;
}

.help-footer-col a {
  display: block;
  font-size: 14px;
  color: #64748b;
  text-decoration: none;
  margin-bottom: 16px;
  transition: color 0.2s;
}

.help-footer-col a:hover {
  color: #cbd5e1;
}

/* ===== Responsive ===== */

@media (max-width: 1024px) {
  .help-step-cards {
    grid-template-columns: 1fr;
  }

  .help-feature-grid-2x2 {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .help-syntax-sub-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .help-preview-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .help-explorer-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 900px) {
  .help-nav-links {
    display: none;
  }

  .help-container {
    flex-direction: column;
    padding: 48px 16px;
    gap: 32px;
  }

  .help-sidebar {
    position: relative;
    left: auto;
    top: 0;
    width: 100%;
    max-height: none;
    overflow-y: visible;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
  }

  .help-sidebar-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px;
  }

  .help-sidebar-link {
    width: auto;
    padding: 8px 12px;
    font-size: 13px;
    white-space: nowrap;
  }

  .help-sidebar-label {
    display: none;
  }

  .help-main {
    margin-left: 0;
    gap: 48px;
  }

  .help-section-intro h1 {
    font-size: 32px;
  }

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

  .help-footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 640px) {
  .help-nav-container {
    padding: 0 20px;
  }

  .help-nav-logo-text {
    font-size: 22px;
  }

  .help-container {
    padding: 32px 12px;
  }

  .help-section-intro h1 {
    font-size: 26px;
  }

  .help-glass-card-body {
    padding: 24px 24px 0;
  }

  .help-glass-card-lg {
    padding: 24px;
  }

  .help-card-tip {
    margin: 0 16px 16px;
  }

  .help-card-progress {
    margin: 0 16px 16px;
  }

  .help-card-search-demo {
    margin: 0 16px 16px;
  }

  .help-footer-container {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 0 20px;
  }

  .help-faq-btn {
    padding: 16px 20px;
    font-size: 13px;
  }

  .help-faq-content {
    padding: 0 20px;
  }

  .help-faq-item.open .help-faq-content {
    padding: 0 20px 20px;
  }

  .help-syntax-sub-card {
    padding: 18px;
  }

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

  .help-hero-bg {
    height: 500px;
  }

  .help-hero-blur-dot {
    left: 20px;
    right: 20px;
    height: 400px;
  }

  .help-hero-badge {
    padding: 4px 10px;
    font-size: 9px;
  }

  .help-activation-hint {
    flex-direction: column;
    padding: 20px;
    gap: 16px;
  }

  .help-regex-bento {
    grid-template-columns: 1fr;
  }

  .help-regex-bento > :nth-child(4) {
    grid-column: span 1;
  }

  .help-syntax-bento {
    grid-template-columns: 1fr;
  }

  .help-syntax-bento > :first-child {
    grid-column: span 1;
  }

  .help-case-list {
    gap: 24px;
  }

  .help-case-item {
    flex-direction: column;
    gap: 16px;
  }

  .help-case-code-block {
    min-width: auto;
  }

  .help-bottom-cta {
    flex-direction: column;
    text-align: center;
    gap: 16px;
    padding: 24px 0;
  }

  .help-rules-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}


/* =================================================================
   Regex Page — Hero Badge (Frame 108:283)
   ================================================================= */

.help-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(69, 10, 10, 0.3);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 12px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 10px;
  font-weight: 700;
  color: #f87171;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.help-hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f87171;
  flex-shrink: 0;
}


/* =================================================================
   Regex Page — Activation Hint (Frame 108:292)
   ================================================================= */

.help-activation-hint {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 32px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid #dc2626;
  border-radius: 10px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  margin-top: 32px;
}

.help-activation-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: rgba(220, 38, 38, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #f87171;
}

.help-activation-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.help-activation-label {
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 10px;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.help-activation-text {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}

.help-activation-text kbd {
  font-family: 'JetBrains Mono', monospace;
  font-size: 20px;
  font-weight: 700;
  color: #dc2626;
  background: rgba(220, 38, 38, 0.08);
  border: 1px solid rgba(220, 38, 38, 0.2);
  border-radius: 4px;
  padding: 2px 10px;
  line-height: 1.6;
}


/* =================================================================
   Regex Page — Bento Grid (Frame 108:304)
   ================================================================= */

.help-regex-bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.help-regex-bento > :nth-child(4) {
  grid-column: span 2;
}

.help-regex-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color 0.3s ease;
}

.help-regex-card:hover {
  border-color: rgba(220, 38, 38, 0.2);
}

.help-regex-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.help-regex-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(220, 38, 38, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #dc2626;
  flex-shrink: 0;
}

.help-regex-card h3 {
  font-family: 'Space Grotesk', 'Noto Sans SC', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}

.help-regex-card p {
  font-size: 14px;
  color: #94a3b8;
  line-height: 1.65;
}

.help-regex-card .help-code-block {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 16px;
  font-family: 'JetBrains Mono', 'Liberation Mono', monospace;
  font-size: 14px;
  color: #f87171;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.help-regex-card .help-code-result {
  font-size: 11px;
  font-weight: 500;
  color: #94a3b8;
  padding: 0 2px;
}

.help-regex-card-double .help-code-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.help-regex-card-double .help-code-col h4 {
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  margin-bottom: 8px;
}

.help-regex-card-double .help-code-block {
  font-size: 14px;
}

.help-regex-card .help-quantifier-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.help-regex-card .help-quantifier-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.help-regex-card .help-quantifier-row code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  color: #f87171;
  background: rgba(220, 38, 38, 0.08);
  padding: 2px 8px;
  border-radius: 4px;
  min-width: 40px;
  text-align: center;
}

.help-regex-card .help-quantifier-row span {
  font-size: 12px;
  font-weight: 500;
  color: #94a3b8;
}


/* =================================================================
   Regex Page — Case Studies (Frame 108:388)
   ================================================================= */

.help-case-studies {
  margin-top: 48px;
  background: rgba(5, 20, 36, 0.8);
  border: 1px solid #dc2626;
  border-radius: 15px;
  padding: 48px 48px 64px;
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  position: relative;
  overflow: hidden;
}

.help-case-studies-blur {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: rgba(220, 38, 38, 0.1);
  filter: blur(120px);
  pointer-events: none;
}

.help-case-studies-inner {
  position: relative;
  z-index: 1;
}

.help-case-studies h2 {
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 30px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.help-case-studies .help-case-divider {
  width: 60px;
  height: 4px;
  background: #dc2626;
  border-radius: 12px;
  margin-bottom: 48px;
}

.help-case-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.help-case-item {
  display: flex;
  align-items: flex-start;
  gap: 32px;
}

.help-case-code-block {
  flex-shrink: 0;
  min-width: 360px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 16px;
  color: #f87171;
  word-break: break-all;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.help-case-info h4 {
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.help-case-info p {
  font-size: 14px;
  color: #94a3b8;
  line-height: 1.65;
}


/* =================================================================
   Bottom CTA (Frame 108:450)
   ================================================================= */

.help-bottom-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 40px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 64px;
}

.help-bottom-cta-text {
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}

.help-bottom-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: #dc2626;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 0 25px rgba(255, 0, 0, 0.4);
  white-space: nowrap;
  flex-shrink: 0;
}

.help-bottom-cta-btn:hover {
  background: #ef4444;
  transform: scale(1.02);
  box-shadow: 0 0 35px rgba(255, 0, 0, 0.5);
}


/* =================================================================
   Search Syntax Page — Bento Grid (Frame 108:683)
   ================================================================= */

.help-syntax-bento {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  margin-top: 48px;
}

.help-syntax-bento > :first-child {
  grid-column: span 1;
  grid-row: span 2;
}

.help-syntax-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  transition: border-color 0.3s ease;
}

.help-syntax-card:hover {
  border-color: rgba(220, 38, 38, 0.2);
}

.help-syntax-card.help-syntax-card-red {
  background: rgba(145, 0, 48, 0.05);
  border-color: rgba(255, 0, 0, 0.1);
}

.help-syntax-card.help-syntax-card-red:hover {
  border-color: rgba(220, 38, 38, 0.3);
}

.help-syntax-card-wide {
  grid-column: 1 / -1;
}

.help-syntax-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.help-syntax-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(220, 38, 38, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #dc2626;
  flex-shrink: 0;
}

.help-syntax-card h3 {
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #fff;
}

.help-syntax-card h4 {
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.help-syntax-card p {
  font-size: 14px;
  color: #94a3b8;
  line-height: 1.65;
}

.help-syntax-card code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: #dc2626;
  background: rgba(220, 38, 38, 0.08);
  padding: 1px 6px;
  border-radius: 4px;
}

.help-syntax-card .help-code-block {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  color: #f87171;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.help-operator-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.help-operator-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  transition: border-color 0.2s;
}

.help-operator-item:hover {
  border-color: rgba(220, 38, 38, 0.15);
}

.help-operator-symbol {
  font-family: 'JetBrains Mono', monospace;
  font-size: 16px;
  font-weight: 700;
  color: #dc2626;
  background: rgba(220, 38, 38, 0.1);
  padding: 4px 12px;
  border-radius: 6px;
  min-width: 44px;
  text-align: center;
  flex-shrink: 0;
}

.help-operator-desc {
  flex: 1;
  min-width: 0;
}

.help-operator-desc .help-op-name {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 2px;
}

.help-operator-desc .help-op-example {
  font-size: 12px;
  color: #94a3b8;
}

.help-operator-desc code {
  font-size: 11px;
}

.help-wildcard-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  transition: border-color 0.2s;
}

.help-wildcard-item:hover {
  border-color: rgba(220, 38, 38, 0.15);
}

.help-wildcard-item .help-wc-symbol {
  font-family: 'JetBrains Mono', monospace;
  font-size: 18px;
  font-weight: 700;
  color: #dc2626;
}

.help-wildcard-item .help-wc-desc {
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.5;
}

.help-syntax-table-mini {
  width: 100%;
  border-collapse: collapse;
}

.help-syntax-table-mini td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 14px;
  color: #cbd5e1;
  line-height: 1.6;
  vertical-align: top;
}

.help-syntax-table-mini td:first-child {
  width: 160px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: #f87171;
  font-weight: 500;
}

.help-syntax-table-mini td:last-child {
  color: #94a3b8;
  font-size: 13px;
}

.help-syntax-table-mini tr:last-child td {
  border-bottom: none;
}


/* =================================================================
   Rules Footer (Frame 108:927)
   ================================================================= */

.help-rules-section {
  margin-top: 48px;
  background: #0b0b0d;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 40px;
  padding: 48px;
}

.help-rules-section h2 {
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 32px;
  text-align: center;
}

.help-rules-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.help-rule-item {
  display: flex;
  gap: 16px;
}

.help-rule-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(220, 38, 38, 0.15);
  color: #dc2626;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.help-rule-content h4 {
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.help-rule-content p {
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.6;
}

.help-rule-content code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: #dc2626;
  background: rgba(220, 38, 38, 0.08);
  padding: 1px 5px;
  border-radius: 3px;
}


/* =================================================================
   Examples Section — Query Cards with Copy
   ================================================================= */

.help-examples-grid {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.help-example-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.help-example-group-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
}

.help-example-group-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(220, 38, 38, 0.15);
  color: #dc2626;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.help-example-group-header h3 {
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}

.help-example-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.help-example-card:hover {
  border-color: rgba(220, 38, 38, 0.25);
  background: rgba(220, 38, 38, 0.05);
}

.help-example-card::after {
  content: '📋 复制';
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  opacity: 0;
  transition: opacity 0.2s;
}

.help-example-card:hover::after {
  opacity: 1;
}

.help-example-card.copied::after {
  content: '✓ 已复制';
  color: #34d399;
  opacity: 1;
}

.help-example-query {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  color: #e2e8f0;
  letter-spacing: 0.3px;
  flex: 1;
  min-width: 0;
  word-break: break-all;
}

.help-example-query .hl-op { color: #e2e8f0; }
.help-example-query .hl-str { color: #34d399; }
.help-example-query .hl-neg { color: #f87171; }
.help-example-query .hl-flt { color: #60a5fa; }
.help-example-query .hl-num { color: #fbbf24; }
.help-example-query .hl-wc  { color: #a78bfa; }
.help-example-query .hl-pipe { color: #64748b; font-weight: 700; }

.help-example-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  padding-right: 52px;
}

.help-example-tag {
  font-size: 11px;
  font-weight: 600;
  color: #dc2626;
  background: rgba(220, 38, 38, 0.1);
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

.help-example-desc {
  font-size: 13px;
  color: #94a3b8;
  white-space: nowrap;
}

.help-example-group-wide .help-example-inner-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.help-example-group-wide .help-example-card {
  min-height: 56px;
}

/* Tooltip — custom copy toast */
.help-example-toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: rgba(0,0,0,0.9);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 10px 24px;
  border-radius: 8px;
  color: #34d399;
  font-size: 14px;
  font-weight: 600;
  z-index: 99999;
  opacity: 0;
  transition: all 0.25s ease;
  pointer-events: none;
}

.help-example-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 900px) {
  .help-example-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .help-example-card::after {
    display: none;
  }

  .help-example-meta {
    flex-wrap: wrap;
    padding-right: 0;
  }

  .help-example-group-wide .help-example-inner-grid {
    grid-template-columns: 1fr;
  }
}
