/* web3-whatsapp.com — 大幅视觉改版（共用） */

.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link:focus {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 100;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0.65rem 1.1rem;
  clip: auto;
  overflow: visible;
  white-space: normal;
  border-radius: var(--radius-sm);
  background: var(--wa-accent);
  color: #fff;
  font-weight: 650;
  box-shadow: var(--shadow-float);
  text-decoration: none;
}
.skip-link:focus:hover {
  color: #fff;
}

.hero-intro,
.section-head {
  margin-block-start: 0;
}

.btn:focus-visible {
  outline: 3px solid var(--wa-teal-ring);
  outline-offset: 3px;
}

@media (forced-colors: active) {
  .btn-primary {
    border: 1px solid CanvasText;
  }
}

:root {
  --wa-teal: #00a884;
  --wa-teal-hover: #008f72;
  --wa-accent: #10b981;
  --wa-accent-2: #22d3ee;
  --wa-teal-soft: rgba(16, 185, 129, 0.14);
  --wa-teal-ring: rgba(16, 185, 129, 0.45);
  --ink: #0f172a;
  --ink-soft: #334155;
  --muted: #64748b;
  --line: rgba(148, 163, 184, 0.35);
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --surface-mint: #f0fdf9;
  --hero-deep: #042f2e;
  --hero-mid: #065f46;
  --hero-bright: #059669;
  --terminal-bg: #071018;
  --terminal-border: rgba(148, 163, 184, 0.15);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --radius-pill: 999px;
  --shadow-sm: 0 6px 18px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 14px 40px rgba(15, 23, 42, 0.1);
  --shadow-float: 0 22px 55px rgba(15, 23, 42, 0.14);
  --shadow-card-hover: 0 28px 60px rgba(15, 23, 42, 0.16);
  --shadow-glow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 18px 50px rgba(16, 185, 129, 0.22);
  --container: min(1180px, calc(100% - 2rem));
  --font: "Segoe UI", "Helvetica Neue", Helvetica, "PingFang SC", "PingFang TC",
    "Microsoft YaHei", "Microsoft JhengHei", sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink-soft);
  background-color: var(--surface-2);
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(900px 520px at 12% -10%, rgba(16, 185, 129, 0.14), transparent 55%),
    radial-gradient(700px 480px at 92% 8%, rgba(34, 211, 238, 0.1), transparent 50%),
    radial-gradient(600px 420px at 50% 105%, rgba(5, 150, 105, 0.08), transparent 55%);
}

h1,
h2,
h3 {
  color: var(--ink);
  line-height: 1.18;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(2rem, 4vw, 2.85rem);
  font-weight: 800;
  margin: 0 0 1.1rem;
}

h2 {
  font-size: clamp(1.55rem, 2.6vw, 2.1rem);
  font-weight: 750;
  margin: 0 0 0.75rem;
}

h3 {
  font-size: 1.12rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--wa-teal-hover);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--wa-accent);
}

:focus-visible {
  outline: 3px solid var(--wa-teal-ring);
  outline-offset: 3px;
}

.page-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(18px) saturate(1.45);
  -webkit-backdrop-filter: blur(18px) saturate(1.45);
  box-shadow: 0 10px 38px rgba(15, 23, 42, 0.06);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1rem 0;
  flex-wrap: wrap;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  font-size: 1.08rem;
  color: var(--ink);
  text-decoration: none;
}

.logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background:
    radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.55), transparent 52%),
    linear-gradient(145deg, var(--wa-accent), var(--wa-teal));
  box-shadow: var(--shadow-glow);
  position: relative;
}

.logo-mark::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 6px;
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-right-color: transparent;
  border-bottom-color: transparent;
  transform: rotate(-35deg);
  opacity: 0.95;
}

.nav-links {
  list-style: none;
  margin: 0;
  padding: 0.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  background: rgba(15, 23, 42, 0.04);
  border-radius: var(--radius-pill);
  border: 1px solid rgba(148, 163, 184, 0.28);
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 650;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-pill);
  transition: transform 0.18s var(--ease-out), color 0.18s var(--ease-out),
    background 0.18s var(--ease-out), box-shadow 0.18s var(--ease-out);
}

.nav-links a:hover {
  color: var(--hero-deep);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

main {
  flex: 1;
}

/* —— 深色首屏 —— */
.hero {
  position: relative;
  isolation: isolate;
  padding: clamp(3rem, 8vw, 5.25rem) 0 clamp(3.5rem, 9vw, 6rem);
  color: rgba(255, 255, 255, 0.92);
  background:
    radial-gradient(1200px 580px at 10% 10%, rgba(34, 211, 238, 0.28), transparent 55%),
    radial-gradient(900px 520px at 85% 25%, rgba(16, 185, 129, 0.35), transparent 52%),
    linear-gradient(155deg, var(--hero-deep) 0%, var(--hero-mid) 42%, var(--hero-bright) 100%);
  border-bottom: none;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -40% -20%;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.35;
  transform: rotate(-6deg);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: clamp(72px, 10vw, 120px);
  background: linear-gradient(to bottom, transparent, var(--surface-2));
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.88fr);
  gap: clamp(2rem, 5vw, 3.75rem);
  align-items: center;
}

