.page-home {
  --home-rail-w: 258px;
  --home-shell: 1360px;
  background: var(--ink-900);
  color: var(--gray-200);
  font-family: var(--font-sans);
  position: relative;
  overflow-x: clip;
}

.page-home .home-shell {
  max-width: var(--home-shell);
  margin: 0 auto;
  padding: clamp(20px, 3vw, 40px) var(--gutter) clamp(64px, 8vw, 120px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(32px, 5vw, 56px);
}

@media (min-width: 1024px) {
  .page-home .home-shell {
    grid-template-columns: var(--home-rail-w) minmax(0, 1fr);
    gap: clamp(40px, 4vw, 72px);
  }
}

/* ---------- 左侧导轨 ---------- */

.page-home .home-rail {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 22px 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--glass-light);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

@media (min-width: 1024px) {
  .page-home .home-rail {
    position: sticky;
    top: calc(var(--header-h) + 24px);
    max-height: calc(100vh - var(--header-h) - 48px);
    overflow-y: auto;
    align-self: start;
  }
}

.page-home .home-rail__label {
  margin: 0 0 12px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--gold-500);
}

.page-home .home-rail__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 1024px) {
  .page-home .home-rail__list {
    grid-template-columns: minmax(0, 1fr);
  }
}

.page-home .home-rail__link {
  display: block;
  padding: 8px 10px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--gray-200);
  text-decoration: none;
  border-left: 2px solid var(--line-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease),
    background-color var(--dur) var(--ease);
}

.page-home .home-rail__link:hover,
.page-home .home-rail__link:focus-visible {
  color: #fff;
  border-left-color: var(--red-600);
  background: rgba(200, 16, 46, 0.09);
}

.page-home .home-rail__block--member {
  padding-top: 18px;
  border-top: 1px solid var(--line-strong);
}

.page-home .home-rail__member {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-home .home-rail__member a {
  display: block;
  padding: 7px 9px;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--gray-400);
  text-decoration: none;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.page-home .home-rail__member a:hover,
.page-home .home-rail__member a:focus-visible {
  color: #fff;
  border-color: var(--red-400);
}

/* ---------- 右侧内容流 ---------- */

.page-home .home-flow {
  display: flex;
  flex-direction: column;
  gap: clamp(72px, 9vw, 132px);
  min-width: 0;
}

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

.page-home .home-hero {
  position: relative;
  isolation: isolate;
  padding: clamp(28px, 4vw, 56px) 0 0;
}

.page-home .home-hero__visual {
  position: absolute;
  inset: -14% -12% auto -12%;
  margin: 0;
  z-index: -3;
  opacity: 0.34;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 66% 58% at 68% 24%, #000 0%, rgba(0, 0, 0, 0.4) 48%, transparent 78%);
  mask-image: radial-gradient(ellipse 66% 58% at 68% 24%, #000 0%, rgba(0, 0, 0, 0.4) 48%, transparent 78%);
}

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

.page-home .home-hero__glow {
  position: absolute;
  inset: -30% -20% auto -20%;
  height: 130%;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(ellipse 52% 38% at 74% 6%, rgba(200, 16, 46, 0.12), transparent 70%),
    radial-gradient(ellipse 40% 30% at 12% 0%, rgba(201, 162, 39, 0.07), transparent 72%);
  animation: home-spot 8s ease-in-out infinite alternate;
}

.page-home .home-hero__texture {
  position: absolute;
  inset: auto 0 0 0;
  height: 180px;
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    linear-gradient(45deg, rgba(201, 162, 39, 0.07) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(201, 162, 39, 0.07) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(201, 162, 39, 0.07) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(201, 162, 39, 0.07) 75%);
  background-size: 36px 36px;
  background-position: 0 0, 0 18px, 18px -18px, -18px 0;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000);
  mask-image: linear-gradient(to bottom, transparent, #000);
}

@keyframes home-spot {
  from { opacity: 0.72; transform: translate3d(-1.5%, 0, 0); }
  to   { opacity: 1;    transform: translate3d(1.5%, 1%, 0); }
}

.page-home .home-hero__body {
  position: relative;
  z-index: 1;
  max-width: 34ch;
}

.page-home .home-hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--gray-400);
}

.page-home .home-hero__eyebrow .num {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--red-600);
  font-variant-numeric: tabular-nums;
}

.page-home .home-hero__title {
  margin: 20px 0 0;
  font-family: var(--font-head);
  font-size: clamp(2rem, 5.2vw, 3.6rem);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.03em;
  color: #fff;
  max-width: 17ch;
}

.page-home .home-hero__lede {
  margin: 24px 0 0;
  max-width: 56ch;
  font-size: 16.5px;
  line-height: 1.85;
  color: var(--gray-200);
}

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

.page-home .home-hero__toc {
  display: grid;
  gap: 0;
  margin: clamp(40px, 5vw, 68px) 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-strong);
  position: relative;
  z-index: 1;
}

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

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

