.page-home {
  background: var(--cream);
  color: var(--brown);
  overflow-x: hidden;
}

/* ---------- 首屏 ---------- */
.page-home .home-hero {
  position: relative;
  padding: 44px 0 88px;
  background: linear-gradient(168deg, var(--ink) 0%, var(--abyss) 100%);
  color: var(--cream);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 36px), 0 100%);
  overflow: hidden;
}

.page-home .home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(90deg, rgba(23, 224, 200, 0.08) 0 1px, transparent 1px 96px),
    radial-gradient(110% 85% at 92% 6%, rgba(255, 122, 47, 0.18), transparent 62%);
  pointer-events: none;
}

.page-home .home-hero__inner {
  position: relative;
  display: grid;
  gap: 36px;
  align-items: center;
}

.page-home .home-hero__ctx {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: var(--fs-12);
  letter-spacing: 0.12em;
  color: var(--cyan);
}

.page-home .home-hero__brandmark {
  color: var(--cyan);
}

.page-home .home-hero__ver {
  color: var(--sand);
  letter-spacing: 0.06em;
}

.page-home .home-hero__dot {
  width: 6px;
  height: 6px;
  background: var(--orange);
  border-radius: 50%;
}

.page-home .home-hero__title {
  margin: 18px 0 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.6rem, 11vw, 6rem);
  line-height: 0.94;
  letter-spacing: -0.03em;
}

.page-home .home-hero__title-accent {
  color: var(--cyan);
}

.page-home .home-hero__lede {
  max-width: 32ch;
  margin: 22px 0 0;
  font-size: var(--fs-18);
  line-height: 1.7;
  color: rgba(246, 239, 227, 0.82);
}

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

.page-home .home-hero__actions .btn--ghost {
  color: var(--cream);
  background: transparent;
  border: 1px solid rgba(246, 239, 227, 0.4);
}

.page-home .home-hero__actions .btn--ghost:hover,
.page-home .home-hero__actions .btn--ghost:focus-visible {
  color: var(--ink);
  background: var(--cream);
  border-color: var(--cream);
}

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

.page-home .home-hero__frame {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid rgba(23, 224, 200, 0.34);
  background: rgba(6, 16, 25, 0.65);
}

.page-home .home-hero__frame::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 56px;
  height: 3px;
  background: var(--orange);
}

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

.page-home .home-hero__cap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: 0.08em;
  color: var(--sand);
}

/* ---------- 章节标题 ---------- */
.page-home .home-head {
  display: grid;
  gap: 12px;
  margin-bottom: 30px;
}

.page-home .home-head .eyebrow {
  color: var(--clay);
}

.page-home .home-head h2 {
  margin: 0;
  max-width: 24ch;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.6rem, 5vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.page-home .home-head__note {
  margin: 0;
  max-width: 52ch;
  font-size: var(--fs-16);
  line-height: 1.75;
  color: var(--slate);
}

.page-home .home-head--dark h2 {
  color: var(--cream);
}

.page-home .home-head--dark .eyebrow {
  color: var(--cyan);
}

.page-home .home-head--dark .home-head__note {
  color: rgba(246, 239, 227, 0.72);
}

/* ---------- 两条路径 Bento ---------- */
.page-home .home-paths {
  padding: 64px 0 16px;
}

.page-home .home-bento {
  display: grid;
  gap: 16px;
}

.page-home .home-bento__block {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px;
  border: 1px solid rgba(74, 90, 107, 0.28);
  background: var(--mint);
  color: var(--brown);
  transition: transform 0.22s var(--ease), border-color 0.22s var(--ease),
    box-shadow 0.22s var(--ease);
}

.page-home .home-bento__block:hover,
.page-home .home-bento__block:focus-within {
  transform: translateY(-4px);
  border-color: var(--cyan);
  box-shadow: 0 14px 28px rgba(11, 27, 43, 0.12);
}

.page-home .home-bento__label {
  margin: 0;
  font-family: var(--font-mono);
  font-size: var(--fs-12);
  letter-spacing: 0.1em;
  color: var(--clay);
}

.page-home .home-bento__block h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.15rem, 3vw, 1.5rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.page-home .home-bento__block p:not(.home-bento__label) {
  margin: 0;
  font-size: var(--fs-14);
  line-height: 1.75;
  color: var(--slate);
}

.page-home .home-bento__block--a {
  background: var(--ink);
  color: var(--cream);
  border-color: rgba(23, 224, 200, 0.3);
}

.page-home .home-bento__block--a .home-bento__label {
  color: var(--cyan);
}

.page-home .home-bento__block--a p:not(.home-bento__label) {
  color: rgba(246, 239, 227, 0.78);
}

.page-home .home-bento__block--d {
  background: var(--cream);
  border-left: 3px solid var(--sand);
}

.page-home .home-bento__block--e {
  background: var(--cream);
  border-left: 3px solid var(--clay);
}

.page-home .home-bento__media {
  margin: 4px 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid rgba(23, 224, 200, 0.26);
}

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

.page-home .home-bento__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--fs-12);
  letter-spacing: 0.04em;
  color: var(--sand);
}

