/* ============================================================
   首页 · page-home
   赛博夜都 · 霓虹剧场 / 模块化 Bento 信息板
   ============================================================ */

.page-home {
  display: block;
}

/* ---------- 首屏 ---------- */

.page-home .home-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 32px 0 48px;
  border-bottom: 1px solid var(--c-line);
  background:
    radial-gradient(120% 88% at 92% 2%, rgba(53, 230, 224, 0.18) 0%, rgba(53, 230, 224, 0) 56%),
    radial-gradient(96% 76% at 0% 98%, rgba(255, 63, 164, 0.13) 0%, rgba(255, 63, 164, 0) 58%),
    linear-gradient(176deg, #0A0F2C 0%, #101745 60%, #0A0F2C 100%);
}

.page-home .home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    repeating-linear-gradient(90deg, rgba(42, 53, 102, 0.55) 0 1px, transparent 1px 88px),
    repeating-linear-gradient(0deg, rgba(42, 53, 102, 0.38) 0 1px, transparent 1px 88px);
}

.page-home .home-hero .breadcrumbs {
  margin: 0 0 26px;
}

.page-home .home-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  align-items: end;
}

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

.page-home .home-hero__title {
  margin: 12px 0 18px;
  font-family: var(--font-sans);
  font-size: clamp(2.4rem, 11.5vw, 3.4rem);
  font-weight: 200;
  line-height: 1.04;
  letter-spacing: 0.01em;
  color: var(--c-white);
  text-shadow:
    0 0 16px rgba(53, 230, 224, 0.4),
    0 0 48px rgba(53, 230, 224, 0.16);
}

.page-home .home-hero__lead {
  max-width: 46ch;
  margin: 0 0 26px;
  color: var(--c-text);
  font-size: 0.98rem;
  line-height: 1.75;
}

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

.page-home .home-hero__visual {
  position: relative;
  min-width: 0;
}

.page-home .home-hero__visual::after {
  content: "";
  position: absolute;
  inset: auto -8% -14% 12%;
  height: 46%;
  background: linear-gradient(100deg, rgba(53, 230, 224, 0) 0%, rgba(53, 230, 224, 0.16) 50%, rgba(53, 230, 224, 0) 100%);
  transform: rotate(-9deg);
  pointer-events: none;
}

.page-home .home-hero__visual img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--c-line);
  background: linear-gradient(150deg, rgba(27, 42, 107, 0.9), rgba(10, 15, 44, 0.95));
  box-shadow: 0 0 60px rgba(53, 230, 224, 0.12);
}

.page-home .home-hero__index {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--c-line);
  border-left: 1px solid var(--c-line);
}

.page-home .home-index-item {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 12px 12px;
  border-right: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
  color: var(--c-muted);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-decoration: none;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}

.page-home .home-index-item:hover,
.page-home .home-index-item:focus-visible {
  background-color: rgba(53, 230, 224, 0.08);
  color: var(--c-cyan);
}

.page-home .home-index-num {
  color: var(--c-cyan);
  font-size: 0.68rem;
}

/* ---------- 分区门牌 ---------- */

.page-home .home-halls {
  padding-block: clamp(52px, 9vw, 92px) 0;
}

.page-home .home-halls__bento {
  margin-top: 32px;
}

.page-home .hall-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  min-height: 176px;
  padding: 22px 20px 24px;
  color: var(--c-text);
  text-decoration: none;
  background: linear-gradient(158deg, rgba(19, 26, 63, 0.96) 0%, rgba(11, 17, 44, 0.98) 100%);
  border: 1px solid var(--c-line);
  overflow: hidden;
  scroll-margin-top: calc(var(--header-h) + 24px);
  transition: transform 0.22s var(--ease), border-color 0.22s var(--ease), box-shadow 0.3s var(--ease);
}

.page-home .hall-card::after {
  content: "";
  position: absolute;
  top: -60%;
  left: -30%;
  width: 42%;
  height: 220%;
  background: linear-gradient(90deg, rgba(53, 230, 224, 0) 0%, rgba(53, 230, 224, 0.1) 50%, rgba(53, 230, 224, 0) 100%);
  transform: rotate(16deg);
  pointer-events: none;
  transition: transform 0.6s var(--ease);
}

.page-home .hall-card:hover,
.page-home .hall-card:focus-visible {
  border-color: var(--c-cyan);
  transform: translateY(-4px);
  box-shadow: 0 0 0 1px rgba(53, 230, 224, 0.45), 0 22px 44px -28px rgba(53, 230, 224, 0.55);
}

.page-home .hall-card:hover::after,
.page-home .hall-card:focus-visible::after {
  transform: rotate(16deg) translateX(320%);
}

.page-home .hall-card__icon {
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    inset 0 -7px 14px rgba(10, 15, 44, 0.6),
    0 0 18px rgba(53, 230, 224, 0.34);
}

.page-home .hall-card__icon--cyan {
  background: linear-gradient(145deg, rgba(53, 230, 224, 0.92), rgba(53, 230, 224, 0.14));
}

