.page-home {
  --home-rail-w: 104px;
  --home-overhang: 40px;
  --home-pad: var(--gutter);
  --home-line: rgba(43, 227, 198, 0.14);
  --home-line-strong: rgba(43, 227, 198, 0.34);
  --home-body: rgba(234, 247, 243, 0.78);
  --home-body-quiet: rgba(234, 247, 243, 0.62);
  background: var(--ink-900);
  color: var(--text-dark);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.82;
  overflow-x: clip;
}

.page-home .home-mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.page-home .home-wrap {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 26px var(--home-pad) 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 26px;
}

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

/* ---------- 索引轨 ---------- */
.page-home .home-rail {
  position: sticky;
  top: var(--header-h);
  z-index: 20;
  margin: 0 calc(-1 * var(--home-pad));
  padding: 8px var(--home-pad);
  background: linear-gradient(180deg, rgba(6, 17, 15, 0.96) 0%, rgba(6, 17, 15, 0.74) 100%);
  backdrop-filter: blur(10px);
}

.page-home .home-rail__cap {
  display: none;
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--mist-400);
}

.page-home .home-rail__list {
  list-style: none;
  margin: 0;
  padding: 0 0 4px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

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

.page-home .home-rail__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--home-line-strong);
  background: rgba(19, 48, 42, 0.6);
  font-size: 13px;
  color: var(--text-dark);
  text-decoration: none;
  transition: background 0.24s var(--ease), border-color 0.24s var(--ease), color 0.24s var(--ease);
}

.page-home .home-rail__link .home-mono {
  font-size: 11px;
  color: var(--cyan-500);
}

.page-home .home-rail__link:hover,
.page-home .home-rail__link:focus-visible {
  background: rgba(43, 227, 198, 0.16);
  border-color: var(--cyan-500);
}

/* ---------- 首屏 ---------- */
.page-home .home-hero {
  padding: 8px 0 0;
}

.page-home .home-context {
  margin: 0 0 16px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--mist-400);
}

.page-home .home-hero__title {
  margin: 0 0 18px;
  max-width: 20ch;
  font-family: var(--font-title);
  font-weight: 900;
  font-size: clamp(2rem, 6.4vw, 3.5rem);
  line-height: 1.12;
  letter-spacing: -0.022em;
  color: var(--text-dark);
}

.page-home .home-hero__lede {
  margin: 0 0 30px;
  max-width: 64ch;
  font-size: 16px;
  line-height: 1.86;
  color: var(--home-body);
}

.page-home .home-collage {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}

.page-home .home-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px 20px;
  border-radius: var(--radius-l);
  background: var(--ink-800);
  border: 1px solid var(--home-line);
}

.page-home .home-card--main {
  padding: 0;
  overflow: hidden;
  background: linear-gradient(152deg, #0C1F1B 0%, #13302A 58%, #14624F 100%);
  border-color: rgba(43, 227, 198, 0.22);
}

.page-home .home-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

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

.page-home .home-card__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 4px 22px 26px;
}

.page-home .home-card__title {
  margin: 0;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: clamp(1.2rem, 2.6vw, 1.6rem);
  line-height: 1.3;
  letter-spacing: -0.015em;
}

.page-home .home-card__text {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.76;
  color: var(--home-body);
}

.page-home .home-card__figure {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 13.5px;
  color: var(--home-body-quiet);
}

.page-home .home-card__figure .home-mono {
  font-size: 1.72rem;
  font-weight: 700;
  line-height: 1;
  color: var(--cyan-500);
}

.page-home .home-card__link {
  margin-top: auto;
  align-self: flex-start;
  padding-bottom: 2px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--cyan-500);
  text-decoration: none;
  border-bottom: 1px solid var(--home-line-strong);
  transition: color 0.22s var(--ease), border-color 0.22s var(--ease);
}

.page-home .home-card__link:hover,
.page-home .home-card__link:focus-visible {
  color: var(--orange-500);
  border-color: var(--orange-500);
}

.page-home .home-card--export {
  background: var(--ink-700);
  border-color: rgba(255, 122, 47, 0.28);
}

.page-home .home-card--export .btn {
  margin-top: auto;
  align-self: flex-start;
}

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

.page-home .home-chips li {
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--home-line-strong);
  background: rgba(43, 227, 198, 0.07);
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(234, 247, 243, 0.88);
}

/* ---------- 章节通用 ---------- */
.page-home .home-chapter {
  position: relative;
  padding-top: 36px;
}

.page-home .home-chapter::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 68px;
  height: 6px;
  border-radius: var(--radius-pill);
  background: var(--grad-band);
}

.page-home .home-chapter__head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 26px;
}

.page-home .home-chapter__num {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--cyan-500);
}

.page-home .home-chapter__title {
  margin: 0;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: clamp(1.48rem, 3.4vw, 2.1rem);
  line-height: 1.26;
  letter-spacing: -0.018em;
  color: var(--text-dark);
}

