/* ================= 首页专属样式 · 作用域 .page-home ================= */
.page-home {
  --ph-radius: 18px;
  --ph-shadow: 0 18px 44px rgba(0, 0, 0, .42);
  background: var(--ink-900);
  color: var(--text);
  overflow-x: hidden;
}

.page-home .section-lead {
  margin: .8rem 0 0;
  max-width: 64ch;
  color: var(--text-dim);
  font-size: 1rem;
  line-height: 1.75;
}

/* ---------- 首屏海报 ---------- */
.page-home .hero {
  position: relative;
  padding: 2.5rem 0 3rem;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.page-home .hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-home .hero__bg img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% 42%;
  opacity: .38;
}

.page-home .hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(110% 80% at 88% 0%, rgba(10, 132, 255, .22), transparent 62%),
    linear-gradient(178deg, rgba(11, 14, 20, .55) 0%, rgba(11, 14, 20, .86) 48%, rgba(11, 14, 20, .97) 100%);
}

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

.page-home .hero__eyebrow {
  margin: 0;
  font-size: .72rem;
  letter-spacing: .16em;
  color: var(--cyan);
}

.page-home .hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  margin-top: .9rem;
}

@media (min-width: 960px) {
  .page-home .hero__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
    align-items: end;
    gap: 3rem;
    margin-top: 1.25rem;
  }
}

.page-home .hero__title {
  margin: 0;
  font-size: clamp(2.6rem, 7.4vw, 5.4rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -.02em;
}

.page-home .hero__title-accent {
  background: linear-gradient(94deg, var(--cyan) 0%, var(--blue) 78%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.page-home .hero__lede {
  margin: 1.15rem 0 0;
  max-width: 50ch;
  color: var(--text-dim);
  font-size: 1rem;
  line-height: 1.75;
}

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

.page-home .hero__badge {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: .9rem 1.1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: linear-gradient(158deg, rgba(20, 26, 34, .92), rgba(11, 14, 20, .72));
  box-shadow: var(--ph-shadow);
}

.page-home .hero__badge img {
  flex: 0 0 auto;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(0, 229, 199, .35), 0 0 22px rgba(0, 229, 199, .22);
}

.page-home .hero__badge-body {
  min-width: 0;
}

.page-home .hero__badge-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.page-home .hero__badge-meta {
  margin: .3rem 0 0;
  font-size: .7rem;
  letter-spacing: .08em;
  color: var(--rock);
}

/* ---------- 栏目索引 ---------- */
.page-home .cols {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

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

@media (min-width: 1060px) {
  .page-home .cols {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.15rem;
  }
}

.page-home .col-card {
  display: flex;
  flex-direction: column;
  gap: .55rem;
  height: 100%;
  padding: 1.45rem 1.35rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--ph-radius);
  background: linear-gradient(165deg, rgba(20, 26, 34, .95), rgba(11, 14, 20, .85));
  color: inherit;
  text-decoration: none;
  transition: border-color var(--slow) var(--ease), transform var(--slow) var(--ease), background var(--slow) var(--ease);
}

.page-home .col-card:hover,
.page-home .col-card:focus-visible {
  border-color: var(--cyan);
  background: linear-gradient(165deg, rgba(27, 36, 48, .98), rgba(11, 14, 20, .9));
  transform: translateY(-2px);
}

.page-home .col-card__num {
  font-size: .72rem;
  letter-spacing: .14em;
  color: var(--blue);
}

.page-home .col-card__icon {
  display: inline-flex;
  color: var(--cyan);
  line-height: 0;
}

.page-home .col-card__name {
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.4;
}

.page-home .col-card__desc {
  color: var(--text-dim);
  font-size: .9375rem;
  line-height: 1.65;
}

.page-home .col-card__go {
  margin-top: auto;
  padding-top: .75rem;
  font-size: .7rem;
  letter-spacing: .1em;
  color: var(--rock);
  transition: color var(--fast) var(--ease);
}

.page-home .col-card:hover .col-card__go,
.page-home .col-card:focus-visible .col-card__go {
  color: var(--cyan);
}

/* ---------- 版本对照（浅色呼吸区） ---------- */
.page-home .versions {
  --text: #0B0E14;
  --text-dim: #4C5665;
  --line: rgba(11, 14, 20, .12);
  --line-strong: rgba(11, 14, 20, .2);
  padding: 3.25rem 0 3.5rem;
  color: #0B0E14;
  background:
    radial-gradient(90% 70% at 12% 0%, rgba(0, 229, 199, .14), transparent 60%),
    radial-gradient(70% 60% at 96% 100%, rgba(201, 102, 60, .12), transparent 62%),
    var(--cream);
}

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

.page-home .versions__figure {
  margin: 1.75rem 0 0;
  border: 1px solid rgba(11, 14, 20, .1);
  border-radius: var(--ph-radius);
  overflow: hidden;
  box-shadow: 0 20px 46px rgba(11, 14, 20, .14);
}

.page-home .versions__figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.page-home .versions__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}

@media (min-width: 820px) {
  .page-home .versions__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
  }
}

.page-home .vcard {
  padding: 1.5rem 1.4rem;
  border: 1px solid rgba(11, 14, 20, .1);
  border-radius: var(--ph-radius);
  background: #FFFFFF;
}

.page-home .vcard--new {
  border-top: 3px solid var(--blue);
}

.page-home .vcard--classic {
  border-top: 3px solid var(--clay);
}

.page-home .vcard__tag {
  display: inline-block;
  padding: .25rem .6rem;
  border-radius: 999px;
  font-size: .7rem;
  letter-spacing: .1em;
  background: rgba(10, 132, 255, .12);
  color: #0A6BD0;
}

.page-home .vcard--classic .vcard__tag {
  background: rgba(201, 102, 60, .14);
  color: #A44E27;
}

.page-home .vcard__title {
  margin: .85rem 0 0;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
}

.page-home .vcard__list {
  list-style: none;
  margin: .9rem 0 0;
  padding: 0;
  display: grid;
  gap: .6rem;
}

.page-home .vcard__list li {
  position: relative;
  padding-left: 1.1rem;
  font-size: .9375rem;
  line-height: 1.65;
  color: #3A4351;
}

.page-home .vcard__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
}

