.page-home {
  padding-bottom: 56px;
}

.page-home .lg-shell {
  padding-left: 18px;
  padding-right: 18px;
}

/* ---------- 位置提示 ---------- */
.page-home .home-loc {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 22px;
  padding: 14px 0 12px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 13px;
  color: var(--char);
}
.page-home .home-loc__label {
  color: var(--copper);
  letter-spacing: .12em;
}
.page-home .home-loc__sep {
  color: var(--copper-lt);
}
.page-home .home-loc__now {
  color: var(--ink);
  font-weight: 500;
}

/* ---------- 主栅格 ---------- */
.page-home .home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}
.page-home .home-flow {
  min-width: 0;
}

/* ---------- 左侧索引 ---------- */
.page-home .home-toc {
  margin: 0 0 26px;
}
.page-home .home-toc__label {
  margin: 0 0 10px;
  font-size: 11px;
  letter-spacing: .22em;
  color: var(--ash);
}
.page-home .home-toc__list {
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 0 0 6px;
  list-style: none;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.page-home .home-toc__link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--char);
  font-size: 13px;
  text-decoration: none;
  transition: background .16s ease, border-color .16s ease, color .16s ease;
}
.page-home .home-toc__link .lg-mono {
  color: var(--copper);
  font-size: 11px;
}
.page-home .home-toc__link:hover,
.page-home .home-toc__link:focus-visible,
.page-home .home-toc__link.is-active {
  background: var(--paper);
  border-color: var(--copper);
  color: var(--ink);
}

@media (min-width: 1000px) {
  .page-home .home-grid {
    grid-template-columns: 196px minmax(0, 1fr);
    gap: 0 40px;
  }
  .page-home .home-toc {
    position: sticky;
    top: 112px;
    align-self: start;
    margin: 0;
    padding-right: 20px;
    border-right: 1px solid var(--line-soft);
  }
  .page-home .home-toc__list {
    display: block;
    overflow: visible;
    padding: 0;
  }
  .page-home .home-toc__list li + li {
    margin-top: 2px;
  }
  .page-home .home-toc__link {
    display: flex;
    padding: 8px 0 8px 12px;
    border: 0;
    border-left: 2px solid transparent;
    border-radius: 0;
    background: transparent;
    color: var(--ash);
    font-size: 14px;
  }
  .page-home .home-toc__link:hover,
  .page-home .home-toc__link:focus-visible,
  .page-home .home-toc__link.is-active {
    background: transparent;
    border-left-color: var(--copper);
    color: var(--ink);
  }
}

/* ---------- 区块骨架 ---------- */
.page-home .home-sec {
  margin: 0 0 50px;
  scroll-margin-top: 116px;
}
.page-home .home-sec:last-child {
  margin-bottom: 0;
}
.page-home .home-more {
  margin: 20px 0 0;
}
.page-home .home-byline {
  margin: 22px 0 0;
  font-size: 14px;
  color: var(--ash);
}
.page-home .home-inline {
  color: var(--pine);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.page-home .home-inline:hover {
  color: var(--copper);
}

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

/* ---------- 首屏 ---------- */
.page-home .home-hero__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  align-items: end;
}
.page-home .home-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  font-size: 13px;
  letter-spacing: .05em;
  color: var(--copper);
}
.page-home .home-kicker .lg-mono {
  padding: 2px 7px;
  border: 1px solid var(--copper-lt);
  border-radius: var(--radius);
  font-size: 11px;
}
.page-home .home-hero h1 {
  margin: 0 0 16px;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(30px, 7.4vw, 58px);
  line-height: 1.14;
  letter-spacing: -.012em;
  color: var(--ink);
}
.page-home .home-hero__intro .lg-lead {
  max-width: 32em;
  margin: 0;
  font-size: 16px;
  line-height: 1.85;
  color: var(--char);
}
.page-home .home-hero__figure {
  margin: 0;
}
.page-home .home-hero__figure .lg-figure__frame {
  border-radius: var(--radius);
  overflow: hidden;
}
.page-home .home-hero__figure .lg-figure__img {
  aspect-ratio: 16 / 10;
}

