.page-home {
  --home-rail: 72px;
  --home-hair: rgba(216, 179, 106, 0.24);
  background: var(--ink);
  color: var(--mist);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.75;
  overflow-x: hidden;
}

.page-home h1,
.page-home h2,
.page-home h3 {
  margin: 0;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.page-home p {
  margin: 0;
}

.page-home ul,
.page-home ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.page-home .media-frame img {
  object-fit: cover;
}

/* ---------- 首屏 ---------- */
.page-home .home-hero {
  position: relative;
  padding: calc(var(--header-h) + 1.5rem) 0 clamp(2.5rem, 8vw, 4.5rem);
  overflow: hidden;
  background:
    radial-gradient(ellipse at 84% 6%, rgba(46, 242, 208, 0.16), transparent 58%),
    radial-gradient(ellipse at 6% 96%, rgba(255, 107, 74, 0.13), transparent 54%),
    linear-gradient(168deg, var(--black) 0%, var(--ink) 48%, var(--ink-2) 100%);
}

.page-home .home-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold) 22%, var(--cyan) 62%, transparent);
  opacity: 0.65;
}

.page-home .home-hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  gap: 1.6rem;
}

.page-home .hero-rail {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.page-home .hero-rail__code {
  flex: none;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  color: var(--gold);
  white-space: nowrap;
}

.page-home .hero-rail__list {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  padding-bottom: 0.2rem;
  scrollbar-width: none;
}

.page-home .hero-rail__list::-webkit-scrollbar {
  display: none;
}

.page-home .hero-rail__node {
  flex: none;
}

.page-home .hero-rail__node a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: var(--slate);
  border: 1px solid rgba(216, 179, 106, 0.22);
  border-radius: 999px;
  white-space: nowrap;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.page-home .hero-rail__node a:hover {
  color: var(--cyan);
  border-color: var(--cyan);
}

.page-home .hero-copy {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}

.page-home .hero-copy .crumbs {
  font-size: 0.72rem;
}

.page-home .hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  color: var(--cyan);
}

.page-home .hero-eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--cyan);
}

.page-home .hero-title {
  font-size: clamp(2.05rem, 7vw, 4.3rem);
  letter-spacing: -0.045em;
  color: var(--mist);
}

.page-home .hero-lead {
  max-width: 34rem;
  font-size: 1rem;
  color: rgba(233, 242, 246, 0.78);
}

.page-home .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 0.25rem;
}

.page-home .hero-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem 1rem;
  margin-top: 0.9rem;
  padding-top: 1rem;
  border-top: 1px solid var(--home-hair);
}

.page-home .hero-fact__num {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.15rem;
  color: var(--cyan);
}

.page-home .hero-fact__label {
  display: block;
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  color: var(--slate);
}

.page-home .hero-visual {
  margin: 0;
  min-width: 0;
}

.page-home .hero-visual .media-frame {
  border-radius: var(--radius-l);
  clip-path: polygon(0 3%, 100% 0, 100% 97%, 0 100%);
  box-shadow: 0 24px 60px rgba(2, 11, 18, 0.6);
}

.page-home .hero-visual__caption {
  margin-top: 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  color: var(--slate);
  text-align: right;
}

/* ---------- 区块通用 ---------- */
.page-home .home-section {
  padding: clamp(2.6rem, 7vw, 4.75rem) 0;
}

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

.page-home .section-head {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: 1.6rem;
}

.page-home .section-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  color: var(--coral);
}

.page-home .section-title {
  font-size: clamp(1.55rem, 4.4vw, 2.4rem);
  color: var(--mist);
}

.page-home .section-sub {
  max-width: 44rem;
  font-size: 0.95rem;
  color: rgba(233, 242, 246, 0.72);
}

/* ---------- 检索台 ---------- */
.page-home .home-index {
  background: linear-gradient(180deg, var(--ink-2), var(--ink));
  border-top: 1px solid rgba(216, 179, 106, 0.14);
}

.page-home .index-banner {
  margin: 0 0 1.75rem;
}

.page-home .index-banner .media-frame {
  border-radius: var(--radius-m);
}

.page-home .index-banner__cap {
  margin-top: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  color: var(--slate);
}

.page-home .index-grid {
  display: grid;
  gap: 1.6rem;
}

.page-home .index-block {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  min-width: 0;
}

.page-home .index-block__title {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--mist);
}

