/* ================= 首页专属样式（page-home） ================= */

.page-home {
  background: linear-gradient(180deg, var(--ink) 0%, var(--ink-deep) 100%);
  overflow-x: hidden;
}

/* ---------- 首屏 ---------- */
.page-home .hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 34px 0 190px;
  border-bottom: 2px solid var(--edge);
}

.page-home .hero::before {
  content: "";
  position: absolute;
  inset: 0 -14% 0 24%;
  z-index: -2;
  background: conic-gradient(from 200deg,
      var(--magenta) 0 60deg,
      var(--cobalt) 60deg 120deg,
      var(--lime) 120deg 180deg,
      var(--amber) 180deg 240deg,
      var(--cyan) 240deg 300deg,
      var(--wine) 300deg 360deg);
  clip-path: polygon(36% 0, 100% 0, 100% 100%, 0 100%);
  opacity: .16;
}

.page-home .hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(130% 95% at 10% 18%, rgba(11, 16, 48, .18) 0%, rgba(5, 6, 15, .95) 66%);
}

.page-home .hero__inner {
  position: relative;
  z-index: 2;
}

.page-home .hero__ctx {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--graphite);
}

.page-home .hero__ctx .mono {
  padding: 3px 9px;
  border: 1px solid var(--edge-strong);
  background: rgba(255, 46, 136, .12);
  color: var(--fog);
  font-size: 11px;
  letter-spacing: .12em;
}

.page-home .hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(38px, 11.5vw, 76px);
  line-height: 1.02;
  letter-spacing: -.015em;
  color: var(--fog);
  transform: rotate(-2.6deg);
  transform-origin: 8% 60%;
  text-shadow: 3px 3px 0 rgba(255, 46, 136, .42);
}

.page-home .hero__title em {
  font-style: normal;
  color: transparent;
  -webkit-text-stroke: 2px var(--fog);
}

.page-home .hero__lead {
  max-width: 30em;
  margin: 22px 0 0;
  font-size: 16px;
  line-height: 1.75;
  color: var(--graphite);
}

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

.page-home .hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.page-home .hero__facts li {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
}

.page-home .hero__facts .num {
  font-size: 22px;
  font-weight: 700;
  color: var(--fog);
  padding: 2px 8px;
  border: 1px solid var(--edge);
  background: rgba(22, 217, 227, .1);
}

.page-home .hero__facts .lbl {
  font-size: 13px;
  color: var(--graphite);
}

.page-home .hero__cube {
  position: absolute;
  right: -18%;
  bottom: -6%;
  z-index: 0;
  width: 62%;
  max-width: 380px;
  opacity: .42;
  animation: home-float 8s ease-in-out infinite;
}

.page-home .hero__cube img {
  display: block;
  width: 100%;
  height: auto;
}

@keyframes home-float {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-2deg); }
  50% { transform: translate3d(0, -16px, 0) rotate(4deg); }
}

/* ---------- 通用区块头 ---------- */
.page-home .section__head {
  margin: 10px 0 26px;
  max-width: 44em;
}

.page-home .section__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(26px, 6.4vw, 40px);
  line-height: 1.14;
  letter-spacing: -.01em;
  color: var(--fog);
  transform: rotate(-1.4deg);
  transform-origin: 4% 60%;
}

.page-home .section__sub {
  margin: 14px 0 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--graphite);
  max-width: 40em;
}

/* ---------- 六面入口 ---------- */
.page-home .section--faces {
  background: linear-gradient(180deg, rgba(20, 22, 31, 0) 0%, rgba(20, 22, 31, .55) 40%, rgba(20, 22, 31, 0) 100%);
}

.page-home .faces {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.page-home .face {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 18px 24px;
  border: 2px solid var(--face);
  background: var(--panel);
  color: var(--fog);
  text-decoration: none;
  box-shadow: 6px 6px 0 0 rgba(0, 0, 0, .55), 10px 10px 0 -2px var(--face);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}

.page-home .face:hover,
.page-home .face:focus-visible {
  transform: translate(-3px, -3px);
  box-shadow: 9px 9px 0 0 rgba(0, 0, 0, .55), 15px 15px 0 -2px var(--face);
}

.page-home .face__idx {
  display: inline-block;
  width: fit-content;
  padding: 2px 8px;
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--ink);
  background: var(--face);
}

.page-home .face__name {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--fog);
}

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

.page-home .face--magenta { --face: var(--magenta); }
.page-home .face--cobalt { --face: var(--cobalt); }
.page-home .face--lime { --face: var(--lime); }
.page-home .face--amber { --face: var(--amber); }
.page-home .face--cyan { --face: var(--cyan); }
.page-home .face--wine { --face: var(--wine); }

/* ---------- 试玩 ---------- */
.page-home .tryout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}

