:root {
  --ink: #1c2c43;
  --muted: #65758c;
  --blue: #214db5;
  --line: #e7ecf3;
  --green: #247559;
  color: var(--ink);
  background: #fff;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100svh;
  background: linear-gradient(#f3f6fd 0, #fff 160px);
}
button,
input {
  font: inherit;
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
[hidden] {
  display: none !important;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid #96afea;
  outline-offset: 4px;
}
.shell {
  width: min(100%, 440px);
  margin: 0 auto;
  padding: 24px 24px 28px;
}
.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}
.brand img {
  flex: 0 0 auto;
}
.brand > span {
  display: grid;
}
.brand strong {
  display: block;
  font-size: 16px;
  font-weight: 650;
  letter-spacing: 0;
}
.brand small {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  color: var(--muted);
  text-align-last: justify;
}
main {
  margin-top: 30px;
}
h1 {
  margin: 0;
  font-size: 23px;
  line-height: 1.4;
  font-weight: 650;
  letter-spacing: -0.02em;
}
h2 {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 600;
}
.caption {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}
#availability {
  color: #2563eb;
  font-weight: 500;
}
#login-form {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}
.field {
  display: grid;
  gap: 8px;
  min-width: 0;
}
label {
  font-size: 13px;
  font-weight: 500;
}
input,
.platform-trigger {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  border: 1px solid #d8e0ec;
  border-radius: 9px;
  padding: 11px 13px;
  background: #fff;
  color: var(--ink);
  font-size: 16px;
  outline: none;
}
input::placeholder {
  color: #9aa6b7;
}
input:focus,
.platform-trigger:focus-visible {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px #214db510;
}
.platform-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
}
#channel-value {
  font-size: 15px;
}
.platform-change {
  flex-shrink: 0;
  font-size: 12px;
  color: var(--muted);
}
.sheet-open {
  overflow: hidden;
}
.platform-sheet {
  position: fixed;
  inset: auto 0 0;
  width: 100%;
  max-width: 480px;
  max-height: 80svh;
  margin: 0 auto;
  padding: 10px 20px calc(24px + env(safe-area-inset-bottom, 0px));
  border: 0;
  border-radius: 22px 22px 0 0;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 -12px 50px #15223812;
  overscroll-behavior: contain;
}
.platform-sheet::backdrop {
  background: #15223866;
}
.sheet-handle {
  width: 34px;
  height: 4px;
  margin: 0 auto 8px;
  border-radius: 4px;
  background: #d4dbe5;
}
.sheet-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.sheet-heading h2 {
  font-size: 18px;
  font-weight: 650;
}
.platform-options {
  display: grid;
  gap: 10px;
}
.platform-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  min-height: 64px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font-size: 15px;
  text-align: left;
}
.platform-option[aria-pressed="true"] {
  border-color: #d8e3fc;
  background: #f0f5ff;
  color: var(--blue);
  font-weight: 600;
}
.platform-check {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 21px;
  height: 21px;
  border: 1px solid #ccd5e2;
  border-radius: 50%;
  color: transparent;
}
.platform-option[aria-pressed="true"] .platform-check {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}
.primary,
.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 9px;
  padding: 11px 18px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
}
.primary {
  color: #fff;
  background: var(--blue);
}
.primary:not(:disabled):hover {
  background: #183f9e;
}
.secondary {
  color: var(--ink);
  background: #fff;
  border-color: #d8e0ec;
}
.secondary:not(:disabled):hover {
  background: #f6f8fc;
}
.full {
  width: 100%;
}
#login-submit {
  margin-top: 4px;
}
.text-button {
  min-height: 44px;
  border: 0;
  background: none;
  color: var(--blue);
  padding: 10px 4px;
  font-size: 13px;
  white-space: nowrap;
}
.notice {
  position: fixed;
  z-index: 20;
  left: 50%;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  width: min(calc(100% - 40px), 400px);
  padding: 11px 13px;
  border-radius: 9px;
  background: #eef4ff;
  color: #305184;
  font-size: 13px;
  line-height: 1.65;
  overflow-wrap: anywhere;
  box-shadow: 0 6px 30px #1c2c4312;
}
.notice.error {
  color: #9d4325;
  background: #fff2ec;
}
.account-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.account-info {
  min-width: 0;
  display: grid;
  gap: 5px;
}
.account-info strong {
  font-size: 17px;
  font-weight: 600;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}
