/* ============================================================
   page-home — 首页专属样式
   作用域：.page-home
   ============================================================ */

.page-home {
  display: block;
}

/* ---------- 首屏 ---------- */
.page-home .hero {
  position: relative;
  overflow: hidden;
  padding-block: 40px 56px;
}

.page-home .hero::before,
.page-home .hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.page-home .hero::before {
  top: -32%;
  left: -14%;
  width: 70vw;
  height: 70vw;
  max-width: 680px;
  max-height: 680px;
  background: radial-gradient(circle, rgba(53, 232, 208, 0.16), transparent 62%);
}

.page-home .hero::after {
  right: -16%;
  bottom: -34%;
  width: 56vw;
  height: 56vw;
  max-width: 520px;
  max-height: 520px;
  background: radial-gradient(circle, rgba(126, 120, 155, 0.16), transparent 66%);
}

.page-home .hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 44px;
}

.page-home .hero__ctx {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--text-dim);
}

.page-home .hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(34px, 8.4vw, 74px);
  line-height: 1.08;
  letter-spacing: 0.02em;
  color: var(--text);
  overflow-wrap: break-word;
}

.page-home .hero__title-accent {
  position: relative;
  display: inline-block;
  color: var(--cyan);
}

.page-home .hero__title-accent::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.04em;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), rgba(53, 232, 208, 0));
}

.page-home .hero__lede {
  margin: 22px 0 0;
  max-width: 34em;
  color: var(--text-dim);
}

.page-home .hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.page-home .hero__facts {
  display: grid;
  gap: 10px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-dim);
}

.page-home .hero__facts li {
  position: relative;
  padding-left: 18px;
}

.page-home .hero__facts li::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 0.66em;
  width: 6px;
  height: 6px;
  background: var(--cyan);
  transform: rotate(45deg);
}

/* 首屏右侧纵深 */
.page-home .hero__side {
  position: relative;
  display: flex;
  align-items: center;
}

.page-home .hero__backdrop {
  position: absolute;
  inset: -28px -22px;
  z-index: 0;
  opacity: 0.5;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(88% 74% at 56% 46%, #000 28%, transparent 80%);
  mask-image: radial-gradient(88% 74% at 56% 46%, #000 28%, transparent 80%);
}

.page-home .hero__backdrop img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
}

.page-home .hero__cards {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
  width: 100%;
}

.page-home .hero__card {
  transition: border-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              transform var(--dur) var(--ease);
}

.page-home .hero__card:hover {
  border-color: rgba(53, 232, 208, 0.42);
  box-shadow: 0 0 0 1px rgba(53, 232, 208, 0.16),
              0 22px 46px -28px rgba(53, 232, 208, 0.55);
}

/* ---------- 通用分区节奏 ---------- */
.page-home .sec {
  position: relative;
  padding-block: 58px;
}

.page-home .chapter {
  margin-bottom: 34px;
}

/* ---------- 非对称双栏 ---------- */
.page-home .duo {
  display: grid;
  gap: 32px;
}

/* ---------- 01 助记词 ---------- */
.page-home .mnemonic__media {
  margin: 0;
}

.page-home .mnemonic__body {
  display: grid;
  gap: 22px;
}

.page-home .steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.page-home .steps__item {
  position: relative;
  padding: 22px 20px 22px 24px;
  background: linear-gradient(180deg, rgba(19, 28, 44, 0.92), rgba(11, 17, 29, 0.96));
  border: 1px solid var(--line);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
}

.page-home .steps__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 20px;
  bottom: 20px;
  width: 2px;
  background: linear-gradient(180deg, var(--cyan), rgba(53, 232, 208, 0));
}

.page-home .steps__num {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--cyan);
}