.hero-intro {
  padding: clamp(1rem, 2vw, 1.35rem);
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(14px) saturate(1.25);
  -webkit-backdrop-filter: blur(14px) saturate(1.25);
}

.hero .hero-intro h1 {
  color: #fff;
}

.hero .hero-intro > p:not(.eyebrow) {
  font-size: 1.08rem;
  max-width: 54ch;
  color: rgba(255, 255, 255, 0.82);
}

@media (max-width: 920px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .security-panel {
    max-width: 460px;
    margin-inline: auto;
  }
}

.eyebrow {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ecfdf5;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-pill);
  margin-top: 0;
  margin-bottom: 1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
  margin: 1.5rem 0 1.85rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.82rem 1.55rem;
  border-radius: var(--radius-pill);
  font-weight: 750;
  font-size: 0.96rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out),
    background 0.2s var(--ease-out), border-color 0.2s var(--ease-out), color 0.2s var(--ease-out),
    filter 0.2s var(--ease-out);
}

.btn:active {
  transform: translateY(2px);
}

.btn-primary {
  background: linear-gradient(135deg, #34d399 0%, var(--wa-teal) 55%, #0d9488 100%);
  color: #fff;
  box-shadow: 0 16px 38px rgba(16, 185, 129, 0.42);
}

.btn-primary:hover {
  filter: brightness(1.05);
  box-shadow: 0 20px 46px rgba(16, 185, 129, 0.48);
  color: #fff;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.26);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
}

.trust-row {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  max-width: 680px;
}

@media (max-width: 620px) {
  .trust-row {
    grid-template-columns: 1fr;
  }
}

.trust-item {
  padding: 1rem 1.05rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.trust-item strong {
  display: block;
  font-size: 0.98rem;
  color: #fff;
  margin-bottom: 0.25rem;
}

.trust-item span {
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.45;
}

.security-panel {
  justify-self: end;
  width: 100%;
}

.terminal-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--terminal-bg);
  border: 1px solid var(--terminal-border);
  box-shadow: var(--shadow-float), 0 0 0 1px rgba(255, 255, 255, 0.04);
  transform: translateZ(0);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}

.terminal-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: var(--shadow-card-hover), 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.terminal-top {
  display: flex;
  gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent);
}

.terminal-top .dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ff5f56;
  opacity: 0.95;
}

.terminal-top .dot:nth-child(2) {
  background: #ffbd2e;
}

.terminal-top .dot:nth-child(3) {
  background: #34d399;
}

.terminal-body {
  padding: 1.45rem 1.45rem 1.55rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.1rem 1.15rem;
  align-items: start;
}

.shield {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 1.35rem;
  color: #fff;
  background: linear-gradient(145deg, var(--wa-accent), var(--wa-teal));
  box-shadow: 0 18px 36px rgba(16, 185, 129, 0.38);
}

.status-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.status {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.62rem 0.72rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 0.9rem;
}

.status-label {
  color: rgba(255, 255, 255, 0.86);
  font-weight: 650;
}

.status-value {
  font-weight: 700;
  color: #a7f3d0;
  font-size: 0.82rem;
  white-space: nowrap;
  text-align: end;
}

/* —— 区块：分层背景 —— */
section {
  position: relative;
  padding: clamp(3.25rem, 7.5vw, 5rem) 0;
}

section:nth-of-type(even) {
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-mint) 100%);
}

.section-head {
  max-width: 760px;
  margin-bottom: clamp(2rem, 4.5vw, 2.75rem);
}

.section-head > p:not(.section-label) {
  color: var(--muted);
  font-size: 1.06rem;
  margin-bottom: 0;
  max-width: 62ch;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--wa-teal-hover);
  margin-top: 0;
  margin-bottom: 0.65rem;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-pill);
  background: var(--wa-teal-soft);
  border: 1px solid rgba(16, 185, 129, 0.22);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.35rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.35rem;
}

@media (max-width: 900px) {
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

.card {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 1.45rem 1.5rem;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.22s var(--ease-out), box-shadow 0.22s var(--ease-out),
    border-color 0.22s var(--ease-out);
}

.card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--wa-accent), var(--wa-accent-2));
  opacity: 0.85;
  transform: scaleX(0.55);
  transform-origin: left;
  transition: transform 0.28s var(--ease-out);
}

.card:hover::before {
  transform: scaleX(1);
}

section:nth-of-type(even) .card {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(16, 185, 129, 0.35);
  box-shadow: var(--shadow-card-hover);
}

