.page-home {
  --glow-purple: rgba(177, 75, 255, 0.28);
  --glow-pink: rgba(255, 61, 166, 0.24);
  --glow-cyan: rgba(41, 230, 255, 0.2);
  --grid-line: rgba(177, 75, 255, 0.1);
  overflow-x: clip;
}

/* ---------- 首屏 Hero ---------- */
.page-home .home-hero {
  position: relative;
  padding: 56px 0 40px;
  isolation: isolate;
}

.page-home .home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 70% 60% at 80% 6%, rgba(177, 75, 255, 0.22), transparent 70%),
    radial-gradient(ellipse 48% 42% at 8% 92%, rgba(41, 230, 255, 0.12), transparent 70%),
    linear-gradient(180deg, rgba(10, 10, 18, 0) 0%, rgba(16, 16, 26, 0.6) 100%);
}

.page-home .home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(177, 75, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(177, 75, 255, 0.07) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 88%);
  mask-image: linear-gradient(to bottom, #000, transparent 88%);
  pointer-events: none;
}

.page-home .home-hero__grid {
  display: grid;
  gap: 30px;
  align-items: center;
}

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

.page-home .home-hero h1 {
  margin: 0 0 18px;
  font-size: clamp(2.05rem, 6vw, 3.9rem);
  line-height: 1.14;
  letter-spacing: 0.03em;
  font-weight: 800;
  background: linear-gradient(122deg, #fff 0%, var(--neon-purple) 42%, var(--neon-pink) 74%, var(--neon-cyan) 104%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 40px rgba(177, 75, 255, 0.1);
}

.page-home .home-hero__lead {
  max-width: 58ch;
  margin: 0 0 26px;
  font-size: 1.02rem;
  line-height: 1.9;
  color: var(--ink-soft);
}

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

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

.page-home .home-hero__visual::before {
  content: "";
  position: absolute;
  inset: 12px -12px -12px 12px;
  border: 1px solid rgba(255, 61, 166, 0.32);
  z-index: -1;
  pointer-events: none;
}

.page-home .home-hero__visual::after {
  content: "";
  position: absolute;
  inset: -1px;
  border: 1px solid rgba(41, 230, 255, 0.24);
  pointer-events: none;
}

.page-home .home-hero__visual img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  border: 1px solid var(--line);
}

@media (min-width: 960px) {
  .page-home .home-hero {
    padding: 84px 0 64px;
  }

  .page-home .home-hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
    gap: 52px;
  }

  .page-home .home-hero__lead {
    font-size: 1.08rem;
  }
}

/* ---------- 数据带 ---------- */
.page-home .home-telemetry {
  margin-top: 8px;
}

.page-home .home-telemetry__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--line-soft);
  background: rgba(20, 20, 34, 0.62);
}

.page-home .telemetry-cell {
  position: relative;
  padding: 18px 18px 16px;
}

.page-home .telemetry-cell:nth-child(1),
.page-home .telemetry-cell:nth-child(2) {
  border-bottom: 1px solid var(--line-soft);
}

.page-home .telemetry-cell:nth-child(odd) {
  border-right: 1px solid var(--line-soft);
}

.page-home .telemetry-num {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(1.5rem, 3.4vw, 2rem);
  font-weight: 700;
  line-height: 1.25;
}

.page-home .telemetry-cell:nth-child(1) .telemetry-num {
  color: var(--neon-pink);
}

.page-home .telemetry-cell:nth-child(2) .telemetry-num {
  color: var(--neon-cyan);
}

.page-home .telemetry-cell:nth-child(3) .telemetry-num {
  color: var(--neon-purple);
}

.page-home .telemetry-cell:nth-child(4) .telemetry-num {
  color: var(--ink);
}

.page-home .telemetry-label {
  display: block;
  margin-top: 6px;
  font-size: 0.8rem;
  color: var(--ink-dim);
  letter-spacing: 0.04em;
}

@media (min-width: 900px) {
  .page-home .home-telemetry {
    margin-top: 0;
  }

  .page-home .home-telemetry__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid var(--line);
  }

  .page-home .telemetry-cell {
    padding: 24px 22px;
  }

  .page-home .telemetry-cell:nth-child(1),
  .page-home .telemetry-cell:nth-child(2) {
    border-bottom: 0;
  }

  .page-home .telemetry-cell + .telemetry-cell {
    border-left: 1px solid var(--line-soft);
  }
}

/* ---------- 区块通用 ---------- */
.page-home .section-head {
  margin-bottom: 28px;
}

.page-home .section-head h2 {
  margin: 4px 0 12px;
  font-size: clamp(1.55rem, 3.6vw, 2.3rem);
  line-height: 1.28;
  letter-spacing: 0.01em;
}

.page-home .section-head__desc {
  max-width: 72ch;
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.85;
}

.page-home [data-reveal].is-visible {
  animation: home-rise 0.6s ease both;
}

@keyframes home-rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- 双线检索 ---------- */
.page-home .home-mode {
  padding-top: 72px;
}

.page-home .home-mode__grid {
  display: grid;
  gap: 18px;
}

