.page-home {
  --home-cut: 26px;
  --home-line: rgba(169, 128, 90, 0.3);
  display: block;
}

/* ---------- 首屏框景 ---------- */
.page-home .hero {
  margin: 16px 0 0;
}

.page-home .hero__frame {
  position: relative;
  padding: 1px;
  background: linear-gradient(150deg, var(--gold) 0%, rgba(217, 164, 65, 0.12) 38%, rgba(46, 125, 154, 0.6) 100%);
  clip-path: polygon(
    var(--home-cut) 0,
    100% 0,
    100% calc(100% - var(--home-cut)),
    calc(100% - var(--home-cut)) 100%,
    0 100%,
    0 var(--home-cut)
  );
}

.page-home .hero__inner {
  position: relative;
  overflow: hidden;
  min-height: 440px;
  padding: 62px 22px 34px;
  display: flex;
  align-items: flex-end;
  background: var(--table-green);
  clip-path: polygon(
    var(--home-cut) 0,
    100% 0,
    100% calc(100% - var(--home-cut)),
    calc(100% - var(--home-cut)) 100%,
    0 100%,
    0 var(--home-cut)
  );
}

.page-home .hero__inner::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 22px;
  right: 22px;
  height: 8px;
  z-index: 2;
  background-image: repeating-linear-gradient(90deg, rgba(217, 164, 65, 0.5) 0 1px, transparent 1px 14px);
  pointer-events: none;
}

.page-home .hero__inner::after {
  content: "";
  position: absolute;
  right: 22px;
  bottom: 20px;
  width: 96px;
  height: 1px;
  z-index: 2;
  background: linear-gradient(90deg, transparent, var(--walnut-light));
  pointer-events: none;
}

.page-home .hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-home .hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
}

.page-home .hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(8, 37, 31, 0.5) 0%,
    rgba(8, 37, 31, 0.93) 74%,
    var(--table-green) 100%
  );
}

.page-home .hero__content {
  position: relative;
  z-index: 1;
  max-width: 680px;
}

.page-home .hero__content .eyebrow {
  margin: 0 0 14px;
}

.page-home .hero__content .display-xl {
  margin: 0 0 18px;
  line-height: 1.16;
}

.page-home .hero__lede {
  margin: 0;
  max-width: 560px;
  color: var(--sand);
}

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

/* ---------- 三栏工作台 ---------- */
.page-home .workbench {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 40px;
}

.page-home .panel {
  position: relative;
  height: 100%;
  padding: 22px 18px;
  background: rgba(107, 74, 47, 0.2);
  border: 1px solid rgba(169, 128, 90, 0.26);
  border-radius: var(--radius);
}

.page-home .panel--island {
  background: linear-gradient(180deg, rgba(8, 37, 31, 0.78), rgba(15, 59, 50, 0.94));
  border-color: rgba(217, 164, 65, 0.3);
}

.page-home .panel__title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(20px, 4.6vw, 26px);
  line-height: 1.25;
  color: var(--ivory);
}

.page-home .panel__lede {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--sand);
}

.page-home .panel__note {
  margin: 14px 0 0;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--mist);
}

.page-home .panel__media {
  margin: 20px 0 0;
  border-radius: 12px;
  overflow: hidden;
}

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

/* 回放时间轴 */
.page-home .replay-list {
  position: relative;
  margin: 18px 0 0;
  padding: 0 0 0 20px;
  list-style: none;
}

.page-home .replay-list::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--replay-blue) 0%, var(--archive-indigo) 100%);
}

.page-home .replay-item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3px 10px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--home-line);
}

.page-home .replay-item:last-child {
  border-bottom: 0;
}

.page-home .replay-item::before {
  content: "";
  position: absolute;
  left: -17px;
  top: 18px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--replay-blue);
  box-shadow: 0 0 0 3px rgba(46, 125, 154, 0.2);
}

.page-home .replay-item__cat {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--ivory);
}

.page-home .replay-item__state {
  justify-self: end;
  align-self: center;
  font-size: 12px;
  letter-spacing: 0.04em;
  padding: 2px 9px;
  border-radius: 999px;
  color: var(--sand);
  border: 1px solid rgba(169, 128, 90, 0.5);
}

.page-home .replay-item__state.is-done {
  color: var(--table-green);
  background: var(--gold);
  border-color: var(--gold);
}

.page-home .replay-item__meta {
  grid-column: 1 / -1;
  font-size: 13.5px;
  color: var(--mist);
}

/* 活动卡片堆叠 */
.page-home .act-stack {
  display: grid;
  gap: 14px;
  margin-top: 4px;
}

.page-home .act-card {
  position: relative;
  padding: 20px 18px 18px;
  background: linear-gradient(180deg, rgba(107, 74, 47, 0.92), rgba(74, 50, 31, 0.92));
  border: 1px solid rgba(169, 128, 90, 0.34);
  clip-path: polygon(20px 0, 100% 0, 100% 100%, 0 100%, 0 20px);
  transition: transform var(--t-fast) var(--ease);
}

.page-home .act-card:hover,
.page-home .act-card:focus-within {
  transform: translateY(-4px);
}

.page-home .act-card__tag {
  display: inline-block;
  padding: 3px 11px;
  margin-bottom: 12px;
  border-radius: 999px;
  background: var(--cinnabar);
  color: var(--ivory);
  font-size: 12px;
  letter-spacing: 0.14em;
  transition: padding var(--t-fast) var(--ease);
}

