.page-home {
  --home-line-dark: rgba(10, 26, 21, .12);
  --home-ink-soft: #2c4a40;
  --home-cyan-ink: #0a7d6e;
  background: var(--ink);
  color: var(--on-dark);
  overflow-x: clip;
}

/* ---------- 首屏 ---------- */
.page-home .home-hero {
  position: relative;
  overflow: hidden;
  padding: 40px 0 56px;
  background:
    radial-gradient(120% 90% at 88% 0%, rgba(22, 224, 198, .10) 0%, transparent 62%),
    var(--ink);
  border-bottom: 1px solid var(--edge);
}

.page-home .home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(90deg, rgba(22, 224, 198, .07) 0 1px, transparent 1px 72px),
    repeating-linear-gradient(0deg, rgba(22, 224, 198, .05) 0 1px, transparent 1px 72px);
  mask-image: radial-gradient(115% 90% at 15% 0%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(115% 90% at 15% 0%, #000 0%, transparent 78%);
}

.page-home .home-hero::after {
  content: "";
  position: absolute;
  top: -25%;
  right: -12%;
  width: 58%;
  height: 150%;
  pointer-events: none;
  background: linear-gradient(116deg, transparent 0 45.4%, rgba(255, 106, 31, .16) 45.6% 46.1%, transparent 46.4% 100%);
}

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

.page-home .home-crumb {
  margin-bottom: 16px;
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--steel);
}

.page-home .home-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 6px 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--mint);
  border: 1px solid var(--edge-strong);
  border-radius: 999px;
}

.page-home .home-title {
  margin: 0 0 20px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(32px, 8.2vw, 64px);
  line-height: 1.02;
  letter-spacing: -.01em;
  color: var(--on-dark);
  word-break: break-word;
}

.page-home .home-title__accent {
  color: var(--cyan);
}

.page-home .home-lede {
  margin: 0 0 26px;
  max-width: 46ch;
  font-size: 16px;
  line-height: 1.75;
  color: var(--steel);
}

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

.page-home .home-hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 0;
  padding: 18px 0 0;
  list-style: none;
  border-top: 1px solid var(--edge);
  font-size: 13px;
  color: var(--steel);
}

.page-home .home-hero__facts .mono {
  margin-right: 5px;
  font-family: var(--font-mono);
  font-size: 20px;
  color: var(--cyan);
}

.page-home .home-hero__media {
  margin: 0;
  border: 1px solid var(--edge-strong);
  border-radius: 6px;
  overflow: hidden;
  max-width: 320px;
}

.page-home .home-hero__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

/* ---------- 六格目录 ---------- */
.page-home .home-lanes {
  padding: 56px 0;
  background: var(--ink);
}

.page-home .lane-grid {
  display: grid;
  grid-template-columns: 1fr;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--edge);
  border-left: 1px solid var(--edge);
}

.page-home .lane-cell {
  border-right: 1px solid var(--edge);
  border-bottom: 1px solid var(--edge);
}

.page-home .lane {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 156px;
  padding: 22px 20px 20px;
  text-decoration: none;
  color: var(--on-dark);
  background: transparent;
  transition: background .3s ease;
}

.page-home .lane:hover,
.page-home .lane:focus-visible {
  background: var(--stand);
}

.page-home .lane-idx {
  font-family: var(--font-mono);
  font-size: 28px;
  line-height: 1;
  color: var(--cyan);
  transform-origin: left center;
  transition: transform .3s ease, color .3s ease;
}

.page-home .lane:hover .lane-idx,
.page-home .lane:focus-visible .lane-idx {
  transform: scale(1.16);
  color: var(--mint);
}

.page-home .lane-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: .01em;
  line-height: 1.2;
}

.page-home .lane-text {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--steel);
}

.page-home .lane-arrow {
  margin-top: auto;
  padding-top: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--mint);
}

/* ---------- 额度速览 ---------- */
.page-home .home-quota {
  padding: 56px 0;
  background: var(--stand);
  border-top: 1px solid var(--edge);
  border-bottom: 1px solid var(--edge);
}

