:root {
  --ink: #13231a;
  --muted: #66736c;
  --paper: #f6f5ee;
  --card: #ffffff;
  --line: rgba(19, 35, 26, 0.12);
  --green: #c8f451;
  --green-deep: #aee52b;
  --orange: #ff7548;
  --shadow: 0 24px 70px rgba(23, 45, 32, 0.1);
  --radius-lg: 30px;
  --radius-md: 20px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 2%, rgba(200, 244, 81, 0.22), transparent 27rem),
    radial-gradient(circle at 95% 38%, rgba(255, 117, 72, 0.1), transparent 26rem),
    var(--paper);
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

.page-shell {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 760;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.brand img {
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(22, 55, 34, 0.18);
}

.header-note {
  color: var(--muted);
  font-size: 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 13px;
  background: rgba(255, 255, 255, 0.55);
}

.hero {
  min-height: 650px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  align-items: center;
  gap: clamp(70px, 10vw, 150px);
  padding: 56px 52px 0 90px;
}

.hero-copy {
  max-width: 590px;
}

.eyebrow,
.section-kicker {
  color: #4f6056;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
}

.eyebrow span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 5px rgba(255, 117, 72, 0.13);
}

h1 {
  margin: 21px 0 22px;
  font-size: clamp(48px, 5.5vw, 76px);
  line-height: 1.08;
  letter-spacing: -0.055em;
  font-weight: 840;
}

.intro {
  margin: 0;
  max-width: 540px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.85;
}

.device-card {
  margin-top: 32px;
  padding: 14px 16px;
  max-width: 460px;
  display: grid;
  grid-template-columns: 46px 1fr auto;
  gap: 13px;
  align-items: center;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  border-radius: 18px;
  backdrop-filter: blur(12px);
}

.device-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #eaf9bc;
}

.device-icon svg {
  width: 24px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.7;
  stroke-linecap: round;
}

.device-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.device-label {
  color: #819087;
  font-size: 11px;
}

.device-copy strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
}

.device-copy small {
  color: var(--muted);
  font-size: 12px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #65bf4b;
  box-shadow: 0 0 0 5px rgba(101, 191, 75, 0.12);
  margin-right: 4px;
}

.primary-button {
  width: min(100%, 460px);
  min-height: 58px;
  margin-top: 14px;
  border: 0;
  border-radius: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  background: var(--ink);
  color: #fff;
  font-size: 16px;
  font-weight: 720;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(19, 35, 26, 0.2);
  transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.primary-button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 18px 32px rgba(19, 35, 26, 0.24);
}

.primary-button:active:not(:disabled) {
  transform: translateY(0);
}

.primary-button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.primary-button.secondary-state {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: none;
}

.primary-button svg {
  width: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.redirect-panel {
  width: min(100%, 460px);
  margin-top: 11px;
  padding: 11px 13px 10px;
  background: rgba(255, 255, 255, 0.64);
  border-radius: 12px;
}

.redirect-panel[hidden],
.stores-panel[hidden],
.browser-tip[hidden] {
  display: none;
}

.redirect-copy {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 11px;
}

.redirect-copy strong {
  color: var(--ink);
}

.redirect-copy button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.progress-track {
  height: 3px;
  overflow: hidden;
  margin-top: 8px;
  border-radius: 99px;
  background: #e3e6df;
}

.progress-track span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: var(--green-deep);
  transform-origin: left;
}

@keyframes countdown {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

.text-button {
  margin-top: 17px;
  padding: 7px 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
}

.text-button svg {
  width: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  transition: transform 160ms ease;
}

.text-button.is-open svg {
  transform: rotate(180deg);
}

.qr-card {
  position: relative;
  padding: 24px 24px 28px;
  border-radius: var(--radius-lg);
  background: var(--ink);
  color: white;
  box-shadow: var(--shadow);
}

.qr-card::before,
.qr-card::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.qr-card::before {
  width: 74px;
  height: 74px;
  top: -25px;
  right: -24px;
  border-radius: 50%;
  background: var(--green);
  z-index: -1;
}

.qr-card::after {
  width: 42px;
  height: 42px;
  left: -28px;
  bottom: 62px;
  border: 9px solid var(--orange);
  border-radius: 50%;
  opacity: 0.7;
}

.qr-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 17px;
}

