.page-home {
  --home-card-pad: clamp(20px, 2.6vw, 30px);
  overflow-x: clip;
}

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

/* ============ 首屏框景 ============ */
.page-home .home-hero {
  position: relative;
  padding-block: clamp(16px, 3vw, 34px) clamp(44px, 7vw, 84px);
}

.page-home .home-hero__frame {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(22px, 3.6vw, 48px);
  border: 1px solid var(--line-gold);
  border-radius: var(--r-lg);
  background:
    radial-gradient(140% 100% at 4% -14%, rgba(245, 200, 107, 0.14), transparent 54%),
    radial-gradient(90% 80% at 104% 110%, rgba(111, 211, 232, 0.1), transparent 58%),
    var(--night);
  box-shadow: 0 44px 90px -64px rgba(0, 0, 0, 0.95);
}

.page-home .home-hero__frame::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 12px;
  z-index: 3;
  pointer-events: none;
  background-image: repeating-linear-gradient(90deg, var(--line-gold) 0 1px, transparent 1px 18px);
  -webkit-mask-image: linear-gradient(90deg, #000 0 14%, transparent 46%, transparent 68%, #000 100%);
  mask-image: linear-gradient(90deg, #000 0 14%, transparent 46%, transparent 68%, #000 100%);
  opacity: 0.75;
}

.page-home .home-hero__frame::after {
  content: "";
  position: absolute;
  inset: auto auto 0 0;
  width: 120px;
  height: 120px;
  z-index: 3;
  pointer-events: none;
  border-left: 1px solid var(--line-gold);
  border-bottom: 1px solid var(--line-gold);
  border-bottom-left-radius: var(--r-lg);
  background-image:
    repeating-linear-gradient(0deg, var(--line-cool) 0 1px, transparent 1px 14px);
  -webkit-mask-image: linear-gradient(135deg, #000 0 40%, transparent 78%);
  mask-image: linear-gradient(135deg, #000 0 40%, transparent 78%);
  opacity: 0.6;
}

.page-home .home-hero__beam {
  position: absolute;
  z-index: 0;
  top: -46%;
  left: -32%;
  width: 124%;
  height: 186%;
  pointer-events: none;
  background: conic-gradient(
    from 196deg at 22% 8%,
    rgba(245, 200, 107, 0.34),
    rgba(30, 95, 191, 0.2) 21%,
    rgba(5, 7, 15, 0) 47%
  );
  transform: rotate(-6deg);
  filter: blur(2px);
  opacity: 0.85;
  animation: home-beam-breathe 13s var(--ease) infinite alternate;
}

@keyframes home-beam-breathe {
  from { opacity: 0.68; transform: rotate(-6deg) translateY(0); }
  to   { opacity: 0.94; transform: rotate(-6deg) translateY(-1.6%); }
}

.page-home .home-hero__grid {
  position: relative;
  z-index: 2;
  display: grid;
  gap: clamp(26px, 4vw, 52px);
}

.page-home .home-hero__kicker-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.page-home .home-hero__stamp {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--muted);
  padding: 3px 9px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
}

.page-home .home-hero__title {
  margin: 0 0 20px;
  font-size: clamp(2.3rem, 6.6vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 800;
  color: var(--text);
  text-shadow: 0 0 44px rgba(255, 233, 184, 0.18);
}

.page-home .home-hero__title-sub {
  display: block;
  margin-top: 10px;
  font-size: clamp(1.02rem, 2.2vw, 1.6rem);
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--gold);
}

.page-home .home-hero__lead {
  margin: 0;
  max-width: 48ch;
  font-size: clamp(1rem, 1.5vw, 1.08rem);
  line-height: 1.82;
  color: var(--text);
}

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

.page-home .home-hero__note {
  margin: 16px 0 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.page-home .home-hero__figure {
  border-radius: var(--r-md);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 92%);
  border: 1px solid var(--line-cool);
}

/* ============ 三条主线 ============ */
.page-home .home-routes {
  padding-block: clamp(38px, 6vw, 78px);
}

.page-home .section-head__title--home {
  margin: 0;
  font-size: clamp(1.5rem, 3.2vw, 2.15rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
  font-weight: 800;
  color: var(--text);
}

.page-home .home-routes .section-head,
.page-home .home-hub .section-head,
.page-home .home-faq .section-head {
  display: grid;
  gap: 8px;
  margin-bottom: clamp(22px, 3.4vw, 38px);
}

.page-home .home-routes__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
  align-items: start;
}

.page-home .home-routes__item {
  display: flex;
}

.page-home .home-routes__link {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  padding: var(--home-card-pad);
  color: inherit;
  text-decoration: none;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  background: linear-gradient(168deg, rgba(22, 32, 58, 0.96), rgba(5, 7, 15, 0.96));
  transition: border-color 0.28s var(--ease), transform 0.28s var(--ease),
    box-shadow 0.28s var(--ease);
}

.page-home .home-routes__link--tall { padding-bottom: 42px; }
.page-home .home-routes__link--mid  { padding-bottom: 30px; }
.page-home .home-routes__link--low  { padding-bottom: 18px; }

.page-home .home-routes__link:hover,
.page-home .home-routes__link:focus-visible {
  border-color: var(--line-gold);
  transform: translateY(-3px);
  box-shadow: 0 26px 48px -38px rgba(245, 200, 107, 0.6);
}

.page-home .home-routes__num {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  transition: color 0.24s var(--ease), transform 0.24s var(--ease);
}

.page-home .home-routes__link:hover .home-routes__num,
.page-home .home-routes__link:focus-visible .home-routes__num {
  color: var(--gold);
  transform: translateX(4px);
}

.page-home .home-routes__title {
  margin: 0;
  font-size: clamp(1.06rem, 1.7vw, 1.24rem);
  font-weight: 700;
  line-height: 1.42;
  color: var(--text);
}

.page-home .home-routes__desc {
  margin: 0;
  font-size: 0.93rem;
  line-height: 1.76;
  color: var(--muted);
}

.page-home .home-routes__thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-soft);
  filter: saturate(0.92) brightness(0.92);
}

