.page-home {
  --home-rail-w: 196px;
  --home-gap: 36px;
  display: block;
}

.page-home .home-top {
  padding-block: 18px 0;
}

.page-home .home-top a {
  color: var(--text-dim);
  text-decoration: none;
}

.page-home .home-top a:hover,
.page-home .home-top a:focus-visible {
  color: var(--accent-key);
}

/* ---------- 首屏 ---------- */
.page-home .home-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: 28px 60px;
}

.page-home .home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 88% -12%, rgba(122, 77, 255, 0.34), transparent 62%),
    radial-gradient(90% 70% at 6% 108%, rgba(34, 224, 255, 0.13), transparent 60%);
}

.page-home .home-hero__orbit {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.75;
}

.page-home .home-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 40px;
}

.page-home .home-hero__title {
  margin: 14px 0 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 7.4vw, 4rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: 0.015em;
  color: var(--text);
  text-wrap: balance;
}

.page-home .home-hero__accent {
  display: block;
  background: linear-gradient(96deg, var(--cyan), var(--violet) 78%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.page-home .home-hero__text {
  margin: 20px 0 0;
  max-width: 34em;
  color: var(--text-dim);
  font-size: 1rem;
  line-height: 1.85;
}

.page-home .home-search {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  padding: 13px 14px 13px 18px;
  border-radius: var(--radius-pill);
  background: var(--glass);
  border: 1px solid rgba(34, 224, 255, 0.42);
  box-shadow: 0 18px 44px rgba(5, 7, 15, 0.55), 0 0 40px rgba(34, 224, 255, 0.1);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.page-home .home-search__dot {
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent-key);
  box-shadow: 0 0 0 4px rgba(34, 224, 255, 0.16);
}

.page-home .home-search__field {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  letter-spacing: 0.04em;
  color: var(--text-dim);
}

.page-home .home-search__key {
  flex: none;
  padding: 7px 15px;
  border-radius: var(--radius-pill);
  background: var(--accent-hit);
  color: var(--ink-900);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.page-home .home-search__note {
  margin: 12px 0 0 6px;
  font-size: 0.86rem;
  line-height: 1.7;
  color: var(--muted);
}

.page-home .home-hero__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 14px;
  margin: 32px 0 0;
  padding: 22px 0 0;
  list-style: none;
  border-top: 1px solid var(--border);
}

.page-home .home-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.page-home .home-stat__num {
  font-family: var(--font-mono);
  font-size: 1.42rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
}

.page-home .home-stat__unit {
  margin-left: 2px;
  font-size: 0.72rem;
  color: var(--accent-key);
}

.page-home .home-stat__label {
  font-size: 0.78rem;
  color: var(--muted);
}

.page-home .home-hero__visual {
  position: relative;
}

.page-home .home-hero__media {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  clip-path: polygon(0 8%, 100% 0, 100% 92%, 0 100%);
  box-shadow: 0 40px 90px rgba(5, 7, 15, 0.7);
}

.page-home .home-hero__media .media__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.05);
}

.page-home .home-hero__stamp {
  position: absolute;
  top: 16px;
  right: 14px;
  margin: 0;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  background: rgba(5, 7, 15, 0.72);
  border: 1px solid rgba(200, 255, 77, 0.5);
  color: var(--accent-hit);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
}

.page-home .home-hero__caption {
  margin: 14px 0 0;
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.06em;
}

/* ---------- 三步动线 ---------- */
.page-home .home-flow {
  padding-block: 52px 46px;
  background: linear-gradient(180deg, rgba(11, 18, 38, 0), rgba(11, 18, 38, 0.92) 40%, rgba(11, 18, 38, 0));
}

.page-home .home-flow__head {
  max-width: 42em;
}

.page-home .home-flow__title {
  margin: 12px 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4.6vw, 2.1rem);
  font-weight: 800;
  letter-spacing: 0.015em;
  color: var(--text);
}

.page-home .home-flow__lead {
  margin: 14px 0 0;
  color: var(--text-dim);
  font-size: 0.96rem;
  line-height: 1.8;
}

