@font-face {
  font-family: "Silk";
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url("fonts/silkscreen-400.woff2") format("woff2");
}

/* Global Header Back Button - Gallery Grade Difference Blend */
.back,
.back:hover {
  background: transparent !important;
  color: #fff !important;
  mix-blend-mode: difference;
  border: none !important;
  box-shadow: none !important;
  padding: 6px 6px 8px;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.silk {
  font-family: "Silk", "Helvetica Neue", Helvetica, sans-serif;
  font-weight: 400;
  letter-spacing: 0.04em;
  -webkit-font-smoothing: none;
  -moz-osx-font-smoothing: unset;
  font-smooth: never;
}

/* Right fixed brand & chapter rail */
.edge {
  position: fixed;
  z-index: 15;
  right: 16px;
  top: 50%;
  margin: 0;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  font-size: 12px;
  letter-spacing: 0.28em;
  background: #fff;
  padding: 6px 2px;
}

.rail-nav {
  position: fixed;
  z-index: 15;
  right: 18px;
  bottom: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.rail-nav a {
  font-family: "Silk", monospace;
  font-size: 10px;
  line-height: 1;
  padding: 4px;
  color: rgba(17, 17, 17, 0.42);
  border-bottom: 1px solid transparent;
  transition: color 220ms ease, border-color 220ms ease, transform 220ms ease;
}

.rail-nav a:hover,
.rail-nav a.active {
  color: #111;
  border-bottom-color: #111;
  transform: translateX(-2px);
}

/* Architectural typography & pills */
.kicker {
  margin: 0 0 12px;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #111;
}

.chapter-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.chapter-num {
  font-family: "Silk", monospace;
  font-size: 13px;
  padding: 4px 10px;
  border: 1px solid #111;
  background: #fff;
  line-height: 1.1;
}

.chapter-tag {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(17, 17, 17, 0.72);
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border: 1px solid #111;
  border-radius: 999px;
  background: #fff;
  font-size: 12px;
  letter-spacing: 0.08em;
  line-height: 1.2;
}

.pill i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #111;
  display: block;
}

/* User verbatim lines */
.copy-lines {
  list-style: none;
  margin: 0;
  padding: 0;
}

.copy-lines li,
.verbatim-line {
  position: relative;
  margin: 0 0 10px;
  padding-left: 16px;
  font-size: 15.5px;
  line-height: 1.62;
  color: #111;
}

.copy-lines li::before,
.verbatim-line::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.64em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #111;
}

.copy-lines li.gap,
.verbatim-line.gap {
  margin-top: 18px;
}

/* Living dotted matrix & morphing SVG orbs (echoing oh.html) */
.dot-plane {
  position: absolute;
  pointer-events: none;
  background-image: radial-gradient(circle, #111 1.05px, transparent 1.25px);
  background-size: 36px 36px;
  opacity: 0.85;
  animation: dotdrift 24s linear infinite;
}

@keyframes dotdrift {
  to { background-position: 36px -36px; }
}

.morph-orb {
  position: absolute;
  pointer-events: none;
  overflow: visible;
}

.morph-orb path {
  fill: none;
  stroke: #111;
  stroke-width: 1.1;
  vector-effect: non-scaling-stroke;
}

/* Architectural 1px grid box with corner node dots */
.arch-box {
  position: relative;
  border: 1px solid #111;
  background: #fff;
}

/* Gallery & Blueprint Deconstructive Elements (Breaks Grid Rigidity) */
.blueprint-crop {
  position: relative;
}
.blueprint-crop::before,
.blueprint-crop::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  pointer-events: none;
  z-index: 6;
}
.blueprint-crop::before {
  top: -4px;
  left: -4px;
  border-top: 1.5px solid #111;
  border-left: 1.5px solid #111;
}
.blueprint-crop::after {
  bottom: -4px;
  right: -4px;
  border-bottom: 1.5px solid #111;
  border-right: 1.5px solid #111;
}