.page-home .tryout__text p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--graphite);
  margin: 16px 0 0;
}

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

.page-home .checks li {
  position: relative;
  padding-left: 26px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--fog);
}

.page-home .checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 12px;
  height: 12px;
  background: var(--lime);
  box-shadow: 3px 3px 0 0 rgba(0, 0, 0, .55);
}

.page-home .tryout__note {
  padding: 14px 16px;
  border-left: 4px solid var(--lime);
  background: rgba(79, 240, 138, .08);
  font-size: 14px !important;
  color: var(--graphite);
}

.page-home .tryout .btn {
  margin-top: 24px;
}

.page-home .media-frame--tall {
  margin: 0;
}

.page-home .media-frame--tall .media-frame__img {
  width: 100%;
  max-width: 340px;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* ---------- 下载 ---------- */
.page-home .section--download {
  border-top: 2px solid var(--edge);
  border-bottom: 2px solid var(--edge);
  background: linear-gradient(160deg, rgba(43, 91, 255, .14) 0%, rgba(20, 22, 31, .9) 62%);
}

.page-home .dl {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.page-home .dl__head p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--graphite);
  margin: 16px 0 0;
  max-width: 36em;
}

.page-home .dl__head .btn {
  margin-top: 24px;
}

.page-home .specs {
  margin: 0;
  border: 2px solid var(--cobalt);
  background: var(--panel);
  box-shadow: var(--shadow-hard);
}

.page-home .specs__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--edge-soft);
}

.page-home .specs__row:last-child {
  border-bottom: 0;
}

.page-home .specs__row dt {
  font-size: 14px;
  color: var(--graphite);
}

.page-home .specs__row dd {
  margin: 0;
  font-size: 15px;
  color: var(--fog);
  text-align: right;
}

/* ---------- 换机 ---------- */
.page-home .steps {
  margin: 0 0 34px;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  counter-reset: step;
}

.page-home .step {
  position: relative;
  padding: 20px 18px 22px;
  background: var(--panel-2);
  border: 2px solid var(--edge);
  border-top: 4px solid var(--amber);
}

.page-home .step__num {
  display: inline-block;
  margin-bottom: 10px;
  padding: 2px 8px;
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--ink);
  background: var(--amber);
}

.page-home .step h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
  color: var(--fog);
}

.page-home .step p {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--graphite);
}

.page-home .switch__fig {
  margin: 0;
}

.page-home .switch__fig .media-frame__img {
  width: 100%;
  height: auto;
  display: block;
}

/* ---------- 维护动态 ---------- */
.page-home .updates {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.page-home .update {
  position: relative;
  padding: 22px 18px 24px;
  border: 2px solid var(--edge);
  border-left: 6px solid var(--upd, var(--cyan));
  background: var(--panel);
}

.page-home .update--cyan { --upd: var(--cyan); }
.page-home .update--amber { --upd: var(--amber); }
.page-home .update--lime { --upd: var(--lime); }

.page-home .update__tag {
  display: inline-block;
  margin-bottom: 12px;
  padding: 3px 9px;
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--ink);
  background: var(--upd, var(--cyan));
}

.page-home .update h3 {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 700;
  color: var(--fog);
}

.page-home .update p {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--graphite);
}

.page-home .link-more {
  display: inline-block;
  margin-top: 24px;
  font-size: 15px;
  font-weight: 600;
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 2px solid var(--cyan);
  padding-bottom: 2px;
}

.page-home .link-more:hover {
  color: var(--fog);
  border-color: var(--fog);
}

/* ---------- 帮助文档 ---------- */
.page-home .section--help {
  background: linear-gradient(200deg, rgba(122, 31, 75, .22) 0%, rgba(10, 13, 32, .96) 58%);
  border-top: 2px solid var(--edge);
}

.page-home .help {
  display: grid;
  grid-template-columns: 1fr;
  gap: 34px;
}

.page-home .help__aside .media-frame {
  margin: 0 0 22px;
}

.page-home .help__aside .media-frame__img {
  width: 100%;
  height: auto;
  display: block;
}

.page-home .help__aside > p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--graphite);
  margin: 16px 0 0;
  max-width: 34em;
}

.page-home .help__aside .btn {
  margin-top: 24px;
}

.page-home .help__list {
  display: grid;
  gap: 12px;
  align-content: start;
}

.page-home .qa {
  border: 2px solid var(--edge);
  background: rgba(20, 22, 31, .82);
  transition: border-color .2s var(--ease);
}

.page-home .qa[open] {
  border-color: var(--cyan);
}

.page-home .qa__q {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  cursor: pointer;
  list-style: none;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--fog);
}

.page-home .qa__q::-webkit-details-marker {
  display: none;
}