.page-home .home-chapter__note {
  margin: 0;
  font-size: 14.5px;
  color: var(--mist-400);
}

.page-home .home-chapter--paper {
  background: var(--paper-50);
  color: var(--text-light);
  border-radius: var(--radius-xl);
  padding: 34px 22px 36px;
}

.page-home .home-chapter--paper .home-chapter__num {
  color: var(--jade-600);
}

.page-home .home-chapter--paper .home-chapter__title {
  color: var(--text-light);
}

.page-home .home-chapter--paper .home-chapter__note {
  color: #4A6560;
}

/* ---------- 01 四个入口 ---------- */
.page-home .home-grid4 {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.page-home .home-entry {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 20px;
  border-radius: var(--radius-m);
  background: var(--ink-800);
  border: 1px solid var(--home-line);
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.page-home .home-entry:hover,
.page-home .home-entry:focus-visible {
  transform: translateY(-4px);
  border-color: var(--cyan-500);
  background: var(--ink-700);
}

.page-home .home-entry__tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--cyan-500);
}

.page-home .home-entry__title {
  margin: 0;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.14rem;
  line-height: 1.36;
  letter-spacing: -0.012em;
  color: var(--text-dark);
}

.page-home .home-entry__text {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.74;
  color: var(--home-body);
}

.page-home .home-entry__meta {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--home-line);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--mist-400);
  transition: color 0.24s var(--ease);
}

.page-home .home-entry:hover .home-entry__meta,
.page-home .home-entry:focus-visible .home-entry__meta {
  color: var(--orange-500);
}

/* ---------- 02 下载区 ---------- */
.page-home .home-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}

.page-home .home-figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.page-home .home-figure img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius-m);
  border: 1px solid var(--home-line);
  background: var(--ink-800);
}

.page-home .home-figure figcaption {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
  color: var(--mist-400);
}

.page-home .home-figure--paper img {
  border-color: rgba(20, 98, 79, 0.22);
  background: var(--paper-100);
}

.page-home .home-figure--paper figcaption {
  color: #4A6560;
}

.page-home .home-split__body {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.page-home .home-split__lead {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.84;
  color: var(--home-body);
}

.page-home .home-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.page-home .home-steps li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  line-height: 1.74;
  color: rgba(234, 247, 243, 0.84);
}

.page-home .home-steps .home-mono {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-xs);
  background: rgba(43, 227, 198, 0.12);
  border: 1px solid var(--home-line-strong);
  color: var(--cyan-500);
  font-size: 12px;
}

/* ---------- 03 表格导出 ---------- */
.page-home .home-figure--paper {
  margin-bottom: 22px;
}

.page-home .home-tablewrap {
  overflow-x: auto;
  border-radius: var(--radius-m);
  border: 1px solid rgba(20, 98, 79, 0.2);
  background: var(--paper-50);
}

.page-home .home-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-light);
}

.page-home .home-table caption {
  caption-side: top;
  padding: 14px 16px 10px;
  text-align: left;
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.6;
  color: #4A6560;
  background: var(--paper-100);
}

.page-home .home-table th,
.page-home .home-table td {
  padding: 11px 14px;
  text-align: left;
  white-space: nowrap;
  border-bottom: 1px solid rgba(20, 98, 79, 0.14);
}

.page-home .home-table thead th {
  background: var(--paper-100);
  color: var(--jade-600);
  font-weight: 600;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--cyan-600);
}

.page-home .home-table tbody tr:nth-child(even) {
  background: var(--paper-100);
}

.page-home .home-table tbody tr:hover {
  background: rgba(43, 227, 198, 0.16);
}

.page-home .home-export-bar {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.page-home .home-export-bar__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.78;
  color: #35504A;
}

.page-home .home-export-bar .btn {
  align-self: flex-start;
}

/* ---------- 04 第 8 版 ---------- */
.page-home .home-version {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  padding: 24px 20px;
  border-radius: var(--radius-l);
  background: linear-gradient(140deg, rgba(19, 48, 42, 0.9) 0%, rgba(12, 31, 27, 0.95) 100%);
  border: 1px solid var(--home-line);
}

.page-home .home-version__stamp {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--home-line);
}

.page-home .home-version__big {
  margin: 4px 0 0;
  font-size: clamp(2.6rem, 8vw, 3.4rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--cyan-500);
}

.page-home .home-version__sub {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--mist-400);
}

.page-home .home-version__list {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.page-home .home-version__list li {
  position: relative;
  padding-left: 20px;
  font-size: 15px;
  line-height: 1.78;
  color: var(--home-body);
}

.page-home .home-version__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 9px;
  height: 2px;
  border-radius: var(--radius-pill);
  background: var(--cyan-500);
}

