:root {
  --ink: #0a0a0a;
  --muted: #666b73;
  --soft: #f4f5f7;
  --line: #d9dce1;
  --blue: #1268e8;
  --green: #168342;
  --green-soft: #edf8f1;
  --page: min(1240px, calc(100% - 48px));
}

* { box-sizing: border-box; }
html { background: #fff; scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-size-adjust: 100%;
}
button, input { font: inherit; }
button { cursor: pointer; }
h1, h2, p { margin-top: 0; }

.guide-hero { min-height: 640px; display: grid; align-items: center; border-bottom: 1px solid #eceef1; }
.guide-shell {
  width: var(--page);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(480px, 1.08fr);
  gap: clamp(54px, 7vw, 104px);
  align-items: center;
  padding: 64px 0 58px;
}
.brand-mark { display: block; width: 56px; height: 56px; border-radius: 8px; object-fit: cover; margin-bottom: 30px; }
.eyebrow, .section-kicker { margin-bottom: 10px; color: var(--blue); font-size: 13px; font-weight: 800; }
h1 { margin-bottom: 14px; font-size: clamp(44px, 4.4vw, 68px); line-height: 1.08; letter-spacing: 0; }
.lead { margin-bottom: 28px; color: var(--muted); font-size: 17px; line-height: 1.7; }
.copy-area label { display: block; margin-bottom: 8px; color: #4f545c; font-size: 13px; font-weight: 700; }
.url-field { display: grid; grid-template-columns: minmax(0, 1fr) auto; min-height: 88px; border: 1px solid #c9cdd4; border-radius: 8px; background: #fff; }
.url-field:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(0, 0, 0, .06); }
.url-field input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); padding: 0 28px; font-size: clamp(34px, 3.6vw, 52px); font-weight: 850; letter-spacing: 0; }
.mini-copy { min-width: 72px; border: 0; border-left: 1px solid var(--line); background: #fff; color: var(--blue); font-weight: 800; }
.copy-button, .secondary-copy { width: 100%; min-height: 64px; margin-top: 14px; border: 1px solid #000; border-radius: 8px; background: #050505; color: #fff; font-size: 18px; font-weight: 850; transition: transform .16s ease, background .16s ease; }
.copy-button:hover, .secondary-copy:hover { background: #222; }
.copy-button:active, .secondary-copy:active { transform: scale(.99); }
.copy-button.copied, .secondary-copy.copied { border-color: var(--green); background: var(--green); }
.copy-status { min-height: 24px; margin: 12px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.copy-status.success { color: var(--green); font-weight: 700; }

.browser-demo { border: 1px solid #d9dce1; border-radius: 8px; background: #fff; padding: 30px; }
.demo-step { display: grid; gap: 10px; }
.step-title { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.step-title span { display: grid; width: 22px; height: 22px; place-items: center; border: 1px solid #9ca1aa; border-radius: 50%; font-size: 12px; }
.address-bar { min-height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border: 1px solid #cfd3d9; border-radius: 8px; background: #fafbfc; color: #1d222a; padding: 0 18px; }
.address-bar b { font-size: 13px; }
.address-bar.muted { color: #a0a5ad; }
.address-bar.active { border-color: #9bc0f7; background: #f7faff; }
.address-bar.active b { color: var(--blue); }
.paste-tag { color: var(--blue); font-weight: 800; }
.demo-arrow { height: 24px; display: grid; place-items: center; color: #aeb3bb; font-size: 18px; }
.demo-success { margin: 18px 0 0; border-radius: 8px; background: var(--green-soft); color: var(--green); padding: 14px 16px; font-size: 14px; font-weight: 750; }

.step-band { border-bottom: 1px solid #e5e7ea; }
.step-band ol { width: var(--page); min-height: 108px; margin: 0 auto; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); align-items: center; }
.step-band li { position: relative; display: flex; align-items: center; justify-content: center; gap: 14px; }
.step-band li:not(:last-child)::after { content: ""; position: absolute; right: -24px; width: 48px; height: 1px; background: #c7cbd1; }
.step-band li span { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 50%; background: var(--soft); font-weight: 800; }

.browser-section, .continue-section { padding: 62px 0; border-bottom: 1px solid #eceef1; }
.section-shell { width: var(--page); margin: 0 auto; }
.section-shell h2 { margin-bottom: 0; font-size: clamp(28px, 3vw, 42px); line-height: 1.2; letter-spacing: 0; }
.browser-section .section-shell { display: flex; align-items: center; justify-content: space-between; gap: 42px; }
.browser-list { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px 28px; color: #30343a; font-weight: 750; }
.browser-list span { min-height: 40px; display: inline-flex; align-items: center; border-bottom: 2px solid #dfe2e6; }
.continue-section { background: #f7f8f9; }
.continue-shell { display: grid; grid-template-columns: minmax(0, 1fr) 260px; align-items: center; gap: 52px; }
.continue-shell p:last-child { max-width: 660px; margin: 12px 0 0; color: var(--muted); line-height: 1.7; }
.secondary-copy { margin: 0; }
.toast { position: fixed; left: 50%; bottom: max(28px, env(safe-area-inset-bottom)); z-index: 10; transform: translateX(-50%); border-radius: 8px; background: #111; color: #fff; padding: 12px 18px; font-size: 14px; font-weight: 750; box-shadow: 0 12px 30px rgba(0,0,0,.2); }
.toast[hidden] { display: none; }

@media (max-width: 820px) {
  :root { --page: calc(100% - 32px); }
  .guide-hero { min-height: auto; }
  .guide-shell { grid-template-columns: 1fr; gap: 34px; padding: 28px 0 34px; }
  .brand-mark { width: 44px; height: 44px; margin-bottom: 28px; }
  .eyebrow { margin-bottom: 8px; }
  h1 { font-size: 40px; margin-bottom: 10px; }
  .lead { max-width: 340px; margin-bottom: 24px; font-size: 15px; line-height: 1.6; }
  .url-field { min-height: 76px; }
  .url-field input { padding: 0 18px; font-size: 36px; }
  .mini-copy { min-width: 64px; }
  .copy-button { min-height: 58px; }
  .browser-demo { padding: 20px; }
  .demo-step:not(:last-of-type) { display: none; }
  .demo-arrow { display: none; }
  .demo-success { margin-top: 0; }
  .step-band ol { min-height: 94px; }
  .step-band li { gap: 8px; font-size: 13px; }
  .step-band li:not(:last-child)::after { right: -12px; width: 24px; }
  .step-band li span { width: 30px; height: 30px; }
  .browser-section, .continue-section { padding: 44px 0; }
  .browser-section .section-shell { align-items: flex-start; flex-direction: column; gap: 24px; }
  .browser-list { justify-content: flex-start; gap: 6px 22px; }
  .continue-shell { grid-template-columns: 1fr; gap: 28px; }
  .secondary-copy { width: 100%; }
}

@media (max-width: 430px) {
  :root { --page: calc(100% - 32px); }
  .guide-shell { padding-top: 22px; gap: 26px; }
  .brand-mark { margin-bottom: 22px; }
  h1 { font-size: 36px; }
  .lead { font-size: 14px; }
  .url-field { min-height: 70px; }
  .url-field input { font-size: 32px; }
  .copy-button { margin-top: 12px; min-height: 56px; }
  .copy-status { margin-top: 10px; }
  .browser-demo { padding: 16px; }
  .step-title { font-size: 13px; }
  .address-bar { min-height: 52px; }
  .step-band ol { min-height: 88px; }
  .step-band li { flex-direction: column; gap: 5px; }
  .step-band li:not(:last-child)::after { top: 29px; }
  .browser-section { padding-top: 38px; }
}

@media (max-width: 360px) {
  h1 { font-size: 32px; }
  .url-field input { font-size: 28px; padding-left: 14px; }
  .mini-copy { min-width: 58px; font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .copy-button, .secondary-copy { transition: none; }
}
