/* ============================================================
   首页 page-home
   ============================================================ */

.page-home {
  --home-hero-min: clamp(560px, 88vh, 860px);
  --home-border: 1px solid rgba(42, 53, 102, 0.7);
  --home-border-soft: 1px solid rgba(42, 53, 102, 0.4);
  --home-slice: polygon(0 0, 100% 0, 100% calc(100% - 26px), calc(100% - 26px) 100%, 0 100%);
  display: block;
  background: var(--void);
  color: var(--stardust);
  overflow-x: clip;
}

.page-home .shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.page-home .home-hero {
  position: relative;
  min-height: var(--home-hero-min);
  display: flex;
  align-items: flex-end;
  padding-block: clamp(3.5rem, 10vw, 7rem) clamp(2.5rem, 6vw, 4.5rem);
  background:
    radial-gradient(120% 90% at 8% 100%, rgba(111, 75, 216, 0.30) 0%, rgba(111, 75, 216, 0) 62%),
    radial-gradient(90% 70% at 88% 6%, rgba(200, 107, 255, 0.16) 0%, rgba(200, 107, 255, 0) 58%),
    linear-gradient(180deg, var(--void) 0%, var(--abyss) 68%, var(--void) 100%);
  isolation: isolate;
}

.page-home .home-hero::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(53, 224, 214, 0.55), transparent);
  opacity: 0.55;
}

.page-home .hero-orbit {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.page-home .hero-orbit__ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(42, 53, 102, 0.66);
}

.page-home .hero-orbit__ring--a {
  width: min(72vw, 780px);
  aspect-ratio: 1;
  top: -18%;
  right: -14%;
  border-color: rgba(111, 75, 216, 0.42);
  animation: home-spin 220s linear infinite;
}

.page-home .hero-orbit__ring--a::before {
  content: "";
  position: absolute;
  top: 12%;
  left: -4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pulse);
  box-shadow: var(--glow-pulse);
}

.page-home .hero-orbit__ring--b {
  width: min(46vw, 480px);
  aspect-ratio: 1;
  top: 6%;
  right: 4%;
  border-style: dashed;
  border-color: rgba(53, 224, 214, 0.24);
  animation: home-spin 320s linear infinite reverse;
}

.page-home .hero-orbit__node {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 14px rgba(200, 107, 255, 0.75);
  animation: home-breathe 3.6s var(--ease) infinite;
}

.page-home .hero-orbit__node--1 { top: 22%; right: 30%; }
.page-home .hero-orbit__node--2 { top: 48%; right: 12%; animation-delay: 1.1s; }
.page-home .hero-orbit__node--3 { top: 12%; right: 52%; animation-delay: 2.2s; background: var(--pulse); box-shadow: var(--glow-pulse); }

@keyframes home-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes home-breathe {
  0%, 100% { opacity: 0.35; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.5); }
}

.page-home .hero-shell {
  position: relative;
  z-index: 2;
  width: 100%;
}

.page-home .hero-kicker {
  margin: 0 0 1rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--grey);
}

.page-home .hero-title {
  margin: 0;
  font-size: clamp(2.6rem, 9vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: 0.02em;
  font-weight: 800;
  color: var(--stardust);
  max-width: 14ch;
}

.page-home .hero-title__line {
  display: block;
}

.page-home .hero-title__line--glow {
  background: linear-gradient(96deg, var(--pink) 0%, var(--purple) 46%, var(--pulse) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 46px rgba(111, 75, 216, 0.5);
}

.page-home .hero-lede {
  margin: 1.5rem 0 0;
  max-width: 34ch;
  font-size: clamp(0.98rem, 1.6vw, 1.1rem);
  line-height: 1.85;
  color: var(--grey);
}

.page-home .hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.9rem;
}

.page-home .hero-index {
  margin-top: clamp(2.4rem, 5vw, 3.6rem);
  padding-top: 1.5rem;
  border-top: var(--home-border-soft);
}

.page-home .hero-index__label {
  margin: 0 0 1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--grey);
}

.page-home .hero-index__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.5rem;
}

.page-home .hero-index__link {
  display: grid;
  grid-template-columns: 2.6rem 1fr;
  grid-template-areas:
    "idx name"
    "idx desc";
  align-items: center;
  gap: 0.1rem 0.9rem;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-s);
  border: 1px solid transparent;
  background: rgba(20, 27, 58, 0.5);
  text-decoration: none;
  transition: background 300ms var(--ease), border-color 300ms var(--ease), transform 300ms var(--ease);
}

.page-home .hero-index__link:hover,
.page-home .hero-index__link:focus-visible {
  background: rgba(20, 27, 58, 0.92);
  border-color: rgba(111, 75, 216, 0.75);
  transform: translateX(4px);
}

.page-home .hero-index__idx {
  grid-area: idx;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--purple);
}

.page-home .hero-index__link:hover .hero-index__idx {
  color: var(--pulse);
}

.page-home .hero-index__name {
  grid-area: name;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.03em;
  color: var(--stardust);
}

.page-home .hero-index__desc {
  grid-area: desc;
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--grey);
}

