.page-home {
  --home-line-soft: rgba(43, 240, 208, .22);
  --home-soft-bg: rgba(7, 31, 51, .72);
  --home-card-bg: rgba(14, 51, 80, .55);
  display: block;
}

/* ---------- 首屏 ---------- */
.page-home .home-head {
  padding-block: clamp(20px, 3.5vw, 40px) clamp(28px, 4.5vw, 56px);
}

.page-home .home-head__grid {
  display: grid;
  gap: clamp(22px, 3.5vw, 48px);
  grid-template-columns: 1fr;
  align-items: center;
}

@media (min-width: 960px) {
  .page-home .home-head__grid {
    grid-template-columns: 1.12fr .88fr;
  }
}

.page-home .home-head h1 {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -.02em;
  font-size: clamp(30px, 5.4vw, 56px);
  line-height: 1.08;
  margin: 14px 0 0;
  color: var(--mist-100);
}

.page-home .home-head__lead {
  margin: 18px 0 0;
  max-width: 60ch;
  color: var(--text-soft);
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.85;
}

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

.page-home .home-head__media {
  position: relative;
  margin: 0;
  border-radius: var(--radius-organic);
  overflow: hidden;
  box-shadow: 0 30px 80px -42px rgba(43, 240, 208, .5);
  background: var(--abyss-800);
}

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

.page-home .home-head__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3, 15, 26, .12), rgba(3, 15, 26, .78));
  pointer-events: none;
}

.page-home .home-head__media figcaption {
  position: absolute;
  z-index: 1;
  left: clamp(14px, 2vw, 20px);
  bottom: clamp(12px, 2vw, 18px);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--cyan-200);
}

/* ---------- 栏目目录带 ---------- */
.page-home .home-catalog {
  padding-block: clamp(26px, 4.5vw, 60px);
}

.page-home .home-catalog__grid {
  display: grid;
  gap: clamp(22px, 3.2vw, 44px);
  grid-template-columns: 1fr;
}

@media (min-width: 1000px) {
  .page-home .home-catalog__grid {
    grid-template-columns: 240px 1fr;
    align-items: start;
  }
}

.page-home .home-rail {
  border-radius: var(--radius-organic);
  background: var(--abyss-800);
  padding: 22px 20px;
  box-shadow: inset 0 0 0 1px rgba(78, 113, 134, .28);
}

@media (min-width: 1000px) {
  .page-home .home-rail {
    position: sticky;
    top: 132px;
  }
}

.page-home .home-rail__label {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--cyan-400);
}

.page-home .home-rail__count {
  margin: 10px 0 18px;
  font-size: 13px;
  color: var(--text-dim);
}

.page-home .home-rail__count strong {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  color: var(--mist-100);
  margin-right: 4px;
}

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

.page-home .home-rail__list a {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 8px 10px 8px 6px;
  border-radius: 10px;
  font-size: 14px;
  color: var(--text-soft);
  text-decoration: none;
  transition: background var(--dur-hover), color var(--dur-hover), transform var(--dur-hover);
}

.page-home .home-rail__list a:hover {
  background: rgba(43, 240, 208, .09);
  color: var(--mist-100);
  transform: translateX(6px);
}

.page-home .home-rail__list a:focus-visible {
  outline: 2px solid var(--orange-500);
  outline-offset: 2px;
}

.page-home .home-rail__num {
  min-width: 22px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--cyan-400);
}

.page-home .home-catalog__head {
  margin-bottom: 20px;
}

.page-home .home-catalog__head h2 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -.02em;
  font-size: clamp(24px, 3.2vw, 34px);
  line-height: 1.22;
  margin: 10px 0;
  color: var(--mist-100);
}

.page-home .home-catalog__head p {
  margin: 0;
  max-width: 62ch;
  color: var(--text-soft);
  line-height: 1.85;
}

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

.page-home .home-channel {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--home-card-bg);
  box-shadow: inset 0 0 0 1px rgba(78, 113, 134, .18);
  transition: background var(--dur-hover), transform var(--dur-hover), box-shadow var(--dur-hover);
}

@media (min-width: 720px) {
  .page-home .home-channel {
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 18px;
  }
}

.page-home .home-channel::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 3px;
  height: 0;
  border-radius: 0 3px 3px 0;
  background: var(--cyan-400);
  transform: translateY(-50%);
  transition: height var(--dur-hover);
}

.page-home .home-channel:hover,
.page-home .home-channel:focus-within {
  background: var(--abyss-600);
  transform: translateX(6px);
  box-shadow: inset 0 0 0 1px rgba(43, 240, 208, .35);
}

.page-home .home-channel:hover::before,
.page-home .home-channel:focus-within::before {
  height: 62%;
}

.page-home .home-channel__title {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -.01em;
}

