.page-home {
  --home-top-space: 116px;
  --home-sec-gap: 64px;
  --home-rule: 1px solid var(--line);
}

/* ---------- 顶部上下文 ---------- */
.page-home .home-topbar {
  padding-top: var(--home-top-space);
}

.page-home .crumb-sep {
  margin: 0 10px;
  color: var(--gold);
  opacity: 0.7;
}

/* ---------- 首屏分屏 ---------- */
.page-home .home-hero {
  padding-top: 28px;
}

.page-home .home-hero__grid {
  display: grid;
  gap: 32px;
}

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

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

.page-home .home-hero__annot {
  display: block;
  margin-top: 14px;
  max-width: 34ch;
  color: var(--paper-2);
  opacity: 0.85;
}

.page-home .home-hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  margin: 26px 0 0;
  padding: 18px 0 0;
  border-top: var(--home-rule);
  list-style: none;
}

.page-home .home-hero__facts li {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: var(--fs-13);
  color: var(--paper-2);
}

.page-home .home-hero__facts .mono {
  font-size: var(--fs-28);
  color: var(--gold);
  line-height: 1;
}

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

.page-home .home-hero__visual {
  position: relative;
  min-height: 300px;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--felt);
  box-shadow: 0 40px 90px -50px rgba(0, 0, 0, 0.95);
}

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

.page-home .home-hero__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 72% 18%, rgba(201, 164, 92, 0.2), transparent 58%),
    linear-gradient(180deg, rgba(10, 13, 11, 0.2), rgba(10, 13, 11, 0.88));
}

.page-home .home-hero__card {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 2;
  padding: 14px 22px;
  border: var(--home-rule);
  border-radius: var(--r-md);
  background: rgba(10, 13, 11, 0.82);
  backdrop-filter: blur(6px);
}

.page-home .home-hero__card-k {
  color: var(--gold);
  margin-bottom: 6px;
}

/* ---------- 通用章节间距 ---------- */
.page-home .sec {
  margin-top: var(--home-sec-gap);
}

/* ---------- 分类轨道 ---------- */
.page-home .home-track__list {
  display: grid;
  gap: 10px;
  margin-top: 26px;
}

.page-home .track-item {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  grid-template-areas:
    "no name count"
    "no desc desc";
  gap: 6px 14px;
  align-items: center;
  padding: 16px 18px;
  border: var(--home-rule);
  border-radius: var(--r-sm);
  background: linear-gradient(180deg, var(--felt-2), var(--felt));
  text-decoration: none;
  transition: border-color 240ms var(--ease), transform 240ms var(--ease), background 240ms var(--ease);
}

.page-home .track-item:hover,
.page-home .track-item:focus-visible {
  border-color: var(--gold);
  transform: translateX(4px);
  background: linear-gradient(180deg, #214230, var(--felt-2));
  outline: none;
}

.page-home .track-item__no {
  grid-area: no;
  font-size: var(--fs-13);
  color: var(--gold);
  opacity: 0.85;
}

.page-home .track-item__name {
  grid-area: name;
  font-family: var(--font-serif);
  font-size: var(--fs-22);
  font-weight: 600;
  color: var(--text-light);
  letter-spacing: 0.02em;
}

.page-home .track-item__desc {
  grid-area: desc;
  font-size: var(--fs-13);
  line-height: 1.7;
  color: var(--paper-2);
  opacity: 0.88;
}

.page-home .track-item__count {
  grid-area: count;
  font-size: var(--fs-12);
  color: var(--paper-2);
  white-space: nowrap;
}

.page-home .track-item__count .mono {
  font-size: var(--fs-16);
  color: var(--gold-bright);
}

.page-home .home-track__media {
  margin: 38px 0 0;
}

/* ---------- 线路面板 ---------- */
.page-home .home-lines__grid {
  display: grid;
  gap: 32px;
}

.page-home .line-rows {
  display: grid;
  gap: 14px;
  margin-top: 26px;
}

.page-home .line-row {
  padding: 20px 22px;
  border: var(--home-rule);
  border-radius: var(--r-md);
  background: rgba(28, 58, 43, 0.45);
  transition: border-color 240ms var(--ease), background 240ms var(--ease);
}

.page-home .line-row:hover {
  border-color: rgba(201, 164, 92, 0.55);
  background: rgba(28, 58, 43, 0.75);
}

.page-home .line-row__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
}

.page-home .line-row__name {
  font-family: var(--font-serif);
  font-size: var(--fs-18);
  font-weight: 600;
  color: var(--text-light);
}

.page-home .line-row__value {
  font-size: var(--fs-22);
  letter-spacing: 0.04em;
}

