/* 帮助中心 — 鑫鑫卡密 */
.sp-help {
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #12161c;
  background:
    radial-gradient(900px 420px at 100% 0%, rgba(196, 92, 38, 0.07), transparent 55%),
    #eef1f4;
}

.sp-help a {
  color: #c45c26;
  text-decoration: none;
}

.sp-help-banner {
  position: relative;
  min-height: 260px;
  display: flex;
  align-items: flex-end;
  color: #f7fafc;
  isolation: isolate;
  overflow: hidden;
}

.sp-help-banner__media,
.sp-help-banner__veil {
  position: absolute;
  inset: 0;
}

.sp-help-banner__media {
  z-index: -2;
}

.sp-help-banner__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  transform: scale(1.04);
}

.sp-help-banner__veil {
  z-index: -1;
  background: linear-gradient(105deg, rgba(8, 18, 32, 0.86) 0%, rgba(8, 18, 32, 0.45) 100%);
}

.sp-help-banner__inner {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 48px 0 44px;
  animation: sp-help-rise 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.sp-help-banner__brand {
  margin: 0 0 14px;
  font-family: "Sora", "Noto Sans SC", "PingFang SC", sans-serif;
  font-size: clamp(2rem, 4vw, 2.85rem);
  font-weight: 700;
  letter-spacing: 0.06em;
}

.sp-help-banner__title {
  margin: 0 0 12px;
  font-size: clamp(1.15rem, 1.8vw, 1.35rem);
  font-weight: 600;
  letter-spacing: 0.12em;
  color: #e8a87c;
}

.sp-help-banner__sub {
  margin: 0;
  max-width: 36em;
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(247, 250, 252, 0.72);
}

@keyframes sp-help-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.sp-help-wrap {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

.sp-help-sec {
  padding: 64px 0;
}

.sp-help-sec--panel {
  margin-top: -40px;
  position: relative;
  z-index: 2;
  padding-top: 0;
  padding-bottom: 40px;
}

.sp-help-kicker {
  display: block;
  margin-bottom: 10px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #c45c26;
}

.sp-help-title {
  margin: 0 0 12px;
  font-family: "Sora", "Noto Sans SC", "PingFang SC", sans-serif;
  font-size: clamp(1.45rem, 2.4vw, 1.9rem);
  font-weight: 700;
  line-height: 1.35;
}

.sp-help-lead {
  margin: 0;
  max-width: 42em;
  font-size: 1rem;
  line-height: 1.8;
  color: #3d4f63;
}

.sp-help-entries {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.sp-help-entry {
  display: block;
  padding: 22px 20px;
  background: #fff;
  border: 1px solid rgba(18, 22, 28, 0.08);
  border-radius: 6px;
  box-shadow: 0 12px 32px rgba(18, 22, 28, 0.05);
  box-sizing: border-box;
  transition: border-color 0.25s, transform 0.25s;
  color: inherit !important;
}

.sp-help-entry:hover {
  border-color: rgba(196, 92, 38, 0.35);
  transform: translateY(-2px);
}

.sp-help-entry__tag {
  display: block;
  margin-bottom: 10px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #e8a87c;
}

.sp-help-entry h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 600;
  color: #12161c;
}

.sp-help-entry p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.6;
  color: #6b7c8f;
}

.sp-help-panel {
  background: #fff;
  border: 1px solid rgba(18, 22, 28, 0.08);
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(18, 22, 28, 0.06);
  padding: 36px 40px;
  box-sizing: border-box;
}

.sp-help-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
  counter-reset: help-step;
}

.sp-help-step {
  position: relative;
  padding: 22px 18px;
  background: #f3f6f8;
  border-radius: 6px;
  border: 1px solid rgba(18, 22, 28, 0.05);
}

.sp-help-step::before {
  counter-increment: help-step;
  content: counter(help-step, decimal-leading-zero);
  display: block;
  margin-bottom: 12px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: #e8a87c;
}

.sp-help-step h3 {
  margin: 0 0 8px;
  font-size: 1.02rem;
}

.sp-help-step p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.65;
  color: #6b7c8f;
}

.sp-help-faq {
  margin-top: 24px;
  border-top: 1px solid rgba(18, 22, 28, 0.08);
}

.sp-help-faq__item {
  border-bottom: 1px solid rgba(18, 22, 28, 0.08);
}

.sp-help-faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  border: 0;
  background: transparent;
  text-align: left;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: #12161c;
  cursor: pointer;
}

.sp-help-faq__q::after {
  content: "";
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-right: 2px solid #c45c26;
  border-bottom: 2px solid #c45c26;
  transform: rotate(45deg);
  transition: transform 0.25s;
  margin-top: -4px;
}

.sp-help-faq__item.is-open .sp-help-faq__q::after {
  transform: rotate(-135deg);
  margin-top: 4px;
}

.sp-help-faq__a {
  display: none;
  padding: 0 0 18px;
  font-size: 0.95rem;
  line-height: 1.8;
  color: #3d4f63;
}

.sp-help-faq__item.is-open .sp-help-faq__a {
  display: block;
}

