:root {
  color-scheme: dark;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  color: #fff;
  background:
    radial-gradient(circle at top center, rgba(109, 129, 170, 0.35), transparent 34%),
    linear-gradient(180deg, #4b5a7d 0%, #273655 18%, #18233b 42%, #121c31 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  opacity: 0.22;
}

body::before {
  top: -70px;
  left: -80px;
  background: #7ea4ff;
}

body::after {
  right: -120px;
  bottom: 80px;
  background: #5a79ce;
}

button {
  font: inherit;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.16s ease, filter 0.16s ease, box-shadow 0.2s ease;
}

button:active {
  transform: scale(0.97);
  filter: brightness(0.98);
}

.page {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  padding: max(18px, env(safe-area-inset-top)) 16px max(28px, env(safe-area-inset-bottom));
}

.page__inner {
  width: 100%;
  max-width: 430px;
}

.topbar {
  padding-top: 10px;
}

.topbar__row,
.topbar__title,
.topbar__actions,
.notice,
.hero__meta,
.meta-pill,
.guide-card,
.guide-modal__header,
.wechat-mask__header {
  display: flex;
  align-items: center;
}

.topbar__row {
  justify-content: space-between;
  gap: 10px;
}

.topbar__title {
  gap: 8px;
  font-size: 18px;
  font-weight: 700;
}

.topbar__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.12);
}

.topbar__actions {
  gap: 8px;
}

.topbar__button {
  min-width: 74px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(180deg, rgba(136, 151, 187, 0.56), rgba(85, 98, 129, 0.56));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  font-size: 13px;
  font-weight: 600;
  backdrop-filter: blur(12px);
}

.notice {
  gap: 12px;
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(123, 139, 173, 0.28), rgba(82, 96, 126, 0.24));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
}

.notice__icon {
  flex: none;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}

.notice__icon svg {
  width: 17px;
  fill: #fff;
}

.notice__title {
  font-size: 14px;
  font-weight: 700;
}

.notice__desc {
  margin-top: 5px;
  color: rgba(235, 241, 255, 0.72);
  font-size: 12px;
}

.hero {
  padding: 34px 8px 10px;
  text-align: center;
}

.logo-box {
  display: grid;
  width: 120px;
  height: 120px;
  margin: 0 auto;
  place-items: center;
  overflow: hidden;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 18px 36px rgba(6, 12, 24, 0.24);
}

.logo-box img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero h1 {
  margin: 10px 0 0;
  font-size: 28px;
  line-height: 1.15;
  font-weight: 800;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}

.hero__subtitle {
  margin: 12px 0 0;
  color: rgba(235, 241, 255, 0.82);
  font-size: 16px;
}

.hero__meta {
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.meta-pill {
  gap: 8px;
  padding: 11px 16px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(132, 147, 180, 0.26), rgba(80, 96, 127, 0.28));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.meta-pill svg {
  width: 18px;
  height: 18px;
  fill: rgba(255, 255, 255, 0.86);
}

.meta-pill span {
  color: rgba(235, 241, 255, 0.7);
  font-size: 13px;
}

.meta-pill strong {
  font-size: 14px;
}

.download-btn {
  position: relative;
  width: 100%;
  margin-top: 28px;
  padding: 12px;
  overflow: hidden;
  border: 0;
  border-radius: 34px;
  background: linear-gradient(180deg, #fff 0%, #eae6de 100%);
  box-shadow: 0 18px 38px rgba(5, 10, 20, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.download-btn::after {
  content: "";
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: -38%;
  width: 34%;
  border-radius: 24px;
  opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.42), transparent);
  transform: skewX(-18deg);
  transition: left 0.35s ease, opacity 0.2s ease;
}

.download-btn span {
  display: block;
  width: 100%;
  padding: 18px;
  border-radius: 26px;
  color: #fff;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 38%), linear-gradient(180deg, #3f5378 0%, #202f4b 48%, #16233b 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 10px 22px rgba(15, 21, 35, 0.26);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.download-btn:active {
  transform: translateY(2px) scale(0.985);
}

.download-btn:active::after {
  left: 108%;
  opacity: 1;
}

.hero__tip {
  margin: 12px 0 0;
  color: rgba(235, 241, 255, 0.62);
  font-size: 13px;
}

.faq {
  margin-top: 22px;
  color: #101726;
}

.faq h2 {
  margin: 0 0 14px;
  color: #eaf2ff;
  font-size: 34px;
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.03em;
  text-shadow: 0 4px 18px rgba(10, 18, 35, 0.28);
}

.guide-card,
.faq-card {
  width: 100%;
  border: 0;
  border-radius: 24px;
  background: #f7f7fa;
  box-shadow: 0 16px 30px rgba(7, 13, 26, 0.14);
}

.guide-card {
  gap: 16px;
  margin-bottom: 16px;
  padding: 22px 20px;
  text-align: left;
}

.guide-card__icon {
  flex: none;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 18px;
  color: #6b78a4;
  background: linear-gradient(180deg, #eef1ff, #dfe4fb);
  font-size: 28px;
  font-weight: 800;
}

.guide-card__content {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.guide-card__content strong {
  color: #162136;
  font-size: 19px;
}

.guide-card__content small {
  color: #737e93;
  font-size: 14px;
}

.faq-card + .faq-card {
  margin-top: 12px;
}

.faq-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 22px 20px;
  border: 0;
  color: #151e31;
  background: transparent;
  text-align: left;
  font-size: 18px;
  font-weight: 800;
}

.faq-item__arrow {
  flex: none;
  width: 12px;
  height: 12px;
  border-right: 2px solid #1d2940;
  border-bottom: 2px solid #1d2940;
  transform: rotate(45deg);
  transition: transform 0.24s ease;
}

.faq-item.is-open .faq-item__arrow {
  transform: rotate(225deg);
}

.faq-answer {
  padding: 0 20px 20px;
  color: #69758d;
  font-size: 15px;
  line-height: 1.75;
}

.guide-modal[hidden],
#wechatMask[hidden] {
  display: none;
}

.guide-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
}

.guide-modal__mask,
.wechat-mask__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 9, 18, 0.58);
  backdrop-filter: blur(10px);
}