.page-home .steps__item h3 {
  margin: 8px 0 8px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.page-home .steps__item p {
  margin: 0;
  font-size: 15px;
  line-height: 1.72;
  color: var(--text-dim);
}

.page-home .notice-bar {
  position: relative;
  margin: 0;
  padding: 16px 18px 16px 44px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  border: 1px solid rgba(255, 162, 60, 0.42);
  background: linear-gradient(96deg, rgba(255, 162, 60, 0.14), rgba(255, 162, 60, 0.02));
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
}

.page-home .notice-bar__mark {
  position: absolute;
  left: 18px;
  top: 22px;
  width: 10px;
  height: 10px;
  background: var(--amber);
  transform: rotate(45deg);
}

/* ---------- 02 非托管 ---------- */
.page-home .custody__panels {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.page-home .custody__h {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.page-home .custody__p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-dim);
}

/* ---------- 03 多链 ---------- */
.page-home .chains {
  position: relative;
  overflow: hidden;
  padding: 24px 20px;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
}

.page-home .chains__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.24;
  pointer-events: none;
}

.page-home .chains__bg img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
}

.page-home .chains__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
}

.page-home .chains__card {
  backdrop-filter: blur(6px);
  transition: border-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}

.page-home .chains__card:hover {
  border-color: rgba(53, 232, 208, 0.4);
  box-shadow: 0 0 0 1px rgba(53, 232, 208, 0.14);
}

/* 地址核对清单 */
.page-home .verify {
  position: relative;
  margin-top: 28px;
  padding: 24px 20px;
  border: 1px solid rgba(255, 162, 60, 0.34);
  background: linear-gradient(180deg, rgba(255, 162, 60, 0.08), rgba(11, 17, 29, 0.72));
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
}

.page-home .verify__title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}

.page-home .verify__intro {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.72;
  color: var(--text-dim);
}

.page-home .verify__input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

.page-home .verify__row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  background: rgba(19, 28, 44, 0.6);
  cursor: pointer;
  transition: border-color var(--dur) var(--ease),
              background var(--dur) var(--ease);
}

.page-home .verify__row:hover {
  border-color: rgba(255, 162, 60, 0.5);
}

.page-home .verify__box {
  position: relative;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border: 1px solid rgba(255, 162, 60, 0.75);
  transition: background var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}

.page-home .verify__box::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 6px;
  height: 11px;
  border-right: 2px solid var(--bg-deep);
  border-bottom: 2px solid var(--bg-deep);
  transform: rotate(42deg) scale(0);
  transition: transform var(--dur) var(--ease);
}

.page-home .verify__text {
  font-size: 15px;
  line-height: 1.68;
  color: var(--text);
}

.page-home .verify__input:checked + .verify__row .verify__box {
  background: var(--cyan);
  border-color: var(--cyan);
}

.page-home .verify__input:checked + .verify__row .verify__box::after {
  transform: rotate(42deg) scale(1);
}

.page-home .verify__input:focus-visible + .verify__row .verify__box {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.page-home .verify__state {
  margin: 16px 0 0;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  line-height: 1.6;
}

.page-home .verify__state--wait {
  color: var(--amber);
}

.page-home .verify__state--done {
  display: none;
  color: var(--cyan);
}

.page-home .verify:has(#verify-1:checked):has(#verify-2:checked):has(#verify-3:checked) .verify__state--wait {
  display: none;
}

.page-home .verify:has(#verify-1:checked):has(#verify-2:checked):has(#verify-3:checked) .verify__state--done {
  display: block;
}

/* ---------- 04 版本时间轴 ---------- */
.page-home .versions {
  position: relative;
  overflow: hidden;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
}

.page-home .versions__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  opacity: 0.18;
  pointer-events: none;
}

.page-home .versions__inner {
  position: relative;
  z-index: 1;
  padding: 26px 20px 28px;
}

.page-home .versions__list {
  position: relative;
  list-style: none;
  margin: 0 0 26px;
  padding: 0 0 0 24px;
}

.page-home .versions__list::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 8px;
  bottom: 10px;
  width: 1px;
  background: linear-gradient(180deg, var(--violet), var(--cyan));
}

.page-home .versions__item {
  position: relative;
  padding-bottom: 22px;
}

.page-home .versions__item:last-child {
  padding-bottom: 4px;
}

.page-home .versions__item::before {
  content: "";
  position: absolute;
  left: -24px;
  top: 7px;
  width: 9px;
  height: 9px;
  background: var(--cyan);
  transform: rotate(45deg);
}