.page-home .hero-visual {
  position: absolute;
  left: 0;
  bottom: 0;
  width: min(78%, 760px);
  margin: 0;
  z-index: 1;
  opacity: 0.5;
  mix-blend-mode: screen;
  pointer-events: none;
  mask-image: linear-gradient(115deg, rgba(5, 7, 15, 0.95) 0%, rgba(5, 7, 15, 0.35) 62%, transparent 100%);
  -webkit-mask-image: linear-gradient(115deg, rgba(5, 7, 15, 0.95) 0%, rgba(5, 7, 15, 0.35) 62%, transparent 100%);
}

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

/* ---------- 通用章节 ---------- */

.page-home .home-channel,
.page-home .home-records,
.page-home .home-support {
  background: var(--void);
}

.page-home .home-contents,
.page-home .home-services {
  background: linear-gradient(180deg, var(--void) 0%, var(--abyss) 50%, var(--void) 100%);
}

/* ---------- V2.0 通道 ---------- */

.page-home .home-channel {
  padding-block: clamp(3rem, 8vw, 6rem);
  position: relative;
}

.page-home .channel-grid {
  display: grid;
  gap: 2.5rem;
}

.page-home .channel-main .lede {
  margin-top: 1rem;
}

.page-home .channel-list {
  margin: 1.8rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.85rem;
}

.page-home .channel-list__item {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.95rem;
  line-height: 1.72;
  color: var(--stardust);
}

.page-home .channel-list__dot {
  flex: none;
  margin-top: 0.62rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pulse);
  box-shadow: var(--glow-pulse);
}

.page-home .channel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.page-home .channel-side {
  display: grid;
  gap: 1.25rem;
}

.page-home .side-figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: var(--home-border);
  background: var(--indigo);
  clip-path: var(--home-slice);
}

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

.page-home .side-stats {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}

.page-home .side-stat {
  padding: 0.9rem 0.6rem;
  border: var(--home-border-soft);
  border-radius: var(--radius-s);
  background: rgba(20, 27, 58, 0.55);
  text-align: center;
}

.page-home .side-stat__label {
  display: block;
  font-size: 0.72rem;
  line-height: 1.5;
  color: var(--grey);
}

.page-home .side-stat__value {
  display: block;
  margin: 0.35rem 0 0;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--pulse);
}

/* ---------- 内容中心 ---------- */

.page-home .home-contents {
  padding-block: clamp(3rem, 8vw, 6rem);
}

.page-home .contents-head {
  display: grid;
  gap: 1.2rem;
  margin-bottom: 2rem;
}

.page-home .contents-note {
  margin: 0;
  max-width: 40ch;
  font-size: 0.94rem;
  line-height: 1.85;
  color: var(--grey);
}

.page-home .contents-visual {
  margin: 0 0 2.2rem;
  border-radius: var(--radius-l);
  overflow: hidden;
  border: var(--home-border-soft);
  max-height: 320px;
}

.page-home .contents-visual img {
  display: block;
  width: 100%;
  height: 320px;
  object-fit: cover;
  opacity: 0.72;
}

.page-home .cluster {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.9rem;
}

.page-home .cluster__card {
  position: relative;
  padding: 1.3rem 1.25rem 1.4rem;
  border: var(--home-border-soft);
  border-radius: var(--radius);
  background: rgba(20, 27, 58, 0.62);
  transition: border-color 320ms var(--ease), background 320ms var(--ease), transform 320ms var(--ease);
}

.page-home .cluster__card:hover {
  border-color: rgba(53, 224, 214, 0.55);
  background: rgba(20, 27, 58, 0.92);
  transform: translateY(-3px);
}

.page-home .cluster__idx {
  display: inline-block;
  margin-bottom: 0.6rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(53, 224, 214, 0.42);
  color: var(--pulse);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
}

.page-home .cluster__name {
  margin: 0;
  font-size: 1.08rem;
  letter-spacing: 0.03em;
  color: var(--stardust);
}

.page-home .cluster__text {
  margin: 0.5rem 0 0;
  font-size: 0.88rem;
  line-height: 1.75;
  color: var(--grey);
}

.page-home .contents-foot {
  margin-top: 2rem;
}

/* ---------- 账户与记录 ---------- */

.page-home .home-records {
  padding-block: clamp(3rem, 8vw, 6rem);
}

.page-home .records-grid {
  display: grid;
  gap: 2.2rem;
}

.page-home .records-points {
  margin: 1.8rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1.1rem;
}

.page-home .records-point {
  padding-left: 1rem;
  border-left: 2px solid rgba(111, 75, 216, 0.6);
}

.page-home .records-point__title {
  margin: 0;
  font-size: 1rem;
  letter-spacing: 0.02em;
  color: var(--stardust);
}

.page-home .records-point__text {
  margin: 0.4rem 0 0;
  font-size: 0.9rem;
  line-height: 1.78;
  color: var(--grey);
}

.page-home .records-actions {
  margin-top: 1.9rem;
}

.page-home .records-visual {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: var(--home-border);
}

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

/* ---------- 品牌服务 ---------- */

