.page-home {
  position: relative;
  overflow-x: clip;
  padding-bottom: 72px;
  --home-hair: rgba(242, 239, 230, 0.12);
}

.page-home .shell {
  width: 100%;
}

/* ---------- 面包屑 ---------- */
.page-home .breadcrumb {
  padding: 14px 0 6px;
}

.page-home .breadcrumb__list {
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-home .breadcrumb__current {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--mist);
  text-transform: uppercase;
}

/* ---------- 首屏框景 ---------- */
.page-home .hero {
  padding-top: 8px;
}

.page-home .hero__frame {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 30px 18px 26px;
  border: 1px solid var(--glass-line);
  border-radius: 24px;
  background:
    linear-gradient(158deg, rgba(123, 47, 247, 0.32) 0%, rgba(11, 12, 16, 0.72) 44%, rgba(11, 12, 16, 0.96) 100%);
  box-shadow: 0 30px 90px -50px rgba(123, 47, 247, 0.9);
}

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

.page-home .hero__corner {
  position: absolute;
  z-index: 2;
  width: 26px;
  height: 26px;
  border: 0;
  border-color: var(--accent);
  border-style: solid;
  opacity: 0.75;
}

.page-home .hero__corner--tl {
  top: 12px;
  left: 12px;
  border-width: 1px 0 0 1px;
}

.page-home .hero__corner--tr {
  top: 12px;
  right: 12px;
  border-width: 1px 1px 0 0;
  border-color: var(--brand);
}

.page-home .hero__corner--bl {
  bottom: 12px;
  left: 12px;
  border-width: 0 0 1px 1px;
  border-color: var(--brand);
}

.page-home .hero__corner--br {
  bottom: 12px;
  right: 12px;
  border-width: 0 1px 1px 0;
}

.page-home .hero__coord {
  position: absolute;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--mist);
  opacity: 0.7;
}

.page-home .hero__coord--top {
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
}

.page-home .hero__coord--bottom {
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
}

.page-home .hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 26px;
  padding-top: 22px;
}

.page-home .eyebrow {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--accent);
}

.page-home h1 {
  margin: 0 0 16px;
  font-size: clamp(30px, 8.6vw, 60px);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--paper);
}

.page-home .lede {
  max-width: 34ch;
  margin: 0 0 26px;
  font-size: 16px;
  line-height: 1.7;
  color: rgba(242, 239, 230, 0.82);
}

/* 检索框 */
.page-home .hero__search {
  max-width: 560px;
}

.page-home .searchbar {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  padding: 12px 16px;
  border: 1px solid rgba(0, 229, 255, 0.32);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: 15px;
  text-align: left;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}

.page-home .searchbar:hover,
.page-home .searchbar:focus-visible {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 1px rgba(0, 229, 255, 0.55), var(--glow-accent);
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.page-home .searchbar__glyph {
  position: relative;
  flex: none;
  width: 16px;
  height: 16px;
  border: 2px solid var(--accent);
  border-radius: 50%;
}

.page-home .searchbar__glyph::after {
  content: "";
  position: absolute;
  right: -6px;
  bottom: -3px;
  width: 8px;
  height: 2px;
  background: var(--accent);
  transform: rotate(45deg);
  transform-origin: left center;
}

.page-home .searchbar__hint {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: rgba(242, 239, 230, 0.7);
}

.page-home .searchbar__key {
  flex: none;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--cta);
  color: #1a0d05;
  font-size: 13px;
  font-weight: 700;
}

.page-home .hero__search-note {
  margin: 12px 2px 0;
  font-size: 13px;
  color: rgba(185, 140, 255, 0.92);
}

/* 首屏右栏 */
.page-home .hero__rail {
  display: grid;
  gap: 14px;
  align-content: end;
}

.page-home .versioncard {
  padding: 16px 18px 14px;
  border: 1px solid var(--glass-line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-lift);
  backdrop-filter: blur(10px);
}

.page-home .versioncard__label,
.page-home .regioncard__label {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--mist);
}

.page-home .versioncard__value {
  margin: 4px 0 10px;
  font-family: var(--font-mono);
  font-size: 40px;
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--paper);
}