@media (min-width: 800px) {
  .page-home .home-hero__top {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
    gap: 30px;
  }
  .page-home .home-hero__intro .lg-lead {
    font-size: 17px;
  }
}

/* 三张入口卡 */
.page-home .home-hero__cards {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  margin-top: 28px;
}
@media (min-width: 720px) {
  .page-home .home-hero__cards {
    grid-template-columns: 1.25fr 1fr 1fr;
  }
}
.page-home .home-card {
  position: relative;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  padding: 18px 18px 20px;
  background: var(--card);
  border-left: 3px solid var(--copper-lt);
  border-radius: var(--radius);
  color: var(--char);
  text-decoration: none;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.page-home .home-card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 20px;
  width: 14px;
  height: 20px;
  background: var(--copper);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 68%, 0 100%);
  opacity: .85;
}
.page-home .home-card:hover,
.page-home .home-card:focus-visible {
  border-left-color: var(--copper);
  background: var(--paper);
  transform: translateY(-2px);
}
.page-home .home-card__num {
  writing-mode: vertical-rl;
  font-size: 12px;
  letter-spacing: .2em;
  color: var(--copper);
}
.page-home .home-card__title {
  display: block;
  margin-bottom: 7px;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 19px;
  line-height: 1.35;
  color: var(--ink);
}
.page-home .home-card__text {
  display: block;
  font-size: 14px;
  line-height: 1.75;
}
.page-home .home-card__meta {
  display: block;
  margin-top: 12px;
  padding-top: 9px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--ash);
}

/* 首屏状态条 */
.page-home .home-hero__status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin-top: 20px;
  padding: 12px 16px;
  background: var(--ink);
  border-radius: var(--radius);
  color: var(--paper);
  font-size: 13px;
  line-height: 1.6;
}
.page-home .home-hero__status .lg-mono {
  color: var(--copper-lt);
}
.page-home .home-hero__sep {
  width: 1px;
  height: 12px;
  background: rgba(245, 241, 232, .3);
}

/* ---------- 更新日志 ---------- */
.page-home .home-log {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.page-home .home-log__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 4px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
}
.page-home .home-log__when {
  font-size: 13px;
  letter-spacing: .05em;
  color: var(--copper);
}
.page-home .home-log__what {
  font-size: 15px;
  line-height: 1.8;
  color: var(--char);
}
.page-home .home-log__row--node {
  padding: 16px 16px 18px;
  border-bottom: 0;
  border-left: 3px solid var(--ink-2);
  background: var(--mist);
  border-radius: var(--radius);
}
.page-home .home-log__row--node .home-log__when {
  color: var(--ink);
}
@media (min-width: 640px) {
  .page-home .home-log__row {
    grid-template-columns: 128px minmax(0, 1fr);
    gap: 20px;
    align-items: baseline;
  }
}

/* ---------- 12 类主题索引带 ---------- */
.page-home .home-strip-wrap {
  position: relative;
}
.page-home .home-strip-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 12px;
  width: 46px;
  background: linear-gradient(to right, rgba(245, 241, 232, 0), var(--paper));
  pointer-events: none;
}
.page-home .home-strip {
  display: flex;
  gap: 10px;
  margin: 0;
  padding: 0 0 12px;
  list-style: none;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}
.page-home .home-strip__item {
  flex: 0 0 196px;
  scroll-snap-align: start;
}
.page-home .home-strip__link {
  display: grid;
  gap: 7px;
  height: 100%;
  padding: 14px 14px 16px;
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-top: 3px solid var(--copper-lt);
  border-radius: var(--radius);
  color: var(--char);
  text-decoration: none;
  transition: border-top-color .16s ease, background .16s ease, transform .16s ease;
}
.page-home .home-strip__link:hover,
.page-home .home-strip__link:focus-visible {
  background: var(--paper);
  border-top-color: var(--ink-2);
  transform: translateY(-2px);
}
.page-home .home-strip__num {
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--copper);
}
.page-home .home-strip__name {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.45;
  color: var(--ink);
}
.page-home .home-strip__count {
  font-size: 12px;
  color: var(--ash);
}
.page-home .home-topics__figure {
  margin: 22px 0 0;
}
.page-home .home-topics__figure .lg-figure__frame {
  border-radius: var(--radius);
  overflow: hidden;
}
.page-home .home-topics__figure .lg-figure__img {
  aspect-ratio: 3 / 2;
}