.page-home .act-card:hover .act-card__tag {
  padding-right: 19px;
}

.page-home .act-card__tag--gold {
  background: var(--gold);
  color: var(--deep-green);
}

.page-home .act-card__title {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 19px;
  line-height: 1.35;
  color: var(--ivory);
}

.page-home .act-card__meta {
  margin: 0;
  display: grid;
  gap: 8px;
}

.page-home .act-card__meta > div {
  display: grid;
  grid-template-columns: 66px 1fr;
  gap: 10px;
  align-items: baseline;
}

.page-home .act-card__meta dt {
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: var(--gold);
}

.page-home .act-card__meta dd {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--sand);
}

/* 进度环浮岛 */
.page-home .ring-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 6px 0 20px;
}

.page-home .ring-card {
  text-align: center;
}

.page-home .ring-wrap {
  position: relative;
  width: 100%;
  max-width: 118px;
  margin: 0 auto;
  aspect-ratio: 1 / 1;
}

.page-home .ring-wrap .progress-ring__svg {
  width: 100%;
  height: 100%;
  display: block;
}

.page-home .progress-ring__track {
  stroke: rgba(243, 237, 226, 0.14);
}

.page-home .progress-ring__value {
  stroke: var(--gold);
  transform: rotate(-90deg);
  transform-origin: 60px 60px;
}

.page-home .ring-wrap__num {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 30px;
  font-weight: 700;
  color: var(--ivory);
}

.page-home .ring-card__label {
  margin: 10px 0 0;
  font-size: 13.5px;
  letter-spacing: 0.06em;
  color: var(--sand);
}

.page-home .step-list {
  margin: 0;
  padding-left: 20px;
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--sand);
}

.page-home .step-list li + li {
  margin-top: 6px;
}

.page-home .collapse__head[aria-expanded="false"] + .collapse__body {
  display: none;
}

.page-home .island-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

/* ---------- 换机三步 ---------- */
.page-home .steps {
  margin-top: 44px;
}

.page-home .steps .section-head {
  margin-bottom: 20px;
}

.page-home .steps__media {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(169, 128, 90, 0.28);
}

.page-home .steps__media img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 7;
  height: auto;
  object-fit: cover;
}

.page-home .steps__grid {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  counter-reset: none;
}

.page-home .steps__item {
  position: relative;
  padding: 20px 18px;
  border-radius: 14px;
  border: 1px solid rgba(169, 128, 90, 0.26);
  background: linear-gradient(180deg, rgba(15, 59, 50, 0.6), rgba(8, 37, 31, 0.75));
  border-top: 2px solid var(--replay-blue);
}

.page-home .steps__idx {
  display: block;
  margin-bottom: 10px;
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--gold);
}

.page-home .steps__item h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  color: var(--ivory);
}

.page-home .steps__item p {
  margin: 0 0 14px;
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--sand);
}

.page-home .steps__time {
  display: inline-block;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: var(--mist);
  border-bottom: 1px solid rgba(169, 128, 90, 0.5);
  padding-bottom: 2px;
}

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

/* ---------- 联系与信任 ---------- */
.page-home .assurance {
  margin: 44px 0 0;
}

.page-home .assurance__inner {
  position: relative;
  padding: 28px 20px;
  border-radius: var(--radius);
  border: 1px solid rgba(217, 164, 65, 0.28);
  background:
    radial-gradient(120% 130% at 0% 0%, rgba(31, 60, 122, 0.5) 0%, transparent 58%),
    linear-gradient(180deg, rgba(8, 37, 31, 0.94), rgba(15, 59, 50, 0.9));
}

.page-home .assurance__title {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(20px, 4.4vw, 26px);
  color: var(--ivory);
}

.page-home .assurance__text {
  margin: 0;
  max-width: 720px;
  font-size: 15.5px;
  line-height: 1.95;
  color: var(--sand);
}

.page-home .assurance__facts {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.page-home .assurance__facts li {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px dashed rgba(169, 128, 90, 0.26);
  font-size: 14.5px;
  color: var(--ivory);
  word-break: break-all;
}

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

.page-home .assurance__key {
  font-size: 12.5px;
  letter-spacing: 0.1em;
  color: var(--gold);
}

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

/* ---------- 响应式 ---------- */
@media (min-width: 700px) {
  .page-home .hero__inner {
    padding: 72px 40px 44px;
  }

  .page-home .panel {
    padding: 26px 24px;
  }

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

  .page-home .assurance__facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 28px;
  }
}

@media (min-width: 1000px) {
  .page-home .workbench {
    grid-template-columns: 3.1fr 5.4fr 3.2fr;
    gap: 20px;
    align-items: start;
  }

  .page-home .ring-row {
    gap: 10px;
  }

  .page-home .steps {
    margin-top: 56px;
  }

  .page-home .assurance__inner {
    padding: 36px 40px;
  }
}

@media (min-width: 1280px) {
  .page-home .hero__inner {
    min-height: 500px;
    padding: 84px 56px 52px;
  }

  .page-home .workbench {
    gap: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .act-card,
  .page-home .act-card__tag {
    transition-duration: 120ms;
  }

  .page-home .act-card:hover,
  .page-home .act-card:focus-within {
    transform: none;
  }
}
