/* L4: FAQ / support page only. Do not load on other pages. */
body.support-page {
  min-height: 100vh;
  background: #f4f7fa;
  color: #101820;
}

body.support-page::before,
body.support-page::after {
  display: none;
}

body.support-page main {
  display: block;
}

body.support-page .support-hero {
  position: relative;
  z-index: 0;
  padding: 40px 32px 72px;
  background:
    radial-gradient(ellipse 80% 70% at 50% -20%, rgba(8, 124, 255, 0.34), transparent 58%),
    radial-gradient(circle at 18% 110%, rgba(8, 124, 255, 0.14), transparent 32%),
    radial-gradient(circle at 82% 90%, rgba(20, 88, 170, 0.18), transparent 36%),
    linear-gradient(180deg, #071426 0%, #0a2445 100%);
  color: #fff;
  text-align: center;
}

body.support-page .support-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% -40%, rgba(46, 130, 255, 0.18), transparent 58%);
  pointer-events: none;
}

body.support-page .support-hero h1,
body.support-page .support-hero p {
  position: relative;
}

body.support-page .support-kicker,
body.support-page .support-hero > .support-kicker {
  display: none;
}

body.support-page .support-hero h1 {
  position: relative;
  margin: 0 0 18px;
  padding: 0 0 16px;
  color: #fff;
  font-family: "MM3D Display Serif", "Noto Serif TC", "MM3D Chinese Serif", serif;
  font-size: clamp(48px, 4.2vw, 56px);
  font-weight: 800;
  font-variation-settings: "wght" 800;
  font-synthesis: none;
  line-height: 1.15;
  letter-spacing: 0;
}

body.support-page .support-hero h1::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 56px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff9d24, #ffb13b);
  transform: translateX(-50%);
}

body.support-page .support-hero p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-family: var(--mm3d-body-sans);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.6;
}

body.support-page .support-stage {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  width: min(80%, 1200px);
  margin-inline: auto;
  margin-top: -40px;
  margin-bottom: 28px;
}

body.support-page .support-faq-card {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 36px;
  border: 1px solid #d5e3f0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(16, 36, 64, 0.10);
}

body.support-page .support-search,
body.support-page .support-category-tabs,
body.support-page .support-faq-toolbar,
body.support-page .support-faq-list,
body.support-page .support-empty {
  font-family: var(--mm3d-body-sans);
}

body.support-page .support-search {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  margin: 0;
  padding: 0 18px;
  border: 1px solid #d4e6f4;
  border-radius: 12px;
  background: #eef6fc;
  color: #6b7c8a;
  box-shadow: none;
}

body.support-page .support-search svg {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  color: #7d8fa0;
}

body.support-page .support-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #102033;
  font-family: var(--mm3d-body-sans);
  font-size: 16px;
  font-weight: 500;
}

body.support-page .support-search input::placeholder {
  color: #8a9aab;
  font-weight: 500;
}

body.support-page .support-category-tabs {
  display: block;
  width: 100%;
  min-width: 0;
  margin: 20px 0 0;
  white-space: normal;
}

body.support-page .support-category-tabs button {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  margin: 0 10px 10px 0;
  padding: 0 18px;
  border: 1px solid #c9d9e8;
  border-radius: 999px;
  background: #fff;
  color: #5d7084;
  font-family: var(--mm3d-body-sans);
  font-size: 16px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
}

body.support-page .support-category-tabs button.active {
  border-color: #087cff;
  background: #087cff;
  color: #fff;
}

body.support-page .support-category-tabs button:focus-visible,
body.support-page .support-search input:focus-visible,
body.support-page .support-faq-list summary:focus-visible,
body.support-page .support-empty button:focus-visible {
  outline: 3px solid #f0b536;
  outline-offset: 2px;
}

body.support-page .support-faq-toolbar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
  padding: 0;
  border: 0;
}

body.support-page .support-faq-toolbar h2 {
  margin: 0;
  color: #102033;
  font-family: var(--mm3d-body-sans);
  font-size: 22px;
  font-weight: 700;
}