.page-home .home-flow__grid {
  display: grid;
  gap: 30px;
  margin-top: 34px;
}

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

.page-home .home-step {
  position: relative;
  padding: 20px 20px 20px 22px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border-left: 3px solid var(--accent);
}

.page-home .home-step__idx {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--accent-key);
}

.page-home .home-step__title {
  margin: 8px 0 0;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text);
}

.page-home .home-step__text {
  margin: 8px 0 0;
  font-size: 0.9rem;
  line-height: 1.78;
  color: var(--text-dim);
}

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

.page-home .home-flow__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}

.page-home .home-flow__media .media__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 800 / 520;
  object-fit: cover;
  opacity: 0.92;
}

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

/* ---------- 画布与栏目轨 ---------- */
.page-home .home-canvas {
  padding-block: 56px 20px;
}

.page-home .home-canvas__grid {
  display: grid;
  gap: 28px;
}

.page-home .home-rail {
  position: static;
}

.page-home .home-rail__cap {
  margin: 0 0 12px;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.page-home .home-rail__list {
  display: flex;
  gap: 10px;
  margin: 0;
  padding: 0 0 4px;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: thin;
}

.page-home .home-rail__link {
  display: block;
  padding: 9px 15px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-dim);
  font-size: 0.84rem;
  white-space: nowrap;
  text-decoration: none;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.page-home .home-rail__link:hover,
.page-home .home-rail__link:focus-visible {
  color: var(--text);
  border-color: var(--accent-key);
}

.page-home .home-rail__link.is-active {
  color: var(--ink-900);
  background: var(--accent-hit);
  border-color: var(--accent-hit);
  font-weight: 600;
}

.page-home .home-rail__note {
  margin: 12px 0 0;
  font-size: 0.76rem;
  color: var(--muted);
  line-height: 1.7;
}

.page-home .home-block {
  padding-block: 18px 26px;
  scroll-margin-top: 96px;
}

.page-home .home-block + .home-block {
  margin-top: 44px;
}

.page-home .home-block__head {
  max-width: 44em;
}

.page-home .home-block__title {
  margin: 12px 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4.4vw, 2.05rem);
  font-weight: 800;
  letter-spacing: 0.015em;
  line-height: 1.22;
  color: var(--text);
}

.page-home .home-block__lead {
  margin: 14px 0 0;
  font-size: 0.94rem;
  line-height: 1.82;
  color: var(--text-dim);
}

.page-home .home-block__text {
  margin: 14px 0 0;
  font-size: 0.92rem;
  line-height: 1.82;
  color: var(--text-dim);
}

/* ---------- 标签 ---------- */
.page-home .home-tags {
  display: grid;
  gap: 24px;
  margin-top: 30px;
}

.page-home .home-tags__label {
  margin: 0 0 12px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--accent-key);
}

.page-home .home-tags__list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-home .home-tag {
  padding: 8px 15px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text-dim);
  font-size: 0.83rem;
  letter-spacing: 0.01em;
}

.page-home .home-tag.is-on {
  background: var(--accent-hit);
  border-color: var(--accent-hit);
  color: var(--ink-900);
  font-weight: 600;
}

.page-home .home-tags__rule {
  margin: 24px 0 0;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: var(--glass-soft);
  border-left: 3px solid var(--accent-key);
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--text-dim);
}

/* ---------- 斜切分隔 ---------- */
.page-home .home-slant {
  height: 42px;
  margin-block: 26px 6px;
  background: linear-gradient(90deg, transparent, rgba(122, 77, 255, 0.65), rgba(34, 224, 255, 0.45), transparent);
  clip-path: polygon(0 86%, 100% 8%, 100% 14%, 0 92%);
}

/* ---------- 控制台卡片 ---------- */
.page-home .home-console {
  display: grid;
  gap: 16px;
  margin-top: 30px;
}

.page-home .home-card {
  padding: 22px 20px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid rgba(42, 52, 102, 0.7);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.page-home .home-card:hover {
  border-color: rgba(34, 224, 255, 0.55);
  transform: translateY(-3px);
}

.page-home .home-card--feature {
  padding: 0 0 22px;
  overflow: hidden;
  background: linear-gradient(168deg, rgba(59, 30, 122, 0.5), var(--surface) 58%);
}

.page-home .home-card__media {
  border-radius: 0;
  overflow: hidden;
}

.page-home .home-card__media .media__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%);
}