.page-home .home-routes__go {
  margin-top: auto;
  padding-top: 6px;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: var(--gold);
}

.page-home .home-routes__go::after {
  content: " →";
  display: inline-block;
  transition: transform 0.24s var(--ease);
}

.page-home .home-routes__link:hover .home-routes__go::after {
  transform: translateX(4px);
}

/* ============ 本周调整 ============ */
.page-home .home-week {
  padding-block: clamp(20px, 3vw, 34px);
}

.page-home .home-week__inner {
  position: relative;
  display: grid;
  gap: clamp(24px, 4vw, 46px);
  padding: clamp(24px, 4vw, 46px);
  border: 1px solid var(--line-cool);
  border-radius: var(--r-lg);
  overflow: hidden;
  background:
    radial-gradient(120% 100% at 100% 0%, rgba(111, 211, 232, 0.1), transparent 52%),
    linear-gradient(126deg, rgba(12, 19, 38, 0.94), rgba(5, 7, 15, 0.98));
}

.page-home .home-week__inner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 8%;
  width: 1px;
  height: 100%;
  background: linear-gradient(180deg, var(--gold), transparent 62%);
  opacity: 0.4;
  pointer-events: none;
}

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

.page-home .home-week__lead {
  margin: 14px 0 0;
  max-width: 44ch;
  font-size: 0.96rem;
  line-height: 1.78;
}

.page-home .home-week__list {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
}

.page-home .home-week__list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.94rem;
  line-height: 1.74;
  color: var(--text);
}

.page-home .home-week__list li:first-child {
  border-top: 1px solid var(--line-soft);
}

.page-home .home-week__when {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--gold);
  white-space: nowrap;
}

.page-home .home-week__link {
  display: inline-block;
  margin-top: 20px;
  font-size: 0.86rem;
  letter-spacing: 0.04em;
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid var(--line-cool);
  padding-bottom: 3px;
}

.page-home .home-week__link:hover {
  color: var(--gold);
  border-bottom-color: var(--line-gold);
}

.page-home .home-week__figure {
  margin: 0;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--line-soft);
}

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

/* ============ 帮助中心与资源 ============ */
.page-home .home-hub {
  padding-block: clamp(38px, 6vw, 78px);
}

.page-home .home-hub__grid {
  display: grid;
  gap: clamp(16px, 2.6vw, 26px);
}

.page-home .home-hub__panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  background: var(--panel);
}

.page-home .home-hub__panel--main {
  border-color: var(--line-gold);
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(245, 200, 107, 0.1), transparent 56%),
    var(--panel);
}

.page-home .home-hub__panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-soft);
}

