.page-home {
  --home-line: rgba(53, 224, 240, 0.24);
  --home-line-soft: rgba(169, 188, 207, 0.16);
  --home-radius: 3px;
  display: block;
}

.page-home .home-section {
  position: relative;
  padding: clamp(46px, 7vw, 92px) 0;
}

.page-home .home-section + .home-section {
  border-top: 1px solid var(--home-line-soft);
}

.page-home .eyebrow {
  margin: 0 0 10px;
}

.page-home .lede {
  max-width: 40em;
}

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

.page-home .hero-section {
  padding-top: clamp(22px, 4vw, 40px);
  border-top: 0;
  background:
    radial-gradient(88% 62% at 8% 0%, rgba(53, 224, 240, 0.15), transparent 62%),
    radial-gradient(70% 52% at 100% 8%, rgba(255, 122, 47, 0.11), transparent 64%);
}

.page-home .home-crumb {
  margin: 0 0 clamp(18px, 3vw, 30px);
  color: var(--slate-300);
  font-size: 0.82rem;
}

.page-home .hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 4vw, 44px);
  align-items: end;
}

.page-home .hero-lead .display {
  margin: 0 0 18px;
}

.page-home .hero-aside {
  display: grid;
  gap: 16px;
  align-content: end;
}

.page-home .hero-stats {
  list-style: none;
  margin: 0;
  padding: 18px 0 0;
  display: grid;
  gap: 12px;
  border-top: 1px solid var(--home-line);
}

.page-home .hero-stats li {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--slate-300);
}

.page-home .hero-stats .stat-num {
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--signal-cyan);
  line-height: 1.1;
}

.page-home .hero-stats .stat-unit {
  font-size: 0.86rem;
  color: var(--signal-cyan);
}

.page-home .hero-stats .stat-label {
  flex-basis: 100%;
  font-size: 0.82rem;
}

/* ---------- 首屏拼贴 ---------- */

.page-home .collage {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: clamp(28px, 5vw, 48px);
}

.page-home .collage-media {
  margin: 0;
  display: flex;
  min-height: 200px;
  overflow: hidden;
}

.page-home .collage-media img {
  width: 100%;
  height: 100%;
  min-height: 200px;
  object-fit: cover;
}

.page-home .ch {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 20px 20px 18px 24px;
  border: 1px solid var(--home-line);
  border-radius: var(--home-radius);
  background: linear-gradient(158deg, rgba(18, 48, 79, 0.92), rgba(10, 26, 47, 0.96));
  color: var(--paper-white);
  text-decoration: none;
  overflow: hidden;
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.page-home .ch::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--signal-cyan);
  transform: scaleY(0.3);
  transform-origin: top;
  transition: transform 0.35s ease;
}

.page-home .ch:hover,
.page-home .ch:focus-visible {
  border-color: var(--signal-cyan);
  transform: translateY(-2px);
}

.page-home .ch:hover::before,
.page-home .ch:focus-visible::before {
  transform: scaleY(1);
}

.page-home .ch--primary {
  border-color: rgba(255, 122, 47, 0.45);
  background:
    radial-gradient(120% 96% at 100% 0%, rgba(255, 122, 47, 0.24), transparent 62%),
    linear-gradient(158deg, rgba(23, 69, 111, 0.94), rgba(10, 26, 47, 0.96));
}

.page-home .ch--primary::before {
  background: var(--signal-orange);
}

.page-home .ch--primary:hover,
.page-home .ch--primary:focus-visible {
  border-color: var(--signal-orange);
}

.page-home .ch-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.page-home .ch-title {
  display: block;
  font-size: clamp(1.15rem, 2.6vw, 1.6rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.page-home .ch-text {
  display: block;
  font-size: 0.93rem;
  line-height: 1.7;
  color: var(--slate-300);
}

.page-home .ch-foot {
  display: block;
  margin-top: auto;
  padding-top: 8px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--signal-cyan);
}

/* ---------- 适配快查 ---------- */

.page-home .adapt-section {
  background: linear-gradient(180deg, rgba(18, 48, 79, 0.55), rgba(10, 26, 47, 0) 72%);
}

.page-home .table-wrap {
  margin-top: clamp(22px, 3vw, 32px);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--home-line);
  border-radius: var(--home-radius);
  background: rgba(10, 26, 47, 0.62);
}

.page-home .adapt-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.page-home .adapt-table th,
.page-home .adapt-table td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--home-line-soft);
}

.page-home .adapt-table thead th {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--signal-cyan);
  white-space: nowrap;
  background: rgba(18, 48, 79, 0.8);
}

.page-home .adapt-table tbody tr:nth-child(even) {
  background: rgba(18, 48, 79, 0.32);
}

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

.page-home .adapt-table .cell-key {
  color: var(--paper-white);
  font-weight: 500;
  white-space: nowrap;
}

.page-home .adapt-table .cell-dim {
  color: var(--slate-300);
}

.page-home .adapt-note {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
}

.page-home .adapt-note p {
  margin: 0;
  flex: 1 1 260px;
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--slate-300);
}

/* ---------- 换设备续接 ---------- */

.page-home .relay-section {
  background:
    radial-gradient(80% 70% at 6% 100%, rgba(53, 224, 240, 0.1), transparent 64%);
}

.page-home .relay-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(26px, 4vw, 48px);
  align-items: center;
}

.page-home .relay-list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.page-home .relay-list li {
  position: relative;
  padding-left: 26px;
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--slate-300);
}

