.page-home {
  background: var(--ink-900);
  color: var(--text);
  font-family: var(--font-sans);
  scroll-behavior: smooth;
}

.page-home [id^="section-"] {
  scroll-margin-top: 92px;
}

.page-home .home-crumb-wrap {
  padding-top: clamp(14px, 3vw, 26px);
}

.page-home .home-kicker {
  display: inline-block;
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mint);
  border-left: 3px solid var(--orange);
  padding-left: 10px;
  line-height: 1.2;
}

/* ---------- 侧边章节跟随 ---------- */
.page-home .home-toc {
  display: none;
}

@media (min-width: 1180px) {
  .page-home .home-toc {
    display: flex;
    position: fixed;
    left: max(14px, calc((100vw - var(--shell)) / 2 - 58px));
    top: 50%;
    transform: translateY(-50%);
    flex-direction: column;
    gap: 16px;
    z-index: 6;
  }

  .page-home .home-toc a {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.24em;
    color: var(--text-mute);
    text-decoration: none;
    padding: 8px 4px;
    border-right: 2px solid var(--line);
    transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
  }

  .page-home .home-toc a:hover,
  .page-home .home-toc a.is-active {
    color: var(--mint);
    border-right-color: var(--mint);
  }
}

/* ---------- 刊头主题声明 ---------- */
.page-home .home-masthead {
  padding: clamp(18px, 4vw, 42px) 0 clamp(36px, 6vw, 80px);
}

.page-home .home-masthead__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(18px, 4vw, 34px);
  align-items: start;
}

.page-home .home-masthead__note {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--text-mute);
  padding-left: 10px;
  border-left: 2px solid var(--mint);
}

@media (min-width: 900px) {
  .page-home .home-masthead__note {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    border-left: 0;
    border-right: 2px solid var(--mint);
    padding: 0 12px 0 0;
    justify-self: start;
  }

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

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

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

.page-home .home-title {
  margin: 6px 0 20px;
  font-size: clamp(32px, 8.4vw, 68px);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -0.015em;
}

.page-home .home-title__line {
  display: block;
}

.page-home .home-title__line--mid {
  color: transparent;
  background: linear-gradient(96deg, var(--violet-a), var(--violet-b) 42%, var(--mint));
  -webkit-background-clip: text;
  background-clip: text;
}

@media (min-width: 760px) {
  .page-home .home-title__line--mid {
    padding-left: 0.85em;
  }

  .page-home .home-title__line:last-child {
    padding-left: 0.34em;
  }
}

.page-home .home-masthead__lede {
  max-width: 40em;
  margin: 0 0 24px;
  font-size: clamp(15px, 2.1vw, 17px);
  line-height: 1.75;
  color: var(--text-mute);
}

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

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

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

.page-home .home-masthead__stats li {
  min-width: 0;
  padding: 14px 16px 16px;
  border: 2px solid var(--line);
  background: var(--ink-700);
  box-shadow: var(--shadow-hard);
}

.page-home .home-masthead__stats strong {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(20px, 3.4vw, 28px);
  line-height: 1.1;
  color: var(--mint);
}

.page-home .home-masthead__stats span {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-mute);
}

.page-home .home-masthead__figure {
  position: relative;
  margin: clamp(26px, 5vw, 52px) 0 0;
  border: 2px solid var(--line);
  background: var(--ink-800);
  overflow: hidden;
}

.page-home .home-masthead__figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.page-home .home-masthead__figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(138deg, rgba(123, 77, 255, 0.34), rgba(7, 11, 34, 0) 46%, rgba(33, 243, 224, 0.2));
  pointer-events: none;
}

.page-home .home-masthead__caption {
  margin: 0;
  padding: 12px 16px;
  border-top: 2px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--text-mute);
  background: var(--ink-800);
}

/* ---------- 通用区块头 ---------- */
.page-home .home-section-head {
  max-width: 46em;
  margin-bottom: clamp(20px, 4vw, 38px);
}

.page-home .home-section-head--tight {
  margin-bottom: clamp(14px, 2.4vw, 22px);
}

