:root {
  color-scheme: dark;
  --bg: #050b0f;
  --surface: #08141a;
  --surface-soft: #0c1b21;
  --text: #f3fbfa;
  --muted: #9db0b2;
  --cyan: #45f2d0;
  --cyan-deep: #14c8a8;
  --gold: #f5bd43;
  --line: rgba(106, 236, 212, 0.2);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: #020609;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 50% 12%, rgba(31, 204, 177, 0.12), transparent 28rem),
    #020609;
  color: var(--text);
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button {
  font: inherit;
}

.guide-page {
  width: min(100%, 560px);
  min-height: 100vh;
  margin: 0 auto;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(7, 19, 24, 0) 16rem, var(--bg) 29rem),
    var(--bg);
  box-shadow: 0 0 70px rgba(0, 0, 0, 0.58);
}

.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 34%;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(5, 11, 15, 0.24) 78%, var(--bg));
}

.hero img {
  display: block;
  width: 100%;
  height: auto;
}

.hero__badge {
  position: absolute;
  top: max(16px, env(safe-area-inset-top));
  left: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  padding: 8px 12px;
  border: 1px solid rgba(128, 255, 231, 0.34);
  border-radius: 999px;
  background: rgba(3, 11, 14, 0.7);
  color: #e8fffa;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
}

.hero__badge span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
}