.page-home .home-cadence {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.page-home .home-cadence li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 16px;
  padding: 10px 14px;
  border-radius: var(--radius-s);
  background: rgba(6, 17, 15, 0.5);
  border: 1px solid var(--home-line);
}

.page-home .home-cadence__k {
  font-size: 14px;
  color: var(--home-body);
}

.page-home .home-cadence__v {
  margin-left: auto;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--orange-500);
}

/* ---------- 05 栏目索引 ---------- */
.page-home .home-index {
  list-style: none;
  margin: 0;
  padding: 4px 0 14px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(232px, 258px);
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.page-home .home-index > li {
  scroll-snap-align: start;
}

.page-home .home-index__item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
  padding: 20px 18px;
  border-radius: var(--radius-m);
  background: var(--ink-800);
  border: 1px solid var(--home-line);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.26s var(--ease), background 0.26s var(--ease);
}

.page-home .home-index__item:hover,
.page-home .home-index__item:focus-visible {
  border-color: var(--cyan-500);
  background: var(--ink-700);
}

.page-home .home-index__num {
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--cyan-500);
}

.page-home .home-index__name {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.06rem;
  line-height: 1.4;
  color: var(--text-dark);
}

.page-home .home-index__sub {
  margin-top: auto;
  font-size: 13px;
  line-height: 1.66;
  color: var(--home-body-quiet);
}

/* ---------- 订阅区 ---------- */
.page-home .home-subscribe {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid var(--home-line);
  background: var(--ink-800);
}

.page-home .home-subscribe__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.34;
}

.page-home .home-subscribe__body {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 38px 22px;
}

.page-home .home-subscribe__title {
  margin: 0;
  font-family: var(--font-title);
  font-weight: 900;
  font-size: clamp(1.4rem, 4vw, 2rem);
  line-height: 1.24;
  letter-spacing: -0.02em;
  color: var(--text-dark);
}

.page-home .home-subscribe__text {
  margin: 0;
  max-width: 56ch;
  font-size: 15px;
  line-height: 1.82;
  color: var(--home-body);
}

.page-home .home-subscribe__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

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

  .page-home .home-export-bar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .page-home .home-export-bar__text {
    max-width: 60ch;
  }
}

@media (min-width: 900px) {
  .page-home .home-collage {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-items: stretch;
  }

  .page-home .home-card--main {
    grid-row: 1 / span 2;
  }

  .page-home .home-card--matrix {
    grid-column: 2;
    grid-row: 1;
  }

  .page-home .home-card--export {
    grid-column: 2;
    grid-row: 2;
  }

  .page-home .home-split {
    grid-template-columns: minmax(0, 1.22fr) minmax(0, 1fr);
    gap: 34px;
    align-items: start;
  }

  .page-home .home-version {
    grid-template-columns: minmax(0, 210px) minmax(0, 1fr);
    gap: 30px;
    padding: 28px 26px;
  }

  .page-home .home-version__stamp {
    padding-bottom: 0;
    padding-right: 26px;
    border-bottom: none;
    border-right: 1px solid var(--home-line);
  }

  .page-home .home-subscribe__body {
    padding: 52px 40px;
  }
}

@media (min-width: 1024px) {
  .page-home .home-wrap {
    padding-top: 46px;
    grid-template-columns: var(--home-rail-w) minmax(0, 1fr);
    gap: 42px;
  }

  .page-home .home-rail {
    position: sticky;
    top: calc(var(--header-h) + 30px);
    margin: 0;
    padding: 0;
    background: none;
    backdrop-filter: none;
  }

  .page-home .home-rail__cap {
    display: block;
  }

  .page-home .home-rail__list {
    flex-direction: column;
    gap: 2px;
    padding: 0 0 0 14px;
    overflow: visible;
    border-left: 1px solid var(--home-line-strong);
  }

  .page-home .home-rail__link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border: none;
    border-radius: var(--radius-s);
    background: none;
    font-size: 13px;
    color: var(--home-body-quiet);
  }

  .page-home .home-rail__name {
    display: block;
  }

  .page-home .home-rail__link:hover,
  .page-home .home-rail__link:focus-visible {
    background: rgba(43, 227, 198, 0.1);
    color: var(--text-dark);
  }
}

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

@media (min-width: 1180px) {
  .page-home .home-card--export {
    margin-right: calc(-1 * var(--home-overhang));
  }
}

@media (max-width: 480px) {
  .page-home .home-card__body {
    padding: 4px 18px 22px;
  }

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

  .page-home .home-cadence__v {
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .home-entry,
  .page-home .home-index__item,
  .page-home .home-card--export .btn {
    transition: background-color 0.12s linear, border-color 0.12s linear, color 0.12s linear;
  }

  .page-home .home-entry:hover,
  .page-home .home-entry:focus-visible {
    transform: none;
  }
}
</final>