.qr-kicker {
  font-size: 13px;
  font-weight: 700;
}

.qr-live {
  color: #b8c2bb;
  font-size: 11px;
}

.qr-live i {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 4px;
  border-radius: 50%;
  background: var(--green);
}

.qr-frame {
  position: relative;
  min-height: 292px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background: #fff;
}

#qrCode {
  width: 240px;
  height: 240px;
  display: grid;
  place-items: center;
}

#qrCode img,
#qrCode canvas {
  max-width: 220px;
  max-height: 220px;
}

.qr-logo {
  position: absolute;
  width: 38px;
  height: 38px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border: 4px solid #fff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

.qr-logo[hidden] {
  display: none;
}

#qrCode.qr-unavailable {
  width: 220px;
  height: 220px;
  padding: 28px;
  border: 1px dashed #cad0cc;
  border-radius: 18px;
  color: var(--ink);
  text-align: center;
}

.qr-message {
  display: grid;
  gap: 9px;
}

.qr-message strong {
  font-size: 15px;
}

.qr-message span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.qr-card p {
  margin: 20px 0 5px;
  text-align: center;
  font-size: 15px;
  font-weight: 680;
}

.qr-hint {
  display: block;
  color: #9eaaa2;
  text-align: center;
  font-size: 11px;
}

.stores-panel {
  scroll-margin-top: 30px;
  margin-bottom: 60px;
  padding: 38px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--line);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 26px;
}

.section-heading h2,
.link-tool h2 {
  margin: 7px 0 0;
  font-size: 26px;
  letter-spacing: -0.03em;
}

.section-heading p {
  max-width: 390px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  text-align: right;
}

.store-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 11px;
}

.store-item {
  min-width: 0;
  padding: 13px;
  display: grid;
  grid-template-columns: 42px 1fr 18px;
  align-items: center;
  gap: 11px;
  border: 1px solid transparent;
  border-radius: 15px;
  background: #fff;
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.store-item:hover {
  transform: translateY(-2px);
  border-color: rgba(19, 35, 26, 0.15);
  box-shadow: 0 10px 24px rgba(19, 35, 26, 0.07);
}

.store-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #edf1ec;
  font-size: 14px;
  font-weight: 800;
}

.store-mark-apple {
  background: #101712;
  color: white;
}

.store-mark-tencent {
  background: #dff2ff;
  color: #2079be;
}

.store-mark-xiaomi {
  background: #fff0e3;
  color: #f56921;
}

.store-mark-vivo {
  background: #e8f0ff;
  color: #326cce;
}

.store-mark-oppo {
  background: #e5f6e9;
  color: #218e4a;
}

.store-mark-huaweiAndroid,
.store-mark-huaweiHarmony {
  background: #ffe8e8;
  color: #d63232;
}

.store-mark-honor {
  background: #eaeaff;
  color: #4d4dc4;
}

.store-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.store-copy strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}

.store-copy small {
  color: #87928b;
  font-size: 10px;
}

.store-item>svg {
  width: 17px;
  fill: none;
  stroke: #a0aaa4;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.link-tool {
  margin-bottom: 50px;
  padding: 38px;
  display: grid;
  grid-template-columns: 1fr minmax(330px, 0.85fr);
  gap: 70px;
  align-items: center;
  border-radius: var(--radius-lg);
  background: #e8f7ba;
}

.link-tool-copy p {
  margin: 11px 0 0;
  color: #59664f;
  font-size: 13px;
}

.link-form label {
  display: block;
  margin-bottom: 7px;
  color: #58644f;
  font-size: 11px;
  font-weight: 700;
}

.input-row {
  display: grid;
  grid-template-columns: 1fr auto;
  border-radius: 13px;
  background: white;
  box-shadow: 0 10px 24px rgba(46, 67, 29, 0.08);
}