.page-home .tag-matrix {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.page-home .tag-matrix .tag {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.9rem;
  transition: transform 0.25s var(--ease);
}

.page-home .tag-matrix .tag:hover {
  transform: translateY(-2px);
}

.page-home .archive-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.page-home .archive-item {
  display: grid;
  grid-template-columns: 2.9rem minmax(0, 1fr);
  gap: 0.85rem;
  align-items: start;
  padding: 0.8rem 0.9rem;
  background: rgba(18, 56, 79, 0.55);
  border-left: 2px solid var(--gold-soft);
  border-radius: var(--radius-s);
  transition: transform 0.25s var(--ease), background 0.25s var(--ease);
}

.page-home .archive-item:hover {
  transform: translateY(-2px);
  background: rgba(18, 56, 79, 0.85);
}

.page-home .archive-item__no {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--cyan);
}

.page-home .archive-item__body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.page-home .archive-item__link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--mist);
  text-decoration: none;
}

.page-home .archive-item__link:hover {
  color: var(--cyan);
}

.page-home .archive-item__meta {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  color: var(--slate);
}

.page-home .index-more {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid var(--cyan-soft);
}

/* ---------- 账户中心 ---------- */
.page-home .home-account {
  background: var(--ink-2);
}

.page-home .account-layout {
  display: grid;
  gap: 1.75rem;
}

.page-home .account-media {
  min-width: 0;
}

.page-home .account-media .media-frame {
  border-radius: var(--radius-l);
}

.page-home .account-body {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  min-width: 0;
}

.page-home .step-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.page-home .step-item {
  display: grid;
  grid-template-columns: 2.4rem minmax(0, 1fr);
  gap: 0.9rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--home-hair);
}

.page-home .step-item:first-child {
  padding-top: 0;
  border-top: 0;
}

.page-home .step-num {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  color: var(--coral);
}

.page-home .step-title {
  margin-bottom: 0.2rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--mist);
}

.page-home .step-text {
  font-size: 0.9rem;
  color: rgba(233, 242, 246, 0.74);
}

.page-home .account-note {
  padding-left: 0.9rem;
  border-left: 2px solid var(--cyan);
  font-size: 0.82rem;
  color: var(--slate);
}

/* ---------- 额度说明 ---------- */
.page-home .home-quota {
  background: linear-gradient(180deg, var(--ink), var(--black));
}

.page-home .quota-panel {
  display: grid;
  gap: 1.4rem;
  padding: clamp(1.4rem, 4vw, 2.6rem);
  border: 1px solid var(--gold-soft);
  border-radius: var(--radius-l);
  background:
    radial-gradient(ellipse at 90% 8%, rgba(216, 179, 106, 0.12), transparent 60%),
    rgba(12, 38, 56, 0.62);
}

.page-home .quota-head {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.page-home .quota-stamp {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--gold);
}

.page-home .quota-stamp__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 4px var(--cyan-soft);
}

.page-home .quota-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.page-home .quota-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.6rem 0.7rem;
  border: 1px solid rgba(216, 179, 106, 0.16);
  border-radius: var(--radius-s);
  background: rgba(6, 24, 38, 0.65);
}

.page-home .quota-item--now {
  border-color: var(--cyan);
  background: rgba(46, 242, 208, 0.08);
}

.page-home .quota-item__no {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--mist);
}

.page-home .quota-item--now .quota-item__no {
  color: var(--cyan);
}

.page-home .quota-item__label {
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: var(--slate);
}

.page-home .quota-panel .btn {
  justify-self: start;
}

/* ---------- 专栏精选 ---------- */
.page-home .home-stories {
  background: var(--ink);
}

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

.page-home .story-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--ink-2);
  border: 1px solid rgba(216, 179, 106, 0.14);
  border-radius: var(--radius-m);
  overflow: hidden;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease);
}

.page-home .story-card:hover {
  transform: translateY(-2px);
  border-color: rgba(46, 242, 208, 0.42);
}

.page-home .story-card .media-frame {
  border-radius: 0;
}

.page-home .story-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.25rem;
}

.page-home .story-card__body .tag {
  align-self: flex-start;
}

.page-home .story-card__title {
  font-size: 1.1rem;
  color: var(--mist);
}

.page-home .story-card__text {
  font-size: 0.9rem;
  color: rgba(233, 242, 246, 0.72);
}

.page-home .story-card__link {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  color: var(--cyan);
  text-decoration: none;
}

.page-home .story-card__link:hover {
  color: var(--mist);
}