.sp-help-notice {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
}

.sp-help-notice__item {
  padding: 20px 0;
  border-top: 1px solid rgba(18, 22, 28, 0.08);
}

.sp-help-notice__meta {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
}

.sp-help-notice__date {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: #c45c26;
  white-space: nowrap;
}

.sp-help-notice__item h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
}

.sp-help-notice__body {
  margin: 8px 0 0;
  font-size: 0.92rem;
  line-height: 1.75;
  color: #3d4f63;
}

.sp-help-notice__body p {
  margin: 0 0 8px;
}

.sp-help-notice__empty {
  margin: 24px 0 0;
  padding: 28px;
  text-align: center;
  color: #6b7c8f;
  background: #f3f6f8;
  border-radius: 6px;
}

.sp-help-docs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.sp-help-doc {
  display: block;
  padding: 20px 18px;
  background: #f3f6f8;
  border: 1px solid transparent;
  border-radius: 6px;
  color: inherit !important;
  transition: background 0.25s, border-color 0.25s;
}

.sp-help-doc:hover {
  background: #fff;
  border-color: rgba(196, 92, 38, 0.28);
}

.sp-help-doc strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1rem;
}

.sp-help-doc span {
  font-size: 0.86rem;
  color: #6b7c8f;
  line-height: 1.55;
}

.sp-help-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px 32px;
  border-radius: 8px;
  background: linear-gradient(145deg, #12161c 0%, #1a2740 100%);
  color: #f7fafc;
}

.sp-help-cta h2 {
  margin: 0 0 8px;
  font-family: "Sora", "Noto Sans SC", "PingFang SC", sans-serif;
  font-size: 1.35rem;
}

.sp-help-cta p {
  margin: 0;
  font-size: 0.92rem;
  color: rgba(247, 250, 252, 0.68);
  line-height: 1.65;
}

.sp-help-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 4px;
  background: #c45c26;
  color: #fff !important;
  font-weight: 600;
  transition: background 0.25s, transform 0.25s;
}

.sp-help-btn:hover {
  background: #9e4518;
  transform: translateY(-1px);
}

.sp-help-btn--ghost {
  background: transparent;
  border: 1px solid rgba(247, 250, 252, 0.35);
  margin-left: 10px;
}

.sp-help-btn--ghost:hover {
  background: rgba(247, 250, 252, 0.08);
}

/* detail layout */
.sp-help-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  padding: 40px 0 72px;
}

.sp-help-aside {
  position: sticky;
  top: 88px;
  background: #fff;
  border: 1px solid rgba(18, 22, 28, 0.08);
  border-radius: 8px;
  padding: 22px 18px;
  box-sizing: border-box;
}

.sp-help-aside h4 {
  margin: 0 0 14px;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #c45c26;
}

.sp-help-aside ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sp-help-aside li + li {
  margin-top: 4px;
}

.sp-help-aside a {
  display: block;
  padding: 10px 12px;
  border-radius: 4px;
  color: #3d4f63;
  font-size: 0.92rem;
  transition: background 0.2s, color 0.2s;
}

.sp-help-aside a:hover,
.sp-help-aside a.is-active {
  background: #f3f6f8;
  color: #c45c26;
}

.sp-help-article {
  background: #fff;
  border: 1px solid rgba(18, 22, 28, 0.08);
  border-radius: 8px;
  padding: 36px 40px;
  box-sizing: border-box;
  min-height: 420px;
}

.sp-help-article h2,
.sp-help-article .help-main > h2 {
  margin: 0 0 20px;
  font-family: "Sora", "Noto Sans SC", "PingFang SC", sans-serif;
  font-size: 1.7rem;
  font-weight: 700;
}

.sp-help-article .help-cont,
.sp-help-article .help-main {
  max-width: none;
}

.sp-help-article p,
.sp-help-article li {
  font-size: 0.98rem;
  line-height: 1.85;
  color: #3d4f63;
}

.sp-help-article h3 {
  margin: 28px 0 12px;
  font-size: 1.15rem;
}

.sp-help-article pre {
  white-space: pre-wrap;
  word-break: break-word;
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
  font-family: inherit;
}

.sp-help-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1), transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.sp-help-reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 960px) {
  .sp-help-entries,
  .sp-help-steps {
    grid-template-columns: 1fr 1fr;
  }

  .sp-help-docs,
  .sp-help-layout {
    grid-template-columns: 1fr;
  }

  .sp-help-aside {
    position: static;
  }

  .sp-help-panel,
  .sp-help-article {
    padding: 26px 20px;
  }
}

@media (max-width: 640px) {
  .sp-help-banner__inner,
  .sp-help-wrap {
    width: min(1120px, calc(100% - 32px));
  }

  .sp-help-entries,
  .sp-help-steps,
  .sp-help-docs {
    grid-template-columns: 1fr;
  }

  .sp-help-sec--panel {
    margin-top: -28px;
  }

  .sp-help-btn--ghost {
    margin-left: 0;
    margin-top: 10px;
  }
}