.page-home .mode-panel {
  position: relative;
  padding: 34px 26px 28px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(177, 75, 255, 0.09) 0%, rgba(20, 20, 34, 0.4) 100%);
  clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 26px, 100% 100%, 26px 100%, 0 calc(100% - 26px));
}

.page-home .mode-panel--line-b {
  background: linear-gradient(180deg, rgba(41, 230, 255, 0.08) 0%, rgba(20, 20, 34, 0.4) 100%);
  border-color: rgba(41, 230, 255, 0.24);
}

.page-home .mode-panel__num {
  position: absolute;
  top: 22px;
  right: 26px;
  font-family: var(--font-mono);
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--neon-purple);
  opacity: 0.75;
  pointer-events: none;
}

.page-home .mode-panel--line-b .mode-panel__num {
  -webkit-text-stroke-color: var(--neon-cyan);
}

.page-home .mode-panel h3 {
  margin: 0 0 8px;
  font-size: 1.3rem;
  letter-spacing: 0.02em;
}

.page-home .mode-panel > p {
  max-width: 40ch;
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.8;
  font-size: 0.95rem;
}

.page-home .mode-panel__list {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
}

.page-home .mode-panel__list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  padding: 12px 2px;
  border-bottom: 1px dashed rgba(177, 75, 255, 0.24);
}

.page-home .mode-panel--line-b .mode-panel__list li {
  border-bottom: 1px dashed rgba(41, 230, 255, 0.24);
}

.page-home .mode-panel__list li:last-child {
  border-bottom: 0;
}

.page-home .mode-panel__list a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.page-home .mode-panel__list a:hover {
  color: var(--neon-cyan);
}

.page-home .mode-panel__list span {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-dim);
  white-space: nowrap;
}

@media (min-width: 960px) {
  .page-home .home-mode__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: stretch;
  }

  .page-home .mode-panel {
    padding: 40px 32px 34px;
  }
}

/* ---------- 分类导航 ---------- */
.page-home .home-cats {
  padding-top: 72px;
}

.page-home .home-cats__grid {
  display: grid;
  gap: 16px;
}

.page-home .cat-cell {
  position: relative;
  min-height: 144px;
  padding: 26px 22px 22px;
  border: 1px solid var(--line-soft);
  border-top: 2px solid var(--neon-purple);
  background: rgba(27, 27, 46, 0.45);
  overflow: hidden;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}

.page-home .cat-cell:nth-child(2) {
  border-top-color: var(--neon-pink);
}

.page-home .cat-cell:nth-child(3) {
  border-top-color: var(--neon-cyan);
}

.page-home .cat-cell:nth-child(5) {
  border-top-color: var(--neon-pink);
}

.page-home .cat-cell:hover {
  border-top-color: var(--neon-cyan);
  transform: translateY(-4px);
  border-color: var(--neon-cyan);
  box-shadow: 0 0 28px rgba(41, 230, 255, 0.14);
}

.page-home .cat-cell__num {
  position: absolute;
  right: 14px;
  bottom: -20px;
  font-family: var(--font-mono);
  font-size: 4.8rem;
  font-weight: 700;
  line-height: 1;
  color: rgba(177, 75, 255, 0.1);
  pointer-events: none;
  user-select: none;
}

.page-home .cat-cell h3 {
  position: relative;
  margin: 0 0 8px;
  font-size: 1.16rem;
  letter-spacing: 0.03em;
}

.page-home .cat-cell p {
  position: relative;
  max-width: 42ch;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.7;
}

.page-home .cat-cell__meta {
  position: relative;
  display: inline-block;
  margin-top: 16px;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--neon-cyan);
  border: 1px solid rgba(41, 230, 255, 0.28);
}

@media (min-width: 900px) {
  .page-home .home-cats__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .page-home .cat-cell:nth-child(1) {
    grid-column: span 7;
  }

  .page-home .cat-cell:nth-child(2) {
    grid-column: span 5;
  }

  .page-home .cat-cell:nth-child(3) {
    grid-column: span 4;
  }

  .page-home .cat-cell:nth-child(4) {
    grid-column: span 8;
  }

  .page-home .cat-cell:nth-child(5) {
    grid-column: span 5;
  }

  .page-home .cat-cell:nth-child(6) {
    grid-column: span 7;
  }
}

/* ---------- 当前片单 ---------- */
.page-home .home-slate {
  padding-top: 76px;
}

.page-home .home-slate__layout {
  display: grid;
  gap: 30px;
  align-items: center;
}

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

.page-home .slate-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-home .slate-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 4px;
  border-bottom: 1px solid var(--line-soft);
}

.page-home .slate-item:last-child {
  border-bottom: 0;
}

.page-home .slate-item__tag {
  flex: 0 0 auto;
  margin-top: 4px;
  padding: 3px 8px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--neon-pink);
  border: 1px solid rgba(255, 61, 166, 0.36);
}

.page-home .slate-item h3 {
  margin: 0 0 4px;
  font-size: 1.04rem;
  letter-spacing: 0.01em;
}

.page-home .slate-item p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.7;
}

.page-home .home-slate__visual {
  margin: 0;
  position: relative;
}