.guide-flow {
  position: relative;
  z-index: 2;
  margin-top: -10px;
  padding: 28px 18px 36px;
  background:
    radial-gradient(circle at 88% 2%, rgba(56, 233, 201, 0.08), transparent 18rem),
    linear-gradient(180deg, var(--bg), #061015 72%, #050c10);
}

.guide-intro {
  position: relative;
  padding: 0 2px 24px;
}

.guide-intro::after {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  margin-top: 16px;
  background: linear-gradient(90deg, var(--line), rgba(106, 236, 212, 0));
}

.overline,
.step__eyebrow,
.step__text,
.copy-status,
.notice h2,
.notice p,
footer p {
  margin: 0;
}

.overline {
  color: var(--cyan);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

h1 {
  margin: 7px 0 9px;
  font-size: clamp(28px, 8.2vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.steps {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps::before {
  content: "";
  position: absolute;
  top: 20px;
  bottom: 20px;
  left: 19px;
  width: 1px;
  background: linear-gradient(180deg, var(--cyan), rgba(69, 242, 208, 0.1) 92%);
  box-shadow: 0 0 12px rgba(69, 242, 208, 0.18);
}

.step {
  position: relative;
  min-height: 40px;
  padding-left: 54px;
}

.step + .step {
  margin-top: 30px;
}

.step__number {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(86, 248, 217, 0.48);
  border-radius: 50%;
  background: #07141a;
  color: var(--cyan);
  box-shadow: 0 0 0 5px var(--bg), 0 0 20px rgba(69, 242, 208, 0.1);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.step__eyebrow {
  padding-top: 1px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.step h2 {
  margin: 4px 0 7px;
  color: #f5fbfa;
  font-size: 20px;
  line-height: 1.28;
}

.step__text {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.keyword-action {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding: 13px 13px 13px 15px;
  border: 1px solid rgba(90, 239, 212, 0.28);
  border-radius: 13px;
  background:
    linear-gradient(110deg, rgba(31, 80, 76, 0.38), rgba(11, 30, 35, 0.82)),
    var(--surface-soft);
  box-shadow: 0 12px 27px rgba(0, 0, 0, 0.18);
}

.keyword-action__text {
  min-width: 0;
}

.keyword-action__text span,
.keyword-action__text strong {
  display: block;
}

.keyword-action__text span {
  margin-bottom: 3px;
  color: #8fa6a7;
  font-size: 11px;
}

.keyword-action__text strong {
  overflow-wrap: anywhere;
  color: #fff;
  font-size: 17px;
  line-height: 1.3;
  letter-spacing: 0.01em;
}

.copy-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 14px;
  border: 1px solid rgba(208, 255, 247, 0.68);
  border-radius: 10px;
  background: linear-gradient(135deg, #78ffe4, var(--cyan-deep));
  color: #03120f;
  box-shadow: 0 8px 22px rgba(20, 200, 168, 0.2), inset 0 1px rgba(255, 255, 255, 0.54);
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
  -webkit-tap-highlight-color: transparent;
  transition: transform 160ms ease, filter 160ms ease;
}

.copy-button:active {
  transform: scale(0.975);
  filter: brightness(0.95);
}

.copy-button:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.copy-button.is-copied {
  background: linear-gradient(135deg, #fff2b7, var(--gold));
}

.copy-status {
  min-height: 18px;
  padding: 5px 2px 0;
  color: var(--cyan);
  font-size: 11px;
}

.claim-result {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  margin-top: 13px;
  padding: 14px;
  border: 1px solid rgba(86, 248, 217, 0.28);
  border-radius: 13px;
  background:
    linear-gradient(115deg, rgba(27, 94, 81, 0.42), rgba(9, 28, 33, 0.88)),
    var(--surface-soft);
  box-shadow: 0 12px 27px rgba(0, 0, 0, 0.18);
}

.claim-result__icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #78ffe4, var(--cyan-deep));
  color: #03120f;
  box-shadow: 0 0 22px rgba(69, 242, 208, 0.2);
  font-size: 20px;
  font-weight: 900;
}

.claim-result span,
.claim-result strong,
.claim-result p {
  display: block;
  margin: 0;
}

.claim-result div > span {
  margin-bottom: 3px;
  color: #92aaa9;
  font-size: 11px;
}

.claim-result strong {
  color: #f3fffc;
  font-size: 14px;
  line-height: 1.45;
}

.claim-result p {
  margin-top: 3px;
  color: var(--cyan);
  font-size: 11px;
}

.step--fallback .step__number {
  border-color: rgba(245, 189, 67, 0.55);
  color: var(--gold);
}

.step--fallback .step__eyebrow {
  color: #ffc957;
}

.visual-crop {
  position: relative;
  margin: 10px 0 0;
  overflow: hidden;
  border-radius: 10px;
  background: #101b20;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.25);
}

.visual-crop img {
  position: absolute;
  display: block;
  max-width: none;
  height: auto;
}

.visual-crop--search {
  aspect-ratio: 1.02;
}

.visual-crop--search img {
  top: -60%;
  left: -22.5%;
  width: 145%;
}

.visual-crop--result {
  aspect-ratio: 1;
}

.visual-crop--result img {
  top: -34%;
  left: -22%;
  width: 144%;
}

.notice {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 11px;
  margin: 32px 0 0 54px;
  padding-top: 19px;
  border-top: 1px solid rgba(245, 189, 67, 0.23);
}

.notice__icon {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(245, 189, 67, 0.55);
  border-radius: 50%;
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 14px;
  font-weight: 700;
}

.notice h2 {
  margin-bottom: 5px;
  color: #e8eeee;
  font-size: 13px;
}

.notice p {
  color: #7f9497;
  font-size: 11px;
  line-height: 1.7;
}

footer {
  overflow: hidden;
  padding: 0 0 max(30px, env(safe-area-inset-bottom));
  background: #040a0d;
  text-align: center;
}

footer img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 15%, #000 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 15%, #000 100%);
}

footer p {
  padding: 0 24px;
  color: #5e7275;
  font-size: 10px;
  line-height: 1.7;
}

@media (max-width: 370px) {
  .guide-flow {
    padding-inline: 15px;
  }

  .step {
    padding-left: 50px;
  }

  .keyword-action {
    grid-template-columns: 1fr;
  }

  .copy-button {
    width: 100%;
  }

  .notice {
    margin-left: 50px;
  }
}

@media (min-width: 520px) {
  .guide-flow {
    padding-inline: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .copy-button {
    transition: none;
  }
}