/* ---------- 版本对照 ---------- */
.page-home .home-compare-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}
.page-home .home-compare {
  min-width: 620px;
}
.page-home .home-compare__figure {
  margin: 24px 0 0;
}
.page-home .home-compare__figure .lg-figure__frame {
  border-radius: var(--radius);
  overflow: hidden;
}
.page-home .home-compare__figure .lg-figure__img {
  aspect-ratio: 2 / 1;
}
@media (min-width: 900px) {
  .page-home .home-compare {
    min-width: 0;
  }
}

/* ---------- 家庭场景 ---------- */
.page-home .home-family {
  padding: 26px 20px 30px;
  background: var(--mist);
  border-radius: var(--radius);
}
.page-home .home-family__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.page-home .home-steps {
  margin: 22px 0 0;
}
.page-home .home-channels {
  display: grid;
  gap: 8px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}
.page-home .home-channels__item {
  padding: 10px 14px;
  background: rgba(245, 241, 232, .78);
  border-left: 2px solid var(--copper);
  border-radius: var(--radius);
  font-size: 14px;
  line-height: 1.7;
  color: var(--char);
}
.page-home .home-family__figure {
  margin: 0;
}
.page-home .home-family__figure .lg-figure__frame {
  border-radius: var(--radius);
  overflow: hidden;
}
.page-home .home-family__figure .lg-figure__img {
  aspect-ratio: 5 / 6;
}
@media (min-width: 880px) {
  .page-home .home-family {
    padding: 34px 30px 36px;
  }
  .page-home .home-family__inner {
    grid-template-columns: minmax(0, 1fr) 288px;
    gap: 36px;
  }
}

/* ---------- 高频问题 ---------- */
.page-home .home-fold .lg-fold__head {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 0 14px 14px;
  border: 0;
  border-left: 2px solid transparent;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}
.page-home .home-fold .lg-fold__head:hover {
  background: var(--card);
}
.page-home .home-fold .lg-fold__item[data-open="true"] .lg-fold__head {
  border-left-color: var(--copper);
  background: var(--card);
}
.page-home .home-fold .home-fold__q {
  flex: 1 1 auto;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink);
}
.page-home .home-fold .home-fold__num {
  flex: 0 0 auto;
  padding-right: 4px;
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--copper);
}
.page-home .home-fold .lg-fold__body p {
  margin: 0;
  padding: 0 0 16px 16px;
  max-width: 34em;
  font-size: 15px;
  line-height: 1.85;
  color: var(--char);
}
.page-home .home-fold .lg-fold__item {
  border-bottom: 1px solid var(--line-soft);
}

/* ---------- 人工协助 ---------- */
.page-home .home-help__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}
.page-home .home-help__item {
  display: block;
  padding: 20px 20px 22px;
  background: var(--card);
  border-top: 3px solid var(--ink);
  border-radius: var(--radius);
  color: var(--char);
  text-decoration: none;
  transition: border-top-color .18s ease, background .18s ease;
}
.page-home .home-help__item:hover,
.page-home .home-help__item:focus-visible {
  border-top-color: var(--copper);
  background: var(--paper);
}
.page-home .home-help__label {
  display: block;
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--ash);
}
.page-home .home-help__value {
  display: block;
  margin: 10px 0 12px;
  font-family: var(--font-mono);
  font-size: clamp(17px, 3.6vw, 22px);
  line-height: 1.4;
  color: var(--ink);
  word-break: break-word;
}
.page-home .home-help__note {
  display: block;
  font-size: 14px;
  line-height: 1.8;
  color: var(--char);
}
@media (min-width: 720px) {
  .page-home .home-help__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
}

/* ---------- 降级动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  .page-home .home-card,
  .page-home .home-strip__link,
  .page-home .home-help__item,
  .page-home .home-toc__link,
  .page-home .home-fold .lg-fold__head {
    transition: none;
  }
  .page-home .home-card:hover,
  .page-home .home-strip__link:hover {
    transform: none;
  }
}