.page-home .home-channel__title a {
  color: var(--mist-100);
  text-decoration: none;
}

.page-home .home-channel__title a:hover {
  text-decoration: underline;
  text-decoration-color: var(--cyan-400);
  text-underline-offset: 4px;
}

.page-home .home-channel__title a:focus-visible {
  outline: 2px solid var(--orange-500);
  outline-offset: 3px;
  border-radius: 3px;
}

.page-home .home-channel__desc {
  margin: 0;
  max-width: 58ch;
  font-size: 13.5px;
  line-height: 1.72;
  color: var(--text-soft);
}

.page-home .home-channel__state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: var(--radius-chip);
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .04em;
  background: rgba(43, 240, 208, .1);
  color: var(--cyan-200);
  box-shadow: inset 0 0 0 1px rgba(43, 240, 208, .35);
}

.page-home .home-channel__state i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}

.page-home .home-channel__state.is-pending {
  background: rgba(255, 154, 107, .1);
  color: var(--orange-300);
  box-shadow: inset 0 0 0 1px rgba(255, 154, 107, .32);
}

/* ---------- 两步进场 ---------- */
.page-home .home-steps {
  padding-block: clamp(34px, 5.5vw, 84px);
}

.page-home .home-steps__head,
.page-home .home-versions__head,
.page-home .home-local__head {
  max-width: 70ch;
}

.page-home .home-steps__head h2,
.page-home .home-versions__head h2,
.page-home .home-local__head h2 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -.02em;
  font-size: clamp(24px, 3.2vw, 34px);
  line-height: 1.22;
  margin: 10px 0;
  color: var(--mist-100);
}

.page-home .home-steps__head p,
.page-home .home-versions__head p,
.page-home .home-local__head p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.85;
}

.page-home .home-steps__grid {
  margin-top: 30px;
  display: grid;
  gap: clamp(24px, 3.5vw, 48px);
  grid-template-columns: 1fr;
  align-items: center;
}

@media (min-width: 900px) {
  .page-home .home-steps__grid {
    grid-template-columns: 1fr 1fr;
  }
}

.page-home .home-steps__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 24px;
  position: relative;
}

.page-home .home-steps__list::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 14px;
  bottom: 14px;
  width: 1px;
  background: linear-gradient(180deg, var(--cyan-400), rgba(43, 240, 208, 0));
  opacity: .55;
}

.page-home .home-step {
  position: relative;
  padding-left: 48px;
}

.page-home .home-step__num {
  position: absolute;
  left: 0;
  top: 0;
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--abyss-950);
  color: var(--cyan-400);
  font-family: var(--font-mono);
  font-size: 12px;
  box-shadow: inset 0 0 0 1px var(--home-line-soft);
}

.page-home .home-step h3 {
  margin: 4px 0 6px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 19px;
  color: var(--mist-100);
}

.page-home .home-step p {
  margin: 0;
  max-width: 46ch;
  color: var(--text-soft);
  line-height: 1.8;
}

.page-home .home-steps__media {
  margin: 0;
  border-radius: var(--radius-organic);
  overflow: hidden;
  background: var(--abyss-800);
  box-shadow: 0 26px 64px -38px rgba(43, 240, 208, .55);
}

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

.page-home .home-path {
  display: block;
  width: 100%;
  max-width: 620px;
  height: auto;
  margin-top: 34px;
}

/* ---------- 场馆双版本 ---------- */
.page-home .home-versions {
  padding-block: clamp(34px, 5.5vw, 84px);
}

.page-home .home-versions__link {
  margin-top: 12px;
}

.page-home .home-versions__link a {
  color: var(--ink-900);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid var(--orange-500);
  padding-bottom: 2px;
}

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

.page-home .home-versions__stage {
  margin-top: 32px;
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .page-home .home-versions__stage {
    grid-template-columns: 1fr 1px 1fr;
    gap: 22px;
    align-items: stretch;
  }
}

.page-home .home-versions__divider {
  display: none;
  background: linear-gradient(180deg, transparent, var(--cyan-400), transparent);
  opacity: .65;
}

@media (min-width: 900px) {
  .page-home .home-versions__divider {
    display: block;
  }
}

.page-home .home-version {
  padding: clamp(18px, 2.4vw, 26px);
  border-radius: var(--radius-organic);
  background: #ffffff;
  border: 1px solid rgba(78, 113, 134, .22);
}

.page-home .home-version__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.page-home .home-version__tag {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  padding: 4px 11px;
  border-radius: var(--radius-chip);
  background: rgba(43, 240, 208, .2);
  color: #04564a;
}

.page-home .home-version--b .home-version__tag {
  background: rgba(255, 90, 44, .15);
  color: #8c2c0e;
}

.page-home .home-version__head h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17px;
  color: var(--ink-900);
}