.page-home .versions__item.is-legacy::before {
  background: var(--violet);
}

.page-home .versions__ver {
  display: inline-block;
  margin: 0;
  padding: 2px 9px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--cyan);
  border: 1px solid rgba(53, 232, 208, 0.35);
}

.page-home .versions__item.is-legacy .versions__ver {
  color: var(--violet);
  border-color: rgba(126, 120, 155, 0.48);
}

.page-home .versions__body h3 {
  margin: 12px 0 6px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.page-home .versions__body p {
  margin: 0;
  max-width: 46em;
  font-size: 14px;
  line-height: 1.72;
  color: var(--text-dim);
}

.page-home .versions__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- 05 内容专栏 ---------- */
.page-home .journal {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  border-top: 1px solid var(--line);
}

.page-home .journal__item {
  display: grid;
  gap: 10px;
  padding: 22px 2px;
  border-bottom: 1px solid var(--line);
  transition: background var(--dur) var(--ease);
}

.page-home .journal__item:hover {
  background: linear-gradient(90deg, rgba(53, 232, 208, 0.06), rgba(53, 232, 208, 0));
}

.page-home .journal__idx {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--text-dim);
}

.page-home .journal__body {
  min-width: 0;
}

.page-home .journal__title {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--text);
}

.page-home .journal__desc {
  margin: 0;
  max-width: 54em;
  font-size: 15px;
  line-height: 1.72;
  color: var(--text-dim);
}

.page-home .journal__more {
  display: inline-flex;
}

/* ---------- 06 信任区 ---------- */
.page-home .sec--trust {
  padding-bottom: 88px;
}

.page-home .trust__legal {
  margin-top: 22px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  line-height: 1.8;
  color: var(--text-dim);
}

.page-home .trust__card {
  align-self: start;
}

.page-home .trust__list {
  display: grid;
  gap: 16px;
  margin: 0;
}

.page-home .trust__list dt {
  margin-bottom: 5px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--text-dim);
}

.page-home .trust__list dd {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  overflow-wrap: anywhere;
}

/* ============================================================
   媒体查询 —— 平板
   ============================================================ */
@media (min-width: 768px) {
  .page-home .hero {
    padding-block: 56px 72px;
  }

  .page-home .sec {
    padding-block: 76px;
  }

  .page-home .chapter {
    margin-bottom: 42px;
  }

  .page-home .chains__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .page-home .journal__item {
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
    padding: 24px 4px;
  }

  .page-home .verify {
    padding: 28px 26px;
  }
}

/* ============================================================
   媒体查询 —— 桌面
   ============================================================ */
@media (min-width: 1024px) {
  .page-home .hero {
    padding-block: 68px 96px;
  }

  .page-home .hero__grid {
    grid-template-columns: minmax(0, 62fr) minmax(0, 38fr);
    gap: 52px;
    align-items: center;
  }

  .page-home .hero__card:nth-child(2) {
    margin-left: 26px;
  }

  .page-home .hero__card:nth-child(3) {
    margin-left: 52px;
  }

  .page-home .sec {
    padding-block: 104px;
  }

  .page-home .chapter {
    margin-bottom: 52px;
  }

  .page-home .duo {
    gap: 48px;
  }

  .page-home .duo--5-7 {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  }

  .page-home .duo--7-5 {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }

  .page-home .chains {
    padding: 34px 32px;
  }

  .page-home .versions__inner {
    padding: 36px 34px 38px;
  }

  .page-home .versions__list {
    padding-left: 28px;
  }

  .page-home .versions__item::before {
    left: -28px;
  }

  .page-home .sec--trust {
    padding-bottom: 112px;
  }
}

@media (min-width: 1280px) {
  .page-home .hero__grid {
    gap: 64px;
  }
}

/* ============================================================
   降低动态效果
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .page-home .hero__card,
  .page-home .chains__card,
  .page-home .journal__item,
  .page-home .verify__row,
  .page-home .verify__box,
  .page-home .verify__box::after {
    transition: none;
  }

  .page-home .hero__card:hover,
  .page-home .chains__card:hover {
    transform: none;
  }
}