.page-home .home-slate__visual::before {
  content: "";
  position: absolute;
  inset: -10px 14px 14px -14px;
  border: 1px solid rgba(177, 75, 255, 0.28);
  z-index: -1;
  pointer-events: none;
}

.page-home .home-slate__visual img,
.page-home .home-device__visual img,
.page-home .quality-visual img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  border: 1px solid var(--line);
}

@media (min-width: 960px) {
  .page-home .home-slate__layout {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 48px;
  }
}

/* ---------- 清晰度对照 ---------- */
.page-home .home-quality {
  padding-top: 76px;
}

.page-home .quality-layout {
  display: grid;
  gap: 28px;
  align-items: stretch;
}

.page-home .quality-table-wrap {
  border: 1px solid var(--line-soft);
  background: rgba(20, 20, 34, 0.54);
}

.page-home .quality-table {
  width: 100%;
  border-collapse: collapse;
}

.page-home .quality-table th,
.page-home .quality-table td {
  padding: 14px 16px;
  text-align: left;
}

.page-home .quality-table thead th {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  color: var(--ink-dim);
  background: rgba(177, 75, 255, 0.08);
  border-bottom: 1px solid var(--line);
}

.page-home .quality-table td {
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink-soft);
  line-height: 1.6;
}

.page-home .quality-table tbody tr:last-child td {
  border-bottom: 0;
}

.page-home .quality-table tbody tr:hover td {
  background: rgba(177, 75, 255, 0.06);
  color: var(--ink);
}

.page-home .quality-table__note {
  margin: 0;
  padding: 12px 16px;
  font-size: 0.82rem;
  color: var(--ink-dim);
  border-top: 1px solid var(--line-soft);
  line-height: 1.7;
}

.page-home .quality-visual {
  margin: 0;
}

@media (max-width: 639px) {
  .page-home .quality-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .page-home .quality-table,
  .page-home .quality-table tbody,
  .page-home .quality-table tr,
  .page-home .quality-table td {
    display: block;
    width: 100%;
  }

  .page-home .quality-table tr {
    padding: 6px 0;
    border-bottom: 1px solid var(--line-soft);
  }

  .page-home .quality-table tr:last-child {
    border-bottom: 0;
  }

  .page-home .quality-table tr:hover td {
    background: transparent;
  }

  .page-home .quality-table td {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 9px 14px;
    border-bottom: 0;
  }

  .page-home .quality-table td::before {
    content: attr(data-label);
    font-family: var(--font-mono);
    font-size: 0.76rem;
    color: var(--ink-dim);
  }
}

@media (min-width: 960px) {
  .page-home .quality-layout {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 36px;
    align-items: center;
  }

  .page-home .quality-table th,
  .page-home .quality-table td {
    padding: 16px 20px;
  }
}

/* ---------- 设备适配 ---------- */
.page-home .home-device {
  padding-top: 76px;
}

.page-home .home-device__layout {
  display: grid;
  gap: 30px;
  align-items: center;
}

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

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

.page-home .device-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-home .device-list li {
  display: grid;
  grid-template-columns: 92px 56px 1fr;
  gap: 14px;
  align-items: baseline;
  padding: 14px 2px;
  border-bottom: 1px solid var(--line-soft);
}

.page-home .device-list__label {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--neon-purple);
  font-weight: 600;
}

.page-home .device-list b {
  font-family: var(--font-mono);
  font-size: 0.84rem;
  color: var(--neon-cyan);
}

.page-home .device-list em {
  font-style: normal;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.6;
}

.page-home .device-list__foot {
  margin: 20px 0 0;
  padding: 14px 16px;
  font-size: 0.86rem;
  color: var(--ink-dim);
  border-left: 2px solid var(--neon-cyan);
  background: rgba(41, 230, 255, 0.04);
  line-height: 1.75;
}

@media (min-width: 960px) {
  .page-home .home-device__layout {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 48px;
  }
}

/* ---------- 全站索引 ---------- */
.page-home .home-sitemap {
  padding: 76px 0 16px;
  position: relative;
}

.page-home .home-sitemap::before {
  content: "";
  position: absolute;
  inset: 60px 0 0;
  background:
    radial-gradient(ellipse 60% 100% at 50% 0%, rgba(177, 75, 255, 0.12), transparent 70%);
  pointer-events: none;
}

.page-home .home-sitemap__nav {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 30px;
}

.page-home .home-sitemap__nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 18px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border: 1px solid var(--line-soft);
  background: rgba(20, 20, 34, 0.5);
  transition: border-color 0.2s, color 0.2s, transform 0.2s;
}

.page-home .home-sitemap__nav a:hover {
  border-color: var(--neon-purple);
  color: var(--neon-cyan);
  transform: translateY(-2px);
}

.page-home .home-sitemap__nav a::after {
  content: "→";
  font-family: var(--font-mono);
  color: var(--neon-purple);
  font-weight: 400;
}

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

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

  .page-home .home-sitemap__nav a {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    min-height: 84px;
  }

  .page-home .home-sitemap__nav a::after {
    content: "↗";
  }
}
