.page-home {
  background: var(--paper);
  color: var(--ink-800);
}

/* ---------- 首屏 ---------- */
.page-home .home-hero {
  position: relative;
  overflow: hidden;
  padding: 26px 0 44px;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(246, 201, 184, 0.62), rgba(246, 201, 184, 0) 62%),
    var(--paper);
}

.page-home .home-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 12px;
  background: linear-gradient(90deg, var(--orange), var(--orange-deep));
  clip-path: polygon(0 0, 100% 0, 100% 30%, 0 100%);
}

.page-home .home-hero__ridge {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 120px;
  color: var(--stone-400);
  opacity: 0.42;
  pointer-events: none;
}

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

.page-home .home-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--stone-400);
}

.page-home .home-crumbs [aria-current="page"] {
  color: var(--orange-deep);
}

.page-home .home-hero__main h1 {
  margin: 14px 0 0;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(28px, 7.2vw, 56px);
  line-height: 1.12;
  letter-spacing: -0.012em;
  color: var(--ink-900);
}

.page-home .home-hero__main .lead {
  margin: 18px 0 0;
  max-width: 34em;
  font-size: 16px;
  line-height: 1.78;
  color: var(--stone-600);
}

.page-home .home-hero__facts {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 0;
  margin: 24px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--rule);
}

.page-home .home-hero__facts li {
  padding: 0 14px;
  border-left: 1px solid var(--rule);
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--stone-600);
}

.page-home .home-hero__facts li:first-child {
  padding-left: 0;
  border-left: 0;
}

.page-home .home-hero__facts strong {
  display: block;
  margin-bottom: 2px;
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 500;
  color: var(--ink-900);
}

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

/* ---------- 浮动帮助卡片 ---------- */
.page-home .help-card {
  position: relative;
  padding: 16px;
  background: var(--paper-white);
  border: 1px solid var(--rule);
  clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 26px, 100% 100%, 0 100%);
  filter: drop-shadow(0 20px 26px rgba(20, 40, 63, 0.16));
}

.page-home .help-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.page-home .help-card__tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--orange-deep);
}

.page-home .help-card__media {
  margin: 14px 0 0;
}

.page-home .help-card__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--rule);
  background: var(--paper);
}

.page-home .help-card__title {
  margin: 14px 0 0;
  font-size: 18px;
  line-height: 1.4;
  font-weight: 700;
  color: var(--ink-900);
}

.page-home .help-card__links {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
}

.page-home .help-card__links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 2px;
  border-bottom: 1px dashed var(--rule);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-900);
  text-decoration: none;
  transition: color 0.18s var(--ease);
}

.page-home .help-card__links li:last-child a {
  border-bottom: 0;
}

.page-home .help-card__links a::after {
  content: "→";
  font-family: var(--font-mono);
  color: var(--orange);
  transition: transform 0.18s var(--ease);
}

.page-home .help-card__links a:hover,
.page-home .help-card__links a:focus-visible {
  color: var(--orange-deep);
}

.page-home .help-card__links a:hover::after,
.page-home .help-card__links a:focus-visible::after {
  transform: translateX(4px);
}

.page-home .help-card__foot {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 12px 0 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--stone-600);
}

.page-home .help-card__dot {
  flex: none;
  width: 7px;
  height: 7px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--green);
}

/* ---------- 通用区块 ---------- */
.page-home .home-section {
  padding: 44px 0;
}

.page-home .sec-head {
  display: grid;
  gap: 10px;
  margin-bottom: 26px;
}

.page-home .sec-head h2 {
  margin: 0;
  font-size: clamp(23px, 4.6vw, 36px);
  line-height: 1.22;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink-900);
}

.page-home .sec-head p {
  margin: 0;
  max-width: 46em;
  font-size: 15px;
  line-height: 1.78;
  color: var(--stone-600);
}

.page-home .home-more {
  margin: 24px 0 0;
}

/* ---------- 版本维护带 ---------- */
.page-home .home-versions {
  background: var(--paper-white);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.page-home .filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
}

