.page-home {
  --home-card: #FFFFFF;
  display: block;
  background: var(--paper);
  color: var(--ink);
}

/* ---------- 首屏 ---------- */
.page-home .hero {
  position: relative;
  padding-block: var(--sp-4) var(--sp-5);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.page-home .hero__inner {
  display: grid;
  gap: var(--sp-5);
  align-items: start;
}

.page-home .hero__title {
  margin: var(--sp-2) 0 0;
  font-family: var(--font-sans);
  font-size: clamp(2.1rem, 7.2vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -.02em;
  font-weight: 800;
  color: var(--deep);
}

.page-home .hero__lede {
  margin: var(--sp-3) 0 0;
  font-size: 1.0625rem;
  line-height: 1.78;
  color: rgba(11, 31, 51, .78);
}

.page-home .hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: var(--sp-4);
}

.page-home .hero__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: 12px;
  margin: var(--sp-5) 0 0;
  padding: var(--sp-3) 0 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.page-home .hero__stats li {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.page-home .hero__num {
  font-family: var(--font-mono);
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--deep);
}

.page-home .hero__key {
  font-size: .75rem;
  line-height: 1.35;
  color: var(--mid);
}

/* 拼贴区 */
.page-home .hero__collage {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 10px;
  padding: 10px;
  background: var(--deep);
  border: 1px solid var(--line-strong);
  isolation: isolate;
}

.page-home .hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .46;
  pointer-events: none;
}

.page-home .entry-card {
  position: relative;
  z-index: 1;
  grid-column: span 12;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
  background: var(--paper);
  border: 1px solid rgba(11, 31, 51, .1);
  overflow: hidden;
}

.page-home .entry-card::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--orange);
  transition: width .18s var(--ease);
}

.page-home .entry-card:hover::after,
.page-home .entry-card:focus-within::after {
  width: 100%;
}

.page-home .entry-card__no {
  font-family: var(--font-mono);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .16em;
  color: var(--orange);
}

.page-home .entry-card__title {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.35;
  font-weight: 700;
  color: var(--deep);
}

.page-home .entry-card--a .entry-card__title {
  font-size: 1.25rem;
  line-height: 1.28;
}

.page-home .entry-card__text {
  margin: 0;
  font-size: .875rem;
  line-height: 1.72;
  color: rgba(11, 31, 51, .74);
}

.page-home .entry-card__fig {
  margin: 2px 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--cool);
  border: 1px solid var(--line);
}

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

.page-home .entry-card__link {
  margin-top: auto;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-bottom: 2px;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--sea);
  text-decoration: none;
  border-bottom: 1px solid var(--orange);
  transition: color .18s var(--ease);
}

.page-home .entry-card__link:hover {
  color: var(--orange);
}

.page-home .collage-note {
  position: relative;
  z-index: 1;
  grid-column: span 12;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 14px 16px;
  background: rgba(11, 31, 51, .74);
  border: 1px solid var(--line-dark-strong);
}

.page-home .collage-note__k {
  font-family: var(--font-mono);
  font-size: .6875rem;
  letter-spacing: .18em;
  color: var(--cyan);
}

.page-home .collage-note p {
  margin: 0;
  font-size: .8125rem;
  line-height: 1.68;
  color: var(--cool);
}

/* ---------- 通用章节标题 ---------- */
.page-home .sec-head {
  max-width: 62ch;
  margin-bottom: var(--sp-4);
}

.page-home .sec-head h2 {
  margin: 10px 0 0;
  font-size: clamp(1.5rem, 3.6vw, 2.2rem);
  line-height: 1.16;
  letter-spacing: -.01em;
  font-weight: 800;
  color: var(--deep);
}

.page-home .sec-head__lede {
  margin: 12px 0 0;
  font-size: 1rem;
  line-height: 1.78;
  color: rgba(11, 31, 51, .74);
}

/* ---------- 场景筛选 ---------- */
.page-home .scenes {
  background: var(--cool);
  border-bottom: 1px solid var(--line);
}

.page-home .scenes__wrap {
  display: grid;
  gap: var(--sp-3);
}