.page-home .quota-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--edge-strong);
}

.page-home .quota-item {
  padding: 22px 0;
  border-bottom: 1px solid var(--edge);
}

.page-home .quota-idx {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--mint);
}

.page-home .quota-name {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 30px;
  line-height: 1.1;
  color: var(--on-dark);
}

.page-home .quota-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--steel);
  max-width: 34ch;
}

.page-home .quota-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
  margin-top: 24px;
}

.page-home .quota-note {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--steel);
  max-width: 42ch;
}

.page-home .stat-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 10px;
  margin: 30px 0 0;
  padding: 22px 0 0;
  list-style: none;
  border-top: 1px solid var(--edge-strong);
}

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

.page-home .stat-num {
  font-family: var(--font-mono);
  font-size: 30px;
  line-height: 1;
  color: var(--on-dark);
}

.page-home .stat-unit {
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--steel);
}

/* ---------- 站内检索 ---------- */
.page-home .home-search {
  padding: 56px 0;
  background: var(--ink);
}

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

.page-home .home-search__text {
  margin: 14px 0 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--steel);
  max-width: 42ch;
}

.page-home .home-kbd {
  display: inline-block;
  min-width: 20px;
  padding: 1px 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--mint);
  border: 1px solid var(--edge-strong);
  border-radius: 4px;
}

.page-home .home-search__terms {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.page-home .home-search__terms li {
  padding: 5px 12px;
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--mint);
  border: 1px solid var(--edge-strong);
  border-radius: 999px;
}

.page-home .home-search__panel {
  padding: 16px;
  border-radius: 10px;
}

.page-home .search-input {
  width: 100%;
}

.page-home .search-groups {
  display: grid;
  gap: 16px;
  margin-top: 14px;
}

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

.page-home .search-results {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-home .search-result {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 4px 12px;
  padding: 9px 10px;
  border-left: 2px solid transparent;
  border-radius: 6px;
  transition: background .2s ease, border-color .2s ease;
}

.page-home .search-result:hover,
.page-home .search-result:focus-within {
  background: rgba(22, 224, 198, .08);
  border-left-color: var(--cyan);
}

.page-home .search-result-name {
  font-size: 14px;
  color: var(--on-dark);
  text-decoration: none;
}

.page-home .search-result-path {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--steel);
}

.page-home .search-empty {
  margin: 14px 0 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--steel);
}

/* ---------- 设备适配 ---------- */
.page-home .home-device {
  padding: 56px 0;
  background: var(--paper);
  color: var(--on-light);
}

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

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

.page-home .home-device__media img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--home-line-dark);
  border-radius: 8px;
}

.page-home .home-device .img-caption {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.65;
  color: var(--home-ink-soft);
}

.page-home .home-device__text {
  margin: 14px 0 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--home-ink-soft);
  max-width: 44ch;
}

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

.page-home .device-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 14px;
  padding-bottom: 11px;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--home-ink-soft);
  border-bottom: 1px solid var(--home-line-dark);
}

.page-home .device-list .mono {
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--home-cyan-ink);
}

.page-home .home-device .btn--ghost {
  color: var(--on-light);
  border-color: rgba(10, 26, 21, .35);
}

.page-home .home-device .btn--ghost:hover {
  border-color: var(--home-cyan-ink);
  color: var(--home-cyan-ink);
}

/* ---------- 专题与榜单 ---------- */
.page-home .home-topics {
  padding: 56px 0;
  background: var(--ink);
}

.page-home .home-topics__inner {
  display: grid;
  gap: 28px;
  margin-top: 28px;
}

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

.page-home .topic-item {
  border-top: 1px solid var(--edge);
}

.page-home .topic-item:last-child {
  border-bottom: 1px solid var(--edge);
}

.page-home .topic-link {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  text-decoration: none;
  color: var(--on-dark);
  transition: padding-left .25s ease, color .25s ease;
}