.page-home .relay-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.78em;
  width: 13px;
  height: 1px;
  background: var(--signal-cyan);
}

.page-home .relay-tip {
  margin-top: 26px;
  padding: 18px 20px;
  border: 1px dashed rgba(255, 200, 87, 0.42);
  border-radius: var(--home-radius);
  background: rgba(18, 48, 79, 0.55);
}

.page-home .relay-tip p {
  margin: 12px 0 10px;
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--paper-white);
}

.page-home .link-inline {
  display: inline-block;
  font-size: 0.88rem;
  color: var(--signal-cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(53, 224, 240, 0.5);
  padding-bottom: 2px;
}

.page-home .link-inline:hover {
  border-bottom-color: var(--signal-cyan);
}

.page-home .relay-media {
  margin: 0;
}

/* ---------- 资料栏目 ---------- */

.page-home .docs-section {
  background: var(--paper-layer);
  color: var(--ink-950);
}

.page-home .docs-section .chapter-title {
  color: var(--ink-950);
}

.page-home .docs-section .chapter-num {
  color: rgba(10, 26, 47, 0.55);
}

.page-home .docs-section .lede {
  color: rgba(10, 26, 47, 0.74);
}

.page-home .docs-media {
  margin: clamp(22px, 3vw, 32px) 0 0;
  overflow: hidden;
}

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

.page-home .docs-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: clamp(20px, 3vw, 28px);
}

.page-home .doc-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 15px 14px 14px;
  border: 1px solid rgba(10, 26, 47, 0.16);
  border-radius: var(--home-radius);
  background: rgba(255, 253, 248, 0.94);
  color: var(--ink-950);
  text-decoration: none;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.page-home .doc-card:hover,
.page-home .doc-card:focus-visible {
  transform: translateY(-3px);
  border-color: var(--signal-orange);
  box-shadow: 0 14px 26px -20px rgba(10, 26, 47, 0.75);
}

.page-home .doc-card .path-code {
  color: rgba(10, 26, 47, 0.5);
}

.page-home .doc-name {
  display: block;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.35;
}

.page-home .doc-meta {
  display: block;
  font-size: 0.82rem;
  line-height: 1.6;
  color: rgba(10, 26, 47, 0.62);
}

.page-home .docs-foot {
  margin: clamp(20px, 3vw, 28px) 0 0;
  max-width: 44em;
  font-size: 0.9rem;
  line-height: 1.8;
  color: rgba(10, 26, 47, 0.68);
}

/* ---------- 点位地图 ---------- */

.page-home .map-section {
  background:
    radial-gradient(70% 60% at 96% 6%, rgba(53, 224, 240, 0.12), transparent 62%);
}

.page-home .map-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 4vw, 44px);
  margin-top: clamp(22px, 3vw, 32px);
}

.page-home .map-group + .map-group {
  margin-top: 22px;
}

.page-home .map-head {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--signal-cyan);
}

.page-home .map-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.page-home .map-list a {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 9px 11px;
  border: 1px solid var(--home-line-soft);
  border-radius: var(--home-radius);
  color: var(--paper-white);
  font-size: 0.88rem;
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.page-home .map-list a:hover,
.page-home .map-list a:focus-visible {
  border-color: var(--signal-cyan);
  background: rgba(53, 224, 240, 0.09);
}

.page-home .map-list .path-code {
  flex: 0 0 auto;
}

.page-home .map-media {
  margin: 0;
  overflow: hidden;
}

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

/* ---------- 人工支持 ---------- */

.page-home .support-section {
  background: linear-gradient(180deg, rgba(18, 48, 79, 0.7), rgba(10, 26, 47, 0.15));
}

.page-home .support-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(26px, 4vw, 48px);
  align-items: start;
}

.page-home .support-copy .btn {
  margin-top: 22px;
}

.page-home .support-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--home-line);
}

.page-home .support-list li {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  padding: 16px 0;
  border-bottom: 1px solid var(--home-line-soft);
}

.page-home .support-key {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate-300);
}

.page-home .support-val {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--paper-white);
}

/* ---------- 响应式 ---------- */

@media (min-width: 560px) {
  .page-home .support-list li {
    grid-template-columns: 104px minmax(0, 1fr);
    align-items: baseline;
    gap: 4px 16px;
  }
}

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

  .page-home .collage-media {
    grid-column: 1 / 7;
    grid-row: 1 / 3;
    min-height: 260px;
  }

  .page-home .ch--primary {
    grid-column: 7 / 13;
    grid-row: 1 / 2;
  }

  .page-home .ch {
    grid-column: span 3;
  }

  .page-home .collage > .ch:nth-of-type(3) {
    grid-column: 7 / 10;
    grid-row: 2 / 3;
  }

  .page-home .collage > .ch:nth-of-type(4) {
    grid-column: 10 / 13;
    grid-row: 2 / 3;
  }

  .page-home .ch--wide {
    grid-column: 1 / 13;
    grid-row: 3 / 4;
  }

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

@media (min-width: 880px) {
  .page-home .hero-grid {
    grid-template-columns: minmax(0, 1.38fr) minmax(0, 0.62fr);
  }

  .page-home .relay-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.7fr);
  }

  .page-home .map-grid {
    grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
    align-items: start;
  }

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

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

@media (prefers-reduced-motion: reduce) {
  .page-home .ch,
  .page-home .ch::before,
  .page-home .doc-card,
  .page-home .map-list a {
    transition: none;
  }

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