.page-home .versioncard__copy {
  font-size: 12px;
}

.page-home .subcard {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 107, 53, 0.42);
  border-radius: var(--radius);
  background: linear-gradient(150deg, rgba(255, 107, 53, 0.16), rgba(123, 47, 247, 0.12));
  color: var(--paper);
  text-decoration: none;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease);
}

.page-home .subcard:hover,
.page-home .subcard:focus-visible {
  transform: translateY(-3px);
  border-color: var(--cta);
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.page-home .subcard__pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cta);
  box-shadow: 0 0 0 0 rgba(255, 107, 53, 0.6);
  animation: home-breathe 4s ease-in-out infinite;
}

@keyframes home-breathe {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 107, 53, 0.55); opacity: 1; }
  50% { box-shadow: 0 0 0 10px rgba(255, 107, 53, 0); opacity: 0.72; }
}

.page-home .subcard__title {
  font-size: 16px;
  font-weight: 700;
}

.page-home .subcard__text {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(242, 239, 230, 0.78);
}

.page-home .regioncard {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 12px 18px;
  border-left: 2px solid var(--accent);
}

.page-home .regioncard__value {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 30px;
  color: var(--accent);
}

.page-home .regioncard__label {
  margin: 0;
  line-height: 1.4;
}

/* ---------- 通用章节 ---------- */
.page-home .section {
  padding: 54px 0 10px;
}

.page-home .headline {
  margin: 0 0 14px;
  font-size: clamp(24px, 6vw, 38px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--paper);
}

.page-home .prose {
  max-width: 42ch;
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 1.78;
  color: rgba(242, 239, 230, 0.78);
}

.page-home .textlink {
  color: var(--mist);
  text-decoration: underline;
  text-decoration-color: rgba(185, 140, 255, 0.45);
  text-underline-offset: 3px;
}

.page-home .textlink:hover,
.page-home .textlink:focus-visible {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

.page-home .linkarrow {
  display: inline-block;
  margin-top: 10px;
  font-size: 14px;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 229, 255, 0.45);
}

.page-home .linkarrow:hover,
.page-home .linkarrow:focus-visible {
  color: var(--cta);
  border-bottom-color: var(--cta);
}

/* ---------- 两条路径 ---------- */
.page-home .paths__grid {
  display: grid;
  gap: 26px;
  margin-top: 24px;
}

.page-home .pathmedia {
  position: relative;
  margin: 0;
  border: 1px solid var(--glass-line-soft);
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(140deg, rgba(123, 47, 247, 0.28), rgba(0, 229, 255, 0.12) 70%, rgba(11, 12, 16, 0.9));
}

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

.page-home .pathmedia__cap,
.page-home .export__media-cap,
.page-home .closing__media-cap {
  display: block;
  padding: 12px 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--mist);
  background: rgba(11, 12, 16, 0.72);
}

.page-home .pathlist {
  display: grid;
  gap: 16px;
  align-content: start;
}

.page-home .pathcard {
  padding: 20px 20px 22px;
  border: 1px solid var(--glass-line-soft);
  border-radius: 18px;
  background: var(--surface);
  transition: transform 0.4s var(--ease), opacity 0.4s var(--ease), border-color 0.4s var(--ease);
}

.page-home .pathcard__tag {
  margin: 0 0 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.page-home .pathcard__title {
  margin: 0 0 10px;
  font-size: 19px;
  line-height: 1.35;
  color: var(--paper);
}

.page-home .pathcard__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.72;
  color: rgba(242, 239, 230, 0.76);
}

.page-home .pathcard--phone {
  background: linear-gradient(150deg, rgba(0, 229, 255, 0.1), rgba(28, 31, 38, 0.96));
}

.page-home .pathlist:hover .pathcard {
  opacity: 0.82;
}

.page-home .pathlist .pathcard:hover {
  opacity: 1;
  transform: translateY(-5px);
  border-color: rgba(0, 229, 255, 0.45);
}

