:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-2: #f5fbf8;
  --panel: rgba(255, 255, 255, 0.88);
  --panel-solid: #ffffff;
  --line: rgba(19, 74, 62, 0.14);
  --text: #11201c;
  --muted: #64756f;
  --faint: #9aaba5;
  --mint: #087f64;
  --teal: #0ea58d;
  --yellow: #c99500;
  --red: #d95050;
  --red-soft: #fff0f0;
  --shadow: 0 18px 50px rgba(23, 70, 55, 0.11);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 12% 8%, rgba(21, 173, 134, 0.12), transparent 32rem),
    radial-gradient(circle at 88% 10%, rgba(255, 214, 89, 0.18), transparent 28rem),
    linear-gradient(180deg, var(--bg), #f7fcfa 54%, #ffffff);
  color: var(--text);
  font-family: "Inter", "Noto Sans TC", system-ui, sans-serif;
  line-height: 1.5;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(15, 90, 74, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 90, 74, 0.055) 1px, transparent 1px);
  background-size: 48px 48px;
  content: "";
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

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

button,
input {
  font: inherit;
}

#network-canvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  opacity: 0.18;
  pointer-events: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header,
main,
.site-footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 12px;
}

.brand-mark {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(8, 127, 100, 0.34);
  background: linear-gradient(135deg, rgba(17, 180, 140, 0.14), rgba(255, 214, 89, 0.24));
  border-radius: 8px;
  place-items: center;
  overflow: hidden;
}

.brand-mark img {
  display: block;
  width: 34px;
  height: 34px;
  object-fit: contain;
  object-position: center;
}

.brand strong,
.brand small {
  display: block;
}

.brand small,
.section-kicker,
.view-state,
.resource-meta,
.tag,
.site-footer {
  color: var(--muted);
}

.top-nav {
  display: flex;
  gap: 8px;
}

.top-nav a {
  padding: 9px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--muted);
}

.top-nav a:hover {
  border-color: var(--line);
  color: var(--text);
}

.top-nav a.active {
  border-color: rgba(8, 127, 100, 0.34);
  color: var(--mint);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.75fr);
  gap: 24px;
  align-items: stretch;
  min-height: 520px;
  padding: 48px 0 22px;
}

.tutorial-hero,
.page-hero {
  display: grid;
  gap: 24px;
  padding: 54px 0 30px;
}

.tutorial-hero {
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.85fr);
  align-items: center;
  min-height: 520px;
}

.hero-visual-card {
  overflow: hidden;
  border: 1px solid var(--line);
  background: #ffffff;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.hero-visual-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1.28;
  object-fit: cover;
}

.beginner-checklist {
  grid-column: 1 / -1;
  align-self: stretch;
}

.page-hero {
  min-height: 280px;
  align-items: end;
}

.tutorial-hero p,
.page-hero p {
  max-width: 780px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-actions,
.inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.primary-action,
.secondary-action,
.inline-links a,
.topic-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 13px;
  border-radius: 8px;
  font-weight: 800;
}

.primary-action {
  border: 1px solid rgba(8, 127, 100, 0.32);
  background: rgba(8, 127, 100, 0.09);
  color: var(--mint);
}

.secondary-action,
.inline-links a,
.topic-link {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
}

.primary-action:hover,
.secondary-action:hover,
.inline-links a:hover,
.topic-link:hover {
  border-color: rgba(201, 149, 0, 0.36);
}

.beginner-checklist ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.warning-strip,
.topic-note {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin: 6px 0 40px;
  padding: 16px 18px;
  border: 1px solid rgba(201, 149, 0, 0.22);
  background: rgba(255, 247, 218, 0.82);
  border-radius: 8px;
}

.warning-strip strong,
.topic-note strong {
  color: var(--yellow);
  white-space: nowrap;
}