.card .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.55rem;
  height: 2.55rem;
  border-radius: 14px;
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--hero-deep);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.22), rgba(34, 211, 238, 0.18));
  border: 1px solid rgba(16, 185, 129, 0.28);
  margin-bottom: 0.85rem;
}

.card p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.66;
}

.card.advantage h3 {
  padding-bottom: 0.45rem;
  border-bottom: 3px solid rgba(16, 185, 129, 0.22);
  display: inline-block;
}

.steps {
  display: grid;
  gap: 1.15rem;
  counter-reset: step;
  position: relative;
  padding-left: 0;
  list-style: none;
  margin: 0;
}

.steps::before {
  content: "";
  position: absolute;
  left: calc(1.22rem - 1px);
  top: 0.65rem;
  bottom: 0.65rem;
  width: 3px;
  border-radius: var(--radius-pill);
  background: linear-gradient(180deg, var(--wa-accent), rgba(34, 211, 238, 0.35));
  opacity: 0.85;
  box-shadow: 0 0 22px rgba(16, 185, 129, 0.35);
}

@media (max-width: 520px) {
  .steps::before {
    left: 1rem;
  }
}

.step {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.05rem;
  align-items: start;
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  counter-increment: step;
  transition: transform 0.22s var(--ease-out), border-color 0.22s var(--ease-out),
    box-shadow 0.22s var(--ease-out);
}

.step:hover {
  transform: translateX(4px);
  border-color: rgba(16, 185, 129, 0.35);
  box-shadow: var(--shadow-md);
}

.step::before {
  content: counter(step);
  width: 2.55rem;
  height: 2.55rem;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 850;
  font-size: 0.98rem;
  color: #fff;
  background: linear-gradient(145deg, var(--wa-accent), var(--wa-teal));
  box-shadow: 0 14px 28px rgba(16, 185, 129, 0.32);
  flex-shrink: 0;
  margin-top: 0.05rem;
}

.step article {
  min-width: 0;
}

.step article p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.faq-wrap {
  display: grid;
  gap: 1.15rem;
  margin: 0;
}

.faq {
  padding: 1.25rem 1.45rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  border-left-width: 5px;
  border-left-color: var(--wa-accent);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s var(--ease-out), box-shadow 0.22s var(--ease-out),
    border-color 0.22s var(--ease-out);
}

.faq:hover {
  transform: translateY(-3px);
  border-left-color: var(--wa-accent-2);
  box-shadow: var(--shadow-md);
}

.faq dt {
  font-size: 1.05rem;
  margin-bottom: 0.45rem;
  color: var(--ink);
  font-weight: 750;
}

.faq dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.66;
}

.closing {
  text-align: center;
  padding: clamp(2.75rem, 6vw, 3.6rem);
  border-radius: calc(var(--radius-lg) + 6px);
  border: 1px solid rgba(16, 185, 129, 0.28);
  background:
    radial-gradient(640px 280px at 50% 0%, rgba(16, 185, 129, 0.14), transparent 55%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: var(--shadow-float);
}

.closing h2 {
  max-width: min(28em, 100%);
  margin-inline: auto;
  line-height: 1.28;
  overflow-wrap: break-word;
  text-wrap: balance;
}

@supports not (text-wrap: balance) {
  .closing h2 {
    text-wrap: wrap;
  }
}

.closing .closing-lede {
  max-width: min(62ch, 100%);
  margin-inline: auto;
  margin-bottom: 1.35rem;
  color: var(--muted);
  font-size: 1.06rem;
  text-wrap: pretty;
}

.closing .hero-actions {
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.1rem;
  margin-bottom: 0;
}

/* 收尾区按钮回到浅色背景：覆盖首屏深色按钮样式 */
.closing .btn-primary {
  background: linear-gradient(135deg, #34d399 0%, var(--wa-teal) 55%, #0d9488 100%);
  color: #fff;
}

.closing .btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.closing .btn-secondary:hover {
  color: var(--wa-teal-hover);
  background: #fff;
}

.closing .skip-note {
  flex: none;
  width: 100%;
  max-width: min(52ch, 100%);
  margin: 0;
  margin-block-start: 0;
  text-align: center;
}

.skip-note {
  display: inline-block;
  width: 100%;
  max-width: 440px;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.55;
}

.skip-note kbd {
  font-family: ui-monospace, "Cascadia Mono", "Segoe UI Mono", monospace;
  font-size: 0.88em;
  padding: 0.14em 0.48em;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.06);
}

footer {
  border-top: none;
  background: radial-gradient(900px 420px at 10% 0%, rgba(34, 211, 238, 0.12), transparent 55%),
    linear-gradient(180deg, #0f172a 0%, #020617 100%);
  padding: 2.35rem 0;
  margin-top: auto;
}

footer p {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(226, 232, 240, 0.82);
  text-align: center;
}
