.page-home {
  padding-top: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  overflow-x: hidden;
}

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

.page-home figure {
  margin: 0;
}

.page-home .title-h2,
.page-home .title-h3 {
  color: inherit;
}

/* ---------- 门廊首屏 ---------- */
.home-portal {
  position: relative;
  padding: calc(var(--header-h) + 18px) var(--gutter) 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(217, 164, 65, 0.18), transparent 56%),
    linear-gradient(180deg, #0e1a2b 0%, #0a1420 78%, #0e1a2b 100%);
  overflow: hidden;
}

.home-portal::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(217, 164, 65, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(217, 164, 65, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.home-portal__beam {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  height: 8px;
  margin: 0 auto 8px;
  background: repeating-linear-gradient(90deg, var(--gold) 0 1px, transparent 1px 16px);
  opacity: 0.55;
}

.home-portal__frame {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(26px, 5vw, 56px) clamp(16px, 4vw, 48px) clamp(18px, 3vw, 30px);
  border: 1px solid var(--gold-line-strong);
  background: linear-gradient(180deg, rgba(23, 41, 63, 0.56), rgba(14, 26, 43, 0.16));
}

.home-portal__frame::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px dashed var(--gold-line);
  pointer-events: none;
}

.home-portal__pillar {
  position: absolute;
  top: 22px;
  bottom: 22px;
  width: 1px;
  background: repeating-linear-gradient(180deg, var(--gold) 0 1px, transparent 1px 18px);
  opacity: 0.6;
}

.home-portal__pillar--left {
  left: 4px;
}

.home-portal__pillar--right {
  right: 4px;
}

.home-portal__inner {
  position: relative;
  text-align: center;
}

.home-portal__crumb {
  display: flex;
  justify-content: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.08em;
  color: var(--stone);
}

.home-portal__meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
}

.home-portal__ver {
  padding: 2px 8px;
  border: 1px solid var(--gold-line-strong);
  color: var(--gold-hi);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
}

.home-portal__title {
  margin: 14px 0 10px;
  color: var(--gold-hi);
  text-shadow: 0 0 22px rgba(243, 200, 104, 0.22);
}

.home-portal__lede {
  max-width: 24em;
  margin: 0 auto 20px;
  color: var(--paper);
  font-size: clamp(0.95rem, 2.5vw, 1.075rem);
  line-height: 1.8;
}

.home-portal__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.home-portal__figure {
  position: relative;
  max-width: 800px;
  margin: 28px auto 0;
  border: 1px solid var(--gold-line);
  background: var(--ink-2);
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.home-portal__figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-portal__flags {
  display: flex;
  max-width: 800px;
  margin: 0 auto;
  gap: 4px;
}

.home-portal__flag {
  flex: 1;
  height: 3px;
}

.home-portal__flag--blue { background: var(--flag-blue); }
.home-portal__flag--white { background: var(--paper); }
.home-portal__flag--red { background: var(--cinnabar); }
.home-portal__flag--green { background: var(--flag-green); }
.home-portal__flag--yellow { background: var(--gold); }

/* ---------- 横向卷轴条 ---------- */
.home-scroll {
  background: var(--ink-2);
  border-top: 1px solid var(--gold-line);
  border-bottom: 1px solid var(--gold-line);
}

.home-scroll__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 16px;
  padding: 18px var(--gutter) 14px;
}