.warning-strip span,
.topic-note span {
  color: var(--muted);
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.guide-grid .section-heading,
.topic-grid-section .section-heading {
  grid-column: 1 / -1;
}

.guide-card,
.topic-grid a {
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(12px);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.guide-card {
  min-height: 340px;
  padding: 18px;
}

.guide-card span,
.topic-grid span {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--yellow);
  font-weight: 800;
}

.guide-card h3 {
  margin: 0 0 10px;
  font-size: 1.12rem;
}

.guide-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.mini-steps {
  display: grid;
  gap: 12px;
}

.mini-steps div {
  padding: 12px;
  border: 1px solid rgba(8, 127, 100, 0.16);
  background: rgba(246, 251, 249, 0.78);
  border-radius: 8px;
}

.mini-steps strong {
  display: block;
  margin-bottom: 6px;
}

.text-link {
  color: var(--red);
  font-weight: 900;
  font-size: 1em;
  text-decoration: underline;
  text-underline-offset: 3px;
  position: relative;
}

.text-link:hover::after,
.text-link:focus-visible::after {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  z-index: 4;
  width: max-content;
  max-width: 220px;
  padding: 7px 9px;
  border: 1px solid rgba(8, 127, 100, 0.18);
  background: #11201c;
  border-radius: 8px;
  color: #fff;
  content: "了解什麼是 KYC";
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.35;
  transform: translateX(-50%);
  box-shadow: 0 12px 30px rgba(17, 32, 28, 0.18);
}

.danger-text {
  color: var(--red);
  font-weight: 900;
}

.danger-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(217, 80, 80, 0.3);
  background: var(--red-soft);
  border-radius: 8px;
  color: #713333;
}

.danger-note strong {
  color: var(--red);
  white-space: nowrap;
}

.guide-actions {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.guide-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid rgba(8, 127, 100, 0.36);
  background: rgba(8, 127, 100, 0.1);
  border-radius: 8px;
  color: var(--mint);
  font-weight: 800;
}

.guide-primary:hover {
  border-color: rgba(8, 127, 100, 0.58);
  background: rgba(8, 127, 100, 0.14);
}

.guide-officials {
  margin-top: 0;
}

.guide-officials a {
  min-height: 32px;
  padding: 0 10px;
  font-size: 0.86rem;
}

.exchange-button-groups {
  display: grid;
  gap: 12px;
}

.exchange-button-groups small {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-weight: 800;
}

.logo-links a {
  gap: 7px;
}

.logo-links img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.lesson-layout {
  padding-bottom: 56px;
}

.lesson-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
  gap: 28px;
  align-items: center;
  padding: 54px 0 26px;
}

.lesson-hero p {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.08rem;
}

.lesson-hero img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow);
}

.lesson-content,
.stablecoin-pair {
  display: grid;
  gap: 14px;
}

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

