/* ============================================================
   page-bangzhu-zhongxin.css — 帮助中心 · 晶格浅域 (zh-*)
   与首页同系视觉，紧凑横幅 + 全宽分区 FAQ
   ============================================================ */

html.theme-pearl-elegance .zt-help {
  --zt-bg: #f4f8fc;
  --zt-bg-alt: #ffffff;
  --zt-surface: #ffffff;
  --zt-ink: #0c1222;
  --zt-muted: #5a6a85;
  --zt-border: rgba(14, 165, 233, 0.18);
  --zt-border-strong: rgba(14, 165, 233, 0.35);
  --zt-cyan: #06b6d4;
  --zt-blue: #0ea5e9;
  --zt-blue-dark: #0284c7;
  --zt-glow: rgba(6, 182, 212, 0.15);
  --zt-shadow: 0 4px 20px -4px rgba(14, 165, 233, 0.12);
  --zt-shadow-lg: 0 20px 50px -12px rgba(14, 165, 233, 0.2);
  --zt-radius: 10px;
  --zt-sans: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Segoe UI', sans-serif;
  --zt-mono: ui-monospace, 'SF Mono', 'Cascadia Code', Menlo, monospace;
  font-family: var(--zt-sans);
  background: var(--zt-bg);
  color: var(--zt-ink);
}

html.theme-pearl-elegance:has(#page-bangzhu) body {
  background: var(--zt-bg);
  background-image: none;
}

html.theme-pearl-elegance:has(#page-bangzhu) body::after {
  display: none;
}

.zt-help .container {
  max-width: 1180px;
  padding-inline: clamp(20px, 4vw, 32px);
}

/* —— 紧凑横幅首屏 —— */
.zh-hero {
  position: relative;
  overflow: hidden;
  margin-top: calc(-1 * var(--nav-height));
  padding: calc(var(--nav-height) + clamp(32px, 5vw, 48px)) 0 clamp(28px, 4vw, 40px);
  border-bottom: 1px solid var(--zt-border);
}

.zh-hero__grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(14, 165, 233, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 165, 233, 0.035) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 100%);
}

.zh-hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 40px;
}

.zh-hero__copy {
  flex: 1;
  min-width: min(100%, 520px);
}

