/* ===== 首页 · 专题封面 + 层叠目录 ===== */
.page-home {
  --home-cut: 18px;
  --home-gap: clamp(16px, 2.4vw, 28px);

  display: block;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 20px var(--pad) 0;
  overflow-x: hidden;
  color: var(--text);
  font-family: var(--font-body);
}

.page-home a:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

/* --- 面包屑 --- */
.page-home .home-crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--text-2);
}
.page-home .home-crumb__path { color: var(--cyan); }
.page-home .home-crumb__sep { color: var(--dim); }
.page-home .home-crumb__now { color: var(--text); }
.page-home .home-crumb__hint {
  margin-left: auto;
  color: var(--dim);
  letter-spacing: 0.08em;
}

/* --- 共用小标题 --- */
.page-home .section-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 3.4vw, 2.25rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
}
.page-home .sec-sub {
  margin: 10px 0 0;
  max-width: 42em;
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-2);
}

/* ===== 首屏封面 ===== */
.page-home .cover {
  position: relative;
  padding: clamp(30px, 6vw, 68px) 0 clamp(36px, 5vw, 72px);
}
.page-home .cover__body {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 4vw, 48px);
}

.page-home .cover__title {
  margin: 14px 0 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 9.5vw, 5.2rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--text);
}
.page-home .cover__title-em {
  position: relative;
  display: inline-block;
  color: var(--cyan);
}
.page-home .cover__title-em::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.04em;
  height: 3px;
  background: var(--cyan);
  opacity: 0.3;
}

.page-home .cover__lead {
  margin: clamp(18px, 2.6vw, 26px) 0 0;
  max-width: 34em;
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  line-height: 1.75;
  color: var(--text-2);
}

.page-home .cover__index {
  list-style: none;
  margin: clamp(24px, 4vw, 40px) 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.page-home .cover__index li {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.65;
}
.page-home .cover__index-k {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--cyan);
  padding-top: 3px;
}
.page-home .cover__index-v { color: var(--text); }

.page-home .cover__art {
  position: relative;
  margin: 0;
  min-height: 230px;
  background: var(--panel);
  clip-path: polygon(
    0 0,
    100% 0,
    100% calc(100% - var(--home-cut)),
    calc(100% - var(--home-cut)) 100%,
    0 100%
  );
}
.page-home .cover__art img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 230px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  opacity: 0.6;
}
.page-home .cover__trace {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.page-home .cover__trace-old {
  fill: none;
  stroke: var(--dim);
  stroke-width: 1.5;
  stroke-dasharray: 6 6;
}
.page-home .cover__trace-new {
  fill: none;
  stroke: var(--cyan);
  stroke-width: 2.5;
  stroke-linecap: round;
}
.page-home .cover__trace-node { fill: var(--cyan); }

/* ===== 数据卡组 ===== */
.page-home .data {
  padding: clamp(30px, 5vw, 60px) 0;
  border-top: 1px solid var(--line);
}
.page-home .data__head { display: grid; gap: 0; }

.page-home .data__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--home-gap);
  margin-top: clamp(22px, 3vw, 34px);
}
.page-home .card {
  padding: 20px 18px 24px;
  background: var(--panel);
  clip-path: polygon(
    0 0,
    100% 0,
    100% 100%,
    var(--home-cut) 100%,
    0 calc(100% - var(--home-cut))
  );
}
.page-home .card--flip {
  clip-path: polygon(
    0 0,
    100% 0,
    100% calc(100% - var(--home-cut)),
    calc(100% - var(--home-cut)) 100%,
    0 100%
  );
}
.page-home .card__k {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--text-2);
}
.page-home .card__v {
  margin: 12px 0 0;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(2.6rem, 8vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--cyan);
}
.page-home .card__v--orange { color: var(--orange); }
.page-home .card__u {
  margin-left: 0.14em;
  font-size: 0.34em;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--text);
}
.page-home .card__d {
  margin: 14px 0 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-2);
}

.page-home .data__art {
  margin: 0;
  overflow: hidden;
  background: var(--panel);
  clip-path: polygon(
    0 0,
    100% 0,
    100% calc(100% - var(--home-cut)),
    calc(100% - var(--home-cut)) 100%,
    0 100%
  );
}
.page-home .data__art img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  opacity: 0.75;
}

/* ===== 路径演示 ===== */
.page-home .route {
  padding: clamp(30px, 5vw, 60px) 0;
  border-top: 1px solid var(--line);
}
.page-home .route__compare {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(20px, 3vw, 36px);
  margin-top: clamp(22px, 3vw, 34px);
}
.page-home .route__chart {
  padding: clamp(16px, 2.6vw, 28px);
  background: var(--panel);
  clip-path: polygon(
    0 0,
    100% 0,
    100% calc(100% - var(--home-cut)),
    calc(100% - var(--home-cut)) 100%,
    0 100%
  );
}
.page-home .route__svg {
  display: block;
  width: 100%;
  height: auto;
}
.page-home .route__svg-label {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  fill: var(--text-2);
}
.page-home .route__svg-label--new { fill: var(--cyan); }
.page-home .route__svg-note {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  fill: var(--orange);
}
.page-home .route__line--old {
  stroke: var(--dim);
  stroke-width: 2;
  stroke-dasharray: 7 7;
  stroke-linecap: round;
}
.page-home .route__line--new {
  stroke: var(--cyan);
  stroke-width: 2.5;
  stroke-linecap: round;
}
.page-home .route__node--old { fill: var(--dim); }
.page-home .route__node--new { fill: var(--cyan); }