.arch-ruler {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  height: 12px;
  padding: 0 4px;
  border-bottom: 1px solid #111;
  margin-bottom: 12px;
  opacity: 0.85;
}
.arch-ruler i {
  display: block;
  width: 1px;
  height: 4px;
  background: #111;
}
.arch-ruler i:nth-child(5n+1) {
  height: 8px;
}
.arch-ruler .ruler-text {
  font-family: "Silk", monospace;
  font-size: 8px;
  letter-spacing: 0.12em;
  line-height: 1;
  margin-left: 6px;
}

.asym-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border: 1px solid #111;
  background: #fff;
  font-family: "Silk", monospace;
  font-size: 10px;
  transform: rotate(-1.2deg);
  transition: transform 220ms ease;
  box-shadow: 2px 2px 0 #111;
}
.asym-badge:hover {
  transform: rotate(0) scale(1.04);
}

.crosshair {
  position: absolute;
  width: 9px;
  height: 9px;
  pointer-events: none;
}
.crosshair::before,
.crosshair::after {
  content: "";
  position: absolute;
  background: #111;
}
.crosshair::before {
  left: 4px; top: 0; width: 1px; height: 9px;
}
.crosshair::after {
  top: 4px; left: 0; width: 9px; height: 1px;
}

.node-dot {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #111;
  pointer-events: none;
}

.node-dot.tl { top: -3px; left: -3px; }
.node-dot.tr { top: -3px; right: -3px; }
.node-dot.bl { bottom: -3px; left: -3px; }
.node-dot.br { bottom: -3px; right: -3px; }

/* Device mockup frame for mobile screenshots */
.device {
  position: relative;
  border: 1px solid #111;
  border-radius: 26px;
  padding: 16px 8px 10px;
  background: #fff;
  box-shadow: 0 20px 44px rgba(17, 17, 17, 0.08);
  transition: transform 420ms cubic-bezier(.22, 1, .36, 1), box-shadow 420ms cubic-bezier(.22, 1, .36, 1);
}

.device::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 50%;
  transform: translateX(-50%);
  width: 34px;
  height: 2px;
  border-radius: 2px;
  background: #111;
}

.device img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 17px;
  border: 1px solid rgba(17, 17, 17, 0.16);
}

.plate-box {
  position: relative;
  border: 1px solid #111;
  background: #fff;
  padding: 8px;
  box-shadow: 0 14px 36px rgba(17, 17, 17, 0.06);
  transition: transform 420ms cubic-bezier(.22, 1, .36, 1), box-shadow 420ms cubic-bezier(.22, 1, .36, 1);
}

.plate-box img {
  display: block;
  width: 100%;
  height: auto;
}

.plate-cap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 8px 2px 2px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-top: 1px solid #111;
  margin-top: 8px;
}

[data-zoom] {
  cursor: zoom-in;
}

[data-zoom]:hover .device,
.device[data-zoom]:hover,
[data-zoom]:hover .plate-box,
.plate-box[data-zoom]:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 56px rgba(17, 17, 17, 0.13);
}

/* Hairline structural step grid */
.step-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid #111;
  border-left: 1px solid #111;
  background: #fff;
  margin-top: 26px;
}

.step-cell {
  position: relative;
  padding: 16px 16px 18px;
  border-right: 1px solid #111;
  border-bottom: 1px solid #111;
}

.step-cell .s-num {
  font-family: "Silk", monospace;
  font-size: 11px;
  margin: 0 0 6px;
  letter-spacing: 0.08em;
}

.step-cell .s-ttl {
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 4px;
  letter-spacing: -0.02em;
}

.step-cell .s-desc {
  font-size: 12.5px;
  line-height: 1.48;
  margin: 0;
  color: rgba(17, 17, 17, 0.78);
}

/* Lightbox modal */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.94);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px 32px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 260ms ease, visibility 0s linear 260ms;
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
  transition: opacity 260ms ease, visibility 0s linear 0s;
}

.lightbox-stage {
  position: relative;
  max-width: min(1160px, 92vw);
  max-height: 82vh;
  border: 1px solid #111;
  background: #fff;
  padding: 10px;
  box-shadow: 0 28px 80px rgba(17, 17, 17, 0.14);
}

