.shell:has(#crypto-guide-page:not([hidden])) .profile-header { display: none; }
.shell:has(#crypto-guide-page:not([hidden])) > .page { grid-row: 2; }

.crypto-guide-content {
  display: grid;
  gap: 16px;
  padding: 20px 12px max(18px, env(safe-area-inset-bottom));
  background: radial-gradient(ellipse at 60% 26%, #60401224, transparent 46%);
}

.crypto-guide-group {
  display: grid;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  background: linear-gradient(#ffffff0d, #ffffff05);
  scroll-margin-block-start: 44px;
}

.crypto-guide-group h2 {
  padding-block: 3px;
  color: #ddbb78;
  font-size: 18px;
  font-weight: 500;
  line-height: 24px;
}

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

.crypto-guide-tile, .crypto-guide-row { border-radius: 8px; background: #ffffff0d; }

.crypto-guide-tile {
  display: grid;
  gap: 8px;
  justify-items: center;
  padding: 12px 8px;
  color: #bfa483;
  font-size: 12px;
}

.crypto-guide-tile:hover { background: #ffffff16; }
.crypto-guide-tile img { width: 44px; height: 44px; border-radius: 50%; }

.crypto-guide-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 12px;
  color: #fff;
  font-size: 14px;
}

.crypto-guide-row img { width: 40px; height: 40px; border-radius: 8px; object-fit: contain; }
.crypto-guide-row > span { overflow-wrap: anywhere; color: #f3e6d6; font-size: 15px; font-weight: 500; letter-spacing: .2px; }

/* 第 3 条：下载链接现在是 <a>，原来只给 button 写了样式 → 统一成官方页「点击咨询」那样的圆角按钮 */
.crypto-guide-row button, .crypto-guide-row a, .crypto-guide-dialog button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 76px;
  min-height: 31px;
  padding: 4px 12px;
  border: 1px solid #8a7059;
  border-radius: 8px;
  background: linear-gradient(159deg, #7a6360, #322b25);
  color: #fff1df;
  font-size: 12px;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: inset 0 1px #ffffff1f;
}
.crypto-guide-row a:active { filter: brightness(1.15); }

.crypto-guide-note {
  display: flex;
  align-items: start;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 8px;
  background: #211d1a;
  color: #bfa483;
  font-size: 11px;
  line-height: 1.5;
}

.crypto-guide-note span { font-size: 14px; }

.crypto-guide-dialog {
  width: min(300px, calc(100% - 32px));
  padding: 18px;
  border: 1px solid #7a6360;
  border-radius: 12px;
  background: #211d1a;
  color: #f8e8d1;
}

.crypto-guide-dialog::backdrop { background: #0009; }
.crypto-guide-dialog h2 { font-size: 17px; }
.crypto-guide-dialog p { margin-block: 8px 16px; color: #dfc89d; font-size: 13px; }

@media (max-width: 340px) {
  .crypto-guide-row { gap: 8px; padding-inline: 8px; }
  .crypto-guide-row :is(button, a) { min-width: 0; padding-inline: 8px; }
}