.page-home .route__legend {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-2);
}
.page-home .route__legend-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.page-home .route__legend-item::before {
  content: "";
  flex: none;
  width: 20px;
  height: 2px;
  margin-top: 9px;
  background: var(--dim);
}
.page-home .route__legend-item--new::before { background: var(--cyan); }

.page-home .route__fig {
  margin: 0;
  overflow: hidden;
  background: var(--panel);
  clip-path: polygon(
    0 0,
    100% 0,
    100% 100%,
    var(--home-cut) 100%,
    0 calc(100% - var(--home-cut))
  );
}
.page-home .route__fig img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 5 / 3;
  object-fit: cover;
}

.page-home .route__steps {
  list-style: none;
  margin: clamp(22px, 3vw, 34px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--home-gap);
}
.page-home .route__step {
  padding-top: 14px;
  border-top: 2px solid var(--cyan);
}
.page-home .route__step-no {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--cyan);
}
.page-home .route__step-t {
  margin: 8px 0 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text);
}

/* ===== 本期目录 ===== */
.page-home .catalog {
  padding: clamp(30px, 5vw, 60px) 0;
  border-top: 1px solid var(--line);
}
.page-home .catalog__list {
  list-style: none;
  margin: clamp(22px, 3vw, 34px) 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.page-home .catalog__item { border-bottom: 1px solid var(--line); }

.page-home .catalog__link {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 18px 2px;
  text-decoration: none;
  color: inherit;
  transition: background-color 0.25s var(--ease);
}
.page-home .catalog__no {
  flex: none;
  width: 32px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--cyan);
}
.page-home .catalog__body { min-width: 0; flex: 1 1 auto; }
.page-home .catalog__name {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  letter-spacing: -0.01em;
  color: var(--text);
  transition: color 0.25s var(--ease);
}
.page-home .catalog__desc {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-2);
}
.page-home .catalog__go {
  flex: none;
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--dim);
  transition: color 0.25s var(--ease), transform 0.25s var(--ease);
}
.page-home .catalog__link:hover .catalog__name,
.page-home .catalog__link:focus-visible .catalog__name { color: var(--cyan); }
.page-home .catalog__link:hover .catalog__go,
.page-home .catalog__link:focus-visible .catalog__go {
  color: var(--cyan);
  transform: translateX(4px);
}

.page-home .catalog__texture {
  margin: clamp(26px, 4vw, 42px) 0 0;
  overflow: hidden;
  background: var(--panel);
  clip-path: polygon(
    0 0,
    100% 0,
    100% 100%,
    var(--home-cut) 100%,
    0 calc(100% - var(--home-cut))
  );
}
.page-home .catalog__texture img {
  display: block;
  width: 100%;
  height: clamp(84px, 14vw, 140px);
  object-fit: cover;
  opacity: 0.45;
}

/* ===== 更新摘要 ===== */
.page-home .updates {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(20px, 3vw, 40px);
  padding: clamp(30px, 5vw, 60px) 0;
  border-top: 1px solid var(--line);
}
.page-home .updates__text {
  margin: 14px 0 0;
  max-width: 40em;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-2);
}
.page-home .updates__list {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--text);
}
.page-home .updates__list li {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.page-home .updates__when {
  flex: none;
  min-width: 58px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--orange);
  padding-top: 3px;
}

.page-home .updates__aside {
  padding: 22px 20px 24px;
  background:
    radial-gradient(130% 90% at 100% 0%, rgba(0, 229, 212, 0.12), transparent 62%),
    var(--panel);
  clip-path: polygon(
    0 0,
    100% 0,
    100% calc(100% - var(--home-cut)),
    calc(100% - var(--home-cut)) 100%,
    0 100%
  );
}
.page-home .updates__aside-k {
  margin: 0;
  font-family: var(--font-mono);
  font-size: clamp(2rem, 6vw, 2.6rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--cyan);
}
.page-home .updates__aside-t {
  margin: 14px 0 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-2);
}

/* ===== 帮助入口 ===== */
.page-home .assist {
  padding: clamp(30px, 5vw, 60px) 0 clamp(44px, 8vw, 92px);
  border-top: 1px solid var(--line);
}
.page-home .assist__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--home-gap);
  margin-top: clamp(22px, 3vw, 34px);
}
.page-home .assist__card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 22px 20px 24px;
  background: var(--panel);
  clip-path: polygon(
    0 0,
    100% 0,
    100% calc(100% - var(--home-cut)),
    calc(100% - var(--home-cut)) 100%,
    0 100%
  );
}
.page-home .assist__card--flip {
  clip-path: polygon(
    0 0,
    100% 0,
    100% 100%,
    var(--home-cut) 100%,
    0 calc(100% - var(--home-cut))
  );
}
.page-home .assist__card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  letter-spacing: -0.01em;
  color: var(--text);
}
.page-home .assist__card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-2);
}
.page-home .assist__card .btn { margin-top: 6px; }

/* ===== 响应式 ===== */
@media (min-width: 640px) {
  .page-home .data__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-home .data__art img { aspect-ratio: 3 / 4; }
}

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

@media (min-width: 900px) {
  .page-home .cover__body {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
    align-items: end;
    gap: clamp(28px, 4vw, 56px);
  }
  .page-home .cover__art { align-self: stretch; }

  .page-home .route__compare {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center;
  }

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

@media (min-width: 1024px) {
  .page-home .data__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .page-home .data__art img { aspect-ratio: 3 / 4; }
  .page-home .cover__title { font-size: clamp(3.4rem, 7vw, 5.2rem); }
}

@media (prefers-reduced-motion: reduce) {
  .page-home * {
    transition: none !important;
    animation: none !important;
  }
}