.home-scroll__head h2 {
  margin: 0;
  color: var(--gold-hi);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.home-scroll__head p {
  margin: 0;
  color: var(--stone);
  font-size: var(--fs-micro);
  letter-spacing: 0.08em;
}

.home-scroll__list {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  border-top: 1px solid var(--gold-line);
  scrollbar-width: thin;
}

.home-scroll__item {
  flex: 0 0 min(86vw, 540px);
  scroll-snap-align: start;
  border-right: 1px solid var(--gold-line);
}

.home-scroll__item:last-child {
  border-right: 0;
}

.home-scroll__item > a {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 148px;
  padding: 18px 20px 22px;
  color: var(--paper);
  text-decoration: none;
  transition: background 240ms var(--ease), outline-color 240ms var(--ease);
}

.home-scroll__item > a:hover,
.home-scroll__item > a:focus-visible {
  background: rgba(217, 164, 65, 0.08);
  outline: 1px solid var(--gold-line-strong);
}

.home-scroll__k {
  color: var(--gold-hi);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.home-scroll__v {
  color: var(--flag-blue);
  font-size: var(--fs-micro);
  letter-spacing: 0.06em;
}

.home-scroll__d {
  color: var(--stone);
  font-size: var(--fs-small);
  line-height: 1.75;
}

.home-scroll__figure {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 22px var(--gutter) 26px;
}

.home-scroll__figure img {
  width: 100%;
  border: 1px solid var(--gold-line);
}

.home-scroll__caption {
  margin-top: 8px;
  color: var(--stone);
  font-size: var(--fs-micro);
  letter-spacing: 0.04em;
}

/* ---------- 资料动线 ---------- */
.home-trail {
  scroll-margin-top: calc(var(--header-h) + 12px);
  padding: clamp(48px, 8vw, 96px) 0;
  background: var(--paper);
  color: var(--ink-black);
}

.home-trail .note-col {
  padding-left: 16px;
  border-left: 2px solid var(--gold);
  color: var(--ink-black);
}

.home-trail .note-col__label {
  margin: 0 0 10px;
  color: var(--cinnabar);
  font-size: var(--fs-micro);
  letter-spacing: 0.1em;
}

.home-trail .note-col p {
  margin: 0;
  color: #4a4238;
  font-size: var(--fs-small);
  line-height: 1.8;
}

.home-trail__main .title-h2 {
  margin: 0 0 12px;
  color: var(--ink-black);
}

.home-trail__intro {
  max-width: 38em;
  margin: 0;
  color: #3f372e;
  line-height: 1.8;
}

.home-trail__steps {
  margin: 24px 0;
  padding: 0;
  list-style: none;
}

.home-trail__step {
  position: relative;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 12px;
  padding: 18px 0;
  border-top: 1px solid var(--paper-line);
}

.home-trail__num {
  padding-top: 3px;
  color: var(--cinnabar);
  font-size: var(--fs-small);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.home-trail__step h3 {
  margin: 0 0 6px;
  color: var(--ink-black);
  font-size: 1.05rem;
}

.home-trail__step p {
  margin: 0;
  color: #4a4238;
  font-size: var(--fs-small);
  line-height: 1.8;
}

.home-trail__figure {
  margin-top: 6px;
  border: 1px solid var(--paper-line);
  background: #eadfcd;
}

.home-trail__figure img {
  width: 100%;
}

.home-trail .btn--quiet {
  display: inline-flex;
  margin-top: 20px;
  color: var(--ink-black);
  border-color: var(--paper-line);
}

.home-trail .btn--quiet:hover,
.home-trail .btn--quiet:focus-visible {
  border-color: var(--gold);
  color: var(--cinnabar);
}

/* ---------- 档位与设备速览 ---------- */
.home-quick {
  padding: clamp(48px, 8vw, 96px) 0;
  background: linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);
}

.home-quick__grid {
  display: grid;
  gap: 28px;
}

.home-quick__media {
  border: 1px solid var(--gold-line);
  background: var(--ink-3);
  overflow: hidden;
}

.home-quick__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-quick__body .eyebrow {
  margin: 0 0 8px;
  color: var(--flag-blue);
}

.home-quick__body .title-h2 {
  margin: 0 0 10px;
  color: var(--gold-hi);
}

.home-quick__intro {
  margin: 0 0 16px;
  color: var(--stone);
  line-height: 1.8;
}

.home-quick__plans {
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-quick__plan {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 12px;
  padding: 14px 0;
  border-top: 1px solid var(--stone-line);
}

.home-quick__plan-name {
  color: var(--paper);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.home-quick__plan-price {
  color: var(--gold-hi);
  font-size: 1.25rem;
  font-weight: 700;
}

.home-quick__plan-note {
  grid-column: 1 / -1;
  color: var(--stone);
  font-size: 0.8125rem;
  line-height: 1.7;
}

.home-quick__fine {
  margin: 14px 0 0;
  color: var(--stone);
  font-size: 0.8125rem;
  line-height: 1.8;
}

.home-quick__device {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed var(--gold-line);
}

.home-quick__device > p:first-child {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: var(--fs-micro);
  letter-spacing: 0.1em;
}

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

.home-quick__device-item {
  padding: 6px 10px;
  border: 1px solid var(--stone-line);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

.home-quick__device-note {
  margin: 10px 0 0;
  color: var(--stone);
  font-size: 0.8125rem;
  line-height: 1.7;
}

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

/* ---------- 服务范围 ---------- */
.home-scope {
  padding: clamp(44px, 7vw, 80px) 0;
  background: var(--ink);
  border-top: 1px solid var(--gold-line);
}

.home-scope__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px 24px;
}

.home-scope__head .eyebrow {
  margin: 0 0 8px;
  color: var(--flag-green-hi);
}

.home-scope__head .title-h2 {
  margin: 0;
  color: var(--gold-hi);
}

.home-scope__link {
  color: var(--flag-blue);
  font-size: var(--fs-small);
  text-decoration: underline;
  text-underline-offset: 4px;
  padding: 6px 0;
}

.home-scope__intro {
  max-width: 46em;
  margin: 14px 0 0;
  color: var(--stone);
  line-height: 1.8;
}

.home-scope__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 36px;
  margin: 24px 0 6px;
}

.home-scope__stat {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.home-scope__stat strong {
  color: var(--gold-hi);
  font-size: clamp(2rem, 6vw, 3.25rem);
  line-height: 1;
  letter-spacing: 0.02em;
}

.home-scope__stat span {
  color: var(--stone);
  font-size: var(--fs-small);
}

.home-scope__bar {
  position: relative;
  display: flex;
  height: 14px;
  margin: 20px 0 10px;
  background: var(--stone-line);
}

.home-scope__seg {
  position: relative;
  display: block;
  height: 100%;
  cursor: default;
}

.home-scope__seg--done {
  background: linear-gradient(90deg, var(--gold), var(--flag-green));
}

.home-scope__seg--soon {
  background: var(--cinnabar);
}

.home-scope__seg:focus-visible {
  outline: 2px solid var(--gold-hi);
  outline-offset: 3px;
}

.home-scope__tip {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  z-index: 2;
  width: max-content;
  max-width: 200px;
  padding: 5px 9px;
  border: 1px solid var(--gold-line-strong);
  background: var(--ink-2);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  line-height: 1.5;
  transform: translateX(-50%);
  opacity: 0;
  visibility: hidden;
  transition: opacity 180ms var(--ease), visibility 180ms var(--ease);
  pointer-events: none;
}

.home-scope__seg--soon .home-scope__tip {
  left: auto;
  right: 0;
  transform: none;
}

.home-scope__seg:hover .home-scope__tip,
.home-scope__seg:focus .home-scope__tip,
.home-scope__seg:focus-within .home-scope__tip {
  opacity: 1;
  visibility: visible;
}

.home-scope__scale {
  display: flex;
  justify-content: space-between;
  color: var(--stone);
  font-size: var(--fs-micro);
  letter-spacing: 0.08em;
}

/* ---------- 接下来去哪儿 ---------- */
.home-next {
  padding: clamp(48px, 8vw, 88px) 0;
  background: var(--paper);
  color: var(--ink-black);
}

.home-next .title-h2 {
  margin: 0 0 18px;
  color: var(--ink-black);
}

.home-next__list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--paper-line);
}

.home-next__list a {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 16px 8px 16px 0;
  border-bottom: 1px solid var(--paper-line);
  color: var(--ink-black);
  text-decoration: none;
  transition: background 220ms var(--ease), padding-left 220ms var(--ease);
}

.home-next__list a:hover,
.home-next__list a:focus-visible {
  padding-left: 10px;
  background: rgba(217, 164, 65, 0.12);
  outline: 1px solid var(--gold-line);
}

.home-next__num {
  color: var(--cinnabar);
  font-size: var(--fs-small);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.home-next__text {
  display: block;
}

.home-next__title {
  display: block;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.home-next__desc {
  display: block;
  margin-top: 3px;
  color: #4a4238;
  font-size: var(--fs-small);
  line-height: 1.7;
}

.home-next__arrow {
  color: var(--cinnabar);
  font-size: 1.1rem;
}

/* ---------- 结尾入口 ---------- */
.home-exit {
  padding: clamp(44px, 7vw, 76px) 0;
  background: var(--ink);
  border-top: 1px solid var(--gold-line);
}

.home-exit__inner {
  max-width: 760px;
}

.home-exit .eyebrow {
  margin: 0 0 8px;
  color: var(--flag-blue);
}

.home-exit .title-h2 {
  margin: 0 0 10px;
  color: var(--gold-hi);
}

.home-exit p {
  margin: 0 0 20px;
  color: var(--stone);
  line-height: 1.8;
}

/* ---------- 桌面编排 ---------- */
@media (min-width: 880px) {
  .home-portal {
    padding-top: calc(var(--header-h) + 26px);
  }

  .home-portal__frame {
    padding-top: clamp(40px, 5vw, 64px);
    padding-bottom: 0;
  }

  .home-portal__title {
    margin-top: 18px;
  }

  .home-portal__figure {
    max-width: 880px;
    margin-top: 34px;
  }

  .home-scroll__item {
    flex-basis: 50%;
  }

  .home-scroll__figure {
    padding-top: 26px;
    padding-bottom: 34px;
  }

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

  .home-trail__main {
    padding-top: 4px;
  }

  .home-quick__grid {
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
    align-items: start;
  }

  .home-quick__media {
    position: sticky;
    top: calc(var(--header-h) + 20px);
  }

  .home-short__figure {
    margin-top: 4px;
  }

  .home-quick__links .btn {
    min-width: 180px;
  }

  .home-next__list a {
    padding: 22px 12px 22px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home *,
  .page-home *::before,
  .page-home *::after {
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
  }
}
