:root {
  --primary: #2980FE;
  --primary-dark: #1264d8;
  --white: #ffffff;
  --bg: #f7faff;
  --bg-soft: #eef5ff;
  --line: #dfe8f6;
  --text: #202836;
  --muted: #667085;
  --deep: #111827;
  --shadow: 0 18px 45px rgba(20, 72, 145, 0.10);
  --radius: 28px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans TC", "Microsoft JhengHei", Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

p {
  margin: 0 0 14px;
}

h1,
h2,
h3 {
  line-height: 1.2;
  color: var(--deep);
  margin: 0 0 16px;
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--deep);
  white-space: nowrap;
}

.logo img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  border-radius: 12px;
}

.nav-toggle {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  color: var(--primary);
  font-size: 22px;
}

.site-nav {
  position: absolute;
  left: 16px;
  right: 16px;
  top: 76px;
  display: none;
  padding: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.site-nav.open {
  display: grid;
  gap: 8px;
}

.site-nav a {
  padding: 10px 12px;
  border-radius: 14px;
  color: var(--muted);
  font-size: 15px;
}

.site-nav a.active,
.site-nav a:hover {
  color: var(--primary);
  background: var(--bg-soft);
}

.badge,
.category-badge,
.mini-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  color: var(--primary);
  background: #edf5ff;
  border: 1px solid #cfe2ff;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 700;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 24px;
  border-radius: 999px;
  background: var(--primary);
  color: var(--white);
  font-weight: 800;
  box-shadow: 0 14px 30px rgba(41, 128, 254, 0.25);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  cursor: pointer;
}

.download-btn:hover {
  transform: translateY(-2px);
  background: var(--primary-dark);
  box-shadow: 0 18px 36px rgba(41, 128, 254, 0.32);
}

.text-link {
  display: inline-flex;
  align-items: center;
  color: var(--primary);
  font-weight: 800;
  margin-top: 8px;
}

.text-link::after {
  content: "›";
  margin-left: 6px;
}

.web3-hero {
  position: relative;
  padding: 54px 0 42px;
  background:
    radial-gradient(circle at 78% 12%, rgba(41, 128, 254, 0.18), transparent 32%),
    linear-gradient(180deg, #ffffff 0%, #f6f9ff 100%);
  overflow: hidden;
}

.web3-hero::before {
  content: "";
  position: absolute;
  inset: 24px auto auto -120px;
  width: 280px;
  height: 280px;
  border: 1px solid rgba(41, 128, 254, .16);
  border-radius: 50%;
}

.hero-grid {
  position: relative;
  display: grid;
  gap: 34px;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(34px, 8vw, 64px);
  letter-spacing: -1.5px;
}

.hero-copy p {
  color: var(--muted);
  font-size: 17px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0 18px;
}

.security-tags,
.float-tags,
.inline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.security-tags span,
.float-tags span,
.inline-tags span {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .8);
  color: var(--muted);
  font-size: 13px;
}

.hero-visual {
  position: relative;
  min-height: 360px;
  display: grid;
  place-items: center;
}

.product-shell {
  width: min(360px, 88vw);
  padding: 18px;
  border-radius: 34px;
  background: linear-gradient(145deg, rgba(255,255,255,.92), rgba(235,245,255,.78));
  border: 1px solid rgba(41, 128, 254, .16);
  box-shadow: var(--shadow);
}

.product-shell img {
  width: 100%;
  border-radius: 28px;
}

.float-tags {
  position: absolute;
  inset: auto 0 0 0;
  justify-content: center;
}

.section,
.page-section {
  padding: 64px 0;
}

.section-head {
  margin-bottom: 28px;
}

.section-head p,
.page-hero p,
.feature-copy p {
  color: var(--muted);
}

.ecosystem-nav {
  padding: 40px 0 58px;
  background: var(--bg);
}

.ecosystem-grid,
.category-grid {
  display: grid;
  gap: 16px;
}

.ecosystem-card,
.category-card,
.info-card,
.risk-card,
.faq-item,
.step-card,
.side-card,
.check-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(18, 43, 79, .05);
}

.ecosystem-card,
.category-card {
  padding: 22px;
}

.ecosystem-card .mini-badge {
  margin-bottom: 12px;
}

.ecosystem-card p,
.category-card p,
.info-card p,
.risk-card p,
.step-card p,
.check-card p {
  color: var(--muted);
}

.feature-split,
.web3-section,
.hardware-wallet-section,
.digital-assets-section,
.swap-section,
.developer-center-section,
.submit-chain-section,
.privacy-section {
  display: grid;
  gap: 24px;
  align-items: center;
}

.feature-media {
  border-radius: 32px;
  padding: 18px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  overflow: hidden;
}

.feature-media img {
  width: 100%;
  border-radius: 24px;
}