.lesson-content article,
.stablecoin-pair article {
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.lesson-content h2,
.stablecoin-pair h2 {
  margin: 0 0 10px;
  font-size: 1.15rem;
}

.lesson-content p,
.stablecoin-pair p {
  color: var(--muted);
}

.stablecoin-pair {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 14px;
}

.stablecoin-pair img {
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
}

.stablecoin-pair a {
  color: var(--mint);
  font-weight: 800;
}

.topic-grid-section {
  margin-top: 72px;
}

.seo-section {
  margin-top: 72px;
}

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

.seo-keyword-grid article {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.seo-keyword-grid h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.08rem;
}

.seo-keyword-grid p {
  color: var(--muted);
}

.seo-keyword-grid a {
  align-self: end;
  color: var(--mint);
  font-weight: 800;
}

.seo-article-layout {
  padding-bottom: 56px;
}

.seo-article-grid,
.seo-steps,
.comparison-table {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
}

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

.seo-steps,
.comparison-table {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.seo-article-grid article,
.seo-steps article,
.comparison-table div,
.cta-band {
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.seo-article-grid h2,
.seo-steps h2,
.cta-band h2 {
  margin: 0 0 10px;
  font-size: 1.16rem;
}

.seo-article-grid p,
.seo-steps p,
.comparison-table span,
.cta-band p {
  color: var(--muted);
}

.seo-article-grid a,
.cta-band a {
  color: var(--mint);
  font-weight: 800;
}

.seo-steps span {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--yellow);
  font-weight: 900;
}

.comparison-table strong {
  display: block;
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 1.08rem;
}

.cta-band {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

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

.topic-grid a {
  display: grid;
  gap: 6px;
  min-height: 132px;
  padding: 16px;
}

.topic-grid a:hover {
  border-color: rgba(63, 240, 189, 0.48);
}

.topic-grid strong {
  font-size: 1.04rem;
}

.directory-tools {
  display: grid;
  gap: 14px;
  margin-bottom: 28px;
}

.directory-tools .search-shell,
.directory-tools .quick-tags {
  max-width: none;
}

.single-directory {
  margin-bottom: 54px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow,
.section-kicker {
  margin-bottom: 10px;
  color: var(--mint);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 850px;
  margin-bottom: 18px;
  font-size: clamp(2.45rem, 5vw, 4.8rem);
  line-height: 1.06;
}

.keep-together {
  white-space: nowrap;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(1.55rem, 3vw, 2.3rem);
}

.hero p {
  max-width: 760px;
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 1.08rem;
}

.search-shell {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 760px;
  min-height: 58px;
  padding: 0 12px 0 18px;
  border: 1px solid rgba(8, 127, 100, 0.22);
  background: rgba(255, 255, 255, 0.86);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.search-icon {
  color: var(--yellow);
  font-size: 1.4rem;
}

#search-input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}

#search-input::placeholder {
  color: var(--faint);
}

.icon-button {
  display: grid;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
  border-radius: 8px;
  color: var(--muted);
  cursor: pointer;
  place-items: center;
}

.icon-button:hover {
  color: var(--text);
  border-color: rgba(8, 127, 100, 0.3);
}

.quick-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  max-width: 760px;
  margin-top: 16px;
}

.chip,
.category-button {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  color: var(--muted);
  cursor: pointer;
}

.chip {
  padding: 8px 11px;
  border-radius: 999px;
}

.chip:hover,
.chip.active,
.category-button:hover,
.category-button.active {
  border-color: rgba(8, 127, 100, 0.36);
  background: rgba(8, 127, 100, 0.08);
  color: var(--text);
}

.hero-panel,
.sticky-box,
.resource-card,
.starter-steps article {
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

.hero-panel {
  align-self: end;
  padding: 18px;
  border-radius: 8px;
}

.panel-header,
.section-heading,
.card-top,
.card-actions,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.panel-header {
  margin-bottom: 14px;
}

.panel-header span {
  color: var(--muted);
}

.panel-header .checklist-title {
  color: var(--mint);
  font-size: 1.22rem;
  font-weight: 900;
}

.focus-list {
  display: grid;
  gap: 10px;
}

.focus-list a {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  border-radius: 8px;
}

.focus-list a:hover {
  border-color: rgba(201, 149, 0, 0.34);
}

.focus-list span,
.resource-category {
  color: var(--yellow);
  font-size: 0.78rem;
  font-weight: 800;
}

.focus-list small {
  color: var(--muted);
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  overflow: hidden;
  margin: 10px 0 54px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.stats-strip div {
  padding: 18px;
  background: rgba(255, 255, 255, 0.82);
}

.stats-strip strong,
.stats-strip span {
  display: block;
}

.stats-strip strong {
  margin-bottom: 4px;
  color: var(--mint);
  font-size: 1.35rem;
}

.stats-strip span {
  color: var(--muted);
  font-size: 0.9rem;
}

.section-grid {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.sticky-box {
  position: sticky;
  top: 18px;
  padding: 16px;
  border-radius: 8px;
}

.category-list {
  display: grid;
  gap: 8px;
}

.category-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  text-align: left;
}

.category-button span:last-child {
  color: var(--faint);
  font-size: 0.8rem;
}

.section-heading {
  margin-bottom: 18px;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.resource-card {
  display: flex;
  min-height: 266px;
  padding: 16px;
  border-radius: 8px;
  flex-direction: column;
}

.resource-card.featured {
  border-color: rgba(201, 149, 0, 0.28);
}

.resource-heading {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.resource-logo {
  width: 36px;
  height: 36px;
  padding: 7px;
  border: 1px solid var(--line);
  background: #ffffff;
  border-radius: 8px;
  object-fit: contain;
  box-shadow: 0 8px 20px rgba(23, 70, 55, 0.08);
}

.fallback-logo {
  display: grid;
  color: var(--mint);
  font-weight: 800;
  place-items: center;
}

.resource-card h3 {
  margin: 8px 0 8px;
  font-size: 1.1rem;
}

.resource-card p {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.94rem;
}

.resource-meta {
  margin-top: auto;
  font-size: 0.84rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 14px 0;
}

.tag {
  padding: 5px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(246, 251, 249, 0.88);
  font-size: 0.76rem;
}

.visit-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(8, 127, 100, 0.28);
  border-radius: 8px;
  color: var(--mint);
  font-weight: 700;
}

.topic-link {
  min-height: 36px;
  color: var(--muted);
  font-size: 0.88rem;
}

.visit-link:hover {
  background: rgba(8, 127, 100, 0.08);
}

.empty-state {
  padding: 44px 18px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
}

.empty-state strong,
.empty-state span {
  display: block;
}

.empty-state strong {
  margin-bottom: 6px;
  color: var(--text);
}

.starter-band,
.community-band {
  display: grid;
  gap: 24px;
  margin-top: 72px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

.starter-band {
  grid-template-columns: 0.9fr 1.6fr;
}

.starter-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.starter-steps article {
  padding: 16px;
  border-radius: 8px;
}

.starter-steps span {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--yellow);
  font-weight: 800;
}

.starter-steps strong {
  display: block;
  margin-bottom: 8px;
}

.starter-steps p,
.community-band p {
  margin-bottom: 0;
  color: var(--muted);
}

.community-band {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  margin-bottom: 42px;
}

.community-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.community-actions a {
  padding: 10px 12px;
  border: 1px solid rgba(201, 149, 0, 0.3);
  border-radius: 8px;
  color: var(--yellow);
  font-weight: 700;
}

.site-footer {
  padding: 24px 0 34px;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}

@media (max-width: 980px) {
  .hero,
  .tutorial-hero,
  .section-grid,
  .starter-band,
  .community-band {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 28px;
  }

  .hero-panel {
    align-self: stretch;
  }

  .filters {
    overflow: auto;
  }

  .sticky-box {
    position: static;
  }

  .category-list {
    display: flex;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .category-button {
    min-width: 188px;
  }

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

  .guide-grid,
  .topic-grid,
  .lesson-content,
  .stablecoin-pair {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lesson-hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .site-header,
  .section-heading,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .top-nav {
    width: 100%;
    overflow-x: auto;
  }

  .stats-strip,
  .starter-steps,
  .resource-grid,
  .guide-grid,
  .seo-keyword-grid,
  .seo-article-grid,
  .seo-steps,
  .comparison-table,
  .topic-grid,
  .lesson-content,
  .stablecoin-pair {
    grid-template-columns: 1fr;
  }

  .stats-strip {
    margin-bottom: 36px;
  }

  .hero {
    padding-top: 18px;
  }

  h1 {
    font-size: clamp(2.3rem, 14vw, 3.7rem);
  }

  .search-shell {
    min-height: 54px;
  }

  .starter-band,
  .community-band {
    padding: 18px;
  }

  .tutorial-hero,
  .page-hero {
    padding-top: 24px;
  }

  .warning-strip,
  .topic-note {
    flex-direction: column;
  }
}