.page-home .home-version__fields {
  margin: 0;
}

.page-home .home-version__fields > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 6px;
  border-bottom: 1px dashed rgba(78, 113, 134, .28);
  font-size: 13.5px;
}

.page-home .home-version__fields > div:last-child {
  border-bottom: 0;
}

.page-home .home-version__fields dt {
  color: #426272;
}

.page-home .home-version__fields dd {
  margin: 0;
  text-align: right;
  font-family: var(--font-mono);
  color: var(--ink-900);
}

.page-home .home-version__fields > div.is-diff {
  border-radius: 8px;
  background: rgba(255, 90, 44, .08);
  box-shadow: inset 0 0 0 1px rgba(255, 90, 44, .5);
  transition: background var(--dur-hover), box-shadow var(--dur-hover);
}

.page-home .home-version__fields > div.is-diff:hover {
  background: rgba(255, 90, 44, .14);
  box-shadow: inset 0 0 0 1px rgba(255, 90, 44, .8);
}

.page-home .home-version__fields > div.is-diff dd {
  color: #bf390f;
}

/* ---------- 线路与故障 ---------- */
.page-home .home-lines {
  padding-block: clamp(34px, 5.5vw, 84px);
}

.page-home .home-lines__grid {
  display: grid;
  gap: clamp(24px, 4vw, 54px);
  grid-template-columns: 1fr;
  align-items: center;
}

@media (min-width: 960px) {
  .page-home .home-lines__grid {
    grid-template-columns: 1.05fr .95fr;
  }
}

.page-home .home-lines__head h2 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -.02em;
  font-size: clamp(24px, 3.2vw, 34px);
  line-height: 1.22;
  margin: 10px 0 0;
  color: var(--mist-100);
}

.page-home .home-lines__list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.page-home .home-lines__list li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--home-card-bg);
  color: var(--text-soft);
  line-height: 1.78;
  box-shadow: inset 0 0 0 1px rgba(78, 113, 134, .18);
}

.page-home .home-lines__list li span {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--cyan-400);
  padding-top: 4px;
}

.page-home .home-lines__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 22px;
}

.page-home .home-lines__readout {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-dim);
}

.page-home .home-lines__dots {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 18px 0 0;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--cyan-200);
}

.page-home .home-lines__dot {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.page-home .home-lines__dot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 10px currentColor;
}

.page-home .home-lines__dot.is-standby {
  color: var(--line-400);
}

.page-home .home-lines__dot.is-standby::before {
  box-shadow: none;
}

.page-home .home-lines__media {
  margin: 0;
  border-radius: var(--radius-organic);
  overflow: hidden;
  background: var(--abyss-800);
}

.page-home .home-lines__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

/* ---------- 海南本地 ---------- */
.page-home .home-local {
  padding-block: clamp(34px, 5.5vw, 84px);
}

.page-home .home-local__grid {
  margin-top: 28px;
  display: grid;
  gap: clamp(22px, 3.5vw, 46px);
  grid-template-columns: 1fr;
  align-items: stretch;
}

@media (min-width: 900px) {
  .page-home .home-local__grid {
    grid-template-columns: 1.05fr .95fr;
  }
}

.page-home .home-local__media {
  margin: 0;
  border-radius: var(--radius-organic);
  overflow: hidden;
  background: var(--abyss-800);
}

.page-home .home-local__media img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.page-home .home-local__contact {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: clamp(20px, 3vw, 32px);
  border-radius: var(--radius-organic);
  background: var(--home-soft-bg);
  box-shadow: inset 0 0 0 1px var(--home-line-soft);
}

.page-home .home-local__contact p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.85;
}

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

.page-home .home-local__channels li {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 12px;
  align-items: baseline;
  padding-bottom: 10px;
  border-bottom: 1px dashed rgba(78, 113, 134, .3);
  font-size: 14px;
}

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

.page-home .home-local__channels li > span:first-child {
  font-size: 12.5px;
  letter-spacing: .04em;
  color: var(--text-dim);
}

.page-home .home-local__channels a,
.page-home .home-local__plain {
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--cyan-200);
  text-decoration: none;
  word-break: break-all;
}

.page-home .home-local__channels a:hover {
  text-decoration: underline;
}

.page-home .home-local__channels a:focus-visible {
  outline: 2px solid var(--orange-500);
  outline-offset: 2px;
}

.page-home .home-local__contact .btn {
  align-self: flex-start;
}

/* ---------- 显现动效 ---------- */
.page-home [data-reveal].is-visible {
  animation: home-fade-up 420ms ease both;
}

@keyframes home-fade-up {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home [data-reveal].is-visible {
    animation: none;
  }
  .page-home .home-channel,
  .page-home .home-rail__list a {
    transition: none;
  }
}
