.page-home {
  --home-gap: 20px;
  --home-radius: var(--r-lg);
  display: block;
  color: var(--snow);
}

.page-home .home-top {
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(15, 34, 51, 0.85), rgba(8, 19, 31, 0));
}

.page-home .home-top__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 18px;
  padding: 14px 0;
}

.page-home .home-crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--mist);
}

.page-home .home-crumb__num {
  color: var(--amber);
}

.page-home .home-crumb__link {
  color: var(--mist);
  text-decoration: none;
  transition: color 0.16s ease;
}

.page-home .home-crumb__link:hover,
.page-home .home-crumb__link:focus-visible {
  color: var(--snow);
}

.page-home .home-crumb__slash {
  color: var(--line);
}

.page-home .home-crumb__now {
  color: var(--snow);
}

.page-home .home-top__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--mist);
}

.page-home .status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}

/* ---------- 首屏拼贴 ---------- */
.page-home .home-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 5vw, 60px) 0 clamp(32px, 5vw, 68px);
}

.page-home .home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(30, 58, 79, 0.45) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 58, 79, 0.45) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.55;
  -webkit-mask-image: radial-gradient(120% 80% at 72% 18%, #000 0%, transparent 72%);
  mask-image: radial-gradient(120% 80% at 72% 18%, #000 0%, transparent 72%);
}

.page-home .home-hero__grid {
  position: relative;
  display: grid;
  gap: clamp(24px, 4vw, 44px);
}

.page-home .home-hero__title {
  margin: 14px 0 0;
  font-size: clamp(36px, 7.2vw, 68px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--snow);
}

.page-home .home-hero__dek {
  margin: 18px 0 0;
  max-width: 34em;
  font-size: 16px;
  line-height: 1.8;
  color: var(--mist);
}

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

.page-home .home-hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.page-home .home-hero__chips .chip {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.page-home .home-hero__tiles {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: linear-gradient(160deg, rgba(15, 34, 51, 0.92), rgba(8, 19, 31, 0.9));
  overflow: hidden;
}

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

.page-home .htile {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgba(15, 34, 51, 0.74);
  text-decoration: none;
  transition: border-color 0.16s ease, transform 0.16s ease, background 0.16s ease;
}

.page-home .htile:hover,
.page-home .htile:focus-visible {
  border-color: var(--cyan);
  background: rgba(14, 116, 144, 0.26);
  transform: translateY(-2px);
  outline: none;
}

.page-home .htile__num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--amber);
}

.page-home .htile__name {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--snow);
}

.page-home .htile__meta {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 0.03em;
  color: var(--mist);
}

.page-home .htile--a {
  grid-column: 1 / -1;
  min-height: 108px;
  justify-content: center;
}

.page-home .htile--a .htile__name {
  font-size: 22px;
}

.page-home .htile--d {
  grid-column: 1 / -1;
}

@media (min-width: 900px) {
  .page-home .home-hero__grid {
    grid-template-columns: 1.55fr 1fr;
    align-items: start;
  }

  .page-home .home-hero__tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: minmax(96px, auto);
  }

  .page-home .htile--a {
    grid-column: 1;
    grid-row: 1 / span 2;
    min-height: 0;
  }

  .page-home .htile--b {
    grid-column: 2;
    grid-row: 1;
  }

  .page-home .htile--c {
    grid-column: 2;
    grid-row: 2;
  }

  .page-home .htile--d {
    grid-column: 1 / -1;
    grid-row: 3;
  }
}

/* ---------- 导读索引 ---------- */
.page-home .home-index {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(8, 19, 31, 0.94);
}

.page-home .home-index__inner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.page-home .home-index__inner::-webkit-scrollbar {
  display: none;
}

.page-home .home-index__label {
  flex: none;
  padding-right: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--amber);
}

.page-home .home-index__link {
  flex: none;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-size: 12px;
  color: var(--mist);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.16s ease, border-color 0.16s ease;
}

.page-home .home-index__link:hover,
.page-home .home-index__link:focus-visible {
  color: var(--cyan);
  border-color: var(--cyan);
  outline: none;
}

@media (min-width: 900px) {
  .page-home .home-index {
    position: sticky;
    top: var(--header-h);
    z-index: 5;
    backdrop-filter: blur(8px);
  }
}

/* ---------- 通用章节头 ---------- */
.page-home .home-head {
  margin-bottom: clamp(20px, 3vw, 32px);
}

