.page-home {
  --home-gap: clamp(20px, 3vw, 34px);
  display: block;
  overflow-x: hidden;
}

.page-home .container {
  min-width: 0;
}

/* ---------- 首屏 ---------- */

.page-home .home-hero {
  position: relative;
  padding: clamp(26px, 5.5vw, 68px) 0 clamp(30px, 5vw, 60px);
  border-bottom: 1px solid var(--line-soft);
  overflow: hidden;
}

.page-home .home-hero::before {
  content: "";
  position: absolute;
  top: -32%;
  right: -18%;
  width: min(680px, 84vw);
  height: min(680px, 84vw);
  background: radial-gradient(circle at 50% 50%, rgba(47, 123, 255, .2), transparent 68%);
  pointer-events: none;
  z-index: 0;
}

.page-home .home-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}

.page-home .home-hero__title {
  margin: 14px 0 0;
  font-size: clamp(32px, 8.4vw, 74px);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: .01em;
  color: var(--text);
  max-width: 15em;
  overflow-wrap: anywhere;
}

.page-home .home-hero__intro {
  margin: 20px 0 0;
  max-width: 38em;
  font-size: 15.5px;
  line-height: 1.78;
  color: var(--text-soft);
}

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

.page-home .home-hero__status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-top: 26px;
  padding: 13px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: linear-gradient(98deg, rgba(47, 123, 255, .13), rgba(35, 230, 208, .05) 62%, transparent);
}

.page-home .home-hero__status-key {
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}

.page-home .home-hero__status-val {
  font-size: 14px;
  font-weight: 600;
  color: var(--cyan);
  letter-spacing: .04em;
}

.page-home .home-hero__status-build {
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--muted);
}

.page-home .home-hero__status-note {
  flex: 1 1 190px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted);
}

.page-home .home-hero__visual {
  position: relative;
  margin: 0;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--panel);
  overflow: hidden;
}

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

.page-home .home-hero__cap {
  position: absolute;
  left: 0;
  bottom: 0;
  margin: 0;
  padding: 9px 16px;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-soft);
  background: rgba(5, 7, 12, .74);
  border-top-right-radius: var(--r-sm);
}

/* ---------- 六个去处 ---------- */

.page-home .home-catalog__body {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--home-gap);
}

.page-home .home-catalog__list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  min-width: 0;
}

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

.page-home .home-catalog__link {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 17px 6px;
  text-decoration: none;
  color: inherit;
  transition: background var(--dur) var(--ease), padding-left var(--dur) var(--ease);
}

.page-home .home-catalog__no {
  font-size: clamp(18px, 3.4vw, 24px);
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--blue);
}

.page-home .home-catalog__text {
  min-width: 0;
}

.page-home .home-catalog__title {
  display: block;
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: .01em;
}

.page-home .home-catalog__desc {
  display: block;
  margin-top: 5px;
  font-size: 13.5px;
  line-height: 1.68;
  color: var(--muted);
}

.page-home .home-catalog__tag {
  white-space: nowrap;
}

.page-home .home-catalog__aside {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--panel);
}

.page-home .home-catalog__figure {
  margin: 0;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--line-soft);
}

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

.page-home .home-catalog__aside-note {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.72;
  color: var(--text-soft);
}

.page-home .home-catalog__aside-link {
  font-size: 13px;
  text-decoration: none;
}

/* ---------- 名单速览 ---------- */

.page-home .home-roster__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--home-gap);
  align-items: start;
}

.page-home .home-roster__list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--panel);
  overflow: hidden;
  min-width: 0;
}

.page-home .home-roster__row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 14px;
  align-items: center;
  padding: 15px 16px;
  border-bottom: 1px solid var(--line-soft);
  transition: background var(--dur) var(--ease);
}

.page-home .home-roster__row:last-child {
  border-bottom: 0;
}

.page-home .home-roster__who {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.page-home .home-roster__id {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .05em;
  color: var(--text);
}

.page-home .home-roster__team {
  font-size: 12.5px;
  color: var(--muted);
}

.page-home .home-roster__side {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.page-home .home-roster__fix {
  flex-shrink: 0;
}

.page-home .home-roster__hint {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: calc(100% + 6px);
  z-index: 4;
  padding: 10px 13px;
  font-size: 12.5px;
  line-height: 1.62;
  color: var(--text-soft);
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur) var(--ease);
  pointer-events: none;
}

.page-home .home-roster__row:hover .home-roster__hint,
.page-home .home-roster__row:focus-within .home-roster__hint {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.page-home .home-roster__aside {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.page-home .home-roster__figure {
  position: relative;
  margin: 0;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--panel);
  overflow: hidden;
}

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

.page-home .home-roster__note {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--cyan);
  border-radius: var(--r-md);
  background: linear-gradient(120deg, rgba(35, 230, 208, .07), transparent 70%);
}

.page-home .home-roster__note p:last-child {
  margin: 10px 0 0;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--text-soft);
}

/* ---------- 两套入口 ---------- */