.page-home .home-section-head h2 {
  margin: 0 0 12px;
  font-size: clamp(25px, 4.6vw, 42px);
  font-weight: 900;
  line-height: 1.16;
}

.page-home .home-section-head__sub,
.page-home .home-section-head p {
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-mute);
}

/* ---------- 板块索引 ---------- */
.page-home .home-map {
  padding: clamp(36px, 7vw, 84px) 0;
  background: var(--ink-800);
  border-top: 2px solid var(--line);
  border-bottom: 2px solid var(--line);
}

.page-home .home-map__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(20px, 4vw, 34px);
}

@media (min-width: 980px) {
  .page-home .home-map__layout {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    align-items: start;
  }
}

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

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

.page-home .map-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 18px 16px;
  border: 2px solid var(--line);
  background: var(--ink-700);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.page-home .map-card:hover,
.page-home .map-card:focus-within {
  transform: translate(-3px, -3px);
  border-color: var(--mint);
  box-shadow: var(--shadow-mint);
}

.page-home .map-card:nth-child(2) .map-card__idx,
.page-home .map-card:nth-child(4) .map-card__idx {
  color: var(--orange);
}

.page-home .map-card__idx {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.16em;
  color: var(--mint);
}

.page-home .map-card__title {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.3;
}

.page-home .map-card__desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.72;
  color: var(--text-mute);
}

.page-home .map-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}

.page-home .map-card__link {
  align-self: flex-start;
  margin-top: 2px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--mint);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 2px solid var(--mint);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.page-home .map-card__link:hover,
.page-home .map-card__link:focus-visible {
  color: var(--text);
  border-bottom-color: var(--orange);
}

.page-home .home-map__figure {
  margin: 0;
  border: 2px solid var(--line);
  background: var(--ink-900);
}

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

.page-home .home-map__figure figcaption {
  padding: 12px 14px;
  border-top: 2px solid var(--line);
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-mute);
}

/* ---------- V3 版本 ---------- */
.page-home .home-v3 {
  padding: clamp(36px, 7vw, 88px) 0;
  position: relative;
  background-image: repeating-linear-gradient(
    118deg,
    rgba(46, 58, 107, 0.55) 0 2px,
    rgba(46, 58, 107, 0) 2px 22px
  );
  background-repeat: no-repeat;
  background-size: 100% 92px;
  background-position: 0 0;
}

.page-home .home-v3__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(22px, 4vw, 46px);
  align-items: start;
}

@media (min-width: 980px) {
  .page-home .home-v3__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  }
}

.page-home .home-v3__head h2 {
  margin: 0 0 14px;
  font-size: clamp(25px, 4.4vw, 40px);
  font-weight: 900;
  line-height: 1.16;
}

.page-home .home-v3__head p {
  margin: 0 0 22px;
  font-size: 15px;
  line-height: 1.78;
  color: var(--text-mute);
}

.page-home .home-v3__list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: v3;
}

.page-home .home-v3__list li {
  counter-increment: v3;
  position: relative;
  padding: 20px 0 20px 54px;
  border-top: 2px solid var(--line);
}

.page-home .home-v3__list li:last-child {
  border-bottom: 2px solid var(--line);
}

.page-home .home-v3__list li::before {
  content: counter(v3, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 22px;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--orange);
}

.page-home .home-v3__list h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.4;
}

.page-home .home-v3__list p {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-mute);
}

/* ---------- iOS 收藏 ---------- */
.page-home .home-ios {
  padding: clamp(36px, 7vw, 88px) 0;
  background: linear-gradient(180deg, var(--ink-900), var(--ink-800));
  border-top: 2px solid var(--line);
}

.page-home .home-ios__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(22px, 4vw, 44px);
  align-items: center;
}

@media (min-width: 900px) {
  .page-home .home-ios__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  }
}

.page-home .home-ios__figure {
  margin: 0;
  border: 2px solid var(--line);
  background: var(--ink-700);
  box-shadow: var(--shadow-hard);
}

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

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

.page-home .home-ios__body h2 {
  margin: 0 0 14px;
  font-size: clamp(24px, 4.2vw, 36px);
  font-weight: 900;
  line-height: 1.2;
}