.page-home .line-row--std .line-row__value { color: var(--paper-2); }
.page-home .line-row--opt .line-row__value { color: var(--cyan); }
.page-home .line-row--exp .line-row__value { color: var(--gold-bright); }

.page-home .line-row__wave {
  display: block;
  width: 100%;
  height: 40px;
  margin: 12px 0 10px;
}

.page-home .line-row__wave path {
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.page-home .line-row--std .line-row__wave path { stroke: var(--paper-2); opacity: 0.7; }
.page-home .line-row--opt .line-row__wave path { stroke: var(--cyan); }
.page-home .line-row--exp .line-row__wave path { stroke: var(--gold); }

.page-home .line-row__desc {
  font-size: var(--fs-13);
  line-height: 1.75;
  color: var(--paper-2);
}

.page-home .home-lines__aside {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 22px;
  border: var(--home-rule);
  border-radius: var(--r-lg);
  background: rgba(10, 13, 11, 0.6);
}

.page-home .home-lines__figure {
  margin: 0;
  border-radius: var(--r-sm);
  overflow: hidden;
}

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

.page-home .home-lines__aside .annot {
  color: var(--gold);
  line-height: 1.7;
}

/* ---------- 桌面等级 ---------- */
.page-home .tier-list {
  display: grid;
  gap: 14px;
  margin-top: 26px;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.page-home .tier {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  grid-template-areas:
    "step name range"
    "step bar  bar";
  gap: 8px 14px;
  align-items: center;
  padding: 14px 16px;
  border: var(--home-rule);
  border-radius: var(--r-sm);
  background: rgba(28, 58, 43, 0.32);
}

.page-home .tier__step {
  grid-area: step;
  font-size: var(--fs-13);
  color: var(--gold);
}

.page-home .tier__name {
  grid-area: name;
  font-family: var(--font-serif);
  font-size: var(--fs-18);
  font-weight: 600;
  color: var(--text-light);
}

.page-home .tier__range {
  grid-area: range;
  font-size: var(--fs-16);
  letter-spacing: 0.04em;
  color: var(--gold-bright);
  white-space: nowrap;
}

.page-home .tier__bar {
  grid-area: bar;
  display: block;
  height: 6px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}

.page-home .tier__fill {
  display: block;
  width: var(--bar, 30%);
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--felt-2), var(--gold));
}

/* ---------- 班次与节奏 ---------- */
.page-home .home-rhythm__grid {
  display: grid;
  gap: 30px;
}

.page-home .home-rhythm__media {
  margin: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: var(--home-rule);
}

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

.page-home .home-rhythm__body p {
  margin-top: 18px;
  color: var(--text-light);
  line-height: 1.85;
}

.page-home .rhythm-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 34px;
  margin: 26px 0 0;
  padding: 18px 0;
  border-top: var(--home-rule);
  border-bottom: var(--home-rule);
}

.page-home .rhythm-stats .stat {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.page-home .rhythm-stats .stat__value {
  font-size: var(--fs-28);
  color: var(--gold);
  line-height: 1;
}

.page-home .rhythm-stats .stat__label {
  font-size: var(--fs-13);
  color: var(--paper-2);
}

/* ---------- 折叠面板 ---------- */
.page-home .fold {
  margin-top: 22px;
  border: var(--home-rule);
  border-radius: var(--r-md);
  background: rgba(28, 58, 43, 0.42);
  overflow: hidden;
}

.page-home .fold__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-serif);
  font-size: var(--fs-16);
  color: var(--text-light);
}

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

.page-home .fold__hint {
  font-family: var(--font-sans);
  font-size: var(--fs-12);
  color: var(--gold);
  letter-spacing: 0.08em;
}

.page-home .fold[open] .fold__hint {
  color: var(--cyan);
}

.page-home .fold__list {
  margin: 0;
  padding: 4px 20px 20px;
  list-style: none;
  display: grid;
  gap: 12px;
  border-top: var(--home-rule);
}

.page-home .fold__list li {
  font-size: var(--fs-13);
  line-height: 1.75;
  color: var(--paper-2);
}

.page-home .fold__list .mono {
  display: inline-block;
  min-width: 130px;
  margin-right: 10px;
  color: var(--gold-bright);
}

/* ---------- 活动周期 ---------- */
.page-home .cycle {
  margin-top: 30px;
}

.page-home .cycle__name {
  font-family: var(--font-serif);
  font-size: var(--fs-18);
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 14px;
}

.page-home .cycle__track {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0 0 0 20px;
  border-left: 1px solid var(--line);
  list-style: none;
}