.page-home .hall-card__icon--magenta {
  background: linear-gradient(145deg, rgba(255, 63, 164, 0.92), rgba(255, 63, 164, 0.14));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    inset 0 -7px 14px rgba(10, 15, 44, 0.6),
    0 0 18px rgba(255, 63, 164, 0.34);
}

.page-home .hall-card__icon--gold {
  background: linear-gradient(145deg, rgba(232, 180, 90, 0.92), rgba(232, 180, 90, 0.14));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    inset 0 -7px 14px rgba(10, 15, 44, 0.6),
    0 0 18px rgba(232, 180, 90, 0.32);
}

.page-home .hall-card__title {
  margin: 0;
  color: var(--c-white);
  font-size: 1.24rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.page-home .hall-card__text {
  margin: 0;
  color: var(--c-text);
  font-size: 0.9rem;
  line-height: 1.72;
}

.page-home .hall-card__meta {
  margin-top: auto;
  color: var(--c-cyan);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.page-home .hall-card--lead {
  min-height: 232px;
  background: linear-gradient(150deg, rgba(27, 42, 107, 0.96) 0%, rgba(19, 26, 63, 0.98) 58%, rgba(10, 15, 44, 1) 100%);
}

.page-home .hall-card--lead .hall-card__title {
  font-size: 1.7rem;
  font-weight: 300;
}

.page-home .hall-card--lead .hall-card__text {
  max-width: 44ch;
}

/* ---------- 设备提示 ---------- */

.page-home .home-device {
  padding-block: clamp(48px, 8vw, 76px) 0;
}

.page-home .home-device__band {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 26px;
  padding: 26px 20px 30px;
  border: 1px solid var(--c-line);
  background: linear-gradient(112deg, rgba(27, 42, 107, 0.92) 0%, rgba(19, 26, 63, 0.94) 55%, rgba(10, 15, 44, 0.98) 100%);
  overflow: hidden;
}

.page-home .home-device__band::before {
  content: "";
  position: absolute;
  top: -60%;
  left: -20%;
  width: 46%;
  height: 220%;
  background: linear-gradient(90deg, rgba(53, 230, 224, 0) 0%, rgba(53, 230, 224, 0.14) 50%, rgba(53, 230, 224, 0) 100%);
  transform: rotate(13deg);
  pointer-events: none;
  animation: home-band-drift 12s linear infinite;
}

@keyframes home-band-drift {
  0%   { transform: rotate(13deg) translateX(0); }
  100% { transform: rotate(13deg) translateX(420%); }
}

.page-home .home-device__visual {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.page-home .home-device__visual img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border: 1px solid var(--c-line);
}

.page-home .home-device__copy {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.page-home .home-device__text {
  margin: 12px 0 0;
  color: var(--c-text);
  font-size: 0.94rem;
  line-height: 1.75;
}

.page-home .home-device__list {
  margin: 18px 0 24px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.page-home .home-device__list li {
  position: relative;
  padding-left: 20px;
  color: var(--c-text);
  font-size: 0.9rem;
  line-height: 1.7;
}

.page-home .home-device__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border: 1px solid var(--c-cyan);
  background-color: rgba(53, 230, 224, 0.18);
}

/* ---------- 大厅动态 ---------- */

.page-home .home-latest {
  position: relative;
  margin-top: clamp(56px, 9vw, 96px);
  padding-block: clamp(52px, 8vw, 88px);
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
  overflow: hidden;
  isolation: isolate;
}

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

.page-home .home-latest__bg img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.26;
}

.page-home .home-latest::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(10, 15, 44, 0.86) 0%, rgba(10, 15, 44, 0.95) 100%);
}

.page-home .home-latest .shell {
  position: relative;
  z-index: 1;
}

.page-home .home-latest__grid {
  margin-top: 30px;
}

.page-home .home-note {
  min-width: 0;
  padding: 22px 20px 24px;
  background: linear-gradient(158deg, rgba(19, 26, 63, 0.94), rgba(10, 15, 44, 0.96));
}

.page-home .home-note .panel-body {
  margin: 10px 0 0;
  color: var(--c-text);
  font-size: 0.92rem;
  line-height: 1.75;
}

.page-home .home-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 28px;
  border: 1px solid var(--c-line);
  background-color: var(--c-line);
}

.page-home .home-stat {
  min-width: 0;
  padding: 20px 16px;
  background-color: rgba(10, 15, 44, 0.86);
}

.page-home .home-stat__num {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.9rem;
  font-weight: 300;
  line-height: 1.1;
  color: var(--c-white);
  letter-spacing: -0.01em;
}

.page-home .home-stat__label {
  display: block;
  margin-top: 8px;
  color: var(--c-muted);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
}

/* ---------- 自助排查 ---------- */

.page-home .home-triage {
  padding-block: clamp(52px, 9vw, 92px) 0;
}

.page-home .home-triage__steps {
  margin-top: 32px;
}