.page-home .qa__dot {
  flex: none;
  width: 10px;
  height: 10px;
  margin-top: .48em;
  background: var(--cyan);
  box-shadow: 2px 2px 0 0 rgba(0, 0, 0, .55);
  transition: transform .2s var(--ease);
}

.page-home .qa[open] .qa__dot {
  transform: rotate(45deg);
  background: var(--amber);
}

.page-home .qa__a {
  padding: 0 18px 18px 40px;
  animation: home-open .26s var(--ease);
}

.page-home .qa__a p {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--graphite);
}

@keyframes home-open {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.page-home .help__more {
  margin: 6px 0 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--graphite);
}

/* ---------- 下一步 ---------- */
.page-home .section--paths {
  border-top: 2px solid var(--edge);
}

.page-home .paths {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.page-home .path {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px 20px 26px;
  text-decoration: none;
  background: var(--panel);
  border: 2px solid var(--path, var(--magenta));
  box-shadow: var(--shadow-hard-sm);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}

.page-home .path:hover,
.page-home .path:focus-visible {
  transform: translate(-3px, -3px);
  box-shadow: 9px 9px 0 0 rgba(0, 0, 0, .55);
}

.page-home .path--magenta { --path: var(--magenta); }
.page-home .path--cobalt { --path: var(--cobalt); }
.page-home .path--wine { --path: var(--wine); }

.page-home .path__num {
  width: fit-content;
  padding: 2px 8px;
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--ink);
  background: var(--path, var(--magenta));
}

.page-home .path__name {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
  color: var(--fog);
}

.page-home .path__desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--graphite);
}

.page-home .path__go {
  margin-top: auto;
  padding-top: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--path, var(--magenta));
}

.page-home .paths__foot {
  margin: 26px 0 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--graphite);
}

.page-home .paths__foot a {
  color: var(--amber);
  text-decoration: none;
  border-bottom: 2px solid var(--amber);
}

.page-home .paths__foot a:hover {
  color: var(--fog);
  border-color: var(--fog);
}

/* ---------- 平板 ---------- */
@media (min-width: 640px) {
  .page-home .hero {
    padding: 46px 0 120px;
  }

  .page-home .hero__cube {
    right: -8%;
    bottom: -10%;
    width: 50%;
    max-width: 420px;
    opacity: .6;
  }

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

  .page-home .face:first-child {
    grid-column: span 2;
  }

  .page-home .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-home .updates {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-home .updates .update:first-child {
    grid-column: span 2;
  }

  .page-home .paths {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------- 桌面 ---------- */
@media (min-width: 1000px) {
  .page-home .hero {
    padding: 64px 0 140px;
    min-height: 560px;
    display: flex;
    align-items: center;
  }

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

  .page-home .hero__title {
    max-width: 12em;
  }

  .page-home .hero__capture-hint,
  .page-home .hero__lead {
    max-width: 34em;
  }

  .page-home .hero__cube {
    right: 4%;
    bottom: -14%;
    width: 38%;
    max-width: 460px;
    opacity: .92;
    filter: drop-shadow(0 0 46px rgba(255, 46, 136, .32));
  }

  .page-home .faces {
    grid-template-columns: repeat(6, 1fr);
    gap: 18px;
  }

  .page-home .face,
  .page-home .face:first-child {
    grid-column: span 2;
  }

  .page-home .face:nth-child(1),
  .page-home .face:nth-child(2) {
    grid-column: span 3;
  }

  .page-home .tryout {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    gap: 62px;
  }

  .page-home .tryout__media {
    transform: translateY(-22px);
  }

  .page-home .media-frame--tall .media-frame__img {
    max-width: 380px;
    margin: 0;
  }

  .page-home .dl {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: 58px;
    align-items: center;
  }

  .page-home .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-bottom: 42px;
  }

  .page-home .step:nth-child(2) {
    transform: translateY(-14px);
  }

  .page-home .step:nth-child(3) {
    transform: translateY(6px);
  }

  .page-home .updates {
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
  }

  .page-home .updates .update {
    grid-column: span 4;
  }

  .page-home .updates .update:first-child {
    grid-column: span 12;
    padding-right: 30%;
  }

  .page-home .help {
    grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
    gap: 58px;
    align-items: start;
  }

  .page-home .paths {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .page-home .path:nth-child(2) {
    transform: translateY(-12px);
  }
}

/* ---------- 大屏 ---------- */
@media (min-width: 1280px) {
  .page-home .hero__title {
    font-size: 78px;
  }
}

/* ---------- 减少动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  .page-home .hero__cube {
    animation: none;
  }

  .page-home .qa__a {
    animation: none;
  }

  .page-home .face,
  .page-home .path,
  .page-home .qa__dot {
    transition: none;
  }
}