.input-row input {
  min-width: 0;
  height: 48px;
  padding: 0 15px;
  border: 0;
  outline: none;
  border-radius: 13px 0 0 13px;
  color: var(--ink);
  background: transparent;
  font-size: 13px;
}

.input-row button {
  margin: 5px;
  padding: 0 18px;
  border: 0;
  border-radius: 10px;
  background: var(--ink);
  color: white;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.form-feedback {
  min-height: 17px;
  margin-top: 6px;
  font-size: 11px;
}

.form-feedback.success {
  color: #527327;
}

.form-feedback.error {
  color: #b44131;
}

footer {
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}

.privacy-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.privacy-note svg {
  width: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.browser-tip {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(13, 25, 18, 0.72);
  backdrop-filter: blur(8px);
}

.browser-tip-card {
  width: min(100%, 380px);
  padding: 30px;
  border-radius: 24px;
  background: #fff;
  text-align: center;
  box-shadow: var(--shadow);
}

.tip-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e8f7ba;
  font-weight: 800;
  letter-spacing: 2px;
}

.browser-tip-card h2 {
  margin: 0;
  font-size: 21px;
}

.browser-tip-card p {
  margin: 12px 0 22px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.browser-tip-card button {
  width: 100%;
  height: 46px;
  border: 0;
  border-radius: 13px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr 320px;
    gap: 60px;
    padding-inline: 12px;
  }

  .qr-card {
    padding-inline: 20px;
  }

  .qr-frame {
    min-height: 250px;
  }

  #qrCode {
    transform: scale(0.88);
  }

  .store-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 30px, 560px);
  }

  .site-header {
    height: 72px;
  }

  .header-note {
    padding: 7px 10px;
    font-size: 10px;
  }

  .hero {
    min-height: auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 42px 0 60px;
  }

  .hero-copy {
    width: 100%;
  }

  h1 {
    font-size: clamp(43px, 13.5vw, 64px);
  }

  .intro {
    font-size: 15px;
    line-height: 1.75;
  }

  .device-card,
  .primary-button,
  .redirect-panel {
    max-width: none;
    width: 100%;
  }

  .qr-card {
    width: 100%;
    max-width: 390px;
  }

  .qr-frame {
    min-height: 292px;
  }

  #qrCode {
    transform: none;
  }

  .stores-panel {
    padding: 24px 16px;
  }

  .section-heading {
    display: block;
  }

  .section-heading p {
    margin-top: 10px;
    text-align: left;
  }

  .store-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .link-tool {
    padding: 27px 20px;
    grid-template-columns: 1fr;
    gap: 26px;
  }
}

@media (max-width: 430px) {
  .page-shell {
    width: calc(100% - 24px);
  }

  .hero {
    padding-top: 28px;
  }

  .eyebrow {
    font-size: 11px;
  }

  h1 {
    margin-top: 17px;
  }

  .qr-card::before,
  .qr-card::after {
    display: none;
  }

  .store-grid {
    grid-template-columns: 1fr;
  }

  footer {
    padding: 24px 0;
    flex-direction: column;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* 微信提示遮罩层 */
.tips_back {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(11, 11, 11, .6);
  z-index: 1000;
  display: block;
  /* 覆盖原本设置，默认由JS控制hidden */
}

.tips_back[hidden] {
  display: none !important;
}

.tips_div {
  position: absolute;
  top: 23px;
  left: 5%;
  width: 90%;
  background: #FFFFFF;
  border-radius: 8px;
  padding: 20px;
  box-sizing: border-box;
}

.tips_text {
  width: 100%;
  text-align: center;
  font-weight: 600;
  font-size: 18px;
  color: #000000;
  margin-bottom: 20px;
}

.tips-steps {
  display: flex;
  align-items: center;
  justify-content: space-around;
  text-align: center;
}

.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.step-icon {
  width: 50px;
  height: 50px;
  background: #E4FF9C;
  border-radius: 4px;
  border: 1px solid #BBD664;
  margin-bottom: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  font-weight: bold;
}

.step-text {
  font-size: 12px;
  color: #000;
}

.arrow {
  font-size: 20px;
  color: #999;
}