/* ---------- 老用户导出 ---------- */
.page-home .export {
  position: relative;
  margin: 48px 0 12px;
  padding: 60px 0 58px;
  background: linear-gradient(180deg, rgba(28, 31, 38, 0.92), rgba(15, 17, 23, 0.98));
  clip-path: polygon(0 1.6%, 100% 0, 100% 98.4%, 0 100%);
}

.page-home .export__grid {
  display: grid;
  gap: 30px;
}

.page-home .export__media {
  position: relative;
  order: -1;
  margin: 0;
  border: 1px solid rgba(0, 229, 255, 0.28);
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(200deg, rgba(0, 229, 255, 0.16), rgba(123, 47, 247, 0.24), rgba(11, 12, 16, 0.95));
  box-shadow: var(--shadow-lift);
}

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

.page-home .export__compare {
  display: grid;
  gap: 22px;
  margin-top: 22px;
}

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

.page-home .step {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: rgba(242, 239, 230, 0.72);
}

.page-home .step__dot {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--clay);
  opacity: 0.65;
}

.page-home .step--muted .step__title {
  text-decoration: line-through;
  text-decoration-color: rgba(242, 239, 230, 0.28);
  color: rgba(242, 239, 230, 0.5);
}

.page-home .export__now {
  padding: 18px 20px;
  border: 1px solid rgba(78, 110, 88, 0.65);
  border-left: 3px solid var(--moss);
  border-radius: 14px;
  background: rgba(78, 110, 88, 0.14);
}

.page-home .export__now-title {
  margin: 8px 0 6px;
  font-family: var(--font-mono);
  font-size: 30px;
  line-height: 1;
  color: var(--paper);
}

.page-home .export__now-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(242, 239, 230, 0.76);
}

/* ---------- 资料库与刻度尺 ---------- */
.page-home .library__head {
  display: grid;
  gap: 26px;
}

.page-home .stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.page-home .stat {
  padding-left: 12px;
  border-left: 2px solid rgba(0, 229, 255, 0.6);
}

.page-home .stat__value {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(24px, 5vw, 32px);
  line-height: 1.1;
  letter-spacing: 0.04em;
  color: var(--paper);
}

.page-home .stat__label {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--mist);
}

.page-home .ruler {
  position: relative;
  margin-top: 42px;
  padding-top: 26px;
  border-top: 1px solid var(--home-hair);
}

.page-home .ruler__caption {
  margin: 0 0 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--mist);
}

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

.page-home .ruler__item {
  position: relative;
  padding-left: 26px;
}

.page-home .ruler__item::before {
  content: "";
  position: absolute;
  top: 26px;
  bottom: -26px;
  left: 6px;
  width: 1px;
  background: linear-gradient(180deg, rgba(123, 47, 247, 0.7), rgba(0, 229, 255, 0.25));
}

.page-home .ruler__item:last-child::before {
  display: none;
}

.page-home .ruler__year {
  display: block;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.page-home .ruler__dot {
  position: absolute;
  top: 22px;
  left: 1px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 3px rgba(123, 47, 247, 0.2);
}

.page-home .ruler__item--now .ruler__dot {
  background: var(--cta);
  box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.22);
}

.page-home .ruler__title {
  margin: 8px 0 8px;
  font-size: 18px;
  line-height: 1.35;
  color: var(--paper);
}

.page-home .ruler__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.72;
  color: rgba(242, 239, 230, 0.74);
}

.page-home .ruler__foot {
  margin: 26px 0 0;
  font-size: 14px;
  color: rgba(242, 239, 230, 0.66);
}

/* ---------- 家庭场景 ---------- */
.page-home .family__grid {
  display: grid;
  gap: 24px;
}