.page-home .cycle__node {
  position: relative;
  padding-left: 18px;
  font-size: var(--fs-13);
  line-height: 1.7;
  color: var(--paper-2);
}

.page-home .cycle__node::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 164, 92, 0.16);
}

.page-home .cycle__node .mono {
  color: var(--gold-bright);
  margin-right: 8px;
}

/* ---------- 新址 ---------- */
.page-home .home-move__grid {
  display: grid;
  gap: 30px;
  padding: 30px 22px;
  border: var(--home-rule);
  border-radius: var(--r-lg);
  background: linear-gradient(150deg, rgba(28, 58, 43, 0.6), rgba(10, 13, 11, 0.5));
}

.page-home .home-move__copy p {
  margin-top: 18px;
  line-height: 1.85;
  color: var(--text-light);
}

.page-home .home-move__copy .btn {
  margin-top: 24px;
}

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

.page-home .home-move__list li {
  display: flex;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px dashed rgba(43, 49, 44, 0.9);
  font-size: var(--fs-13);
  line-height: 1.75;
  color: var(--paper-2);
}

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

.page-home .home-move__list .mono {
  color: var(--gold);
  flex: none;
}

/* ---------- 三条路径 ---------- */
.page-home .path-grid {
  display: grid;
  gap: 16px;
  margin-top: 26px;
}

.page-home .path-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px 22px;
  border: var(--home-rule);
  border-radius: var(--r-md);
  background: linear-gradient(180deg, var(--felt-2), var(--felt));
  text-decoration: none;
  transition: border-color 240ms var(--ease), transform 240ms var(--ease);
}

.page-home .path-card:hover,
.page-home .path-card:focus-visible {
  border-color: var(--gold);
  transform: translateY(-4px);
  outline: none;
}

.page-home .path-card__no {
  font-size: var(--fs-12);
  color: var(--gold);
  letter-spacing: 0.1em;
}

.page-home .path-card__title {
  font-family: var(--font-serif);
  font-size: var(--fs-22);
  font-weight: 600;
  color: var(--text-light);
}

.page-home .path-card p {
  font-size: var(--fs-13);
  line-height: 1.8;
  color: var(--paper-2);
  flex: 1;
}

.page-home .path-card__go {
  font-size: var(--fs-13);
  color: var(--gold-bright);
  letter-spacing: 0.04em;
}

/* ---------- 底部行动条 ---------- */
.page-home .home-cta {
  margin-top: var(--home-sec-gap);
}

.page-home .home-cta__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 30px 22px;
  border-top: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
  background: radial-gradient(90% 140% at 12% 0%, rgba(201, 164, 92, 0.12), transparent 60%);
}

.page-home .home-cta__title {
  font-family: var(--font-serif);
  font-size: var(--fs-22);
  font-weight: 600;
  color: var(--text-light);
}

.page-home .home-cta__copy p {
  margin-top: 10px;
  font-size: var(--fs-13);
  line-height: 1.8;
  color: var(--paper-2);
}

/* ---------- 响应式 ---------- */
@media (min-width: 720px) {
  .page-home {
    --home-sec-gap: 88px;
  }

  .page-home .home-hero__visual {
    min-height: 380px;
  }

  .page-home .track-item {
    grid-template-columns: 56px 200px 1fr 132px;
    grid-template-areas: "no name desc count";
    gap: 0 20px;
    padding: 20px 22px;
  }

  .page-home .tier {
    grid-template-columns: 48px 132px 1fr 150px;
    grid-template-areas: "step name bar range";
    gap: 0 20px;
    padding: 16px 20px;
  }

  .page-home .cycle__track {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
    padding: 18px 0 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

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

  .page-home .home-cta__inner {
    padding: 38px 30px;
  }
}

@media (min-width: 1024px) {
  .page-home .home-hero__grid {
    grid-template-columns: minmax(0, 5.3fr) minmax(0, 6.7fr);
    gap: 56px;
    align-items: stretch;
  }

  .page-home .home-hero__visual {
    min-height: 480px;
  }

  .page-home .home-lines__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
    gap: 44px;
    align-items: start;
  }

  .page-home .home-lines__aside {
    position: sticky;
    top: calc(var(--home-top-space) + 12px);
  }

  .page-home .home-rhythm__grid {
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    gap: 48px;
    align-items: start;
  }

  .page-home .home-move__grid {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    gap: 52px;
    padding: 44px 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .track-item,
  .page-home .line-row,
  .page-home .path-card {
    transition: none;
  }

  .page-home .track-item:hover,
  .page-home .path-card:hover {
    transform: none;
  }
}

.page-home {
  --bar: 1rem;
}