.page-home .filter-bar .chip {
  padding: 7px 14px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--paper);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-800);
  cursor: pointer;
  transition: background 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.page-home .filter-bar .chip:hover {
  border-color: var(--orange);
  color: var(--orange-deep);
}

.page-home .filter-bar .chip[aria-pressed="true"],
.page-home .filter-bar .chip.is-active {
  background: var(--orange-soft);
  border-color: var(--orange);
  color: var(--orange-deep);
}

.page-home .filter-count {
  margin-left: auto;
  font-size: 12px;
  color: var(--stone-600);
}

.page-home .vband {
  position: relative;
  display: grid;
  border-top: 2px solid var(--ink-900);
}

.page-home .vband__item {
  position: relative;
  padding: 26px 0 20px;
  border-bottom: 1px solid var(--rule);
}

.page-home .vband__item::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 4px var(--paper-white);
}

.page-home .vband__item.is-filtered {
  display: none;
}

.page-home .vband__stage {
  margin: 0 0 8px;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--orange-deep);
}

.page-home .vband__title {
  margin: 0;
  font-size: 19px;
  line-height: 1.4;
  font-weight: 700;
  color: var(--ink-900);
}

.page-home .vband__text {
  margin: 8px 0 0;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--stone-600);
}

.page-home .vband__media {
  margin: 28px 0 0;
}

.page-home .vband__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 2;
  object-fit: cover;
  border: 1px solid var(--rule);
  background: var(--paper);
}

.page-home .vband__media figcaption {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--stone-400);
}

/* ---------- Bento 工具板 ---------- */
.page-home .bento {
  display: grid;
  gap: 16px;
}

.page-home .bento__cell {
  position: relative;
  padding: 20px;
  background: var(--paper-white);
  border: 1px solid var(--rule);
}

.page-home .bento__cell--tools {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 26px), calc(100% - 26px) 100%, 0 100%);
}

.page-home .bento__cell--version {
  background: var(--ink-900);
  border-color: var(--ink-900);
  color: var(--paper-white);
}

.page-home .bento__title {
  margin: 0;
  font-size: 18px;
  line-height: 1.4;
  font-weight: 700;
  color: var(--ink-900);
}

.page-home .bento__cell--version .bento__title {
  color: var(--paper-white);
}

.page-home .bento__text {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.78;
  color: var(--stone-600);
}

.page-home .bento__cell--version .bento__text {
  color: rgba(252, 250, 244, 0.78);
}

.page-home .bento__badge {
  margin: 16px 0 0;
}

.page-home .bento__cell--version .badge-version {
  border-color: var(--orange);
  color: var(--orange-soft);
}

.page-home .tools-media {
  margin: 16px 0 0;
}

.page-home .tools-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border: 1px solid var(--rule);
  background: var(--paper);
}

.page-home .toolgrid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
}

.page-home .tool {
  display: block;
  padding: 11px 12px;
  border: 1px solid var(--rule);
  background: var(--paper);
  text-decoration: none;
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease);
}

.page-home .tool:hover,
.page-home .tool:focus-visible {
  border-color: var(--orange);
  background: #ffffff;
}

.page-home .tool__name {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-900);
}

.page-home .tool__ver {
  display: block;
  margin-top: 4px;
  font-size: 10.5px;
  color: var(--orange-deep);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease);
}

.page-home .tool:hover .tool__ver,
.page-home .tool:focus-visible .tool__ver {
  opacity: 1;
  transform: none;
}

.page-home .scene-list {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.page-home .scene-list li {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 8px;
  align-items: baseline;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rule);
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-800);
}

.page-home .scene-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.page-home .scene-list .mono {
  font-size: 11.5px;
  color: var(--orange);
}

.page-home .note-line {
  margin: 14px 0 0;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--stone-400);
}

.page-home .bento__cell--local {
  display: grid;
  gap: 12px;
}

.page-home .home-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 4px 0 0;
  padding: 0;
}