.page-home .family__note {
  padding: 20px;
  border: 1px solid var(--glass-line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
}

.page-home .family__note-k {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  color: var(--paper);
}

.page-home .family__note-t {
  margin: 0;
  font-size: 15px;
  line-height: 1.74;
  color: rgba(242, 239, 230, 0.76);
}

.page-home .regionband {
  position: relative;
  height: 108px;
  margin-top: 34px;
  border-radius: 18px;
  background-color: rgba(28, 31, 38, 0.7);
  background-image: radial-gradient(rgba(242, 239, 230, 0.22) 1px, transparent 1.4px);
  background-size: 22px 22px;
  overflow: hidden;
}

.page-home .regionband::after {
  content: "";
  position: absolute;
  inset: -40px;
  pointer-events: none;
  background:
    radial-gradient(closest-side, rgba(0, 229, 255, 0.5), transparent 72%) no-repeat 18% 42% / 220px 160px,
    radial-gradient(closest-side, rgba(123, 47, 247, 0.48), transparent 72%) no-repeat 58% 62% / 260px 180px,
    radial-gradient(closest-side, rgba(255, 107, 53, 0.4), transparent 72%) no-repeat 86% 34% / 180px 140px;
}

/* ---------- 收口 ---------- */
.page-home .closing {
  padding-top: 58px;
}

.page-home .closing__grid {
  display: grid;
  gap: 28px;
}

.page-home .closing__media {
  position: relative;
  order: -1;
  margin: 0;
  border: 1px solid var(--glass-line-soft);
  border-radius: 20px;
  overflow: hidden;
  background: radial-gradient(circle at 50% 45%, rgba(123, 47, 247, 0.42), rgba(11, 12, 16, 0.95) 72%);
}

.page-home .closing__media img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  opacity: 0.85;
}

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

.page-home .closing__actions .btn {
  min-height: 44px;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 15px;
  text-decoration: none;
}

.page-home .btn--cta {
  background: var(--cta);
  color: #1a0d05;
  border: 1px solid var(--cta);
  box-shadow: 0 14px 34px -18px rgba(255, 107, 53, 0.9);
}

.page-home .btn--cta:hover,
.page-home .btn--cta:focus-visible {
  filter: brightness(1.08);
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.page-home .btn--ghost {
  background: transparent;
  color: var(--paper);
  border: 1px solid var(--glass-line);
}

.page-home .btn--ghost:hover,
.page-home .btn--ghost:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.page-home .copybtn {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--glass-line);
  background: transparent;
  color: var(--mist);
  font-family: var(--font-sans);
  font-size: 12px;
  cursor: pointer;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.page-home .copybtn:hover,
.page-home .copybtn:focus-visible {
  color: var(--accent);
  border-color: var(--accent);
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ---------- 平板与桌面 ---------- */
@media (min-width: 760px) {
  .page-home .hero__frame {
    padding: 44px 34px 34px;
  }

  .page-home .paths__grid,
  .page-home .family__grid,
  .page-home .closing__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
  }

  .page-home .export__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center;
    gap: 40px;
  }

  .page-home .export__media {
    order: 0;
  }

  .page-home .closing__media {
    order: 0;
    justify-self: end;
    width: 100%;
    max-width: 380px;
  }

  .page-home .pathcard--phone {
    margin-left: 36px;
  }

  .page-home .export__compare {
    grid-template-columns: minmax(0, 1fr) minmax(0, 200px);
    align-items: center;
    gap: 26px;
  }

  .page-home .library__head {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: start;
    gap: 40px;
  }

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

  .page-home .ruler__item {
    padding-left: 0;
    padding-top: 34px;
  }

  .page-home .ruler__item::before {
    top: 12px;
    bottom: auto;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, rgba(123, 47, 247, 0.7), rgba(0, 229, 255, 0.28));
  }

  .page-home .ruler__dot {
    top: 7px;
    left: 0;
  }
}

@media (min-width: 1000px) {
  .page-home .hero__frame {
    padding: 56px 52px 42px;
  }

  .page-home .hero__grid {
    grid-template-columns: minmax(0, 1fr) 248px;
    align-items: end;
    gap: 52px;
  }

  .page-home .hero__rail {
    padding-bottom: 6px;
  }

  .page-home .section {
    padding-top: 72px;
  }

  .page-home .export {
    padding: 76px 0 70px;
  }

  .page-home .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .subcard__pulse {
    animation: none;
  }

  .page-home .pathcard,
  .page-home .subcard {
    transition: none;
  }
}
