/* Help / 消息 / 账户保护 — black-gold concierge */

@keyframes wap-help-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.wap-help {
  /* 只改上下，勿用 padding 简写，否则会盖掉 .wap-main 的左右 14px */
  padding-top: 4px;
  padding-bottom: 20px;
  color: var(--wap-text);
}

.wap-help a, .wap-help button {
  -webkit-tap-highlight-color: transparent;
}

/* —— Hero —— */
.wap-help-hero {
  position: relative;
  overflow: visible;
  padding: 16px 16px 14px;
  border: 1px solid rgba(var(--wap-gold-rgb), 0.22);
  border-radius: 18px;
  background:
    radial-gradient(ellipse 80% 70% at 0% 0%, rgba(var(--wap-gold-rgb), 0.16), transparent 55%),
    radial-gradient(ellipse 46% 40% at 100% 100%, rgba(var(--wap-gold-rgb), 0.06), transparent 52%),
    var(--wap-surface);
  animation: wap-help-in 0.42s ease both;
}

.wap-help-hero::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--wap-gold-rgb), 0.5), transparent);
  pointer-events: none;
}

.wap-help-hero__mark, .wap-help-hero > span, .wap-help-title span {
  display: block;
  background: var(--wap-gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-family: var(--wap-font-display, Syne, "Noto Sans SC", sans-serif);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.22em;
  line-height: 1;
}

.wap-help-hero h1, .wap-help-title h1 {
  margin: 7px 0 5px;
  color: var(--wap-text);
  font-family: var(--wap-font-display, Syne, "Noto Sans SC", sans-serif);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.18;
}

.wap-help-hero p {
  margin: 0;
  color: var(--wap-muted);
  font-size: 12px;
  line-height: 1.55;
}

/* Search */
.wap-help-search {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 5px 5px 5px 12px;
  border: 1px solid rgba(var(--wap-gold-rgb), 0.28);
  border-radius: 14px;
  background: var(--wap-bg-deep);
}

.wap-help-search__field {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  gap: 8px;
}

.wap-help-search__field svg {
  flex: none;
  width: 16px;
  height: 16px;
  stroke: rgba(var(--wap-gold-rgb), 0.75);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.wap-help-search input {
  width: 100%;
  min-width: 0;
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: var(--wap-text);
  font-size: 16px;
  line-height: 1.3;
  outline: none;
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
}

.wap-help-search input::placeholder {
  color: var(--wap-muted);
}

.wap-help-search input::-webkit-search-decoration, .wap-help-search input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

.wap-help-search button, .wap-help-title button {
  flex: none;
  min-height: 44px;
  padding: 0 14px;
  border: 0;
  border-radius: 10px;
  background: var(--wap-gold-grad);
  color: var(--wap-cta-text);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.wap-help-search:focus-within {
  border-color: rgba(var(--wap-gold-rgb), 0.55);
  box-shadow: 0 0 0 3px rgba(var(--wap-gold-rgb), 0.14);
}

.wap-help-search__clear {
  flex: none;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--wap-gold-bright);
  font-size: 18px;
  line-height: 1;
  text-decoration: none;
  opacity: 0.8;
}

/* Quick topics */
.wap-help-quick {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.wap-help-quick--agent {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wap-help-quick a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 54px;
  padding: 8px 4px 7px;
  border: 1px solid rgba(var(--wap-gold-rgb), 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--wap-text);
  text-decoration: none;
  transition: transform 0.14s ease, border-color 0.18s ease, background 0.18s ease;
}

.wap-help-quick a svg {
  width: 15px;
  height: 15px;
  stroke: rgba(var(--wap-gold-rgb), 0.9);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wap-help-quick__mark {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  margin-bottom: 4px;
  border-radius: 8px;
  background: rgba(var(--wap-gold-rgb), 0.1);
  font-style: normal;
}

.wap-help-quick a span, .wap-help-quick a small {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wap-help-quick a span {
  color: var(--wap-gold-bright);
  font-size: 12px;
  font-weight: 750;
}

.wap-help-quick a small {
  margin-top: 2px;
  color: var(--wap-muted);
  font-size: 10px;
}

.wap-help-quick a:active {
  transform: scale(0.97);
}

/* Categories */
.wap-help-categories {
  position: sticky;
  top: calc(var(--wap-header-h, 52px) + env(safe-area-inset-top, 0px) + 6px);
  z-index: 18;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: 6px -14px 10px;
  padding: 8px 22px 8px 14px;
  background: var(--wap-topbar-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  touch-action: pan-x;
  -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 16px), transparent);
  mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 16px), transparent);
}

.wap-help-categories::-webkit-scrollbar {
  display: none;
}

.wap-help-categories a {
  flex: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid rgba(var(--wap-gold-rgb), 0.12);
  border-radius: 999px;
  background: var(--wap-surface-2);
  color: var(--wap-muted);
  font-size: 12px;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.22s cubic-bezier(0.4, 0, 0.2, 1), color 0.22s ease, border-color 0.22s ease, transform 0.14s ease;
}

.wap-help-categories a.is-active {
  border-color: rgba(var(--wap-gold-rgb), 0.35);
  background: var(--wap-gold-grad);
  color: var(--wap-cta-text);
  font-weight: 800;
}

.wap-help-categories a:active {
  transform: scale(0.96);
}

.wap-help-result {
  margin: 0 0 10px;
  overflow: hidden;
  color: var(--wap-muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Article list */
.wap-help-list {
  overflow: hidden;
  border: 1px solid rgba(var(--wap-gold-rgb), 0.16);
  border-radius: 16px;
  background: var(--wap-surface);
  animation: wap-help-in 0.42s ease both;
}

.wap-help-list > a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 12px;
  grid-template-rows: auto auto;
  column-gap: 10px;
  align-items: center;
  padding: 13px 14px;
  border-bottom: 1px solid var(--wap-line);
  color: var(--wap-text);
  text-decoration: none;
  transition: background 0.18s ease;
}

.wap-help-list > a:last-child {
  border-bottom: 0;
}

.wap-help-list > a span, .wap-help-list > a strong {
  grid-column: 1;
  min-width: 0;
  overflow: hidden;
}

.wap-help-list > a span {
  color: var(--wap-gold);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wap-help-list > a strong {
  display: -webkit-box;
  margin-top: 4px;
  overflow: hidden;
  color: var(--wap-text);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

.wap-help-list > a i {
  grid-column: 2;
  grid-row: 1 / span 2;
  width: 7px;
  height: 7px;
  border-top: 1.6px solid rgba(var(--wap-gold-rgb), 0.82);
  border-right: 1.6px solid rgba(var(--wap-gold-rgb), 0.82);
  transform: rotate(45deg);
  transition: transform 0.18s ease, opacity 0.18s ease;
  opacity: 0.88;
}

.wap-help-list > a:active {
  background: rgba(var(--wap-gold-rgb), 0.06);
}

.wap-help-list > a:active i {
  transform: rotate(45deg) translate(1px, -1px);
  opacity: 1;
}

.wap-help > .wap-help-empty {
  margin: 0;
  border: 1px solid rgba(var(--wap-gold-rgb), 0.16);
  border-radius: 16px;
  background: var(--wap-surface);
}

.wap-help > .wap-help-empty::before {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: rgba(var(--wap-gold-rgb), 0.08);
  box-shadow: none;
}

.wap-help-empty p {
  margin: 0;
}

.wap-help-aside {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.wap-help-aside .wap-help-support, .wap-help-aside .wap-help-return, .wap-help-aside p.wap-help-support {
  margin-top: 0;
}

/* Feedback */
.wap-help-feedback {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 12px 13px;
  border: 1px solid rgba(var(--wap-gold-rgb), 0.14);
  border-radius: 14px;
  background: var(--wap-surface);
  color: var(--wap-muted);
  font-size: 12px;
}

.wap-help-feedback > span {
  flex: 1 1 100%;
}

.wap-help-feedback form {
  margin: 0;
}

.wap-help-feedback button {
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid rgba(var(--wap-gold-rgb), 0.32);
  border-radius: 999px;
  background: rgba(var(--wap-gold-rgb), 0.08);
  color: var(--wap-gold-bright);
  font-size: 12px;
  font-weight: 750;
}

/* Support concierge */
.wap-help-support, .wap-help-return {
  display: flex;
  align-items: center;
  margin-top: 12px;
  text-decoration: none;
}

a.wap-help-support {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 12px;
  gap: 12px;
  min-height: 68px;
  padding: 12px 13px;
  border: 1px solid rgba(var(--wap-gold-rgb), 0.24);
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(var(--wap-gold-rgb), 0.1), transparent 48%),
    var(--wap-surface);
  color: var(--wap-text);
  transition: transform 0.14s ease, border-color 0.18s ease;
}

.wap-help-support__icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(var(--wap-gold-rgb), 0.12);
  color: var(--wap-gold-bright);
}

.wap-help-support__icon svg {
  width: 20px;
  height: 20px;
}

a.wap-help-support > span:nth-child(2) {
  min-width: 0;
}

a.wap-help-support strong, a.wap-help-support small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

a.wap-help-support strong {
  color: var(--wap-text);
  font-size: 14px;
  font-weight: 800;
}

a.wap-help-support small {
  margin-top: 3px;
  color: var(--wap-muted);
  font-size: 11px;
}

a.wap-help-support i {
  width: 7px;
  height: 7px;
  border-top: 1.6px solid rgba(var(--wap-gold-rgb), 0.75);
  border-right: 1.6px solid rgba(var(--wap-gold-rgb), 0.75);
  transform: rotate(45deg);
}

a.wap-help-support:active, .wap-help-return:active {
  transform: scale(0.985);
}

p.wap-help-support, p.wap-help-support.is-fallback {
  display: block;
  margin: 12px 0 0;
  padding: 14px 12px;
  border: 1px dashed rgba(var(--wap-gold-rgb), 0.24);
  border-radius: 14px;
  background: transparent;
  color: var(--wap-muted);
  font-size: 12px;
  line-height: 1.55;
  text-align: center;
}

.wap-help-return {
  justify-content: center;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 12px;
  background: var(--wap-gold-grad);
  color: var(--wap-cta-text);
  font-size: 14px;
  font-weight: 800;
}

/* Article */
.wap-help-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  margin: 2px 0 14px;
  padding: 0 2px;
  color: var(--wap-gold);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.wap-help-back::before {
  content: "";
  width: 7px;
  height: 7px;
  border-left: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: rotate(45deg);
}

.wap-help-preview-flag {
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid rgba(var(--wap-gold-rgb), 0.35);
  border-radius: 12px;
  background: rgba(var(--wap-gold-rgb), 0.12);
  color: var(--wap-text);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.wap-help-article article {
  padding: 18px 16px 16px;
  border: 1px solid rgba(var(--wap-gold-rgb), 0.16);
  border-radius: 16px;
  background: var(--wap-surface);
  animation: wap-help-in 0.42s ease both;
}

.wap-help-article article > span {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  color: var(--wap-gold);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wap-help-article h1 {
  display: -webkit-box;
  margin: 8px 0 12px;
  overflow: hidden;
  color: var(--wap-text);
  font-family: var(--wap-font-display, Syne, "Noto Sans SC", sans-serif);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.28;
  overflow-wrap: anywhere;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  -webkit-box-orient: vertical;
}

.wap-help-body {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  color: var(--wap-text);
  font-size: 15px;
  line-height: 1.78;
}

.wap-help-body h2, .wap-help-body h3, .wap-help-body h4 {
  margin: 1.1em 0 0.45em;
  color: var(--wap-gold-bright);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.35;
}

.wap-help-body p, .wap-help-body ul, .wap-help-body ol {
  margin: 0 0 0.85em;
}

.wap-help-body p:last-child, .wap-help-body ul:last-child, .wap-help-body ol:last-child {
  margin-bottom: 0;
}

.wap-help-body ul, .wap-help-body ol {
  padding-left: 1.2em;
}

.wap-help-body li + li {
  margin-top: 0.35em;
}

.wap-help-body a {
  color: var(--wap-gold);
  font-weight: 700;
}

.wap-help-body img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 10px 0;
  border-radius: 10px;
}

.wap-help-body blockquote {
  margin: 0 0 0.85em;
  padding: 10px 12px;
  border-left: 2px solid rgba(var(--wap-gold-rgb), 0.45);
  background: rgba(var(--wap-gold-rgb), 0.06);
  color: var(--wap-muted);
}

.wap-help-body table {
  width: 100%;
  min-width: 560px;
  margin: 0 0 0.85em;
  border-collapse: collapse;
  font-size: 13px;
}

.wap-help-body th, .wap-help-body td {
  padding: 8px 6px;
  border-bottom: 1px solid var(--wap-line);
  overflow-wrap: anywhere;
}

/* Notifications (shared sheet) */
.wap-help-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.wap-help-title > div {
  min-width: 0;
}

.wap-help-title h1 {
  margin: 6px 0 0;
}

.wap-help-title p {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--wap-muted);
}

.wap-help-title form {
  margin: 0;
}

.wap-help-title button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(var(--wap-gold-rgb), 0.32);
  background: rgba(var(--wap-gold-rgb), 0.1);
  color: var(--wap-gold-bright);
}

.wap-notification-list form {
  margin: 0 0 8px;
}

.wap-notification-list form > button {
  box-sizing: border-box;
  width: 100%;
  padding: 13px 14px;
  text-align: left;
  border: 1px solid rgba(var(--wap-gold-rgb), 0.14);
  border-radius: 14px;
  background: var(--wap-surface);
  color: var(--wap-muted);
}

.wap-notification-list form.is-unread > button {
  border-color: rgba(var(--wap-gold-rgb), 0.42);
  background:
    linear-gradient(145deg, rgba(var(--wap-gold-rgb), 0.1), transparent 50%),
    var(--wap-surface);
}

.wap-notification-list span, .wap-notification-list strong, .wap-notification-list small {
  display: block;
}

.wap-notification-list span, .wap-notification-list strong, .wap-notification-list p, .wap-notification-list small {
  overflow: hidden;
}

.wap-notification-list span {
  color: var(--wap-gold);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wap-notification-list strong {
  display: -webkit-box;
  margin: 5px 0 4px;
  color: var(--wap-text);
  font-size: 14px;
  font-weight: 750;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

.wap-notification-list p {
  display: -webkit-box;
  margin: 0 0 6px;
  color: var(--wap-muted);
  font-size: 12px;
  line-height: 1.5;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.wap-notification-list small {
  color: var(--wap-muted);
  font-size: 11px;
}

/* Protection */
.wap-protection-alert {
  margin: 12px 0 0;
  padding: 12px 13px;
  border: 1px solid rgba(196, 92, 64, 0.45);
  border-radius: 12px;
  background: rgba(196, 92, 64, 0.12);
  color: var(--wap-text);
  font-size: 13px;
  line-height: 1.55;
}

.wap-protection-card {
  margin-top: 12px;
  padding: 16px;
  border: 1px solid rgba(var(--wap-gold-rgb), 0.16);
  border-radius: 16px;
  background: var(--wap-surface);
}

.wap-protection-card h2 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 800;
}

.wap-protection-card p {
  margin: 0 0 10px;
  color: var(--wap-muted);
  font-size: 12px;
  line-height: 1.6;
}

.wap-protection-card label {
  display: block;
  margin: 9px 0;
  color: var(--wap-muted);
  font-size: 12px;
}

.wap-protection-card input, .wap-protection-card select {
  box-sizing: border-box;
  width: 100%;
  margin-top: 5px;
  padding: 11px 12px;
  border: 1px solid rgba(var(--wap-gold-rgb), 0.22);
  border-radius: 10px;
  background: var(--wap-bg-deep);
  color: var(--wap-text);
  font-size: 16px;
}

.wap-protection-card button {
  width: 100%;
  min-height: 44px;
  margin-top: 9px;
  padding: 11px;
  border: 0;
  border-radius: 10px;
  background: var(--wap-gold-grad);
  color: var(--wap-cta-text);
  font-weight: 800;
}

.wap-protection-card small {
  display: block;
  margin-top: 9px;
  color: var(--wap-gold);
  overflow-wrap: anywhere;
}

.wap-protection-help {
  margin: 14px 0 0;
}

.wap-protection-help a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(var(--wap-gold-rgb), 0.22);
  color: var(--wap-gold);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}







@media (hover: hover) and (pointer: fine) {
  .wap-help-list > a:hover, .wap-help-quick a:hover, a.wap-help-support:hover {
    border-color: rgba(var(--wap-gold-rgb), 0.38);
  }
}

.wap-help-search button:focus-visible, .wap-help-categories a:focus-visible, .wap-help-list > a:focus-visible, .wap-help-quick a:focus-visible, a.wap-help-support:focus-visible, .wap-help-return:focus-visible, .wap-help-back:focus-visible {
  outline: 2px solid var(--wap-gold-bright, var(--wap-gold));
  outline-offset: 2px;
}

@media (max-width: 360px) {
  .wap-help-quick { gap: 6px; }
  .wap-help-quick a span { font-size: 11px; }
  .wap-help-hero h1 { font-size: 20px; }
}