.page-home .scenes__grid {
  display: grid;
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--line-strong);
  border: 1px solid var(--line-strong);
}

.page-home .scene {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  background: var(--paper);
}

.page-home .scene__tag {
  align-self: flex-start;
}

.page-home .scene h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.42;
  font-weight: 700;
  color: var(--deep);
}

.page-home .scene p {
  margin: 0;
  font-size: .875rem;
  line-height: 1.72;
  color: rgba(11, 31, 51, .74);
}

.page-home .scene__link {
  margin-top: auto;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .04em;
  font-weight: 600;
  color: var(--sea);
  text-decoration: none;
  border-bottom: 1px solid var(--cyan);
  padding-bottom: 2px;
  transition: color .18s var(--ease), border-color .18s var(--ease);
}

.page-home .scene__link:hover {
  color: var(--orange);
  border-color: var(--orange);
}

/* ---------- 标签识别 ---------- */
.page-home .tags {
  background: var(--paper);
}

.page-home .tags__inner {
  display: grid;
  gap: var(--sp-4);
  align-items: start;
}

.page-home .tags h2 {
  margin: 10px 0 0;
  font-size: clamp(1.5rem, 3.6vw, 2.2rem);
  line-height: 1.16;
  letter-spacing: -.01em;
  font-weight: 800;
  color: var(--deep);
}

.page-home .tags__lede {
  margin: 12px 0 0;
  font-size: 1rem;
  line-height: 1.78;
  color: rgba(11, 31, 51, .76);
}

.page-home .tags__legend {
  margin: var(--sp-4) 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.page-home .tags__row {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  align-items: baseline;
  gap: 4px 12px;
  padding: 14px 2px;
  border-bottom: 1px solid var(--line);
}

.page-home .tags__bar {
  width: 12px;
  height: 12px;
  transform: translateY(2px);
}

.page-home .tags__bar--entry {
  background: var(--orange);
}

.page-home .tags__bar--doc {
  background: var(--cyan);
}

.page-home .tags__bar--tool {
  background: var(--mid);
}

.page-home .tags__bar--note {
  background: transparent;
  border: 1px solid var(--line-strong);
}

.page-home .tags__name {
  font-size: .9375rem;
  font-weight: 700;
  color: var(--deep);
}

.page-home .tags__desc {
  grid-column: 2;
  font-size: .8125rem;
  line-height: 1.62;
  color: var(--mid);
}

.page-home .tags__note {
  margin: var(--sp-3) 0 0;
  font-size: .875rem;
  line-height: 1.76;
  color: rgba(11, 31, 51, .74);
}

.page-home .tags .btn {
  margin-top: var(--sp-3);
}

.page-home .tags__fig {
  margin: 0;
  background: var(--cool);
  border: 1px solid var(--line);
}

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

.page-home .tags__cap {
  padding: 10px 12px;
  font-family: var(--font-mono);
  font-size: .6875rem;
  line-height: 1.5;
  letter-spacing: .04em;
  color: var(--mid);
  border-top: 1px solid var(--line);
}

/* ---------- 内容中心目录 ---------- */
.page-home .directory {
  background: var(--deep);
  color: var(--cool);
}

.page-home .directory__inner {
  display: grid;
  gap: var(--sp-4);
}

.page-home .dir-fig {
  margin: 0;
  border: 1px solid var(--line-dark-strong);
  background: var(--sea);
}

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

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

.page-home .directory h2 {
  margin: 10px 0 0;
  font-size: clamp(1.5rem, 3.6vw, 2.2rem);
  line-height: 1.16;
  letter-spacing: -.01em;
  font-weight: 800;
  color: var(--paper);
}

.page-home .dir-lede {
  margin: 12px 0 0;
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(232, 237, 242, .82);
}

.page-home .dir-nums {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: var(--sp-4) 0 0;
  padding: var(--sp-3) 0 0;
  list-style: none;
  border-top: 1px solid var(--line-dark-strong);
}

.page-home .dir-nums li {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.page-home .dir-nums__n {
  font-family: var(--font-mono);
  font-size: clamp(1.4rem, 3.4vw, 1.875rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--orange-hi);
}

.page-home .dir-nums__k {
  font-size: .75rem;
  line-height: 1.4;
  color: rgba(232, 237, 242, .68);
}

.page-home .dir-groups {
  margin: var(--sp-4) 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-dark);
}

.page-home .dir-groups li {
  display: grid;
  grid-template-columns: 5.5em minmax(0, 1fr);
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-dark);
}