.page-home .home-bento__facts strong {
  font-size: var(--fs-18);
  font-weight: 500;
  color: var(--cyan);
}

.page-home .home-bento__link {
  margin-top: auto;
  align-self: flex-start;
  font-size: var(--fs-14);
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.page-home .home-bento__block--a .home-bento__link {
  color: var(--cyan);
}

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

/* ---------- 本周更新 ---------- */
.page-home .home-week {
  margin-top: 72px;
  padding: 84px 0 72px;
  background: linear-gradient(160deg, var(--ink) 0%, var(--abyss) 100%);
  color: var(--cream);
  clip-path: polygon(0 42px, 100% 0, 100% 100%, 0 100%);
}

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

.page-home .home-week__col {
  padding-top: 16px;
  border-top: 2px solid rgba(246, 239, 227, 0.2);
}

.page-home .home-week__col[aria-current="true"] {
  border-top-color: var(--cyan);
}

.page-home .home-week__col-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: var(--fs-14);
  letter-spacing: 0.08em;
  font-weight: 500;
  color: var(--cream);
}

.page-home .home-week__col[aria-current="true"] .home-week__col-head .mono {
  color: var(--cyan);
}

.page-home .home-week__count {
  font-size: var(--fs-12);
  color: var(--sand);
}

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

.page-home .home-week__list li {
  position: relative;
  padding-left: 16px;
  font-size: var(--fs-14);
  line-height: 1.7;
  color: rgba(246, 239, 227, 0.82);
}

.page-home .home-week__list li::before {
  content: "";
  position: absolute;
  top: 0.68em;
  left: 0;
  width: 5px;
  height: 5px;
  background: var(--orange);
}