.soft-section {
  background: linear-gradient(180deg, var(--bg) 0%, #ffffff 100%);
}

.info-grid,
.risk-grid,
.faq-grid,
.related-grid,
.check-grid {
  display: grid;
  gap: 16px;
}

.info-card,
.risk-card,
.faq-item,
.step-card,
.side-card,
.check-card {
  padding: 22px;
}

.info-card h3,
.risk-card h3,
.faq-item h3,
.step-card h3,
.check-card h3 {
  font-size: 19px;
}

.safety-panel {
  padding: 24px;
  border-radius: 30px;
  background: linear-gradient(135deg, #f4f8ff, #ffffff);
  border: 1px solid var(--line);
}

.process-steps {
  display: grid;
  gap: 16px;
  counter-reset: step;
}

.step-card {
  position: relative;
  padding-left: 76px;
}

.step-card::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 22px;
  top: 22px;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--primary);
  color: var(--white);
  font-weight: 800;
}

.risk-card {
  border-left: 4px solid var(--primary);
}

.code-panel {
  padding: 22px;
  border-radius: 28px;
  background: #f7fbff;
  border: 1px solid #d9e8ff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: #30445f;
  overflow: hidden;
}

.code-panel span {
  display: block;
  padding: 8px 0;
  border-bottom: 1px solid #e7f0ff;
}

.code-panel span:last-child {
  border-bottom: 0;
}

.cta-section {
  padding: 62px 0;
  background: linear-gradient(135deg, #eef5ff 0%, #ffffff 100%);
}

.cta-card {
  text-align: center;
  padding: 34px 22px;
  border-radius: 34px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.page-hero {
  padding: 56px 0 34px;
  background:
    radial-gradient(circle at 80% 10%, rgba(41,128,254,.16), transparent 28%),
    linear-gradient(180deg, #ffffff, #f6f9ff);
}

.page-hero h1 {
  margin-top: 14px;
  font-size: clamp(32px, 7vw, 52px);
}

.page-layout {
  display: grid;
  gap: 24px;
  align-items: start;
}

.content-card {
  padding: 24px;
  border-radius: 30px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(18, 43, 79, .05);
}

.content-card h2 {
  margin-top: 24px;
}

.content-card h2:first-child {
  margin-top: 0;
}

.tip-list {
  padding: 0;
  margin: 14px 0 0;
  list-style: none;
}

.tip-list li {
  margin: 10px 0;
  padding-left: 24px;
  position: relative;
  color: var(--muted);
}

.tip-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .72em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--primary);
}

.download-inline {
  margin-top: 22px;
}

.faq-item details {
  display: block;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 800;
  color: var(--deep);
}

.faq-item details p {
  margin-top: 12px;
}

.site-footer {
  background: #172033;
  color: rgba(255,255,255,.78);
  padding: 44px 0 0;
}

.footer-grid {
  display: grid;
  gap: 24px;
}

.footer-brand {
  color: var(--white);
  font-weight: 900;
  font-size: 20px;
  margin-bottom: 10px;
}

.site-footer h3 {
  color: var(--white);
  font-size: 16px;
}

.site-footer a {
  display: block;
  color: rgba(255,255,255,.72);
  margin: 8px 0;
}

.site-footer a:hover {
  color: var(--white);
}

.footer-bottom {
  margin-top: 32px;
  padding: 18px;
  border-top: 1px solid rgba(255,255,255,.12);
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,.62);
}

@media (min-width: 680px) {
  .ecosystem-grid,
  .category-grid,
  .info-grid,
  .risk-grid,
  .faq-grid,
  .related-grid,
  .check-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }
}

@media (min-width: 900px) {
  .nav-toggle {
    display: none;
  }

  .site-nav {
    position: static;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
  }

  .site-nav a {
    font-size: 14px;
    padding: 8px 10px;
  }

  .web3-hero {
    padding: 86px 0 58px;
  }

  .hero-grid,
  .feature-split,
  .web3-section,
  .hardware-wallet-section,
  .digital-assets-section,
  .swap-section,
  .developer-center-section,
  .submit-chain-section,
  .privacy-section,
  .page-layout {
    grid-template-columns: 1.05fr .95fr;
  }

  .hero-visual {
    min-height: 480px;
  }

  .ecosystem-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .ecosystem-card.large {
    grid-column: span 2;
  }

  .process-steps {
    grid-template-columns: repeat(3, 1fr);
  }

  .risk-grid {
    grid-template-columns: repeat(4, 1fr);
  }

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

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

  .section,
  .page-section {
    padding: 82px 0;
  }

  .content-card {
    padding: 34px;
  }
}

@media (min-width: 1120px) {
  .site-nav a {
    padding: 9px 12px;
  }
}