.page-home .home-triage .step-body p {
  margin: 0;
  color: var(--c-text);
  font-size: 0.92rem;
  line-height: 1.75;
}

.page-home .home-triage__more,
.page-home .home-preview__more {
  margin: 28px 0 0;
}

/* ---------- 项目速览 ---------- */

.page-home .home-preview {
  padding-block: clamp(56px, 9vw, 96px) 0;
}

.page-home .home-preview .filter-bar {
  margin-top: 26px;
}

.page-home .home-preview__grid {
  margin-top: 26px;
}

.page-home .mini-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  padding: 20px 18px 22px;
  border: 1px solid var(--c-line);
  background: linear-gradient(162deg, rgba(19, 26, 63, 0.92) 0%, rgba(10, 15, 44, 0.98) 100%);
  transition: border-color 0.22s var(--ease), transform 0.22s var(--ease);
}

.page-home .mini-card:hover {
  border-color: rgba(53, 230, 224, 0.6);
  transform: translateY(-3px);
}

.page-home .mini-card__index {
  color: var(--c-muted);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
}

.page-home .mini-card__title {
  margin: 0;
  color: var(--c-white);
  font-size: 1.06rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.page-home .mini-card__text {
  margin: 0;
  color: var(--c-text);
  font-size: 0.88rem;
  line-height: 1.7;
}

.page-home .mini-card .tag {
  align-self: flex-start;
  margin-top: auto;
}

/* ---------- 客服通道 ---------- */

.page-home .home-support {
  padding-block: clamp(56px, 9vw, 96px) clamp(56px, 8vw, 88px);
}

.page-home .home-support__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 26px;
  align-items: center;
  padding: 30px 20px 34px;
  border: 1px solid var(--c-line);
  background: linear-gradient(122deg, rgba(19, 26, 63, 0.96) 0%, rgba(10, 15, 44, 0.99) 100%);
  overflow: hidden;
}

.page-home .home-support__inner::before {
  content: "";
  position: absolute;
  top: -70%;
  right: -12%;
  width: 40%;
  height: 240%;
  background: linear-gradient(90deg, rgba(255, 63, 164, 0) 0%, rgba(255, 63, 164, 0.13) 50%, rgba(255, 63, 164, 0) 100%);
  transform: rotate(-14deg);
  pointer-events: none;
}

.page-home .home-support__icon {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  max-width: 180px;
  height: auto;
  justify-self: center;
  border: 1px solid var(--c-line);
  background-color: rgba(19, 26, 63, 0.6);
}

.page-home .home-support__copy {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.page-home .home-support__text {
  margin: 12px 0 0;
  color: var(--c-text);
  font-size: 0.93rem;
  line-height: 1.78;
}

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

/* ---------- 断点：平板 ---------- */

@media (min-width: 640px) {
  .page-home .home-hero {
    padding: 44px 0 60px;
  }

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

  .page-home .home-device__band {
    padding: 30px 28px 34px;
  }

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

  .page-home .home-stat {
    padding: 24px 18px;
  }

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

  .page-home .home-support__icon {
    justify-self: start;
  }
}

/* ---------- 断点：桌面 ---------- */

@media (min-width: 900px) {
  .page-home .home-hero {
    padding: 60px 0 76px;
  }

  .page-home .home-hero__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 48px;
  }

  .page-home .home-hero__title {
    font-size: clamp(3.4rem, 5.4vw, 4.6rem);
    line-height: 1.02;
    margin-bottom: 22px;
  }

  .page-home .home-hero__lead {
    font-size: 1.02rem;
    margin-bottom: 32px;
  }

  .page-home .home-hero__index {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    margin-top: 52px;
  }

  .page-home .home-index-item {
    flex-direction: column;
    gap: 4px;
    padding: 16px 14px;
  }

  .page-home .home-halls__bento {
    margin-top: 40px;
  }

  .page-home .home-device__band {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 40px;
    padding: 40px 40px 44px;
    align-items: center;
  }

  .page-home .home-latest__grid {
    margin-top: 38px;
  }

  .page-home .home-note {
    padding: 28px 26px 30px;
  }

  .page-home .home-triage__steps {
    margin-top: 40px;
  }

  .page-home .home-preview .filter-bar {
    margin-top: 32px;
  }

  .page-home .home-preview__grid {
    margin-top: 32px;
  }

  .page-home .home-support__inner {
    grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
    gap: 40px;
    padding: 44px 44px 48px;
  }

  .page-home .home-support__icon {
    max-width: 200px;
  }
}

/* ---------- 降低动态效果 ---------- */

@media (prefers-reduced-motion: reduce) {
  .page-home .home-device__band::before {
    animation: none;
  }

  .page-home .hall-card,
  .page-home .mini-card,
  .page-home .home-index-item {
    transition: none;
  }

  .page-home .hall-card:hover,
  .page-home .hall-card:focus-visible,
  .page-home .mini-card:hover {
    transform: none;
  }
}
