.page-home {
  --home-gap: clamp(56px, 7vw, 108px);
  --home-hair: rgba(14, 27, 54, .14);
  --home-body-text: rgba(36, 28, 21, .82);
  --home-soft-text: rgba(36, 28, 21, .64);
  color: var(--sky-ink);
}

.page-home .home-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  min-width: 0;
}

.page-home .home-flow {
  min-width: 0;
  padding-bottom: clamp(40px, 6vw, 72px);
}

/* ---------- 左侧目录轨道 ---------- */
.page-home .home-rail {
  background: var(--sky-ink-blue);
  border-radius: var(--sky-radius);
  padding: 14px 16px 12px;
  margin: 16px 0 8px;
  min-width: 0;
}

.page-home .home-rail__head {
  margin: 0 0 10px;
  font-family: var(--sky-font-mono);
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--sky-gold);
}

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

.page-home .home-rail__item {
  flex: 0 0 auto;
}

.page-home .home-rail__link {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 10px;
  border-bottom: 3px solid transparent;
  color: var(--sky-cream-text);
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .18s var(--sky-ease), color .18s var(--sky-ease), border-color .18s var(--sky-ease);
}

.page-home .home-rail__link::before {
  content: attr(data-index);
  font-family: var(--sky-font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: rgba(217, 164, 65, .78);
}

.page-home .home-rail__link:hover,
.page-home .home-rail__link:focus-visible {
  background: var(--sky-blue-2);
  color: #fff;
}

.page-home .home-rail__link:focus-visible {
  outline: 2px solid var(--sky-teal);
  outline-offset: 2px;
}

.page-home .home-rail__link.is-active,
.page-home .home-rail__link[aria-current="true"] {
  background: rgba(217, 164, 65, .16);
  border-bottom-color: var(--sky-gold);
  color: #fff;
}

.page-home .home-rail__note {
  display: none;
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid rgba(217, 164, 65, .34);
  font-size: 12px;
  line-height: 1.75;
  color: rgba(247, 242, 232, .68);
}

@media (min-width: 900px) {
  .page-home .home-layout {
    grid-template-columns: var(--sky-rail) minmax(0, 1fr);
    column-gap: clamp(28px, 4vw, 56px);
    align-items: start;
  }

  .page-home .home-rail {
    position: sticky;
    top: 24px;
    margin: 32px 0 0;
    padding: 20px 16px 18px;
  }

  .page-home .home-rail__list {
    flex-direction: column;
    overflow: visible;
    gap: 4px;
  }

  .page-home .home-rail__link {
    border-bottom: 0;
    border-left: 3px solid transparent;
    white-space: normal;
    line-height: 1.4;
  }

  .page-home .home-rail__link.is-active,
  .page-home .home-rail__link[aria-current="true"] {
    border-left-color: var(--sky-gold);
  }

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

/* ---------- 首屏 ---------- */
.page-home .home-hero {
  position: relative;
  padding: clamp(20px, 4vw, 40px) 0 var(--home-gap);
  overflow: hidden;
}

.page-home .home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(14, 27, 54, .07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(14, 27, 54, .07) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 78%);
  mask-image: linear-gradient(to bottom, #000 0%, transparent 78%);
  pointer-events: none;
}

.page-home .home-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(26px, 4vw, 44px);
}

.page-home .home-hero__title {
  margin: 14px 0 0;
  font-family: var(--sky-font-title);
  font-weight: 900;
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.24;
  letter-spacing: .02em;
  color: var(--sky-ink-blue);
  max-width: 15em;
}

.page-home .home-hero__lede {
  margin: 20px 0 0;
  max-width: 34em;
  font-size: clamp(15px, 1.7vw, 17px);
  line-height: 1.9;
  color: var(--home-body-text);
}

.page-home .home-hero__copy .sky-btn {
  margin-top: 28px;
}

.page-home .home-hero__meta {
  margin: 22px 0 0;
  font-family: var(--sky-font-mono);
  font-size: 13px;
  letter-spacing: .04em;
  line-height: 1.7;
  color: var(--sky-mist);
}

.page-home .home-hero__figure {
  margin: 0;
  border-radius: 96px 18px 96px 18px;
  overflow: hidden;
  background: var(--sky-ink-blue);
  box-shadow: 0 26px 56px -38px rgba(14, 27, 54, .62);
}

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

@media (min-width: 1024px) {
  .page-home .home-hero__grid {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    align-items: center;
    gap: clamp(32px, 4vw, 64px);
  }

  .page-home .home-hero__figure img {
    aspect-ratio: 4 / 3.4;
  }
}

/* ---------- 通用章节 ---------- */
.page-home .home-section {
  position: relative;
  padding: var(--home-gap) 0;
  border-top: 1px solid var(--home-hair);
  min-width: 0;
}

.page-home .home-section:first-of-type {
  border-top-color: rgba(217, 164, 65, .48);
}

.page-home .home-section__head {
  max-width: 44em;
  margin-bottom: clamp(24px, 3vw, 40px);
}

.page-home .home-section__title {
  margin: 12px 0 14px;
  font-family: var(--sky-font-title);
  font-weight: 900;
  font-size: clamp(23px, 2.9vw, 32px);
  line-height: 1.32;
  letter-spacing: .02em;
  color: var(--sky-ink-blue);
}

.page-home .home-section__lede {
  margin: 0;
  font-size: 15px;
  line-height: 1.85;
  color: var(--home-body-text);
  max-width: 40em;
}

.page-home .home-section__more {
  margin: 26px 0 0;
}

/* ---------- 文字链接 ---------- */
.page-home .home-link {
  display: inline-block;
  padding-bottom: 2px;
  border-bottom: 1px solid currentColor;
  color: var(--sky-teal-deep);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: color .18s var(--sky-ease);
}

.page-home .home-link:hover {
  color: var(--sky-teal);
}

.page-home .home-link:focus-visible {
  outline: 2px solid var(--sky-teal);
  outline-offset: 3px;
  border-radius: 2px;
}

.page-home .home-link--inverse {
  color: var(--sky-gold-soft);
}

.page-home .home-link--inverse:hover {
  color: #fff;
}

/* ---------- 频道目录 ---------- */
.page-home .home-channels {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(24px, 3vw, 40px);
}

.page-home .home-directory {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--home-hair);
  min-width: 0;
}

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