.page-home .home-hero__toc a {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 17px 6px;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--gray-200);
  text-decoration: none;
  transition: color var(--dur) var(--ease), padding-left var(--dur) var(--ease);
}

.page-home .home-hero__toc .num {
  font-size: 13px;
  font-weight: 800;
  color: var(--gold-500);
  font-variant-numeric: tabular-nums;
  flex: none;
}

.page-home .home-hero__toc a:hover,
.page-home .home-hero__toc a:focus-visible {
  color: #fff;
  padding-left: 16px;
}

.page-home .home-hero__toc a:hover .num,
.page-home .home-hero__toc a:focus-visible .num {
  color: var(--red-600);
}

/* ---------- 通用章节头 ---------- */

.page-home .home-section {
  scroll-margin-top: calc(var(--header-h) + 24px);
}

.page-home .home-section__head {
  max-width: 64ch;
}

.page-home .home-section__head::before {
  content: "";
  display: block;
  width: 60px;
  height: 6px;
  margin-bottom: 22px;
  background-image: linear-gradient(90deg, var(--red-600) 0 50%, var(--gold-500) 50% 100%);
  background-size: 12px 6px;
  background-repeat: repeat-x;
  opacity: 0.85;
}

.page-home .home-section__eyebrow {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--gray-400);
}

.page-home .home-section__eyebrow .num {
  font-family: var(--font-head);
  font-size: clamp(24px, 3.4vw, 34px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--red-600);
  font-variant-numeric: tabular-nums;
}

.page-home .home-section__title {
  margin: 16px 0 0;
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 3.2vw, 2.15rem);
  font-weight: 800;
  line-height: 1.24;
  letter-spacing: -0.02em;
  color: #fff;
  max-width: 22ch;
}

.page-home .home-section__lede {
  margin: 18px 0 0;
  font-size: 16px;
  line-height: 1.85;
  color: var(--gray-400);
  max-width: 60ch;
}

/* ---------- 图片容器 ---------- */

.page-home .home-figure {
  margin: clamp(28px, 4vw, 44px) 0 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: var(--ink-800);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
}

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

.page-home .home-figure figcaption {
  padding: 14px 18px 16px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--gray-400);
  border-top: 1px solid var(--line-strong);
}

.page-home .home-figure--tall {
  margin-top: 0;
}

/* ---------- 规则与反馈并置 ---------- */

.page-home .home-split__grid {
  display: grid;
  gap: 18px;
  margin-top: clamp(28px, 4vw, 40px);
}

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

.page-home .home-panel {
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 32px);
  min-width: 0;
}

.page-home .home-panel--paper {
  background: var(--paper-050);
  background-image: linear-gradient(180deg, var(--paper-100) 0, transparent 150px);
  color: var(--ink-900);
}

.page-home .home-panel--steel {
  background: var(--ink-700);
  border: 1px solid rgba(74, 91, 105, 0.45);
  color: var(--gray-200);
}

.page-home .home-panel__kicker {
  margin: 0 0 22px;
  padding-bottom: 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--red-800);
  border-bottom: 1px solid var(--paper-line);
}

.page-home .home-panel__kicker--light {
  color: var(--gold-500);
  border-bottom-color: var(--line-strong);
}

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

.page-home .home-rules__item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--paper-line);
}

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

.page-home .home-rules__num {
  padding-top: 3px;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--red-600);
  font-variant-numeric: tabular-nums;
}

.page-home .home-rules__title {
  margin: 0;
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--ink-900);
}

.page-home .home-rules__text {
  margin: 6px 0 0;
  font-size: 14px;
  line-height: 1.72;
  color: #43413d;
}

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

.page-home .home-feedback__item {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-strong);
}

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

.page-home .home-feedback__title {
  margin: 0;
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.5;
  color: #fff;
}

.page-home .home-feedback__text {
  margin: 6px 0 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--gray-400);
  word-break: break-word;
}

/* ---------- 分类速览 ---------- */

.page-home .home-cats__grid {
  display: grid;
  gap: clamp(26px, 3.4vw, 40px);
  margin-top: clamp(28px, 4vw, 44px);
}

@media (min-width: 900px) {
  .page-home .home-cats__grid {
    grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
    align-items: start;
  }
}

@media (min-width: 1200px) {
  .page-home .home-cats__grid {
    grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
  }
}

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

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

.page-home .home-cats__item {
  padding: 16px 4px 16px 0;
  border-bottom: 1px solid var(--line-strong);
  min-width: 0;
}

@media (min-width: 620px) {
  .page-home .home-cats__item:nth-child(odd) {
    padding-right: 20px;
  }
}

.page-home .home-cats__name {
  margin: 0;
  font-family: var(--font-head);
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: #fff;
}