.page-home .home-entry__grid {
  align-items: stretch;
}

.page-home .home-entry__card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--panel);
  overflow: hidden;
}

.page-home .home-entry__card::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
}

.page-home .home-entry__card--main::before {
  background: linear-gradient(180deg, var(--blue), var(--cyan));
}

.page-home .home-entry__card--preview::before {
  background: linear-gradient(180deg, var(--amber), var(--magenta));
}

.page-home .home-entry__name {
  margin: 0;
  font-size: clamp(20px, 3.4vw, 26px);
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--text);
}

.page-home .home-entry__desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-soft);
}

.page-home .home-entry__list {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: grid;
  gap: 9px;
  font-size: 13.5px;
  line-height: 1.66;
  color: var(--muted);
}

.page-home .home-entry__list li {
  position: relative;
  padding-left: 17px;
}

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

.page-home .home-entry__card .btn {
  align-self: flex-start;
  margin-top: auto;
  padding-top: 14px;
}

.page-home .home-entry__tip {
  margin: var(--home-gap) 0 0;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--panel-2);
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--text-soft);
}

/* ---------- 旧版本归档 ---------- */

.page-home .home-archive__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--home-gap);
  align-items: start;
}

.page-home .home-archive__title {
  margin: 12px 0 0;
  font-size: clamp(26px, 5vw, 42px);
  font-weight: 300;
  line-height: 1.16;
  letter-spacing: .01em;
  color: var(--text);
}

.page-home .home-archive__intro {
  margin: 16px 0 0;
  max-width: 36em;
  font-size: 14.5px;
  line-height: 1.78;
  color: var(--text-soft);
}

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

.page-home .home-archive__item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.page-home .home-archive__ver {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--cyan);
}

.page-home .home-archive__text {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.72;
  color: var(--muted);
}

.page-home .home-archive__side {
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(150deg, rgba(47, 123, 255, .12), transparent 72%), var(--panel);
}

.page-home .home-archive__steps {
  margin: 14px 0 0;
  padding-left: 20px;
  display: grid;
  gap: 10px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--text-soft);
}

.page-home .home-archive__side-note {
  margin: 18px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--muted);
}

/* ---------- 更新节奏 ---------- */

.page-home .home-rhythm__visual {
  margin: 0 0 clamp(24px, 4vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--panel);
  overflow: hidden;
}

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

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

.page-home .home-rhythm__item {
  position: relative;
  padding-left: 24px;
}

.page-home .home-rhythm__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(35, 230, 208, .14);
}

.page-home .home-rhythm__item::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 22px;
  bottom: -24px;
  width: 1px;
  background: var(--line);
}

.page-home .home-rhythm__item:last-child::after {
  display: none;
}

.page-home .home-rhythm__label {
  display: block;
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--blue);
}

.page-home .home-rhythm__title {
  margin: 6px 0 6px;
  font-size: 16.5px;
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--text);
}

.page-home .home-rhythm__text {
  margin: 0;
  max-width: 44em;
  font-size: 13.5px;
  line-height: 1.76;
  color: var(--muted);
}

/* ---------- 交互与响应式 ---------- */

.page-home .home-catalog__link:hover,
.page-home .home-catalog__link:focus-visible {
  background: linear-gradient(90deg, rgba(47, 123, 255, .1), transparent 62%);
  padding-left: 14px;
  outline: none;
}

.page-home .home-roster__row:hover {
  background: var(--zebra);
}

.page-home .home-archive__steps li::marker {
  color: var(--blue);
  font-family: var(--font-mono);
}

@media (min-width: 700px) {
  .page-home .home-archive__item {
    grid-template-columns: 108px minmax(0, 1fr);
    gap: 16px;
    align-items: baseline;
  }

  .page-home .home-rhythm__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(24px, 4vw, 48px);
  }

  .page-home .home-rhythm__item::after {
    display: none;
  }
}

@media (min-width: 900px) {
  .page-home .home-hero__grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  }

  .page-home .home-catalog__body {
    grid-template-columns: minmax(0, 1fr) 268px;
    align-items: start;
  }

  .page-home .home-roster__grid {
    grid-template-columns: minmax(0, 1.36fr) minmax(0, .64fr);
  }

  .page-home .home-archive__grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  }

  .page-home .home-hero__visual {
    transform: translateY(-6px);
  }
}

@media (min-width: 1100px) {
  .page-home .home-catalog__link {
    grid-template-columns: 60px minmax(0, 1fr) auto;
    padding: 20px 8px;
  }
}

@media (max-width: 460px) {
  .page-home .home-roster__row {
    grid-template-columns: minmax(0, 1fr);
  }

  .page-home .home-roster__side {
    justify-content: space-between;
    width: 100%;
  }

  .page-home .home-roster__hint {
    left: 12px;
    right: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .home-catalog__link,
  .page-home .home-roster__row,
  .page-home .home-roster__hint {
    transition: none;
  }

  .page-home .home-roster__hint {
    transform: none;
  }
}