.page-home .home-services {
  padding-block: clamp(3rem, 8vw, 6rem);
}

.page-home .services-head {
  max-width: 62ch;
  margin-bottom: 2.2rem;
}

.page-home .services-head .lede {
  margin-top: 1rem;
}

.page-home .service-plate {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1px;
  background: rgba(42, 53, 102, 0.5);
  border: var(--home-border-soft);
  border-radius: var(--radius);
  overflow: hidden;
}

.page-home .service-plate__item {
  padding: 1.4rem 1.25rem;
  background: var(--void);
  transition: background 320ms var(--ease);
}

.page-home .service-plate__item:hover {
  background: var(--indigo);
}

.page-home .service-plate__num {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--purple);
}

.page-home .service-plate__name {
  margin: 0.4rem 0 0;
  font-size: 1.05rem;
  color: var(--stardust);
}

.page-home .service-plate__text {
  margin: 0.5rem 0 0;
  font-size: 0.88rem;
  line-height: 1.75;
  color: var(--grey);
}

.page-home .services-strip {
  margin-top: 1.6rem;
  display: grid;
  gap: 0.8rem;
}

.page-home .strip-item {
  padding: 1rem;
  border: var(--home-border-soft);
  border-radius: var(--radius-s);
  background: rgba(11, 16, 36, 0.72);
}

.page-home .strip-item__value {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--stardust);
}

.page-home .strip-item__label {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.76rem;
  line-height: 1.6;
  color: var(--grey);
}

.page-home .services-foot {
  margin-top: 2rem;
}

/* ---------- 帮助与反馈 ---------- */

.page-home .home-support {
  padding-bottom: clamp(4rem, 10vw, 7rem);
}

.page-home .support-panel {
  display: grid;
  gap: 1.8rem;
  padding: clamp(1.5rem, 4vw, 2.6rem);
  border: var(--home-border);
  border-radius: var(--radius-l);
  background:
    radial-gradient(80% 120% at 100% 0%, rgba(53, 224, 214, 0.10) 0%, rgba(53, 224, 214, 0) 60%),
    rgba(11, 16, 36, 0.78);
}

.page-home .support-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.7rem;
}

.page-home .support-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.7rem;
}

.page-home .support-list__item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 1rem;
  border: var(--home-border-soft);
  border-radius: var(--radius-s);
  background: rgba(20, 27, 58, 0.6);
}

.page-home .support-list__tag {
  flex: none;
}

.page-home .support-list__text {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--stardust);
}

/* ---------- 中等屏幕 ---------- */

@media (min-width: 720px) {
  .page-home .hero-index__list {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-home .cluster {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-home .services-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------- 桌面 ---------- */

@media (min-width: 1000px) {
  .page-home .home-hero {
    align-items: center;
  }

  .page-home .hero-shell {
    max-width: 720px;
    margin-left: 0;
  }

  .page-home .hero-index__list {
    grid-template-columns: repeat(5, 1fr);
    gap: 0.6rem;
  }

  .page-home .hero-index__link {
    grid-template-columns: 1fr;
    grid-template-areas:
      "idx"
      "name"
      "desc";
    align-items: start;
    gap: 0.35rem;
    padding: 1rem 0.9rem;
    min-height: 132px;
  }

  .page-home .hero-index__link:hover,
  .page-home .hero-index__link:focus-visible {
    transform: translateY(-4px);
  }

  .page-home .hero-visual {
    left: 42%;
    width: min(58%, 860px);
    opacity: 0.62;
  }

  .page-home .channel-grid {
    grid-template-columns: 5fr 3fr;
    gap: 3.5rem;
    align-items: start;
  }

  .page-home .contents-head {
    grid-template-columns: 5fr 3fr;
    align-items: end;
    gap: 2.5rem;
  }

  .page-home .contents-visual {
    max-height: 380px;
  }

  .page-home .contents-visual img {
    height: 380px;
  }

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

  .page-home .cluster__card:nth-child(2),
  .page-home .cluster__card:nth-child(5) {
    transform: translateY(14px);
  }

  .page-home .cluster__card:nth-child(2):hover,
  .page-home .cluster__card:nth-child(5):hover {
    transform: translateY(10px);
  }

  .page-home .records-grid {
    grid-template-columns: 5fr 3fr;
    gap: 3rem;
    align-items: center;
  }

  .page-home .service-plate {
    grid-template-columns: repeat(5, 1fr);
  }

  .page-home .service-plate__item {
    padding: 1.6rem 1.15rem;
  }

  .page-home .services-strip {
    grid-template-columns: repeat(4, 1fr);
  }

  .page-home .support-panel {
    grid-template-columns: 5fr 3fr;
    gap: 3rem;
    align-items: center;
  }
}

/* ---------- 动效降级 ---------- */

@media (prefers-reduced-motion: reduce) {
  .page-home .hero-orbit__ring,
  .page-home .hero-orbit__node {
    animation: none;
  }

  .page-home .hero-index__link,
  .page-home .cluster__card,
  .page-home .service-plate__item {
    transition: none;
  }
}
