/* 帮助中心 — 天蓝主题 */

:root {
  --hp-gradient: var(--theme-gradient-btn);
  --hp-gradient-diag: var(--theme-gradient-diag);
  --hp-purple: var(--theme-accent);
  --hp-purple-dark: var(--theme-link);
  --hp-purple-deep: var(--theme-link-hover);
  --hp-purple-soft: var(--theme-accent-soft);
  --hp-bg: var(--theme-cream);
  --hp-surface: var(--theme-surface);
  --hp-ink: var(--theme-ink);
  --hp-muted: var(--theme-muted);
  --hp-line: var(--theme-line-strong);
  --hp-on-purple: var(--theme-on-dark);
  --hp-on-purple-muted: var(--theme-on-dark-muted);
  --hp-gold: #ffd800;
  --hp-max: 1240px;
  --hp-radius: 8px;
}

.hp-page {
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--hp-ink);
  background: var(--hp-bg);
  overflow-x: clip;
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}

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

.hp-wrap {
  width: min(100%, var(--hp-max));
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 28px);
}

.hp-shell {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body.hp-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Marquee */
.hp-marquee {
  background: var(--hp-gradient);
  overflow: hidden;
}
.hp-marquee__track {
  display: flex;
  width: max-content;
  animation: hp-marquee 28s linear infinite;
}
.hp-marquee__track span {
  flex-shrink: 0;
  padding: 10px 32px;
  color: var(--hp-on-purple-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.hp-marquee__track span em {
  margin-right: 28px;
  color: var(--hp-gold);
  font-style: normal;
}
@keyframes hp-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* Hero */
.hp-hero {
  position: relative;
  padding: clamp(36px, 5vw, 56px) 0;
  overflow: hidden;
}
.hp-hero__bg {
  position: absolute;
  inset: 0;
  background: var(--hp-gradient-diag);
}
.hp-hero__orb {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  pointer-events: none;
}
.hp-hero__orb--1 {
  width: min(420px, 60vw);
  height: min(420px, 60vw);
  top: -140px;
  right: -80px;
}
.hp-hero__orb--2 {
  width: min(260px, 40vw);
  height: min(260px, 40vw);
  bottom: -60px;
  left: -40px;
  background: rgba(255, 255, 255, 0.05);
}
.hp-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(200px, 320px);
  gap: clamp(20px, 3vw, 32px);
  align-items: center;
}
.hp-hero__copy {
  color: var(--hp-on-purple);
}
.hp-hero__badge {
  display: inline-block;
  margin-bottom: 10px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: var(--hp-gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.hp-hero__title {
  margin: 0 0 20px;
  font-size: clamp(28px, 4.5vw, 42px);
  font-weight: 900;
  line-height: 1.15;
  color: var(--hp-on-purple);
}
.hp-hero__search {
  display: flex;
  align-items: stretch;
  max-width: 560px;
  border-radius: var(--hp-radius);
  background: var(--hp-surface);
  box-shadow: 0 16px 40px rgba(30, 27, 75, 0.18);
  overflow: hidden;
}
.hp-hero__input {
  flex: 1;
  min-width: 0;
  height: 50px;
  padding: 0 16px;
  border: 0;
  outline: none;
  font-size: 15px;
  color: var(--hp-ink);
  background: transparent;
}
.hp-hero__input::placeholder {
  color: var(--hp-muted);
}
.hp-hero__submit {
  flex-shrink: 0;
  width: 54px;
  border: 0;
  background: var(--hp-gradient);
  color: var(--hp-on-purple);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hp-hero__submit:hover {
  filter: brightness(1.06);
}
.hp-hero__hot {
  margin-top: 14px;
  font-size: 13px;
  color: var(--hp-on-purple-muted);
  line-height: 1.6;
}
.hp-hero__hot-label {
  margin-right: 6px;
  font-weight: 700;
}
.hp-hero__hot-link {
  display: inline-block;
  margin: 0 8px 4px 0;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: var(--hp-on-purple);
  font-weight: 600;
  text-decoration: none;
}
.hp-hero__hot-link:hover {
  background: rgba(255, 255, 255, 0.24);
}
.hp-hero__visual {
  position: relative;
  padding: 8px;
  border-radius: calc(var(--hp-radius) + 4px);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
}
.hp-hero__visual img {
  display: block;
  width: 100%;
  border-radius: var(--hp-radius);
  box-shadow: 0 12px 32px rgba(30, 27, 75, 0.2);
}

/* Jump nav */
.hp-jump {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--hp-line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
}
.hp-jump__list {
  display: flex;
  gap: 6px;
  margin: 0;
  padding: 10px 0;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}
nav[aria-label="分类导航"] li {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
}
.hp-jump__list::-webkit-scrollbar {
  display: none;
}
.hp-jump__list a {
  white-space: nowrap;
  flex-shrink: 0;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--hp-line);
  background: var(--hp-surface);
  color: var(--hp-muted);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
.hp-jump__list a:hover {
  border-color: var(--hp-purple);
  color: var(--hp-purple-deep);
  background: var(--hp-purple-soft);
}

/* Content */
.hp-body-section {
  flex: 1 0 auto;
  padding: clamp(32px, 5vw, 48px) 0 clamp(48px, 6vw, 72px);
}

.hp-empty {
  padding: 48px 24px;
  border-radius: calc(var(--hp-radius) + 4px);
  border: 1px dashed var(--hp-line);
  background: var(--hp-surface);
  color: var(--hp-muted);
  font-size: 15px;
  text-align: center;
}

.hp-block + .hp-block {
  margin-top: clamp(28px, 4vw, 40px);
}
.hp-block__title {
  margin: 0 0 16px;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 900;
  color: var(--hp-ink);
}
.hp-block__title em {
  font-style: normal;
  color: var(--hp-purple-deep);
}

/* Category cards */
.hp-cat {
  margin-bottom: 16px;
  border-radius: calc(var(--hp-radius) + 4px);
  border: 1px solid var(--hp-line);
  background: var(--hp-surface);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(var(--theme-accent-rgb), 0.06);
}
.hp-cat__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: var(--hp-gradient-diag);
  color: var(--hp-on-purple);
}
.hp-cat__idx {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: var(--hp-gold);
  font-size: 12px;
  font-weight: 900;
  line-height: 28px;
  text-align: center;
}
.hp-cat__title {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
}
.hp-cat__body {
  padding: 16px 18px 18px;
}
.hp-cat__empty {
  color: var(--hp-muted);
  font-size: 14px;
}

.hp-docs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.hp-doc-item {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--hp-line);
  background: var(--hp-bg);
  color: var(--hp-purple-deep);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}
.hp-doc-item:hover,
.hp-doc-item.is-highlight {
  border-color: var(--hp-purple);
  background: var(--hp-purple-soft);
  color: var(--hp-purple-deep);
  transform: translateY(-1px);
}
.hp-doc-item span.hp-doc-item {
  cursor: default;
}

/* Contact */
.hp-contact {
  margin-top: clamp(32px, 5vw, 48px);
  padding: clamp(28px, 4vw, 36px);
  border-radius: calc(var(--hp-radius) + 4px);
  background: var(--hp-gradient-diag);
  color: var(--hp-on-purple);
}
.hp-contact__title {
  margin: 0 0 10px;
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 900;
}
.hp-contact__title span {
  color: var(--hp-gold);
}
.hp-contact__desc,
.hp-contact__note {
  margin: 0 0 8px;
  color: var(--hp-on-purple-muted);
  font-size: 14px;
  line-height: 1.7;
}
.hp-contact__note {
  margin-bottom: 20px;
  font-size: 13px;
}
.hp-contact__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.hp-contact__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 12px;
  border-radius: var(--hp-radius);
  background: var(--hp-surface);
  color: var(--hp-ink);
  text-align: center;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.hp-contact__card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(30, 27, 75, 0.15);
}
.hp-contact__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 10px;
  border-radius: 50%;
  background: var(--hp-gradient);
  color: var(--hp-on-purple);
}
.hp-contact__icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.hp-contact__card strong {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
  color: var(--hp-ink);
}
.hp-contact__card span {
  font-size: 12px;
  color: var(--hp-muted);
}

.header.page-header-parent {
  z-index: 1000 !important;
}

@media (max-width: 900px) {
  .hp-hero__inner {
    grid-template-columns: 1fr;
  }
  .hp-hero__visual {
    max-width: 360px;
    margin: 0 auto;
  }
  .hp-contact__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .hp-contact__grid {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hp-marquee__track {
    animation: none;
  }
}