.page-home .home-cats__name::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 9px;
  vertical-align: 2px;
  background: var(--red-600);
  transform: skewX(-8deg);
}

.page-home .home-cats__note {
  margin: 7px 0 0 15px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--gray-400);
}

/* ---------- 版本时间轴 ---------- */

.page-home .home-versions__grid {
  display: grid;
  gap: clamp(28px, 4vw, 48px);
  margin-top: clamp(30px, 4vw, 46px);
}

@media (min-width: 900px) {
  .page-home .home-versions__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 360px);
    align-items: start;
  }
}

@media (min-width: 900px) {
  .page-home .home-versions__grid .home-figure {
    margin-top: 6px;
  }
}

.page-home .home-versions__list {
  position: relative;
  margin: 0;
  padding: 0 0 0 30px;
  list-style: none;
  border-left: 1px solid var(--line-soft);
}

.page-home .home-versions__item {
  position: relative;
  padding-bottom: 34px;
  min-width: 0;
}

.page-home .home-versions__item:last-child {
  padding-bottom: 0;
}

.page-home .home-versions__item::before {
  content: "";
  position: absolute;
  left: -36px;
  top: 6px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--ink-900);
  border: 2px solid var(--gold-500);
}

.page-home .home-versions__item:last-child::before {
  border-color: var(--red-600);
  background: var(--red-600);
  box-shadow: 0 0 0 4px rgba(200, 16, 46, 0.18);
}

.page-home .home-versions__tag {
  margin: 0;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--gold-500);
  font-variant-numeric: tabular-nums;
}

.page-home .home-versions__item:last-child .home-versions__tag {
  color: var(--red-400);
}

.page-home .home-versions__title {
  margin: 10px 0 0;
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: #fff;
}

.page-home .home-versions__text {
  margin: 10px 0 0;
  max-width: 52ch;
  font-size: 15px;
  line-height: 1.82;
  color: var(--gray-400);
}

/* ---------- 更新节奏与下一步 ---------- */

.page-home .home-next__stats {
  display: grid;
  gap: 0;
  margin: clamp(28px, 4vw, 42px) 0 0;
  border-top: 1px solid var(--line-soft);
}

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

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

.page-home .home-stat {
  padding: 22px 18px 24px 0;
  border-bottom: 1px solid var(--line-strong);
  min-width: 0;
}

.page-home .home-stat__value {
  margin: 0;
  font-family: var(--font-head);
  font-size: clamp(2rem, 3.6vw, 2.6rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--red-600);
  font-variant-numeric: tabular-nums;
}

.page-home .home-stat__label {
  margin: 12px 0 0;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--gray-400);
}

.page-home .home-next__links {
  display: grid;
  gap: 0;
  margin-top: clamp(34px, 4.4vw, 52px);
  border-top: 1px solid var(--line-soft);
}

.page-home .home-next__link {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas:
    "num title"
    "num text";
  gap: 4px 18px;
  padding: 20px 4px;
  border-bottom: 1px solid var(--line-strong);
  text-decoration: none;
  transition: background-color var(--dur) var(--ease), padding-left var(--dur) var(--ease);
}

.page-home .home-next__link:hover,
.page-home .home-next__link:focus-visible {
  background: rgba(200, 16, 46, 0.07);
  padding-left: 14px;
}

.page-home .home-next__link-num {
  grid-area: num;
  align-self: start;
  padding-top: 4px;
  font-size: 13px;
  font-weight: 800;
  color: var(--gold-500);
  font-variant-numeric: tabular-nums;
}

.page-home .home-next__link:hover .home-next__link-num,
.page-home .home-next__link:focus-visible .home-next__link-num {
  color: var(--red-600);
}

.page-home .home-next__link-title {
  grid-area: title;
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
  color: #fff;
}

.page-home .home-next__link-text {
  grid-area: text;
  font-size: 14px;
  line-height: 1.75;
  color: var(--gray-400);
}

/* ---------- 回到首屏 ---------- */

.page-home .home-backtop {
  position: fixed;
  right: clamp(14px, 3vw, 30px);
  bottom: clamp(14px, 3vw, 30px);
  z-index: 20;
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: var(--gray-200);
  text-decoration: none;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: var(--glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.page-home .home-backtop:hover,
.page-home .home-backtop:focus-visible {
  color: #fff;
  border-color: var(--red-600);
}

@media (max-width: 480px) {
  .page-home .home-backtop {
    padding: 9px 13px;
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .home-hero__glow {
    animation: none;
    opacity: 0.9;
  }
  .page-home .home-rail__link,
  .page-home .home-rail__member a,
  .page-home .home-hero__toc a,
  .page-home .home-next__link,
  .page-home .home-backtop {
    transition: none;
  }
}
</｜｜DSML｜｜ parameter>
</｜｜DSML｜｜ invoke>
</｜｜DSML｜｜ calls>
