/* =========================================================================
   AFTERGLOW OFFICIAL · Help Center (/help/)
   仿 cnvapor 风格但用 AFTERGLOW OFFICIAL 品牌（白底 / Anton / 黑白 + holo accent）
   ========================================================================= */

body.ms-help-page .ast-archive-description,
body.ms-help-page .entry-header,
body.ms-help-page .post-thumbnail {
  display: none !important;
}

body.ms-help-page .ms-help {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px 96px;
}

@media (max-width: 768px) {
  body.ms-help-page .ms-help {
    padding: 0 20px 64px;
  }
}

/* =========================================================================
   1 · Hero + Search
   ========================================================================= */
.ms-help-hero {
  padding: 64px 0 48px;
  text-align: center;
  position: relative;
}
.ms-help-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: var(--ms-grad-holo-bright, linear-gradient(90deg, #ff00ff, #00ffff, #ff00ff));
  background-size: 200% 100%;
  animation: ms-help-shimmer 5s linear infinite;
  border-radius: 2px;
}

.ms-help-hero__eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ms-ink-muted, #666);
  margin: 0 0 16px;
}

.ms-help-hero__title {
  font-family: 'Anton', 'Bebas Neue', sans-serif;
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 400;
  line-height: .95;
  letter-spacing: -.01em;
  text-transform: uppercase;
  margin: 0 0 16px;
  color: var(--ms-ink, #000);
}
.ms-help-hero__wave {
  display: inline-block;
  margin-right: 8px;
  font-size: .8em;
  vertical-align: middle;
  animation: ms-wave 2s ease-in-out infinite;
  transform-origin: 70% 70%;
}
@keyframes ms-wave {
  0%, 100% { transform: rotate(0); }
  10%, 30% { transform: rotate(14deg); }
  20%      { transform: rotate(-8deg); }
}

.ms-help-hero__lead {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ms-ink-muted, #666);
  margin: 0 auto 32px;
  max-width: 540px;
}

/* —— Search bar —— */
.ms-help-search {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
}
.ms-help-search__icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: var(--ms-ink-muted, #666);
  pointer-events: none;
}
.ms-help-search__input {
  width: 100%;
  height: 56px;
  padding: 0 20px 0 52px;
  border: 1.5px solid var(--ms-line-strong, #ccc);
  border-radius: 999px;
  background: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: var(--ms-ink, #000);
  transition: border-color .2s ease, box-shadow .2s ease;
  outline: none;
}
.ms-help-search__input::placeholder {
  color: var(--ms-ink-faint, #999);
}
.ms-help-search__input:focus {
  border-color: var(--ms-ink, #000);
  box-shadow: 0 0 0 3px rgba(0,0,0,.06);
}

@keyframes ms-help-shimmer {
  0%   { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

/* =========================================================================
   2 · Category cards (4-col grid)
   ========================================================================= */
.ms-help-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 64px 0 96px;
}
@media (max-width: 1024px) {
  .ms-help-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .ms-help-cards { grid-template-columns: 1fr; gap: 14px; }
}

.ms-help-card {
  display: block;
  padding: 32px 28px 28px;
  background: var(--ms-bg-soft, #f7f7f7);
  border: 1px solid transparent;
  border-radius: 16px;
  text-decoration: none;
  color: var(--ms-ink, #000);
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
  position: relative;
  overflow: hidden;
}
.ms-help-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--ms-grad-holo-bright);
  background-size: 300% 300%;
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}
.ms-help-card:hover {
  transform: translateY(-4px);
  border-color: var(--ms-ink, #000);
  background: #fff;
}
.ms-help-card:hover::after {
  opacity: .06;
  animation: ms-help-shimmer 6s linear infinite;
}

.ms-help-card > * { position: relative; }

.ms-help-card__icon {
  font-size: 32px;
  line-height: 1;
  margin-bottom: 16px;
}
.ms-help-card__title {
  font-family: 'Anton', 'Bebas Neue', sans-serif;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0;
  text-transform: uppercase;
  margin: 0 0 8px;
  color: var(--ms-ink, #000);
}
.ms-help-card__desc {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ms-ink-muted, #666);
  margin: 0 0 20px;
  min-height: 42px;
}
.ms-help-card__cta {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ms-ink, #000);
  border-bottom: 1.5px solid var(--ms-ink, #000);
  padding-bottom: 2px;
}

/* =========================================================================
   3 · FAQ Accordion
   ========================================================================= */
.ms-help-faq {
  max-width: 800px;
  margin: 0 auto 80px;
}
.ms-help-faq__header {
  text-align: center;
  margin-bottom: 32px;
}
.ms-help-faq__eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ms-ink-muted, #666);
  margin: 0 0 8px;
}
.ms-help-faq__title {
  font-family: 'Anton', 'Bebas Neue', sans-serif;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 400;
  line-height: .95;
  letter-spacing: -.01em;
  text-transform: uppercase;
  margin: 0;
  color: var(--ms-ink, #000);
}

.ms-help-faq__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ms-help-faq__item {
  background: var(--ms-bg-soft, #f7f7f7);
  border-radius: 12px;
  border: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}
.ms-help-faq__item:hover {
  border-color: var(--ms-line-strong, #ccc);
}
.ms-help-faq__item[open] {
  background: #fff;
  border-color: var(--ms-ink, #000);
}

.ms-help-faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  cursor: pointer;
  list-style: none;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--ms-ink, #000);
  user-select: none;
}
.ms-help-faq__q::-webkit-details-marker { display: none; }
.ms-help-faq__q-text { flex: 1; line-height: 1.4; }
.ms-help-faq__q-icon {
  font-family: 'DM Mono', monospace;
  font-size: 22px;
  font-weight: 400;
  color: var(--ms-ink-muted, #666);
  transition: transform .25s ease, color .25s ease;
  line-height: 1;
}
.ms-help-faq__item[open] .ms-help-faq__q-icon {
  transform: rotate(45deg);
  color: var(--ms-ink, #000);
}

.ms-help-faq__a {
  padding: 0 24px 22px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ms-ink-muted, #666);
}
.ms-help-faq__a a {
  color: var(--ms-ink, #000);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.ms-help-faq__a strong { color: var(--ms-ink, #000); }

.ms-help-faq__empty {
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: var(--ms-ink-muted, #666);
  margin: 32px 0;
}
.ms-help-faq__empty a {
  color: var(--ms-ink, #000);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* =========================================================================
   4 · Contact card
   ========================================================================= */
.ms-help-contact {
  margin-top: 48px;
  padding: 56px 32px;
  background: var(--ms-ink, #000);
  color: #fff;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
}
.ms-help-contact::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--ms-grad-holo-bright);
  background-size: 300% 300%;
  opacity: .15;
  animation: ms-help-shimmer 12s linear infinite;
  pointer-events: none;
}
.ms-help-contact__inner {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.ms-help-contact__title {
  font-family: 'Anton', 'Bebas Neue', sans-serif;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 400;
  line-height: .95;
  letter-spacing: -.01em;
  text-transform: uppercase;
  margin: 0 0 12px;
  color: #fff;
}
.ms-help-contact__lead {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(255,255,255,.7);
  margin: 0 0 32px;
}

.ms-help-contact__channels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 640px) {
  .ms-help-contact__channels { grid-template-columns: 1fr; }
}

.ms-help-contact__channel {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  text-decoration: none;
  color: #fff;
  text-align: left;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.ms-help-contact__channel:hover {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.3);
  transform: translateY(-1px);
}

.ms-help-contact__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.1);
  border-radius: 10px;
  font-size: 18px;
}

.ms-help-contact__channel-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ms-help-contact__channel-label {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
}
.ms-help-contact__channel-value {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}
.ms-help-contact__channel-meta {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: rgba(255,255,255,.45);
  margin-top: 2px;
}
