.page-home {
  --home-gap: clamp(0.9rem, 2.2vw, 1.5rem);
  --home-ink-soft: rgba(247, 245, 239, 0.78);
  display: block;
  overflow-x: hidden;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-sans);
}

/* ---------- 首屏：对角错位双色块 ---------- */
.page-home .hero {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--navy);
  border-bottom: 2px solid var(--navy);
}

.page-home .hero__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.85rem;
  padding: clamp(2rem, 8vw, 4.5rem) var(--pad);
  background: linear-gradient(148deg, var(--royal) 0%, #1a2f70 52%, var(--navy) 100%);
  color: var(--white);
}

.page-home .hero__panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.05) 0 2px, transparent 2px 10px);
  pointer-events: none;
}

.page-home .hero__panel > * {
  position: relative;
  z-index: 1;
}

.page-home .hero__ctx {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-hi);
}

.page-home .hero__title {
  margin: 0;
  max-width: 12em;
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: clamp(1.9rem, 7vw, 3.4rem);
  line-height: 1.16;
  letter-spacing: -0.01em;
}

.page-home .hero__title::after {
  content: "";
  display: block;
  width: 92px;
  height: 6px;
  margin-top: 1.1rem;
  background: linear-gradient(90deg, var(--gold) 0 58%, var(--magenta) 58% 80%, var(--teal) 80% 100%);
}

.page-home .hero__lede {
  margin: 0;
  max-width: 34em;
  font-size: clamp(0.98rem, 2.4vw, 1.08rem);
  line-height: 1.82;
  color: rgba(247, 245, 239, 0.9);
}

.page-home .hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 0.9rem;
  margin: 0.35rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  color: var(--home-ink-soft);
}

.page-home .hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.page-home .hero__actions .btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: var(--gold);
  box-shadow: 4px 4px 0 var(--gold);
}

.page-home .hero__actions .btn--ghost:hover {
  background: rgba(201, 162, 39, 0.16);
}

.page-home .hero__media {
  margin: 0;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: var(--navy);
}

.page-home .hero__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.95) contrast(1.06);
}

@media (min-width: 880px) {
  .page-home .hero {
    grid-template-columns: 1.15fr 1fr;
    min-height: 540px;
    align-items: stretch;
  }

  .page-home .hero__panel {
    clip-path: polygon(0 0, 100% 0, 86% 100%, 0 100%);
    padding-right: clamp(3.5rem, 9vw, 8rem);
  }

  .page-home .hero__media {
    aspect-ratio: auto;
    height: 100%;
    margin-left: -7%;
    clip-path: polygon(12% 0, 100% 0, 100% 100%, 0 100%);
  }
}

/* ---------- 全宽横条 ---------- */
.page-home .strip {
  display: block;
  margin: 0;
  border-block: 2px solid var(--navy);
  background: var(--navy);
  line-height: 0;
}

.page-home .strip img {
  display: block;
  width: 100%;
  height: clamp(140px, 20vw, 240px);
  object-fit: cover;
}

.page-home .strip--thin img {
  height: clamp(110px, 15vw, 180px);
}

/* ---------- 常规区块 ---------- */
.page-home .section {
  width: min(100% - var(--pad) * 2, 1240px);
  margin-inline: auto;
  padding-block: clamp(2.5rem, 7vw, 5rem);
}

.page-home .section__head {
  max-width: 62ch;
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

.page-home .section__head h2 {
  margin: 0.45rem 0 0.7rem;
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: clamp(1.45rem, 3.8vw, 2.35rem);
  line-height: 1.24;
}

.page-home .section__lede {
  margin: 0 0 1.4rem;
  max-width: 62ch;
  font-size: 1rem;
  line-height: 1.82;
  color: var(--gray);
}

.page-home .section__head .section__lede {
  margin-bottom: 0;
}

/* ---------- Bento 分类网格 ---------- */
.page-home .bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--home-gap);
}

.page-home .bento__cell {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-height: 138px;
  padding: 1.2rem 1.15rem 1.1rem;
  background: var(--white);
  border: var(--line);
  box-shadow: var(--shadow);
  color: var(--ink);
  text-decoration: none;
  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
}

.page-home .bento__cell:hover,
.page-home .bento__cell:focus-visible {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.page-home .bento__cell--focus {
  min-height: 230px;
  background: linear-gradient(155deg, var(--royal) 0%, var(--navy) 100%);
  color: var(--white);
  justify-content: center;
}

.page-home .bento__idx {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--gold);
}

.page-home .bento__name {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: 1.12rem;
  line-height: 1.32;
}

.page-home .bento__cell--focus .bento__name {
  font-size: clamp(1.5rem, 4.5vw, 2.1rem);
}

.page-home .bento__tag {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.71rem;
  letter-spacing: 0.09em;
  color: var(--magenta);
}

.page-home .bento__cell--focus .bento__tag {
  color: var(--gold-hi);
  font-size: 0.82rem;
}

.page-home .bento__count {
  margin-top: auto;
  padding-top: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.73rem;
  color: var(--gray);
}

.page-home .bento__cell--focus .bento__count {
  color: var(--home-ink-soft);
}

@media (min-width: 720px) {
  .page-home .bento {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-home .bento__cell--focus {
    grid-column: span 2;
  }
}

@media (min-width: 1040px) {
  .page-home .bento {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(146px, auto);
    grid-auto-flow: dense;
  }

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

  .page-home .bento__cell:last-child {
    grid-column: span 2;
  }
}

/* ---------- 手机端直达路径 ---------- */
.page-home .mobile-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 4vw, 2.5rem);
}