.page-home .home-links a {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-700);
  text-decoration: none;
  border-bottom: 1px solid var(--orange-soft);
  padding-bottom: 2px;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.page-home .home-links a:hover,
.page-home .home-links a:focus-visible {
  color: var(--orange-deep);
  border-color: var(--orange);
}

/* ---------- 信任区 ---------- */
.page-home .why {
  background: var(--paper);
  border-top: 1px solid var(--rule);
}

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

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

.page-home .stat {
  padding: 6px 0 6px 14px;
  border-left: 2px solid var(--orange);
}

.page-home .stat__num {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(26px, 5.4vw, 38px);
  font-weight: 500;
  line-height: 1.1;
  color: var(--ink-900);
}

.page-home .stat__num small {
  margin-left: 2px;
  font-size: 0.42em;
  font-weight: 500;
  color: var(--orange-deep);
}

.page-home .stat__label {
  display: block;
  margin-top: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-800);
}

.page-home .stat__note {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--stone-600);
}

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

.page-home .trust-list li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.78;
  color: var(--stone-600);
}

.page-home .trust-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.66em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
}

/* ---------- 山形收束与联系条 ---------- */
.page-home .ridge-band {
  margin: 0;
  overflow: hidden;
  background: var(--paper);
  line-height: 0;
}

.page-home .ridge-band img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 180px;
  object-fit: cover;
  opacity: 0.55;
}

.page-home .home-contact {
  background: var(--ink-900);
  color: var(--paper-white);
}

.page-home .home-contact__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.page-home .home-contact p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(252, 250, 244, 0.92);
}

/* ---------- 进入动画 ---------- */
.page-home [data-reveal] {
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}

.js-ready .page-home [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
}

.js-ready .page-home [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* ---------- 平板与桌面 ---------- */
@media (min-width: 640px) {
  .page-home .toolgrid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (min-width: 900px) {
  .page-home .home-hero {
    padding: 52px 0 78px;
  }

  .page-home .home-hero::before {
    top: -90px;
    left: auto;
    right: -8%;
    width: 54%;
    height: 580px;
    clip-path: polygon(40% 0, 100% 0, 100% 100%, 0 84%);
    opacity: 0.95;
  }

  .page-home .home-hero__ridge {
    height: 220px;
  }

  .page-home .home-hero__inner {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: var(--gap);
    align-items: start;
  }

  .page-home .home-hero__main {
    grid-column: span 8;
    padding-top: 18px;
  }

  .page-home .help-card {
    grid-column: span 4;
    margin-top: 6px;
  }

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

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

  .page-home .vband__item {
    padding: 24px 24px 8px;
    border-bottom: 0;
    border-left: 1px solid var(--rule);
  }

  .page-home .vband__item::before {
    left: 24px;
  }

  .page-home .vband__item:first-child {
    padding-left: 0;
    border-left: 0;
  }

  .page-home .vband__item:first-child::before {
    left: 0;
  }

  .page-home .bento {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: start;
  }

  .page-home .bento__cell--tools {
    grid-column: span 7;
    grid-row: span 2;
  }

  .page-home .bento__cell--scenes {
    grid-column: span 5;
  }

  .page-home .bento__cell--version {
    grid-column: span 5;
  }

  .page-home .bento__cell--local {
    grid-column: span 12;
    grid-template-columns: 1.1fr 1fr;
    align-items: center;
    column-gap: 36px;
  }

  .page-home .bento__cell--local .home-links {
    grid-column: 1 / -1;
  }

  .page-home .why__grid {
    grid-template-columns: 1.5fr 0.9fr;
    gap: 56px;
    align-items: start;
  }

  .page-home .stats {
    gap: 0;
  }

  .page-home .stat {
    padding-left: 16px;
  }
}

@media (min-width: 1200px) {
  .page-home .toolgrid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ---------- 触屏与减少动效 ---------- */
@media (hover: none) {
  .page-home .tool__ver {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home *,
  .page-home *::before,
  .page-home *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .js-ready .page-home [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .page-home .tool__ver {
    transform: none;
  }
}