.zh-hero__title {
  margin: 0 0 12px;
  font-size: clamp(26px, 3.8vw, 40px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.03em;
}

.zh-hero__lead {
  margin: 0 0 22px;
  max-width: 54ch;
  font-size: 15px;
  line-height: 1.7;
  color: var(--zt-muted);
}

.zh-hero__lead a {
  color: var(--zt-blue);
  font-weight: 600;
}

.zh-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.zh-hero__meta {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.zh-hero__stat {
  padding: 16px 18px;
  min-width: 88px;
  text-align: center;
  border-radius: var(--zt-radius);
  background: var(--zt-surface);
  border: 1px solid var(--zt-border);
  box-shadow: var(--zt-shadow);
}

.zh-hero__stat--feat {
  border-color: var(--zt-border-strong);
  background: linear-gradient(180deg, rgba(14, 165, 233, 0.06) 0%, #fff 100%);
}

.zh-hero__stat-val {
  display: block;
  margin-bottom: 4px;
  font-family: var(--zt-mono);
  font-size: 22px;
  font-weight: 700;
  color: var(--zt-blue-dark);
}

.zh-hero__stat-val--icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}

.zh-hero__stat-val--icon .lucide {
  width: 22px;
  height: 22px;
  color: var(--zt-blue-dark);
}

.zh-hero__stat-lbl {
  font-size: 10px;
  color: var(--zt-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

@media (max-width: 700px) {
  .zh-hero__meta {
    width: 100%;
    justify-content: center;
  }
}

/* —— 主题快捷导航 —— */
.zh-topics {
  padding: 20px 0;
  background: var(--zt-surface);
  border-bottom: 1px solid var(--zt-border);
}

.zh-topics__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.zh-topic {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 14px;
  border-radius: var(--zt-radius);
  background: var(--zt-bg);
  border: 1px solid var(--zt-border);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.zh-topic:hover {
  border-color: var(--zt-cyan);
  box-shadow: var(--zt-shadow);
  transform: translateY(-2px);
}

.zh-topic > i {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  color: var(--zt-blue);
}

.zh-topic strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}

.zh-topic small {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: var(--zt-muted);
  line-height: 1.35;
}

@media (max-width: 900px) {
  .zh-topics__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 560px) {
  .zh-topics__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 400px) {
  .zh-topics__grid {
    grid-template-columns: 1fr;
  }
}

/* —— 使用路径（可点击） —— */
.zh-path-section {
  padding-top: clamp(48px, 7vw, 72px);
  padding-bottom: clamp(48px, 7vw, 72px);
}

.zt-help .zh-path {
  grid-template-columns: repeat(5, 1fr);
}

.zt-help .zh-path::before {
  left: 10%;
  right: 10%;
}

.zh-path__link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease;
}

.zh-path__link:hover {
  transform: translateY(-3px);
}

.zh-path__link h3 {
  color: var(--zt-ink);
  transition: color 0.2s ease;
}

.zh-path__link:hover h3 {
  color: var(--zt-blue-dark);
}

@media (max-width: 900px) {
  .zt-help .zh-path {
    grid-template-columns: repeat(3, 1fr);
    gap: 28px 16px;
  }

  .zt-help .zh-path::before {
    display: none;
  }
}

@media (max-width: 560px) {
  .zt-help .zh-path {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 400px) {
  .zt-help .zh-path {
    grid-template-columns: 1fr;
  }
}

/* —— FAQ 分区 —— */
.zh-zone {
  scroll-margin-top: calc(var(--nav-height) + 16px);
}

.zh-faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: 960px;
  margin-inline: auto;
}

.zh-faq-grid--pair {
  max-width: 800px;
}

.zh-faq-grid--single {
  grid-template-columns: 1fr;
  max-width: 640px;
}

.zh-faq {
  border-radius: var(--zt-radius);
  background: var(--zt-surface);
  border: 1px solid var(--zt-border);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.zh-faq:hover {
  border-color: var(--zt-border-strong);
}

.zh-faq[open] {
  border-color: var(--zt-border-strong);
  box-shadow: var(--zt-shadow);
}

.zh-faq summary {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px 20px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  cursor: pointer;
  list-style: none;
}

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

.zh-faq summary::after {
  content: '';
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-left: auto;
  margin-top: 2px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%230284c7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-size: contain;
  transition: transform 0.2s ease;
}

.zh-faq[open] summary::after {
  transform: rotate(180deg);
}

.zh-faq[open] summary {
  border-bottom: 1px solid var(--zt-border);
  color: var(--zt-blue-dark);
}

.zh-faq__num {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 6px;
  border-radius: 6px;
  font-family: var(--zt-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--zt-blue-dark);
  background: rgba(14, 165, 233, 0.08);
  border: 1px solid var(--zt-border);
}

.zh-faq p {
  margin: 0;
  padding: 16px 20px 18px;
  font-size: 13.5px;
  line-height: 1.68;
  color: var(--zt-muted);
}

.zh-faq p strong {
  color: var(--zt-ink);
}

.zh-faq a {
  color: var(--zt-blue);
  font-weight: 600;
}

/* hash 定位高亮 */
.zh-faq:target {
  border-color: var(--zt-cyan);
  box-shadow: 0 0 0 3px var(--zt-glow), var(--zt-shadow-lg);
}

@media (max-width: 700px) {
  .zh-faq-grid {
    grid-template-columns: 1fr;
  }
}

/* —— 常用入口 —— */
.zh-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  max-width: 800px;
  margin-inline: auto;
}

.zh-links__card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 22px;
  border-radius: var(--zt-radius);
  background: var(--zt-surface);
  border: 1px solid var(--zt-border);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.zh-links__card:hover {
  border-color: var(--zt-cyan);
  box-shadow: var(--zt-shadow);
  transform: translateY(-2px);
}

.zh-links__card > i:first-child {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  color: var(--zt-blue);
}

.zh-links__card span {
  flex: 1;
  min-width: 0;
}

.zh-links__card strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
}

.zh-links__card small {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--zt-muted);
}

.zh-links__arrow {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  color: var(--zt-muted);
  transition: color 0.2s ease, transform 0.2s ease;
}

.zh-links__card:hover .zh-links__arrow {
  color: var(--zt-blue);
  transform: translate(2px, -2px);
}

.zh-links__card--wide {
  grid-column: 1 / -1;
}

@media (max-width: 560px) {
  .zh-links {
    grid-template-columns: 1fr;
  }

  .zh-links__card--wide {
    grid-column: span 1;
  }
}

/* —— fade-in —— */
.zt-help .fade-in {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1), transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.zt-help .fade-in.visible {
  opacity: 1;
  transform: none;
}

.zt-help .zh-hero.fade-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .zt-help .fade-in,
  .zt-help .zt-stagger > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }
}