.page-home .home-head__title,
.page-home .home-path__title,
.page-home .home-version__title,
.page-home .home-library__title,
.page-home .home-entries__title,
.page-home .home-support__title {
  margin: 12px 0 0;
  font-size: clamp(23px, 3.6vw, 34px);
  font-weight: 800;
  line-height: 1.26;
  letter-spacing: -0.01em;
  color: var(--snow);
}

.page-home .home-head__dek,
.page-home .home-path__dek,
.page-home .home-version__text-p,
.page-home .home-library__dek,
.page-home .home-entries__dek,
.page-home .home-support__dek {
  margin: 12px 0 0;
  max-width: 56ch;
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--mist);
}

/* ---------- 三条内容线 ---------- */
.page-home .home-lines {
  padding: clamp(38px, 5.5vw, 76px) 0;
}

.page-home .home-lines__grid {
  display: grid;
  gap: 14px;
}

.page-home .hline {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--panel);
  transition: border-color 0.16s ease, transform 0.16s ease;
}

.page-home .hline:hover {
  border-color: rgba(34, 211, 238, 0.6);
  transform: translateY(-2px);
}

.page-home .hline--a {
  background:
    radial-gradient(120% 100% at 0% 0%, rgba(14, 116, 144, 0.32), transparent 62%),
    var(--panel);
}

.page-home .hline__num {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--amber);
  opacity: 0.9;
}

.page-home .hline__title {
  margin: 6px 0 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--snow);
}

.page-home .hline__text {
  margin: 10px 0 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--mist);
}

.page-home .hline__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.page-home .hline__tags li {
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.03em;
  color: var(--cyan);
}

.page-home .hline__more {
  align-self: flex-start;
  margin-top: auto;
  padding-top: 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.16s ease, color 0.16s ease;
}

.page-home .hline__more:hover,
.page-home .hline__more:focus-visible {
  border-bottom-color: var(--cyan);
  outline: none;
}

@media (min-width: 900px) {
  .page-home .home-lines__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-auto-rows: minmax(0, auto);
    gap: 16px;
  }

  .page-home .hline--a {
    grid-column: 1 / 8;
    grid-row: 1 / span 2;
    padding: 28px;
  }

  .page-home .hline--b {
    grid-column: 8 / 13;
    grid-row: 1;
  }

  .page-home .hline--c {
    grid-column: 8 / 13;
    grid-row: 2;
  }

  .page-home .hline--a .hline__title {
    font-size: 24px;
  }
}

/* ---------- 上手三步 ---------- */
.page-home .home-path {
  padding: clamp(38px, 5.5vw, 76px) 0;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(15, 34, 51, 0.4), rgba(8, 19, 31, 0));
}

.page-home .home-path__grid {
  display: grid;
  gap: clamp(20px, 3.5vw, 36px);
}

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

.page-home .home-path__fig img {
  display: block;
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  opacity: 0.92;
}

.page-home .home-path__fig figcaption {
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--mist);
  border-top: 1px solid var(--line);
}

.page-home .home-steps {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.page-home .step {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--teal);
  border-radius: var(--r-md);
  background: var(--panel);
  transition: border-color 0.16s ease, background 0.16s ease;
}

.page-home .step:hover {
  border-color: var(--cyan);
  border-left-color: var(--amber);
  background: rgba(15, 34, 51, 0.95);
}

.page-home .step__num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--amber);
}

.page-home .step__title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--snow);
}

.page-home .step__text {
  margin: 8px 0 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--mist);
}

.page-home .step details {
  margin-top: 12px;
  border-top: 1px dashed var(--line);
  padding-top: 10px;
}

.page-home .step summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--cyan);
}

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

.page-home .step summary::after {
  content: " +";
}

.page-home .step details[open] summary::after {
  content: " −";
}

.page-home .step details p {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--mist);
}

@media (min-width: 900px) {
  .page-home .home-path__grid {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: start;
  }

  .page-home .home-path__fig img {
    max-height: 380px;
  }
}

/* ---------- 版本与设置 ---------- */
.page-home .home-version {
  padding: clamp(38px, 5.5vw, 76px) 0;
}

.page-home .home-version__inner {
  display: grid;
  gap: clamp(20px, 3.5vw, 36px);
  padding: clamp(22px, 3.5vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(34, 211, 238, 0.14), transparent 60%),
    var(--panel);
}

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

.page-home .home-version__panels {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  align-content: start;
}

.page-home .vpanel {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgba(8, 19, 31, 0.55);
  transition: border-color 0.16s ease;
}

.page-home .vpanel:hover {
  border-color: rgba(34, 211, 238, 0.55);
}

.page-home .vpanel__key {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--mist);
}