.page-home .home-directory__link {
  display: grid;
  grid-template-columns: 3.2rem minmax(0, 1fr) auto;
  grid-template-areas:
    "num title arrow"
    "num desc arrow";
  gap: 4px 12px;
  align-items: start;
  padding: 18px 10px 18px 0;
  border-bottom: 1px solid var(--home-hair);
  color: inherit;
  text-decoration: none;
  transition: background-color .18s var(--sky-ease), padding-left .18s var(--sky-ease);
}

.page-home .home-directory__num {
  grid-area: num;
  padding-top: 3px;
  font-family: var(--sky-font-mono);
  font-size: 13px;
  letter-spacing: .08em;
  color: var(--sky-mist);
  transition: color .18s var(--sky-ease);
}

.page-home .home-directory__title {
  grid-area: title;
  font-size: 17px;
  font-weight: 700;
  color: var(--sky-ink-blue);
}

.page-home .home-directory__desc {
  grid-area: desc;
  font-size: 14px;
  line-height: 1.75;
  color: var(--home-body-text);
}

.page-home .home-directory__arrow {
  grid-area: arrow;
  align-self: center;
  font-family: var(--sky-font-mono);
  font-size: 15px;
  color: var(--sky-mist);
  transition: transform .18s var(--sky-ease), color .18s var(--sky-ease);
}

.page-home .home-directory__link:hover,
.page-home .home-directory__link:focus-visible {
  background: var(--sky-card);
  padding-left: 12px;
}

.page-home .home-directory__link:hover .home-directory__num,
.page-home .home-directory__link:focus-visible .home-directory__num {
  color: var(--sky-gold);
}

.page-home .home-directory__link:hover .home-directory__arrow,
.page-home .home-directory__link:focus-visible .home-directory__arrow {
  transform: translateX(4px);
  color: var(--sky-teal);
}

.page-home .home-directory__link:focus-visible {
  outline: 2px solid var(--sky-teal);
  outline-offset: 2px;
}

.page-home .home-directory__figure {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  background: var(--sky-ink-blue);
}

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

@media (min-width: 1000px) {
  .page-home .home-channels {
    grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
    align-items: start;
  }

  .page-home .home-directory__figure {
    position: sticky;
    top: 32px;
  }
}

/* ---------- 三步上手 ---------- */
.page-home .home-steps {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.page-home .home-step {
  position: relative;
  background: var(--sky-parchment);
  border: 1px solid transparent;
  border-radius: 48px 14px 48px 14px;
  overflow: hidden;
  transition: transform .18s var(--sky-ease), border-color .18s var(--sky-ease), box-shadow .18s var(--sky-ease);
}

.page-home .home-step:nth-child(2) {
  border-radius: 14px 60px 14px 60px;
}

.page-home .home-step:nth-child(3) {
  border-radius: 60px 60px 14px 14px;
}

.page-home .home-step:hover {
  transform: translateY(-2px);
  border-color: var(--sky-line-gold);
  box-shadow: 0 16px 32px -28px rgba(14, 27, 54, .6);
}

.page-home .home-step__heading {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
}

.page-home .home-step__trigger {
  display: flex;
  align-items: baseline;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 22px 20px 12px;
  background: none;
  border: 0;
  text-align: left;
  cursor: pointer;
  font-family: var(--sky-font-body);
  font-size: 17px;
  font-weight: 700;
  color: var(--sky-ink-blue);
}

.page-home .home-step__trigger[aria-expanded="true"] {
  box-shadow: inset 3px 0 0 var(--sky-rust);
}

.page-home .home-step__trigger:focus-visible {
  outline: 2px solid var(--sky-teal);
  outline-offset: -4px;
}

.page-home .home-step__num {
  font-family: var(--sky-font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--sky-mist);
}

.page-home .home-step__trigger[aria-expanded="true"] .home-step__num {
  color: var(--sky-gold);
}

.page-home .home-step__body {
  padding: 0 20px 24px;
  font-size: 14px;
  line-height: 1.85;
  color: var(--home-body-text);
}

.page-home .home-step__body p {
  margin: 0;
}

.page-home .home-steps__note {
  margin: 22px 0 0;
  font-family: var(--sky-font-mono);
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--home-soft-text);
}

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