.page-home .home-card__body {
  padding: 18px 20px 0;
}

.page-home .home-card__meta {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.page-home .home-card__title {
  margin: 10px 0 0;
  font-size: 1.06rem;
  font-weight: 700;
  line-height: 1.42;
  color: var(--text);
}

.page-home .home-card__text {
  margin: 10px 0 0;
  font-size: 0.88rem;
  line-height: 1.78;
  color: var(--text-dim);
}

.page-home .home-card__foot {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: var(--accent-key);
}

.page-home .home-card.is-hit {
  border-color: var(--accent-hit);
  box-shadow: 0 0 0 1px rgba(200, 255, 77, 0.45);
}

/* ---------- 设备适配 ---------- */
.page-home .home-devices {
  margin-top: 40px;
  padding: 30px 20px;
  border-radius: var(--radius-xl);
  background: linear-gradient(158deg, rgba(59, 30, 122, 0.6), rgba(11, 18, 38, 0.95) 62%);
  border: 1px solid rgba(122, 77, 255, 0.35);
}

.page-home .home-devices__grid {
  display: grid;
  gap: 28px;
}

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

.page-home .home-devices__media .media {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.page-home .home-devices__media .media__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 3;
  object-fit: cover;
}

.page-home .home-version {
  display: grid;
  gap: 1px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--border);
}

.page-home .home-version__row {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 11px 16px;
  background: var(--ink-800);
  font-size: 0.82rem;
  color: var(--text-dim);
}

.page-home .home-version__row .mono {
  flex: none;
  min-width: 46px;
  color: var(--accent-hit);
  letter-spacing: 0.05em;
}

/* ---------- 归档 ---------- */
.page-home .home-archive {
  display: grid;
  gap: 14px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.page-home .home-archive__item {
  padding: 20px;
  border-radius: var(--radius-md);
  background: var(--panel);
  border-top: 2px solid rgba(34, 224, 255, 0.6);
}

.page-home .home-archive__num {
  display: block;
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.02em;
}

.page-home .home-archive__title {
  margin: 8px 0 0;
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--accent-key);
}

.page-home .home-archive__text {
  margin: 8px 0 0;
  font-size: 0.88rem;
  line-height: 1.78;
  color: var(--text-dim);
}

/* ---------- 观察与团队 ---------- */
.page-home .home-read {
  padding-block: 56px;
  background: linear-gradient(180deg, rgba(5, 7, 15, 0), rgba(11, 18, 38, 0.96));
}

.page-home .home-read__grid {
  display: grid;
  gap: 28px;
}

.page-home .home-read__title {
  margin: 12px 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4.4vw, 2rem);
  font-weight: 800;
  letter-spacing: 0.015em;
  color: var(--text);
}

.page-home .home-read__text {
  margin: 14px 0 22px;
  max-width: 38em;
  font-size: 0.93rem;
  line-height: 1.82;
  color: var(--text-dim);
}

.page-home .home-read__side {
  padding: 22px 20px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
}

.page-home .home-read__side-title {
  margin: 0;
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  color: var(--accent-key);
}

.page-home .home-read__team {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.84rem;
  color: var(--text-dim);
}

.page-home .home-read__team .mono {
  margin-right: 6px;
  color: var(--text);
  font-weight: 600;
}

.page-home .home-read__note {
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 0.84rem;
  line-height: 1.75;
  color: var(--muted);
}

.page-home .home-read__link {
  display: inline-block;
  margin-top: 16px;
  color: var(--accent-key);
  font-size: 0.86rem;
  text-decoration: none;
  border-bottom: 1px solid rgba(34, 224, 255, 0.45);
  padding-bottom: 2px;
}

.page-home .home-read__link:hover,
.page-home .home-read__link:focus-visible {
  color: var(--accent-hit);
  border-color: var(--accent-hit);
}