.page-home .mobile-split__media {
  margin: 0;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  max-height: 520px;
  border: var(--line);
  box-shadow: var(--shadow-gold);
  background: var(--navy);
}

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

.page-home .mobile-split__body h2 {
  margin: 0.45rem 0 0.75rem;
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: clamp(1.45rem, 3.8vw, 2.2rem);
  line-height: 1.26;
}

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

.page-home .steps__item {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 0.9rem;
  align-items: start;
  padding: 1rem 1.1rem;
  background: var(--white);
  border: var(--line);
  border-left: 8px solid var(--gold);
  box-shadow: 3px 3px 0 var(--navy);
}

.page-home .steps__no {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: 1.7rem;
  line-height: 1;
  color: var(--royal);
}

.page-home .steps__title {
  margin: 0 0 0.25rem;
  font-family: var(--font-serif);
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.35;
}

.page-home .steps__item p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.72;
  color: var(--gray);
}

.page-home .mobile-tabs {
  margin-top: 1.4rem;
}

.page-home .mobile-tabs .tabs__panel {
  padding: 1rem 1.1rem 1.1rem;
  background: var(--white);
  border: var(--line);
  border-top: none;
}

.page-home .mobile-tabs .tabs__panel p {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.78;
  color: var(--gray);
}

@media (min-width: 880px) {
  .page-home .mobile-split {
    grid-template-columns: 0.85fr 1.15fr;
    align-items: start;
    gap: clamp(1.75rem, 4.5vw, 3.5rem);
  }

  .page-home .mobile-split__media {
    position: sticky;
    top: 96px;
    max-height: none;
  }
}

/* ---------- 变更记录 ---------- */
.page-home .changelog {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  counter-reset: issue 27;
}

.page-home .changelog__item {
  counter-increment: issue -1;
}

.page-home .changelog__details {
  background: var(--white);
  border: var(--line);
  box-shadow: var(--shadow);
}

.page-home .changelog__summary {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 0.9rem;
  padding: 1.05rem 1.15rem;
  cursor: pointer;
  list-style: none;
}

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

.page-home .changelog__no {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: clamp(1.6rem, 4.5vw, 2.3rem);
  line-height: 1;
  color: var(--royal);
  letter-spacing: -0.02em;
}

.page-home .changelog__no::before {
  content: counter(issue);
}

.page-home .changelog__title {
  flex: 1 1 12ch;
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1.4;
}

.page-home .changelog__body {
  border-top: 2px solid var(--gold);
  padding: 0.95rem 1.15rem 1.15rem;
}

.page-home .changelog__body p {
  margin: 0 0 0.6rem;
  font-size: 0.94rem;
  line-height: 1.78;
  color: var(--gray);
}

.page-home .changelog__body p:last-child {
  margin-bottom: 0;
}

.page-home .changelog__affects {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem;
}

.page-home .changelog__label {
  flex: 0 0 auto;
  padding: 0.15rem 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--white);
  background: var(--navy);
}

/* ---------- 新用户适配清单 ---------- */
.page-home .checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--navy);
  border: var(--line);
}

.page-home .checklist__item {
  background: var(--ivory);
}

.page-home .checklist__link {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  height: 100%;
  padding: 1.2rem 1.15rem 1.3rem;
  color: inherit;
  text-decoration: none;
  transition: background var(--t-fast) var(--ease);
}

.page-home .checklist__link:hover,
.page-home .checklist__link:focus-visible {
  background: var(--white);
}

.page-home .checklist__no {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--gold);
}

.page-home .checklist__title {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: 1.06rem;
  line-height: 1.35;
}

.page-home .checklist__desc {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--gray);
}

.page-home .checklist__foot {
  margin: 1.75rem 0 0;
}

@media (min-width: 700px) {
  .page-home .checklist {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1040px) {
  .page-home .checklist {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------- 反馈与纠错 ---------- */
.page-home .feedback {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 4vw, 2.5rem);
}

.page-home .feedback__body h2 {
  margin: 0.45rem 0 0.8rem;
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: clamp(1.45rem, 3.8vw, 2.15rem);
  line-height: 1.26;
}

.page-home .feedback__body p {
  margin: 0 0 1rem;
  max-width: 58ch;
  font-size: 0.98rem;
  line-height: 1.82;
  color: var(--gray);
}

.page-home .feedback__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.page-home .feedback__card {
  padding: 1.5rem 1.4rem;
  background: var(--navy);
  color: var(--white);
  border: var(--line);
  box-shadow: var(--shadow-gold);
}

.page-home .feedback__card h3 {
  margin: 0 0 1rem;
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: 1.08rem;
  color: var(--gold-hi);
}

.page-home .feedback__card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.page-home .feedback__card a {
  display: block;
  padding: 0.75rem 0.85rem;
  font-size: 0.94rem;
  color: var(--white);
  text-decoration: none;
  border: 2px solid rgba(201, 162, 39, 0.5);
  transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}

.page-home .feedback__card a:hover,
.page-home .feedback__card a:focus-visible {
  background: var(--royal);
  border-color: var(--gold);
}

@media (min-width: 880px) {
  .page-home .feedback {
    grid-template-columns: 1.45fr 1fr;
    align-items: start;
    gap: clamp(1.75rem, 4.5vw, 3.5rem);
  }
}

/* ---------- 无动效偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  .page-home .bento__cell,
  .page-home .checklist__link,
  .page-home .feedback__card a {
    transition: none;
  }

  .page-home .bento__cell:hover,
  .page-home .bento__cell:focus-visible {
    transform: none;
  }
}