/* ---------- 手机访问 ---------- */
.page-home .home-mobile {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(24px, 3vw, 44px);
  align-items: center;
}

.page-home .home-mobile__figure {
  margin: 0;
  border-radius: 18px 80px 18px 80px;
  overflow: hidden;
  background: linear-gradient(160deg, var(--sky-blue-2), var(--sky-ink-blue));
}

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

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

.page-home .home-mobile__list {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  gap: 4px;
}

.page-home .home-mobile__item {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 0;
  border-top: 1px dashed var(--home-hair);
  font-size: 15px;
  line-height: 1.8;
  color: var(--home-body-text);
}

.page-home .home-mobile__item::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-top: 10px;
  border-radius: 2px;
  background: var(--sky-gold);
  transform: rotate(45deg);
}

.page-home .home-mobile__links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin: 26px 0 0;
}

@media (min-width: 900px) {
  .page-home .home-mobile {
    grid-template-columns: minmax(0, 4.5fr) minmax(0, 7.5fr);
  }
}

/* ---------- 服务通道 ---------- */
.page-home .home-service {
  border-radius: 24px;
  overflow: hidden;
  background: var(--sky-ink-blue);
  color: var(--sky-cream-text);
}

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

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

.page-home .home-service__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  padding: clamp(22px, 3.4vw, 40px);
}

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

.page-home .home-service__label {
  margin: 0;
  font-family: var(--sky-font-mono);
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--sky-gold);
}

.page-home .home-service__mail {
  margin: 10px 0 0;
  font-family: var(--sky-font-mono);
  font-size: clamp(15px, 1.7vw, 19px);
  line-height: 1.5;
  color: var(--sky-gold-soft);
  word-break: break-all;
}

.page-home .home-service__text {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.85;
  color: rgba(247, 242, 232, .82);
}

.page-home .home-service__links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin: 20px 0 0;
}

@media (min-width: 820px) {
  .page-home .home-service__body {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 32px;
  }

  .page-home .home-service__col + .home-service__col {
    padding-left: 32px;
    border-left: 1px solid rgba(217, 164, 65, .34);
  }
}

/* ---------- 最新更新 ---------- */
.page-home .home-news {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--home-hair);
  min-width: 0;
}

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

.page-home .home-news__link {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr) auto;
  grid-template-areas: "tag title time";
  gap: 8px 16px;
  align-items: baseline;
  padding: 20px 10px 20px 0;
  border-bottom: 1px solid var(--home-hair);
  color: inherit;
  text-decoration: none;
  transition: background-color .18s var(--sky-ease), padding-left .18s var(--sky-ease);
}

.page-home .home-news__tag {
  grid-area: tag;
  font-family: var(--sky-font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--sky-rust);
}

.page-home .home-news__title {
  grid-area: title;
  font-size: 15px;
  line-height: 1.7;
  color: var(--sky-ink-blue);
  font-weight: 600;
}

.page-home .home-news__time {
  grid-area: time;
  font-family: var(--sky-font-mono);
  font-size: 12px;
  color: var(--sky-mist);
  white-space: nowrap;
}

.page-home .home-news__link:hover,
.page-home .home-news__link:focus-visible {
  background: var(--sky-card);
  padding-left: 12px;
}

.page-home .home-news__link:hover .home-news__title,
.page-home .home-news__link:focus-visible .home-news__title {
  color: var(--sky-teal-deep);
}

.page-home .home-news__link:focus-visible {
  outline: 2px solid var(--sky-teal);
  outline-offset: 2px;
}

.page-home .home-note {
  margin: 24px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--sky-line-gold);
  font-size: 13px;
  line-height: 1.8;
  color: var(--home-soft-text);
}

@media (max-width: 640px) {
  .page-home .home-news__link {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "tag time"
      "title title";
    row-gap: 8px;
  }

  .page-home .home-directory__link {
    grid-template-columns: 2.6rem minmax(0, 1fr) auto;
    gap: 4px 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .home-rail__link,
  .page-home .home-step,
  .page-home .home-directory__link,
  .page-home .home-directory__num,
  .page-home .home-directory__arrow,
  .page-home .home-news__link,
  .page-home .home-link {
    transition: none;
  }

  .page-home .home-step:hover,
  .page-home .home-directory__link:hover .home-directory__arrow,
  .page-home .home-directory__link:focus-visible .home-directory__arrow {
    transform: none;
  }
}