/* ---------- 服务响应 ---------- */
.page-home .home-service {
  padding-block: 56px 64px;
  background: linear-gradient(186deg, rgba(59, 30, 122, 0.45), rgba(5, 7, 15, 0.98) 46%);
  scroll-margin-top: 96px;
}

.page-home .home-service__title {
  margin: 12px 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4.6vw, 2.1rem);
  font-weight: 800;
  letter-spacing: 0.015em;
  color: var(--text);
}

.page-home .home-service__grid {
  display: grid;
  gap: 16px;
  margin-top: 30px;
}

.page-home .home-service__card {
  display: flex;
  flex-direction: column;
  padding: 22px 20px;
  border-radius: var(--radius-lg);
  background: var(--glass-soft);
  border: 1px solid rgba(42, 52, 102, 0.85);
}

.page-home .home-service__idx {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.page-home .home-service__card-title {
  margin: 10px 0 0;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text);
}

.page-home .home-service__text {
  flex: 1 1 auto;
  margin: 10px 0 0;
  font-size: 0.88rem;
  line-height: 1.8;
  color: var(--text-dim);
}

.page-home .home-service__hint {
  margin: 10px 0 0;
  font-size: 0.74rem;
  color: var(--amber, #FFB43D);
  letter-spacing: 0.03em;
}

.page-home .home-service__go {
  display: inline-block;
  margin-top: 18px;
  padding: 10px 18px;
  align-self: flex-start;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(34, 224, 255, 0.5);
  color: var(--accent-key);
  font-size: 0.84rem;
  text-decoration: none;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}

.page-home .home-service__go:hover,
.page-home .home-service__go:focus-visible {
  background: var(--accent-key);
  color: var(--ink-900);
}

.page-home .home-service__foot {
  margin: 26px 0 0;
  font-size: 0.74rem;
  line-height: 1.8;
  letter-spacing: 0.04em;
  color: var(--muted);
}

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

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

  .page-home .home-tags__rule {
    grid-column: 1 / -1;
  }

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

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

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

@media (min-width: 900px) {
  .page-home .home-hero {
    padding-block: 46px 84px;
  }

  .page-home .home-hero__grid {
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
    gap: 60px;
    align-items: center;
  }

  .page-home .home-flow__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 44px;
    align-items: start;
  }

  .page-home .home-canvas__grid {
    grid-template-columns: var(--home-rail-w) minmax(0, 1fr);
    gap: var(--home-gap);
    align-items: start;
  }

  .page-home .home-rail {
    position: sticky;
    top: 96px;
    padding-right: 18px;
  }

  .page-home .home-rail__list {
    flex-direction: column;
    gap: 6px;
    overflow: visible;
    border-left: 1px solid var(--border);
    padding-left: 12px;
  }

  .page-home .home-rail__link {
    position: relative;
    border: none;
    border-radius: 0;
    background: transparent;
    padding: 7px 0 7px 4px;
  }

  .page-home .home-rail__link.is-active {
    background: transparent;
    color: var(--text);
  }

  .page-home .home-rail__link.is-active::before {
    content: "";
    position: absolute;
    left: -13px;
    top: 4px;
    bottom: 4px;
    width: 3px;
    border-radius: 3px;
    background: var(--accent);
    box-shadow: 0 0 12px rgba(122, 77, 255, 0.8);
  }

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

  .page-home .home-card--feature {
    grid-column: span 2;
    grid-row: span 2;
    display: flex;
    flex-direction: column;
  }

  .page-home .home-card--wide {
    grid-column: span 2;
  }

  .page-home .home-devices {
    padding: 44px 40px;
  }

  .page-home .home-devices__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 44px;
    align-items: start;
  }

  .page-home .home-read__grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
    gap: 48px;
    align-items: start;
  }
}

@media (min-width: 1100px) {
  .page-home .home-rail {
    --home-rail-w: 216px;
  }

  .page-home .home-hero__text {
    font-size: 1.06rem;
  }

  .page-home .home-flow {
    padding-block: 64px 56px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .home-card,
  .page-home .home-rail__link,
  .page-home .home-service__go {
    transition: none;
  }

  .page-home .home-card:hover {
    transform: none;
  }
}