/* ---------- 服务矩阵 ---------- */
.page-home .home-services {
  background: linear-gradient(180deg, var(--ink-2), var(--ink));
}

.page-home .service-grid {
  display: grid;
  gap: 0.9rem;
}

.page-home .service-item {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.2rem 1.2rem 1.3rem;
  border: 1px solid rgba(216, 179, 106, 0.14);
  border-radius: var(--radius-m);
  background: rgba(18, 56, 79, 0.5);
  transition: transform 0.25s var(--ease), background 0.25s var(--ease);
}

.page-home .service-item:hover {
  transform: translateY(-2px);
  background: rgba(18, 56, 79, 0.82);
}

.page-home .service-item__num {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  color: var(--coral);
}

.page-home .service-item__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--mist);
}

.page-home .service-item__text {
  font-size: 0.86rem;
  color: rgba(233, 242, 246, 0.7);
}

.page-home .service-item__count {
  margin-top: auto;
  padding-top: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--gold);
}

.page-home .services-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.page-home .services-foot p {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--slate);
}

/* ---------- 栏目路径 ---------- */
.page-home .home-route {
  background: var(--black);
  border-top: 1px solid rgba(216, 179, 106, 0.16);
}

.page-home .route-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.page-home .route-node {
  flex: 1 1 9rem;
  min-width: 0;
}

.page-home .route-node a {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.2rem;
  min-height: 64px;
  padding: 0.7rem 0.9rem;
  border-left: 2px solid var(--gold);
  border-radius: 0 var(--radius-s) var(--radius-s) 0;
  background: rgba(12, 38, 56, 0.55);
  text-decoration: none;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}

.page-home .route-node a:hover {
  background: rgba(46, 242, 208, 0.1);
  border-color: var(--cyan);
}

.page-home .route-node__num {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  color: var(--gold);
}

.page-home .route-node__name {
  font-size: 0.9rem;
  color: var(--mist);
}

.page-home .route-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.page-home .route-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid var(--cyan-soft);
}

/* ---------- 响应式 ---------- */
@media (min-width: 600px) {
  .page-home .hero-facts {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 640px) {
  .page-home .quota-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (min-width: 900px) {
  .page-home .home-hero__inner {
    grid-template-columns: var(--home-rail) minmax(0, 1.05fr) minmax(0, 0.9fr);
    gap: 2.5rem;
    align-items: start;
  }

  .page-home .hero-rail {
    position: relative;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding-top: 0.4rem;
  }

  .page-home .hero-rail::before {
    content: "";
    position: absolute;
    left: 9px;
    top: 2.6rem;
    bottom: 0.4rem;
    width: 1px;
    background: linear-gradient(180deg, var(--cyan), var(--gold-soft) 62%, transparent);
  }

  .page-home .hero-rail__list {
    flex-direction: column;
    gap: 0.4rem;
    overflow: visible;
    padding-bottom: 0;
  }

  .page-home .hero-rail__node {
    position: relative;
    padding-left: 26px;
  }

  .page-home .hero-rail__node::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 50%;
    width: 11px;
    height: 11px;
    margin-top: -5.5px;
    border-radius: 50%;
    background: var(--ink);
    border: 1px solid var(--gold);
  }

  .page-home .hero-rail__node:first-child::before {
    background: var(--cyan);
    border-color: var(--cyan);
    box-shadow: 0 0 12px var(--cyan-soft);
  }

  .page-home .hero-rail__node a {
    min-height: 32px;
    padding: 0;
    border: 0;
    border-radius: 0;
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    color: var(--slate);
  }

  .page-home .hero-rail__node:first-child a {
    color: var(--cyan);
  }

  .page-home .index-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 2.5rem;
  }

  .page-home .account-layout {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 3rem;
    align-items: center;
  }

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

  .page-home .story-card--lead {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 1.75rem;
    align-items: center;
  }
}

@media (min-width: 1000px) {
  .page-home .quota-list {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

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

@media (prefers-reduced-motion: reduce) {
  .page-home .hero-rail__node a,
  .page-home .tag-matrix .tag,
  .page-home .archive-item,
  .page-home .story-card,
  .page-home .service-item,
  .page-home .route-node a {
    transition: none;
  }

  .page-home .tag-matrix .tag:hover,
  .page-home .archive-item:hover,
  .page-home .story-card:hover,
  .page-home .service-item:hover {
    transform: none;
  }
}