.page-home .home-ios__body > p {
  margin: 0 0 20px;
  font-size: 15px;
  line-height: 1.78;
  color: var(--text-mute);
}

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

.page-home .home-ios__steps li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  line-height: 1.72;
  color: var(--text);
}

.page-home .home-ios__steps li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 10px;
  height: 2px;
  background: var(--mint);
}

/* ---------- 服务范围与刷新时间 ---------- */
.page-home .home-window {
  padding: clamp(36px, 7vw, 80px) 0;
  background: var(--ink-900);
}

.page-home .home-window__panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(20px, 3.4vw, 32px);
  padding: clamp(22px, 4vw, 42px);
  border: 2px solid var(--line);
  background: var(--ink-700);
  box-shadow: var(--shadow-hard);
}

@media (min-width: 900px) {
  .page-home .home-window__panel {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    align-items: center;
  }

  .page-home .home-window__cta {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

.page-home .home-window__body h2 {
  margin: 0 0 14px;
  font-size: clamp(24px, 4.2vw, 36px);
  font-weight: 900;
  line-height: 1.2;
}

.page-home .home-window__body p {
  margin: 0;
  font-size: 15px;
  line-height: 1.78;
  color: var(--text-mute);
}

.page-home .home-window__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.page-home .home-window__facts div {
  min-width: 0;
  padding: 14px 12px;
  border: 2px solid var(--line);
  background: var(--ink-800);
}

.page-home .home-window__facts strong {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(20px, 3vw, 26px);
  color: var(--mint);
  line-height: 1.1;
}

.page-home .home-window__facts span {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-mute);
}

/* ---------- 近期更新 ---------- */
.page-home .home-feed {
  padding: clamp(36px, 7vw, 88px) 0;
  background: var(--ink-800);
  border-top: 2px solid var(--line);
}

.page-home .home-feed__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(22px, 4vw, 40px);
  align-items: start;
}

@media (min-width: 900px) {
  .page-home .home-feed__grid {
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  }
}

.page-home .home-feed__figure {
  margin: 0;
  border: 2px solid var(--line);
  background: var(--ink-900);
  position: relative;
  overflow: hidden;
}

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

.page-home .home-feed__figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, rgba(33, 243, 224, 0.18), rgba(7, 11, 34, 0) 52%, rgba(194, 75, 255, 0.26));
  pointer-events: none;
}

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

.page-home .home-feed__list {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
}

.page-home .home-feed__list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 14px;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 2px solid var(--line);
}

.page-home .home-feed__list li:first-child {
  border-top: 2px solid var(--line);
}

.page-home .home-feed__list .tag {
  grid-column: 1 / -1;
  justify-self: start;
}

.page-home .home-feed__list a {
  min-width: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  text-decoration: none;
  transition: color 0.25s var(--ease);
}

.page-home .home-feed__list a:hover,
.page-home .home-feed__list a:focus-visible {
  color: var(--mint);
}

.page-home .home-feed__note {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--mint);
  white-space: nowrap;
}

@media (min-width: 640px) {
  .page-home .home-feed__list li {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .page-home .home-feed__list .tag {
    grid-column: auto;
    justify-self: start;
  }
}

/* ---------- 收尾 ---------- */
.page-home .home-more {
  padding: clamp(34px, 6vw, 72px) 0 clamp(44px, 8vw, 96px);
  background: var(--ink-900);
  border-top: 2px solid var(--line);
}

.page-home .home-more__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(18px, 3.4vw, 30px);
  align-items: center;
}

@media (min-width: 900px) {
  .page-home .home-more__inner {
    grid-template-columns: minmax(0, 1.6fr) auto;
  }
}

.page-home .home-more__body h2 {
  margin: 0 0 12px;
  font-size: clamp(23px, 4vw, 34px);
  font-weight: 900;
  line-height: 1.22;
}

.page-home .home-more__body p {
  max-width: 44em;
  margin: 0;
  font-size: 15px;
  line-height: 1.78;
  color: var(--text-mute);
}

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

.page-home a:focus-visible,
.page-home .btn:focus-visible {
  outline: 3px solid var(--mint);
  outline-offset: 3px;
}