.account-info span {
  font-size: 12px;
  color: var(--muted);
}
.verification-panel {
  padding: 24px 8px;
  text-align: center;
}
.verification-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.verification-heading h2 {
  font-size: 17px;
}
.state-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e8f1ed;
  color: var(--green);
  flex-shrink: 0;
}
.alipay-icon {
  display: none;
}
.verification-panel:is(
    [data-phase="RECHECK_PENDING"],
    [data-phase="UNKNOWN"],
    [data-phase="RESTRICTED"]
  )
  .state-mark {
  background: #fff3df;
  color: #a15a00;
}
.verification-panel:is(
    [data-phase="RECHECK_PENDING"],
    [data-phase="UNKNOWN"],
    [data-phase="RESTRICTED"]
  )
  .state-mark
  svg {
  display: none;
}
.verification-panel:is(
    [data-phase="RECHECK_PENDING"],
    [data-phase="UNKNOWN"],
    [data-phase="RESTRICTED"]
  )
  .state-mark::after {
  content: "?";
  font-weight: 700;
}
.verification-panel[data-phase="RECHECK_PENDING"] .state-mark {
  background: #edf2ff;
  color: #2752bd;
}
.verification-panel[data-phase="RECHECK_PENDING"] .state-mark::after {
  content: "...";
}
.verification-panel .caption {
  margin-top: 9px;
}
.verification-panel .full {
  margin-top: 16px;
}
#open-verification {
  gap: 9px;
}
.button-hand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: #ffffff1f;
  border: 1px solid #ffffff33;
  transform: rotate(-12deg);
}
.verification-panel.needs-action {
  text-align: left;
  padding: 20px;
  border: 1px solid #56e8ff;
  border-radius: 14px;
  background: #76f4ff;
  box-shadow:
    0 0 0 1px #56e8ff33,
    0 0 20px #56e8ff55,
    inset 0 0 20px #56e8ff14;
}
.verification-panel.needs-action .caption {
  color: #243b59;
}
.needs-action .verification-heading {
  flex-direction: row;
  gap: 10px;
}
.needs-action .state-mark {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: #fff;
}
.needs-action .state-mark svg {
  display: none;
}
.needs-action .alipay-icon {
  display: block;
}
.needs-action #verification-title {
  color: #102746;
  font-weight: 650;
}
.notification-panel {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.notification-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.notification-copy {
  flex: 1;
  min-width: 0;
}
.notification-copy h2 {
  font-size: 14px;
  font-weight: 500;
}
.notification-row > .primary {
  min-height: 36px;
  padding: 7px 12px;
  font-size: 12px;
}
.notification-panel.is-onboarding .notification-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.is-onboarding .notification-status {
  display: none;
}
.is-onboarding .notification-copy h2 {
  font-size: 16px;
  font-weight: 600;
}
.is-onboarding .notification-copy .caption {
  margin: 0;
}
.is-onboarding .notification-row > .primary {
  min-height: 46px;
  font-size: 14px;
}
.installation-panel {
  margin-top: 0;
}
.verification-panel.needs-action:not([hidden]) + .installation-panel {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.verification-panel.needs-action:not([hidden]) + .installation-panel #install {
  color: var(--blue);
  background: #fff;
  border-color: #cddaf3;
}
.verification-panel.needs-action:not([hidden])
  + .installation-panel
  #install:not(:disabled):hover {
  background: #edf3ff;
}
.setup-steps {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  color: #7a8799;
  font-size: 11px;
}
.setup-steps .is-current {
  color: var(--blue);
  font-weight: 600;
}
.setup-steps .is-done {
  color: var(--green);
}
.step-divider {
  flex: 1;
  height: 1px;
  min-width: 12px;
  background: var(--line);
}
.installation-guide {
  list-style: none;
  counter-reset: install;
  margin: 18px 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.installation-guide li {
  display: flex;
  gap: 10px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink);
}
.installation-guide li::before {
  counter-increment: install;
  content: counter(install);
  display: grid;
  place-items: center;
  align-self: flex-start;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #edf2fc;
  color: var(--blue);
  font-size: 11px;
  font-weight: 600;
}
.installed-note {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
  margin: 12px 0 0;
}
.notification-status {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  white-space: nowrap;
  background: #f1f4f8;
  border-radius: 6px;
  padding: 4px 7px;
}
.notification-status::before {
  content: "";
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #a1acbb;
}
.notification-status.is-active {
  color: var(--green);
  background: #eaf5ef;
}
.notification-status.is-active::before {
  background: var(--green);
}
.support-hint {
  font-size: 12px;
  color: #8b582d;
  line-height: 1.7;
  margin: 10px 0 0;
}
@media (max-width: 350px) {
  .shell {
    padding-right: 20px;
    padding-left: 20px;
  }
  .brand strong {
    font-size: 15px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  #open-verification:not(:disabled) .button-hand {
    animation: verification-hand-nudge 1.2s ease-in-out infinite;
  }
  @keyframes verification-hand-nudge {
    0%,
    100% {
      transform: translateX(-3px) rotate(-12deg);
    }
    50% {
      transform: translateX(3px) rotate(-12deg);
    }
  }
  .verification-panel.needs-action {
    animation: verification-background 2.4s ease-in-out infinite;
  }
  @keyframes verification-background {
    0%,
    100% {
      background-color: #76f4ff;
      border-color: #56e8ff;
      box-shadow:
        0 0 0 1px #56e8ff33,
        0 0 8px #56e8ff33,
        inset 0 0 12px #56e8ff0a;
    }
    25% {
      background-color: #ff8add;
      border-color: #ff62d5;
      box-shadow:
        0 0 0 1px #ff62d555,
        0 0 25px #ff62d580,
        inset 0 0 28px #ff62d51a;
    }
    50% {
      background-color: #d3ff7d;
      border-color: #a4e53f;
      box-shadow:
        0 0 0 1px #a4e53f55,
        0 0 18px #a4e53f55;
    }
    75% {
      background-color: #c6a6ff;
      border-color: #a36bff;
      box-shadow:
        0 0 0 1px #a36bff55,
        0 0 25px #a36bff80;
    }
  }
  .platform-sheet[open] {
    animation: sheet-up 0.2s ease-out both;
  }
  .platform-sheet[open]::backdrop {
    animation: backdrop-in 0.2s ease-out both;
  }
  @keyframes sheet-up {
    from {
      transform: translateY(100%);
    }
    to {
      transform: translateY(0);
    }
  }
  @keyframes backdrop-in {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }
  main {
    animation: appear 0.2s ease-out both;
  }
  @keyframes appear {
    from {
      opacity: 0;
      transform: translateY(4px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}