body.support-page .support-faq-count {
  margin: 0;
  color: #8a97a6;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

body.support-page .support-faq-list {
  display: block;
  margin-top: 8px;
  box-sizing: border-box;
  height: calc(6 * 60px);
  min-height: calc(6 * 60px);
  overflow-x: hidden;
  overflow-y: auto;
}

body.support-page .support-faq-list details {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: inset 0 -1px #e6edf3;
}

body.support-page .support-faq-list details:last-of-type {
  box-shadow: none;
}

body.support-page .support-faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
  padding: 16px 0;
  color: #102033;
  font-family: var(--mm3d-body-sans);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.45;
  list-style: none;
  cursor: pointer;
}

body.support-page .support-faq-list summary::-webkit-details-marker {
  display: none;
}

body.support-page .support-faq-list summary::marker {
  content: "";
}

body.support-page .support-faq-q {
  min-width: 0;
  flex: 1 1 auto;
  overflow-wrap: anywhere;
  font-weight: 500;
}

body.support-page .support-faq-chevron {
  flex: 0 0 20px;
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  color: #087cff;
  transition: transform 0.18s ease;
}

body.support-page .support-faq-chevron svg {
  width: 20px;
  height: 20px;
}

body.support-page .support-faq-list details[open] .support-faq-chevron {
  transform: rotate(180deg);
}

body.support-page .support-faq-list details:hover summary {
  background: #f3f8fc;
}

body.support-page .support-faq-a {
  padding: 0 0 20px;
}

body.support-page .support-faq-list p {
  margin: 0;
  padding: 0;
  color: #4a5d70;
  font-family: var(--mm3d-body-sans);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.7;
}

body.support-page .support-faq-list a {
  color: #087cff;
  font-weight: 600;
}

body.support-page .support-faq-pager {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 16px;
  min-height: 40px;
}

body.support-page .support-faq-pager.is-visible {
  display: flex;
}

html body.support-page .support-faq-pager button,
html body.support-page .support-faq-pager button:hover,
html body.support-page .support-faq-pager button:focus,
html body.support-page .support-faq-pager button:disabled:hover {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid #c9d9e8;
  border-radius: 999px;
  background: #fff;
  color: #087cff;
  font-family: var(--mm3d-body-sans);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

html body.support-page .support-faq-pager button:disabled,
html body.support-page .support-faq-pager button:disabled:hover {
  color: #8a97a6;
  cursor: default;
}

body.support-page .support-faq-pager p {
  margin: 0;
  color: #617080;
  font-family: var(--mm3d-body-sans);
  font-size: 14px;
  font-weight: 500;
}

body.support-page .support-empty {
  display: grid;
  justify-items: start;
  gap: 12px;
  padding: 24px 0 8px;
  color: #617080;
}

body.support-page .support-empty p {
  margin: 0;
  padding: 0;
  font-size: 16px;
  line-height: 1.6;
}

body.support-page .support-empty button {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid #c9d9e8;
  border-radius: 999px;
  background: #fff;
  color: #087cff;
  font-family: var(--mm3d-body-sans);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

body.support-page .support-contact-card,
body.support-page .support-shell {
  display: none;
}

@media (max-width: 720px) {
  body.support-page .support-hero {
    padding: 28px 16px 60px;
  }

  body.support-page .support-hero h1 {
    font-size: clamp(32px, 8.4vw, 36px);
  }

  body.support-page .support-hero p {
    font-size: 16px;
  }

  body.support-page .support-stage {
    width: auto;
    max-width: none;
    margin: -40px 48px 24px 16px;
  }

  body.support-page .support-faq-card {
    padding: 20px;
  }

  body.support-page .support-search {
    min-height: 50px;
  }

  body.support-page .support-category-tabs button {
    margin: 0 10px 10px 0;
    font-size: 16px;
  }

  body.support-page .support-faq-toolbar h2 {
    font-size: 20px;
  }

  body.support-page .support-faq-list summary {
    font-size: 16px;
  }
}