.page-home .dir-groups__k {
  font-size: .875rem;
  font-weight: 700;
  color: var(--paper);
}

.page-home .dir-groups__v {
  font-size: .8125rem;
  line-height: 1.66;
  color: rgba(232, 237, 242, .74);
}

.page-home .dir-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: var(--sp-4);
  padding: 11px 18px;
  border: 1px solid var(--line-dark-strong);
  font-size: .875rem;
  font-weight: 600;
  color: var(--paper);
  text-decoration: none;
  transition: border-color .18s var(--ease), background-color .18s var(--ease);
}

.page-home .dir-link:hover {
  border-color: var(--orange);
  background: rgba(255, 106, 42, .16);
}

/* ---------- 更新与支持 ---------- */
.page-home .updates {
  background: var(--paper);
}

.page-home .updates__grid {
  display: grid;
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--line-strong);
  border: 1px solid var(--line-strong);
}

.page-home .update {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  background: var(--home-card);
}

.page-home .update__date {
  font-family: var(--font-mono);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--orange);
}

.page-home .update h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.4;
  font-weight: 700;
  color: var(--deep);
}

.page-home .update p {
  margin: 0;
  font-size: .875rem;
  line-height: 1.72;
  color: rgba(11, 31, 51, .74);
}

.page-home .updates__more {
  margin: var(--sp-3) 0 0;
  font-size: .9375rem;
  line-height: 1.7;
  color: rgba(11, 31, 51, .74);
}

.page-home .updates__more a {
  color: var(--sea);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--orange);
}

.page-home .updates__more a:hover {
  color: var(--orange);
}

/* ---------- 常见问题 ---------- */
.page-home .faq {
  background: var(--cool);
  border-top: 1px solid var(--line);
}

.page-home .faq__list {
  max-width: 78ch;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-strong);
}

.page-home .faq__list li {
  border-bottom: 1px solid var(--line);
}

.page-home .faq__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 4px;
  font-size: .9375rem;
  font-weight: 500;
  line-height: 1.6;
  color: var(--deep);
  text-decoration: none;
  transition: color .18s var(--ease), padding-left .18s var(--ease);
}

.page-home .faq__item:hover {
  color: var(--orange);
  padding-left: 10px;
}

.page-home .faq__arrow {
  flex: none;
  font-family: var(--font-mono);
  font-size: .875rem;
  color: var(--mid);
}

.page-home .faq__more {
  margin: var(--sp-3) 0 0;
  font-size: .9375rem;
  line-height: 1.7;
  color: rgba(11, 31, 51, .74);
}

.page-home .faq__more a {
  color: var(--sea);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--orange);
}

.page-home .faq__more a:hover {
  color: var(--orange);
}

/* ---------- 断点 ---------- */
@media (min-width: 720px) {
  .page-home .scenes__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (min-width: 768px) {
  .page-home .entry-card--a {
    grid-column: span 7;
  }

  .page-home .entry-card--b {
    grid-column: span 5;
  }

  .page-home .entry-card--c {
    grid-column: span 4;
  }

  .page-home .collage-note {
    grid-column: span 8;
  }
}

@media (min-width: 1024px) {
  .page-home .hero {
    padding-block: var(--sp-5) var(--sp-6);
  }

  .page-home .hero__inner {
    grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
    gap: var(--sp-5);
  }

  .page-home .tags__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, .82fr);
    gap: var(--sp-6);
    align-items: center;
  }

  .page-home .directory__inner {
    grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
    gap: var(--sp-6);
    align-items: center;
  }
}

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

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

@media (prefers-reduced-motion: reduce) {
  .page-home .entry-card::after,
  .page-home .entry-card__link,
  .page-home .scene__link,
  .page-home .dir-link,
  .page-home .faq__item,
  .page-home .updates__more a {
    transition: none;
  }
}