.guide-modal__panel {
  position: absolute;
  right: 16px;
  bottom: max(16px, env(safe-area-inset-bottom));
  left: 16px;
  max-width: 430px;
  margin: 0 auto;
  padding: 24px 20px 20px;
  border-radius: 28px;
  color: #182135;
  background: linear-gradient(180deg, #fff, #f5f7fd);
  box-shadow: 0 24px 44px rgba(0, 0, 0, 0.26);
}

.guide-modal__header {
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.guide-modal__header p {
  margin: 0 0 6px;
  color: #7c86a0;
  font-size: 12px;
  letter-spacing: 0.08em;
}

.guide-modal__header h3 {
  margin: 0;
  font-size: 24px;
}

.guide-modal__close {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  color: #4a5775;
  background: #eef2fb;
  font-size: 24px;
}

.guide-modal ol {
  margin: 18px 0 0;
  padding-left: 22px;
  color: #5f6d88;
}

.guide-modal li {
  line-height: 1.7;
}

.guide-modal li + li {
  margin-top: 10px;
}

.guide-modal__action {
  width: 100%;
  margin-top: 22px;
  padding: 16px 18px;
  border: 0;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(180deg, #263a5b, #142037);
  font-size: 17px;
  font-weight: 800;
}

#wechatMask {
  position: fixed;
  inset: 0;
  z-index: 50;
}

.wechat-mask__panel {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 51;
  width: 85%;
  max-width: 320px;
  padding: 24px;
  overflow: hidden;
  border-radius: 20px;
  color: #333;
  background: #fff;
  transform: translate(-50%, -50%);
}

.wechat-mask__header {
  margin-bottom: 20px;
}

.wechat-mask__header img {
  width: 50px;
  height: 50px;
  margin-right: 12px;
  border-radius: 12px;
}

.wechat-mask__header h3,
.wechat-mask__header p {
  margin: 0;
}

.wechat-mask__header h3 {
  font-size: 16px;
}

.wechat-mask__header p {
  margin-top: 4px;
  color: #999;
  font-size: 13px;
}

.wechat-mask__steps {
  padding: 16px;
  border-radius: 12px;
  background: #f7f8fa;
}

.wechat-mask__steps p {
  display: flex;
  align-items: center;
  margin: 0;
  font-size: 14px;
  line-height: 2;
}

.wechat-mask__steps span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  margin-right: 8px;
  border-radius: 50%;
  color: #fff;
  background: #ff4081;
  font-size: 12px;
}

.wechat-mask__steps b {
  color: #ff4081;
}

.wechat-mask__divider {
  margin: 18px 0;
  color: #bbb;
  text-align: center;
  font-size: 12px;
}

.wechat-mask__copy {
  position: relative;
  height: 40px;
  overflow: hidden;
  border-radius: 20px;
  background: #f1f6f9;
}

.wechat-mask__copy input {
  width: 100%;
  height: 100%;
  padding: 0 80px 0 16px;
  border: 0;
  outline: 0;
  color: #777;
  background: transparent;
}

.wechat-mask__copy button {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  padding: 0 18px;
  border: 0;
  border-radius: 0 20px 20px 0;
  color: #fff;
  background: linear-gradient(90deg, #ff6cab, #ff4081);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(26px + env(safe-area-inset-bottom));
  z-index: 60;
  max-width: calc(100vw - 40px);
  padding: 12px 18px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  color: #fff;
  background: rgba(11, 17, 28, 0.88);
  transform: translate(-50%, 24px);
  transition: opacity 0.22s ease, transform 0.22s ease;
  white-space: nowrap;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (min-width: 640px) {
  .page {
    padding: 24px;
  }

  .page__inner {
    max-width: 460px;
  }

  .hero h1 {
    font-size: 56px;
  }
}