.page-home .topic-link:hover,
.page-home .topic-link:focus-visible {
  padding-left: 10px;
  color: var(--mint);
}

.page-home .topic-idx {
  flex: none;
  font-family: var(--font-mono);
  font-size: 20px;
  line-height: 1.3;
  color: var(--cyan);
}

.page-home .topic-body {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.page-home .topic-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  line-height: 1.3;
}

.page-home .topic-tag {
  padding: 2px 9px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-style: normal;
  letter-spacing: .12em;
  color: var(--ember);
  border: 1px solid rgba(255, 164, 107, .45);
  border-radius: 999px;
}

.page-home .topic-text {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--steel);
}

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

.page-home .home-topics__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 1px solid var(--edge);
  border-radius: 8px;
}

.page-home .home-topics__media .img-caption {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.65;
  color: var(--steel);
}

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

.page-home .home-topics__note {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--steel);
  max-width: 46ch;
}

/* ---------- 收藏与客服 ---------- */
.page-home .home-service {
  position: relative;
  overflow: hidden;
  padding: 56px 0;
  background: var(--stand);
  border-top: 1px solid var(--edge);
}

.page-home .home-service__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

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

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

.page-home .home-service__text {
  margin: 14px 0 20px;
  font-size: 15px;
  line-height: 1.78;
  color: var(--steel);
  max-width: 44ch;
}

.page-home .home-inline-link {
  color: var(--mint);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-home .bookmark-hint {
  margin-top: 14px;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--on-dark);
  background: rgba(27, 58, 51, .8);
  border: 1px solid var(--edge-strong);
  border-radius: 6px;
}

.page-home .service-channels {
  padding-left: 20px;
  border-left: 2px solid var(--lava);
}

.page-home .service-channels h3 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  line-height: 1.25;
  color: var(--on-dark);
}

.page-home .service-channels ul {
  display: grid;
  gap: 12px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.page-home .service-channels li {
  font-size: 14px;
  line-height: 1.75;
  color: var(--steel);
}

.page-home .service-label {
  display: inline-block;
  margin-right: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--ember);
}

.page-home .service-channels .mono {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--on-dark);
  word-break: break-all;
}

.page-home .service-meta {
  margin: 0 0 18px;
  font-size: 13px;
  line-height: 1.72;
  color: var(--steel);
}

/* ---------- 响应式 ---------- */
@media (min-width: 720px) {
  .page-home .home-hero {
    padding: 56px 0 72px;
  }

  .page-home .home-hero__inner {
    grid-template-columns: minmax(0, 1.42fr) minmax(0, .58fr);
    gap: 44px;
    align-items: start;
  }

  .page-home .home-hero__media {
    max-width: none;
    margin-top: 34px;
  }

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

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

  .page-home .quota-item {
    padding: 26px 22px;
    border-bottom: 0;
    border-right: 1px solid var(--edge);
  }

  .page-home .quota-item:first-child {
    padding-left: 0;
  }

  .page-home .quota-item:last-child {
    padding-right: 0;
    border-right: 0;
  }

  .page-home .stat-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .page-home .home-search__inner {
    grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
    gap: 40px;
    align-items: start;
  }

  .page-home .search-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 20px;
  }

  .page-home .home-device__inner {
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
    gap: 44px;
    align-items: center;
  }

  .page-home .home-topics__inner {
    grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr);
    gap: 36px;
    align-items: start;
  }

  .page-home .home-service__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, .9fr);
    gap: 48px;
    align-items: start;
  }
}

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

  .page-home .home-lanes,
  .page-home .home-search,
  .page-home .home-topics {
    padding: 80px 0;
  }

  .page-home .home-quota,
  .page-home .home-device,
  .page-home .home-service {
    padding: 72px 0;
  }

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

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

  .page-home .stat-num {
    font-size: 34px;
  }

  .page-home .quota-name {
    font-size: 34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .lane,
  .page-home .lane-idx,
  .page-home .topic-link,
  .page-home .search-result {
    transition: none;
  }

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