.page-home .vcard--classic .vcard__list li::before {
  background: var(--clay);
}

.page-home .versions__cta {
  margin: 1.5rem 0 0;
  font-size: .9375rem;
}

/* ---------- 更新与订阅 ---------- */
.page-home .updates {
  padding: 3.25rem 0 3.5rem;
  background:
    radial-gradient(80% 60% at 82% 100%, rgba(0, 229, 199, .09), transparent 62%),
    var(--ink-900);
}

.page-home .anchor-bar {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1.5rem;
}

.page-home .anchor-bar__link {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .1em;
  padding: .4rem .7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-dim);
  text-decoration: none;
  transition: border-color var(--fast) var(--ease), color var(--fast) var(--ease), background var(--fast) var(--ease);
}

.page-home .anchor-bar__link:hover,
.page-home .anchor-bar__link:focus-visible {
  border-color: var(--cyan);
  color: var(--cyan);
}

.page-home .anchor-bar__link[aria-current="true"] {
  border-color: var(--cyan);
  color: var(--cyan);
  background: var(--cyan-soft);
}

.page-home .ticker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.75rem;
}

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

.page-home .ticker__item {
  padding: 1.2rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--ph-radius);
  background: rgba(20, 26, 34, .72);
}

.page-home .ticker__num {
  display: block;
  font-size: clamp(1.5rem, 3.6vw, 2.05rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.01em;
  color: var(--cyan);
}

.page-home .ticker__label {
  display: block;
  margin-top: .45rem;
  font-size: .8rem;
  line-height: 1.5;
  color: var(--text-dim);
}

.page-home .updates__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
  margin-top: 1.5rem;
}

@media (min-width: 900px) {
  .page-home .updates__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 1.5rem;
  }
}

.page-home .panel {
  border: 1px solid var(--line);
  border-radius: var(--ph-radius);
  background: rgba(20, 26, 34, .72);
  padding: 0 1.15rem;
}

.page-home .panel__title {
  padding: 1.1rem 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.02rem;
}

.page-home .panel__body {
  padding: 0 0 1.15rem;
}

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

.page-home .coverage li {
  padding-left: .9rem;
  border-left: 2px solid var(--blue);
  font-size: .9rem;
  line-height: 1.65;
  color: var(--text-dim);
}

.page-home .coverage strong {
  color: var(--text);
  font-weight: 600;
}

.page-home .save-card {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  padding: 1.35rem 1.25rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--ph-radius);
  background: linear-gradient(160deg, rgba(0, 229, 199, .1), rgba(20, 26, 34, .72) 58%);
}

.page-home .save-card__title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.4;
}

.page-home .save-card__text {
  margin: 0;
  color: var(--text-dim);
  font-size: .9375rem;
  line-height: 1.7;
}

.page-home .save-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: auto;
  padding-top: .5rem;
}

/* ---------- 移动端路径 ---------- */
.page-home .paths {
  padding: 3.25rem 0 3.5rem;
  background:
    radial-gradient(70% 60% at 8% 0%, rgba(10, 132, 255, .14), transparent 60%),
    var(--ink-800);
}

.page-home .paths__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  margin-top: 1.75rem;
}

@media (min-width: 900px) {
  .page-home .paths__grid {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    gap: 2.5rem;
    align-items: center;
  }
}

.page-home .path-list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: phpath;
  display: grid;
  gap: 1.25rem;
}

.page-home .path-item {
  position: relative;
  padding-left: 2.9rem;
  counter-increment: phpath;
}

.page-home .path-item::before {
  content: "0" counter(phpath);
  position: absolute;
  left: 0;
  top: .2rem;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .12em;
  color: var(--blue);
}

.page-home .path-item__title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.4;
}

.page-home .path-item__text {
  margin: .4rem 0 0;
  color: var(--text-dim);
  font-size: .9375rem;
  line-height: 1.7;
}

.page-home .paths__figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--ph-radius);
  overflow: hidden;
}

.page-home .paths__figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

/* ---------- 收束 ---------- */
.page-home .outro {
  padding: 3rem 0 3.5rem;
  border-top: 1px solid var(--line);
  background: var(--ink-900);
}

.page-home .outro__inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 820px) {
  .page-home .outro__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 2.5rem;
  }
}

.page-home .outro__title {
  margin: 0;
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  font-weight: 700;
  line-height: 1.3;
}

.page-home .outro__text {
  margin: .7rem 0 0;
  max-width: 58ch;
  color: var(--text-dim);
  font-size: .9375rem;
  line-height: 1.75;
}

.page-home .outro__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  flex: 0 0 auto;
}