.page-home .vpanel__val {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--cyan);
}

.page-home .vpanel__note {
  font-size: 13px;
  color: var(--mist);
}

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

  .page-home .vpanel--wide {
    grid-column: 1 / -1;
  }
}

@media (min-width: 960px) {
  .page-home .home-version__inner {
    grid-template-columns: 1.25fr 0.75fr;
    align-items: center;
  }

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

  .page-home .vpanel--wide {
    grid-column: auto;
  }
}

/* ---------- 数据带 ---------- */
.page-home .home-library {
  padding: clamp(38px, 5.5vw, 76px) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(15, 34, 51, 0.82), rgba(8, 19, 31, 0.94));
}

.page-home .home-library__top {
  display: grid;
  gap: clamp(18px, 3vw, 30px);
}

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

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

.page-home .home-stats {
  display: grid;
  gap: 12px;
  margin: clamp(22px, 3.5vw, 34px) 0 0;
  padding: 0;
  list-style: none;
}

.page-home .hstat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px 18px;
  border-top: 2px solid var(--amber);
  border-radius: 0 0 var(--r-md) var(--r-md);
  background: rgba(8, 19, 31, 0.5);
}

.page-home .hstat__num {
  font-family: var(--font-mono);
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--snow);
}

.page-home .hstat__key {
  font-size: 13px;
  font-weight: 600;
  color: var(--cyan);
  letter-spacing: 0.02em;
}

.page-home .hstat__note {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--mist);
}

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

@media (min-width: 960px) {
  .page-home .home-library__top {
    grid-template-columns: 0.85fr 1.15fr;
    align-items: center;
  }

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

/* ---------- 入口对照 ---------- */
.page-home .home-entries {
  padding: clamp(38px, 5.5vw, 76px) 0;
}

.page-home .home-entries__grid {
  display: grid;
  gap: clamp(20px, 3.5vw, 34px);
}

.page-home .home-entries__text .btn {
  margin-top: 22px;
}

.page-home .home-table__wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--panel);
}

.page-home .home-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 14px;
}

.page-home .home-table caption {
  padding: 14px 16px 0;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--amber);
}

.page-home .home-table th {
  padding: 12px 16px;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--mist);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.page-home .home-table td {
  padding: 13px 16px;
  color: var(--snow);
  border-bottom: 1px solid rgba(30, 58, 79, 0.6);
  vertical-align: top;
}

.page-home .home-table tbody td:first-child {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--amber);
  white-space: nowrap;
}

.page-home .home-table tbody tr {
  transition: background 0.16s ease;
}

.page-home .home-table tbody tr:hover {
  background: rgba(34, 211, 238, 0.08);
}

.page-home .home-table tbody tr:last-child td {
  border-bottom: none;
}

.page-home .home-table a {
  font-size: 13px;
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(34, 211, 238, 0.4);
}

.page-home .home-table a:hover,
.page-home .home-table a:focus-visible {
  border-bottom-color: var(--cyan);
  outline: none;
}

.page-home .home-entries__fig {
  margin-top: 18px;
}

.page-home .home-entries__fig figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}

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

@media (min-width: 960px) {
  .page-home .home-entries__grid {
    grid-template-columns: 0.8fr 1.2fr;
    align-items: start;
  }

  .page-home .home-entries__fig img {
    max-height: 220px;
  }
}

/* ---------- 支持带 ---------- */
.page-home .home-support {
  padding: 0 0 clamp(40px, 6vw, 80px);
}

.page-home .home-support__card {
  display: grid;
  gap: clamp(20px, 3.5vw, 34px);
  padding: clamp(22px, 3.5vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background:
    radial-gradient(100% 130% at 0% 100%, rgba(245, 185, 66, 0.12), transparent 58%),
    var(--panel);
}

.page-home .home-support__card .btn {
  margin-top: 22px;
}

.page-home .home-support__list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  align-content: start;
}

.page-home .home-support__list li {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgba(8, 19, 31, 0.5);
}

.page-home .home-support__key {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--amber);
}

.page-home .home-support__val {
  font-size: 14px;
  line-height: 1.65;
  color: var(--snow);
}

@media (min-width: 900px) {
  .page-home .home-support__card {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .htile,
  .page-home .hline,
  .page-home .step,
  .page-home .vpanel,
  .page-home .home-index__link,
  .page-home .home-crumb__link,
  .page-home .home-table tbody tr {
    transition: none;
  }

  .page-home .htile:hover,
  .page-home .hline:hover {
    transform: none;
  }
}