.lightbox-stage img {
  display: block;
  max-width: calc(92vw - 24px);
  max-height: calc(82vh - 54px);
  width: auto;
  height: auto;
}

.lb-count { white-space: nowrap; flex: none; }

.lightbox-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 8px;
  margin-top: 8px;
  border-top: 1px solid #111;
  font-size: 12px;
  letter-spacing: 0.14em;
}

.lightbox-close {
  position: absolute; /* 贴在图片框外侧右上角(框的上边线外),不压图、不挂页面顶部 */
  bottom: 100%; /* 按钮底边和右边的线,与图片框的上边线、右边线重合 */
  right: -1px;
  z-index: 2;
  border: 1px solid #111;
  background: #fff;
  color: #111;
  padding: 7px 14px;
  font-family: "Silk", monospace;
  font-size: 12px;
  cursor: pointer;
}

.lightbox-nav {
  position: absolute;
  top: calc(50% - 26px); /* 对齐图片中线(下面还有一条图注栏) */
  transform: translateY(-50%);
  z-index: 2;
  width: 56px;
  height: 96px;
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}
.lb-prev { left: 10px; }
.lb-next { right: 10px; }
/* 只有箭头,没有底框:白色粗线 + 黑色细描边,深浅图都看得清 */
.lightbox-nav svg { overflow: visible; display: block; transition: transform 160ms ease; }
.lb-ar-o, .lb-ar-i { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.lb-ar-o { stroke: #111; stroke-width: 7; opacity: 0.85; }
.lb-ar-i { stroke: #fff; stroke-width: 3.6; }
.lb-prev:hover svg, .lb-prev:active svg { transform: translateX(-3px); }
.lb-next:hover svg, .lb-next:active svg { transform: translateX(3px); }

.lightbox-close:hover {
  background: #111;
  color: #fff;
}

@media (max-width: 900px) {
  .lightbox-close { padding: 9px 14px; font-size: 12px; }
  .lightbox-nav { width: 48px; }
  .lb-prev { left: 2px; }
  .lb-next { right: 2px; }
  .edge,
  .rail-nav {
    display: none;
  }
  .step-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dot-plane { animation: none; }
  .device, .plate-box, .lightbox { transition: none; }
}

/* ===== 链接 / 下载入口(Artemis、钱包、交易所共用) ===== */
.go-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 0 22px; box-sizing: border-box;
  border: 1px solid #111; background: #111; color: #fff; text-decoration: none; cursor: pointer;
  font-family: "Silk", monospace; font-size: 12px; letter-spacing: 0.08em; text-transform: none;
  transition: background-color 180ms ease, color 180ms ease;
  -webkit-tap-highlight-color: transparent;
}
.go-btn .arr { display: inline-block; font-size: 15px; line-height: 1; transition: transform 220ms cubic-bezier(.22, 1, .36, 1); }
.go-btn:hover { background: #fff; color: #111; }
.go-btn:hover .arr { transform: translate(3px, -3px); }
.go-btn.ghost { background: #fff; color: #111; }
.go-btn.ghost:hover { background: #111; color: #fff; }
.go-btn.small { min-height: 40px; padding: 0 16px; font-size: 11px; }
.go-btn[aria-disabled="true"] { background: #fff; color: rgba(17,17,17,0.45); border-style: dashed; pointer-events: none; }
.go-inline { margin: 22px 0 4px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.go-inline .go-url { font-family: "Silk", monospace; font-size: 11px; letter-spacing: 0.06em; color: rgba(17,17,17,0.6); }

.go-sec { position: relative; padding: 72px max(60px, 5.5vw) 120px; border-top: 1px solid #111; }
.go-sec .chapter-head { margin-bottom: 18px; }
.go-sec h2 { margin: 0 0 10px; font-size: clamp(30px, 3.4vw, 48px); font-weight: 700; letter-spacing: -0.04em; line-height: 1.05; }
.go-sec .go-sub { margin: 0 0 26px; font-size: 15px; color: rgba(17,17,17,0.72); }
.go-sec .go-url { display: block; margin-top: 12px; font-family: "Silk", monospace; font-size: 11px; letter-spacing: 0.06em; color: rgba(17,17,17,0.6); }

.dl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 8px; }
.dl-card { position: relative; border: 1px solid #111; background: #fff; padding: 24px 24px 22px; display: flex; flex-direction: column; gap: 12px; }
.dl-card .node-dot { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: #111; }
.dl-card .node-dot.tl { left: -4px; top: -4px; } .dl-card .node-dot.br { right: -4px; bottom: -4px; }
.dl-tag { font-family: "Silk", monospace; font-size: 10px; letter-spacing: 0.08em; color: rgba(17,17,17,0.6); display: flex; gap: 8px; align-items: center; }
.dl-tag .beta { border: 1px solid #111; padding: 1px 6px; color: #111; }
.dl-card h3 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -0.03em; }
.dl-steps { list-style: none; margin: 4px 0 6px; padding: 0; counter-reset: st; display: grid; gap: 10px; }
.dl-steps li { counter-increment: st; display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; font-size: 14px; line-height: 1.5; }
.dl-steps li::before { content: counter(st); width: 22px; height: 22px; border: 1px solid #111; display: grid; place-items: center; font-family: "Silk", monospace; font-size: 11px; margin-top: 1px; }
.dl-steps a { color: #111; text-decoration: underline; text-underline-offset: 3px; }
.dl-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: auto; padding-top: 6px; }
.dl-qr { display: none; align-items: center; gap: 12px; font-size: 12px; color: rgba(17,17,17,0.7); line-height: 1.4; }
.dl-qr .box { flex: none; width: 92px; height: 92px; padding: 6px; box-sizing: border-box; border: 1px solid #111; background: #fff; }
.dl-qr svg { display: block; width: 100%; height: 100%; }
@media (min-width: 901px) and (hover: hover) { .dl-qr { display: flex; } }
/* 宽屏:右边那一行被二维码撑高,左边同高、同样垂直居中,两个按钮才在同一水平线上 */
@media (min-width: 1200px) and (hover: hover) { .dl-actions { min-height: 98px; } }
.dl-soon { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px dashed #111; padding: 14px 18px; font-size: 14px; color: rgba(17,17,17,0.7); }
.dl-soon .silk { font-family: "Silk", monospace; font-size: 10px; letter-spacing: 0.08em; }
@media (max-width: 900px) {
  .go-sec { padding: 56px 20px 96px; }
  .dl-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .go-btn { width: 100%; min-height: 52px; }
  .go-btn.small { width: auto; min-height: 44px; }
  .dl-card { padding: 22px 18px 20px; }
  .dl-actions { flex-direction: column; align-items: stretch; }
  .go-inline .go-btn { width: 100%; }
}
.dl-steps .tf-ico { display: inline-block; width: 20px; height: 20px; border-radius: 5px; vertical-align: -5px; margin: 0 6px 0 2px; border: 1px solid rgba(0,0,0,.12); }

/* 手机:胶囊和标签框都排成一行,按屏宽缩小字号,不换行 */
@media (max-width: 700px) {
  .pill-row, body .mkt-tags { flex-wrap: nowrap; gap: 5px; }
  .pill-row .pill { flex: 0 1 auto; min-width: 0; gap: 4px; padding: 5px 8px; font-size: clamp(7.5px, 2.45vw, 11px); letter-spacing: 0.03em; white-space: nowrap; }
  .pill-row .pill i { width: 3px; height: 3px; flex: none; }
  /* 交易所三个框:并排一行,框里分两行(名称 + 说明),中英文都放得下 */
  body .mkt-tags .mkt-tag { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 7px 8px; line-height: 1.25; letter-spacing: 0.02em; white-space: normal; }
  body .mkt-tags .mkt-tag i { display: none; }
  body .mkt-tags .mkt-tag b { font-size: clamp(8.5px, 2.5vw, 11px); white-space: nowrap; }
  body .mkt-tags .mkt-tag em { font-size: clamp(8px, 2.25vw, 10px); color: rgba(17,17,17,0.62); overflow-wrap: anywhere; }
  body .mkt-tags .mkt-tag em::before { content: none; }
}