.page-home .home-week__more {
  display: inline-block;
  margin-top: 32px;
  padding-bottom: 3px;
  font-size: var(--fs-14);
  font-weight: 600;
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(23, 224, 200, 0.5);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

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

/* ---------- 老用户直达 ---------- */
.page-home .home-quick {
  padding: 72px 0 16px;
}

.page-home .home-quick__head {
  display: grid;
  gap: 24px;
  margin-bottom: 28px;
}

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

.page-home .home-quick__intro .eyebrow {
  color: var(--clay);
}

.page-home .home-quick__intro h2 {
  margin: 0;
  max-width: 22ch;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.6rem, 5vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.page-home .home-quick__note {
  margin: 0;
  max-width: 46ch;
  font-size: var(--fs-16);
  line-height: 1.75;
  color: var(--slate);
}

.page-home .home-quick__figure {
  margin: 0;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border: 1px solid rgba(74, 90, 107, 0.3);
  background: var(--ink);
}

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

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

.page-home .home-quick__card {
  display: grid;
  gap: 6px;
  padding: 18px 18px 20px;
  background: var(--mint);
  color: var(--brown);
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.2s var(--ease), background-color 0.2s var(--ease),
    color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.page-home .home-quick__card:hover,
.page-home .home-quick__card:focus-visible {
  transform: translateY(-4px);
  background: var(--ink);
  color: var(--cream);
  border-color: var(--cyan);
}

.page-home .home-quick__num {
  font-size: var(--fs-12);
  letter-spacing: 0.08em;
  color: var(--slate);
}

.page-home .home-quick__card:hover .home-quick__num,
.page-home .home-quick__card:focus-visible .home-quick__num {
  color: var(--cyan);
}

.page-home .home-quick__name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--fs-16);
  letter-spacing: -0.01em;
}

.page-home .home-quick__desc {
  font-size: var(--fs-14);
  line-height: 1.6;
  color: var(--slate);
}

.page-home .home-quick__card:hover .home-quick__desc,
.page-home .home-quick__card:focus-visible .home-quick__desc {
  color: rgba(246, 239, 227, 0.78);
}

/* ---------- 版本号 ---------- */
.page-home .home-version {
  padding: 72px 0 64px;
}

.page-home .home-version__inner {
  display: grid;
  gap: 30px;
  align-items: center;
}

.page-home .home-version__text {
  display: grid;
  gap: 14px;
}

.page-home .home-version__text .eyebrow {
  color: var(--clay);
}

.page-home .home-version__text h2 {
  margin: 0;
  max-width: 20ch;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.6rem, 5vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.page-home .home-version__text p {
  margin: 0;
  font-size: var(--fs-16);
  line-height: 1.8;
  color: var(--slate);
}

.page-home .home-version__inline {
  font-size: var(--fs-18);
  color: var(--ink);
  background: var(--mint);
  padding: 2px 8px;
  letter-spacing: 0.04em;
}

.page-home .home-version__pair {
  display: grid;
  gap: 10px;
  margin: 6px 0 0;
}

.page-home .home-version__pair > div {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  background: var(--mint);
  border-left: 3px solid var(--sand);
}

.page-home .home-version__pair dt {
  font-size: var(--fs-18);
  letter-spacing: 0.04em;
  color: var(--ink);
}

.page-home .home-version__pair dd {
  margin: 0;
  font-size: var(--fs-14);
  line-height: 1.7;
  color: var(--slate);
}

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

.page-home .home-version__figure {
  margin: 0;
  aspect-ratio: 8 / 5;
  overflow: hidden;
  border: 1px solid rgba(74, 90, 107, 0.3);
  background: var(--ink);
}

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

/* ---------- 收束 ---------- */
.page-home .home-help {
  padding: 0 0 64px;
}

.page-home .home-help__inner {
  display: grid;
  gap: 26px;
  padding: 34px 24px;
  background: var(--ink);
  color: var(--cream);
  border-left: 4px solid var(--orange);
}

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

.page-home .home-help__text .eyebrow {
  color: var(--cyan);
}

.page-home .home-help__text h2 {
  margin: 0;
  max-width: 24ch;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.4rem, 4.4vw, 2.1rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.page-home .home-help__text p {
  margin: 0;
  max-width: 52ch;
  font-size: var(--fs-16);
  line-height: 1.8;
  color: rgba(246, 239, 227, 0.78);
}

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

/* ---------- 响应式 ---------- */
@media (min-width: 720px) {
  .page-home .home-hero {
    padding: 56px 0 104px;
  }

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

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

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

  .page-home .home-help__inner {
    grid-template-columns: 1.4fr auto;
    align-items: center;
    padding: 40px 36px;
  }
}

@media (min-width: 960px) {
  .page-home .home-hero__inner {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 56px;
  }

  .page-home .home-quick__head {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    align-items: end;
    gap: 40px;
  }

  .page-home .home-version__inner {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 52px;
  }
}

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

  .page-home .home-bento__block--a {
    grid-column: span 4;
  }

  .page-home .home-bento__block--b {
    grid-column: span 2;
  }

  .page-home .home-bento__block--c,
  .page-home .home-bento__block--d,
  .page-home .home-bento__block--e {
    grid-column: span 2;
  }

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

@media (prefers-reduced-motion: reduce) {
  .page-home .home-bento__block,
  .page-home .home-quick__card,
  .page-home .home-bento__link,
  .page-home .home-week__more {
    transition: opacity 0.2s var(--ease);
  }

  .page-home .home-bento__block:hover,
  .page-home .home-bento__block:focus-within,
  .page-home .home-quick__card:hover,
  .page-home .home-quick__card:focus-visible {
    transform: none;
  }
}