.page-home .home-hub__panel-title {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--text);
}

.page-home .home-hub__code {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--cyan);
  padding: 3px 10px;
  border: 1px solid var(--line-cool);
  border-radius: 999px;
  background: rgba(111, 211, 232, 0.07);
}

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

.page-home .home-hub__item-title {
  margin: 0 0 6px;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--glow);
}

.page-home .home-hub__item p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.78;
  color: var(--muted);
}

.page-home .home-hub__item .mono {
  color: var(--cyan);
  font-size: 0.86em;
}

.page-home .home-hub__more {
  margin-top: auto;
  align-self: flex-start;
  font-size: 0.84rem;
  letter-spacing: 0.05em;
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid var(--line-gold);
  padding-bottom: 3px;
}

.page-home .home-hub__more:hover {
  color: var(--glow);
}

/* ============ 常见问题 ============ */
.page-home .home-faq {
  padding-block: clamp(30px, 5vw, 60px) clamp(40px, 6vw, 76px);
}

.page-home .home-faq__folds {
  display: grid;
  gap: 10px;
}

.page-home .home-faq__folds .fold {
  border: 1px solid var(--line-soft);
  border-radius: var(--r-sm);
  background: rgba(12, 19, 38, 0.7);
  overflow: hidden;
}

.page-home .home-faq__folds .fold__head {
  width: 100%;
  padding: 16px 18px;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.page-home .home-faq__folds .fold__head:hover {
  color: var(--gold);
}

.page-home .home-faq__folds .fold__body {
  padding: 0 18px 18px;
}

.page-home .home-faq__folds .fold__body p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.8;
  color: var(--muted);
}

.page-home .home-faq__more {
  margin-top: clamp(20px, 3vw, 30px);
  display: inline-flex;
}

/* ============ 联系带 ============ */
.page-home .home-contact {
  position: relative;
  margin-top: clamp(24px, 4vw, 48px);
  border-top: 1px solid var(--line-gold);
  overflow: hidden;
}

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

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

.page-home .home-contact__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(5, 7, 15, 0.96) 6%,
    rgba(5, 7, 15, 0.72) 46%,
    rgba(12, 19, 38, 0.94)
  );
}

.page-home .home-contact__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(24px, 4vw, 48px);
  padding-block: clamp(36px, 6vw, 72px);
}

.page-home .home-contact__lead {
  margin: 14px 0 24px;
  max-width: 46ch;
  font-size: 0.98rem;
  line-height: 1.8;
  color: var(--text);
}

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

.page-home .home-contact__stat {
  display: grid;
  gap: 4px;
  padding: 14px 0 14px 16px;
  border-left: 1px solid var(--line-gold);
}

.page-home .home-contact__stat-num {
  font-size: clamp(1.5rem, 3.4vw, 2rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--gold);
  letter-spacing: 0.02em;
}

.page-home .home-contact__stat-label {
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  color: var(--muted);
}

/* ============ 平板与桌面 ============ */
@media (min-width: 860px) {
  .page-home .home-routes__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }

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

  .page-home .home-contact__stat {
    padding-left: 18px;
  }
}

@media (min-width: 900px) {
  .page-home .home-hero__grid {
    grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
    align-items: end;
  }

  .page-home .home-week__inner {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
    align-items: center;
  }

  .page-home .home-hub__grid {
    grid-template-columns: minmax(0, 1.32fr) minmax(0, 0.68fr);
    align-items: start;
  }

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

  .page-home .home-contact__inner {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    align-items: center;
  }
}

@media (max-width: 520px) {
  .page-home .home-hero__title {
    font-size: clamp(1.9rem, 9vw, 2.5rem);
  }

  .page-home .home-hero__actions .btn {
    flex: 1 1 100%;
    justify-content: center;
  }

  .page-home .home-week__list li {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .page-home .home-hero__figure {
    clip-path: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .home-hero__beam {
    animation: none;
    opacity: 0.8;
  }

  .page-home .home-routes__link,
  .page-home .home-routes__num,
  .page-home .home-routes__go::after {
    transition: none;
  }

  .page-home .home-routes__link:hover,
  .page-home .home-routes__link:focus-visible {
    transform: none;
  }

  .page-home .home-routes__link:hover .home-routes__num,
  .page-home .home-routes__link:focus-visible .home-routes__num {
    transform: none;
  }
}
