/* ============================================================
   page-bangzhu-zhongxin.css — 帮助中心 · Midnight Aurora
   双栏导航 + 主题色带分区 + details FAQ（非单列手绘卡片）
   ============================================================ */

.hbz-page.page-main {
  padding-bottom: clamp(72px, 12vw, 120px);
}

/* ── Hero 延展 ── */
.hbz-hero .hbz-hero__inner {
  max-width: min(52rem, 100%);
}

.hbz-hero .hbz-hero__stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 14px;
  margin-top: clamp(18px, 3vw, 26px);
}

.hbz-stat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: rgba(233, 223, 255, 0.88);
  border-radius: 999px;
  border: 1px solid rgba(167, 139, 250, 0.22);
  background: rgba(12, 8, 26, 0.55);
  box-shadow: 0 8px 22px -14px rgba(99, 102, 241, 0.35);
}

.hbz-stat svg {
  width: 15px;
  height: 15px;
  opacity: 0.88;
  stroke-width: 2;
}

/* ── Body shell ── */
.hbz-body {
  padding-bottom: 16px;
}

/* ── 快捷入口：四宫格卡片 ── */
.hbz-shortcuts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 18px);
  margin-bottom: clamp(28px, 4vw, 40px);
}

.hbz-shortcut {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: clamp(16px, 2.2vw, 22px) clamp(16px, 2.4vw, 22px);
  border-radius: clamp(18px, 2vw, 22px);
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(167, 139, 250, 0.22);
  background: linear-gradient(
    155deg,
    rgba(28, 16, 48, 0.85) 0%,
    rgba(14, 8, 28, 0.92) 48%,
    rgba(18, 10, 36, 0.82) 100%
  );
  box-shadow:
    0 20px 48px -28px rgba(79, 70, 229, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.25s ease,
    box-shadow 0.35s ease;
}

.hbz-shortcut:hover {
  transform: translateY(-3px);
  border-color: rgba(232, 121, 249, 0.35);
  box-shadow:
    0 26px 56px -24px rgba(139, 92, 246, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.hbz-shortcut__ico {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(99, 102, 241, 0.14);
  border: 1px solid rgba(167, 139, 250, 0.28);
  color: #c4b5fd;
}

.hbz-shortcut__ico svg {
  width: 22px;
  height: 22px;
  stroke-width: 2;
}

.hbz-shortcut__txt {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.hbz-shortcut__txt strong {
  font-size: clamp(15px, 1.45vw, 17px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--white);
}

.hbz-shortcut__txt span:last-child {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.35;
}

/* ── 双栏主体 ── */
.hbz-layout {
  display: grid;
  grid-template-columns: minmax(200px, 248px) minmax(0, 1fr);
  gap: clamp(22px, 3.6vw, 44px);
  align-items: start;
}

/* 左侧导航轨 */
.hbz-rail {
  position: sticky;
  top: calc(var(--nav-height) + 14px);
  padding: clamp(18px, 2.4vw, 22px);
  border-radius: clamp(18px, 2vw, 22px);
  border: 1px solid rgba(167, 139, 250, 0.2);
  background: rgba(14, 10, 26, 0.72);
  -webkit-backdrop-filter: blur(14px);
          backdrop-filter: blur(14px);
  box-shadow:
    0 22px 50px -28px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.hbz-rail__title {
  margin: 0 0 14px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(196, 181, 253, 0.82);
}

.hbz-rail__nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hbz-rail__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  color: rgba(232, 228, 245, 0.94);
  text-decoration: none;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.hbz-rail__link:hover {
  background: rgba(99, 102, 241, 0.12);
}

.hbz-rail__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  flex-shrink: 0;
}

.hbz-rail__link--violet .hbz-rail__dot {
  background: linear-gradient(135deg, #818cf8, #c084fc);
}
.hbz-rail__link--cyan .hbz-rail__dot {
  background: linear-gradient(135deg, #22d3ee, #6366f1);
}
.hbz-rail__link--amber .hbz-rail__dot {
  background: linear-gradient(135deg, #fbbf24, #fb923c);
}
.hbz-rail__link--rose .hbz-rail__dot {
  background: linear-gradient(135deg, #fb7185, #e879f9);
}
.hbz-rail__link--mint .hbz-rail__dot {
  background: linear-gradient(135deg, #34d399, #22d3ee);
}

.hbz-rail__note {
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px dashed rgba(167, 139, 250, 0.22);
  font-size: 12px;
  line-height: 1.55;
  color: var(--muted);
  font-weight: 600;
}

.hbz-rail__note code {
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(167, 139, 250, 0.18);
}

/* 右侧主题块 */
.hbz-main {
  display: flex;
  flex-direction: column;
  gap: clamp(26px, 4vw, 36px);
  min-width: 0;
}

.hbz-topic {
  scroll-margin-top: calc(var(--nav-height) + 16px);
  padding: clamp(20px, 2.8vw, 28px);
  border-radius: clamp(20px, 2.4vw, 26px);
  border: 1px solid rgba(167, 139, 250, 0.16);
  background:
    radial-gradient(ellipse 90% 55% at 0% 0%, rgba(99, 102, 241, 0.08), transparent 52%),
    linear-gradient(168deg, rgba(22, 12, 38, 0.76) 0%, rgba(10, 6, 20, 0.82) 100%);
  box-shadow:
    0 26px 60px -30px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.hbz-topic--violet {
  border-left: 4px solid rgba(167, 139, 250, 0.85);
}
.hbz-topic--cyan {
  border-left: 4px solid rgba(56, 189, 248, 0.65);
}
.hbz-topic--amber {
  border-left: 4px solid rgba(251, 191, 36, 0.72);
}
.hbz-topic--rose {
  border-left: 4px solid rgba(244, 114, 182, 0.65);
}
.hbz-topic--mint {
  border-left: 4px solid rgba(52, 211, 153, 0.62);
}

.hbz-topic__head {
  display: flex;
  align-items: flex-start;
  gap: clamp(14px, 2vw, 18px);
  margin-bottom: clamp(18px, 2.5vw, 22px);
}

.hbz-topic__badge {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: rgba(99, 102, 241, 0.14);
  border: 1px solid rgba(167, 139, 250, 0.28);
  color: #ddd6fe;
}

.hbz-topic__badge svg {
  width: 26px;
  height: 26px;
  stroke-width: 2;
}

.hbz-topic__titles h2 {
  margin: 0 0 6px;
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--white);
}

.hbz-topic__titles p {
  margin: 0;
  font-size: clamp(14px, 1.45vw, 15px);
  font-weight: 600;
  line-height: 1.55;
  color: rgba(155, 146, 184, 0.98);
}

/* FAQ details */
.hbz-faq-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hbz-faq {
  scroll-margin-top: calc(var(--nav-height) + 12px);
  border-radius: clamp(14px, 1.6vw, 18px);
  border: 1px solid rgba(155, 146, 184, 0.22);
  background: rgba(8, 6, 18, 0.55);
  overflow: hidden;
  transition:
    border-color 0.25s ease,
    box-shadow 0.3s ease;
}

.hbz-faq:hover {
  border-color: rgba(167, 139, 250, 0.32);
}

.hbz-faq[open] {
  border-color: rgba(167, 139, 250, 0.42);
  box-shadow: 0 12px 36px -18px rgba(99, 102, 241, 0.28);
}

.hbz-faq__summary {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: clamp(14px, 2vw, 18px) clamp(16px, 2.2vw, 20px);
  cursor: pointer;
  font-weight: 700;
  list-style: none;
  color: rgba(245, 243, 255, 0.96);
}

.hbz-faq__summary::-webkit-details-marker {
  display: none;
}

.hbz-faq__summary::after {
  content: '';
  margin-left: auto;
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  margin-top: 5px;
  border-right: 2px solid rgba(167, 139, 250, 0.55);
  border-bottom: 2px solid rgba(167, 139, 250, 0.55);
  transform: rotate(45deg);
  transition: transform 0.25s ease;
}

.hbz-faq[open] .hbz-faq__summary::after {
  transform: rotate(-135deg);
  margin-top: 8px;
}

.hbz-faq__label {
  flex-shrink: 0;
  min-width: 2.25rem;
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-align: center;
  color: rgba(232, 228, 245, 0.92);
  background: rgba(99, 102, 241, 0.22);
  border: 1px solid rgba(167, 139, 250, 0.28);
}

.hbz-faq__q {
  flex: 1;
  min-width: 0;
  font-size: clamp(15px, 1.45vw, 17px);
  line-height: 1.45;
  letter-spacing: -0.015em;
}

.hbz-faq__panel {
  padding: 0 clamp(16px, 2.2vw, 20px) clamp(16px, 2.2vw, 20px);
  border-top: 1px solid rgba(167, 139, 250, 0.12);
}

.hbz-faq__a {
  margin: 0;
  padding-top: 14px;
  font-size: clamp(14px, 1.35vw, 16px);
  font-weight: 600;
  line-height: 1.72;
  color: rgba(210, 205, 228, 0.94);
}

.hbz-faq__a strong {
  color: rgba(248, 246, 255, 0.98);
  font-weight: 800;
}

.hbz-faq__a a {
  font-weight: 800;
  color: #c4b5fd;
  text-underline-offset: 3px;
}

.hbz-faq__a a:hover {
  color: #f0abfc;
}

/* 底部提示条 */
.hbz-footnote {
  margin-top: 8px;
  padding: clamp(16px, 2.2vw, 20px) clamp(18px, 2.5vw, 22px);
  border-radius: clamp(16px, 2vw, 20px);
  border: 1px dashed rgba(167, 139, 250, 0.35);
  background: rgba(14, 10, 28, 0.5);
}

.hbz-footnote p {
  margin: 0;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.65;
  color: rgba(205, 198, 232, 0.94);
}

.hbz-footnote svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  color: rgba(167, 139, 250, 0.9);
  stroke-width: 2;
}

/* fade-in（沿用 intersection observer） */
#page-bangzhu .fade-in {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

#page-bangzhu .fade-in.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  #page-bangzhu .fade-in {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hbz-shortcut:hover {
    transform: none;
  }

  .hbz-faq__summary::after {
    transition: none;
  }
}

/* ── 响应式 ── */
@media (max-width: 960px) {
  .hbz-shortcuts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hbz-layout {
    grid-template-columns: 1fr;
  }

  .hbz-rail {
    position: relative;
    top: auto;
    padding: 14px 16px;
  }

  .hbz-rail__nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }

  .hbz-rail__link {
    flex: 1 1 auto;
    justify-content: center;
    min-width: calc(50% - 6px);
    padding: 10px 12px;
    font-size: 13px;
  }

  .hbz-rail__note {
    margin-top: 12px;
    padding-top: 12px;
    text-align: center;
  }
}

@media (max-width: 520px) {
  .hbz-shortcuts {
    grid-template-columns: 1fr;
  }

  .hbz-rail__link {
    min-width: 100%;
  }

  .hbz-topic__head {
    flex-direction: column;
    align-items: flex-start;
  }

  .hbz-faq__summary {
    flex-wrap: nowrap;
    position: relative;
    padding-right: 40px;
  }

  .hbz-faq__summary::after {
    position: absolute;
    right: 16px;
    top: 50%;
    margin-left: 0;
    margin-top: 0;
    transform: translateY(-50%) rotate(45deg);
  }

  .hbz-faq[open] .hbz-faq__summary::after {
    transform: translateY(-50%) rotate(-135deg);
  }
}
