/* ========== 首页专属样式 ========== */
.page-home {
  background-color: var(--cloud);
  color: var(--text-color);
  overflow-x: hidden;
}

.page-home a:focus-visible,
.page-home .home-tools__card:focus-visible {
  outline: 2px solid var(--royal-gold);
  outline-offset: 3px;
}

/* ---------- 首屏 Hero ---------- */
.page-home .home-hero {
  background: linear-gradient(150deg, var(--deep-blue) 0%, #0E2137 50%, #15324E 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 40px), 0 100%);
}

.page-home .home-hero__meta {
  display: none;
}

.page-home .home-hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 440px;
  padding-top: 72px;
  padding-bottom: 200px;
}

.page-home .home-hero__kicker {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--royal-gold);
  margin: 0 0 16px;
}

.page-home .home-hero__title {
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1.18;
  color: var(--white);
  margin: 0 0 22px;
  max-width: 880px;
}

.page-home .home-hero__desc {
  max-width: 700px;
  font-size: 15px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 30px;
}

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

.page-home .home-hero__actions .btn {
  padding: 12px 22px;
  font-size: 15px;
  line-height: 1.2;
  border: 1px solid var(--royal-gold);
  background-color: var(--royal-gold);
  color: var(--deep-blue);
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.page-home .home-hero__actions .btn--ghost {
  background-color: transparent;
  color: var(--royal-gold);
  border-color: rgba(201, 163, 106, 0.45);
}

.page-home .home-hero__actions .btn:hover {
  background-color: var(--dark-gold);
  border-color: var(--dark-gold);
  color: var(--white);
}

.page-home .home-hero__actions .btn--ghost:hover {
  background-color: var(--royal-gold);
  border-color: var(--royal-gold);
  color: var(--deep-blue);
}

.page-home .home-hero__figure {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 150px;
  z-index: 0;
  margin: 0;
  overflow: hidden;
}

.page-home .home-hero__figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  opacity: 0.5;
}

.page-home .home-hero__skyline {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  width: 100%;
  height: 120px;
  pointer-events: none;
}

.page-home .home-hero__shadow {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  height: 140px;
  background: linear-gradient(to top, rgba(10, 27, 46, 0.8), transparent);
  pointer-events: none;
}

@media (min-width: 768px) {
  .page-home .home-hero__title {
    font-size: 44px;
  }

  .page-home .home-hero__desc {
    font-size: 16px;
  }

  .page-home .home-hero__figure {
    height: 170px;
  }
}

@media (min-width: 1024px) {
  .page-home .home-hero__meta {
    position: absolute;
    top: 32px;
    left: 40px;
    right: 40px;
    z-index: 3;
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.22em;
    color: rgba(255, 255, 255, 0.55);
    border-bottom: 1px solid rgba(201, 163, 106, 0.25);
    padding-bottom: 14px;
  }

  .page-home .home-hero__inner {
    min-height: 520px;
    padding-top: 90px;
  }

  .page-home .home-hero__figure {
    height: 200px;
  }
}

/* ---------- 面包屑 ---------- */
.page-home > .breadcrumb {
  margin-top: -18px;
  position: relative;
  z-index: 5;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--mist);
}

/* ---------- 信息目录 ---------- */
.page-home .home-directory {
  margin-top: 40px;
}

.page-home .home-directory__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-top: 32px;
}

.page-home .home-directory__aside {
  background: var(--deep-blue);
  color: rgba(255, 255, 255, 0.82);
  padding: 24px 22px 26px;
  border-left: 3px solid var(--royal-gold);
  font-size: 14px;
  line-height: 1.75;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
}

.page-home .home-directory__aside p:not(.home-directory__edition) {
  margin: 12px 0 0;
}

.page-home .home-directory__edition {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 1px solid rgba(201, 163, 106, 0.3);
  padding-bottom: 12px;
  margin: 0 0 14px;
}

.page-home .home-directory__edition-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--royal-gold);
  text-transform: uppercase;
}

.page-home .home-directory__edition-value {
  font-family: var(--font-mono);
  font-size: 20px;
  color: var(--wheat);
  font-weight: 700;
}

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

.page-home .home-directory__item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 16px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-color);
  text-decoration: none;
  position: relative;
  transition: background-color 0.25s ease, padding-left 0.25s ease, box-shadow 0.25s ease;
}

.page-home .home-directory__item:first-child {
  border-top: 1px solid var(--border-color);
}

.page-home .home-directory__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 0;
  background: var(--royal-gold);
  transition: height 0.25s ease;
}

.page-home .home-directory__item:hover {
  background-color: var(--white);
  padding-left: 20px;
  box-shadow: 0 6px 22px rgba(10, 27, 46, 0.06);
}

.page-home .home-directory__item:hover::before {
  height: 55%;
}

.page-home .home-directory__num {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--royal-gold);
  min-width: 28px;
}

.page-home .home-directory__info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.page-home .home-directory__info strong {
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--deep-blue);
  line-height: 1.35;
}

.page-home .home-directory__info small {
  font-size: 13px;
  color: var(--mist);
  line-height: 1.5;
}

.page-home .home-directory__item .tag {
  flex-shrink: 0;
}

@media (min-width: 1024px) {
  .page-home .home-directory__layout {
    grid-template-columns: 280px 1fr;
    gap: 40px;
    align-items: start;
  }
}

/* ---------- 新用户三步核对 ---------- */
.page-home .home-steps {
  margin-top: 48px;
}

.page-home .home-steps__header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 30px;
}

.page-home .home-steps__lead {
  max-width: 460px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--mist);
  margin: 0;
}

.page-home .home-steps__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

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

.page-home .home-steps__item {
  display: flex;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border-color);
}

.page-home .home-steps__item:first-child {
  padding-top: 0;
}

.page-home .home-steps__mark {
  font-family: var(--font-mono);
  font-size: 30px;
  font-weight: 700;
  color: var(--royal-gold);
  line-height: 1;
  min-width: 52px;
  text-align: right;
}

.page-home .home-steps__item h3 {
  font-family: var(--font-display);
  font-size: 19px;
  color: var(--deep-blue);
  margin: 0 0 8px;
}

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

.page-home .home-steps__figure {
  background: var(--deep-blue);
  border-left: 3px solid var(--royal-gold);
  margin: 0;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%);
}

.page-home .home-steps__figure img {
  display: block;
  width: 100%;
  height: auto;
}

.page-home .home-steps__figure figcaption {
  padding: 12px 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--wheat);
  border-top: 1px solid rgba(201, 163, 106, 0.2);
}

@media (min-width: 1024px) {
  .page-home .home-steps__layout {
    grid-template-columns: 1fr 0.85fr;
    align-items: center;
  }
}

/* ---------- 平台数据一览 ---------- */
.page-home .home-stats {
  background: linear-gradient(150deg, var(--deep-blue) 0%, #0C2036 55%, #12304A 100%);
  color: var(--white);
  padding: 56px 0 80px;
  margin: 72px 0;
  position: relative;
  overflow: hidden;
  border-top: 3px solid var(--royal-gold);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 26px), calc(100% - 26px) 100%, 0 100%);
}

.page-home .home-stats .section-heading__title {
  color: var(--white);
}

.page-home .home-stats .section-heading__index {
  color: var(--royal-gold);
}

.page-home .home-stats__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 30px 0 36px;
}

.page-home .home-stats__card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(201, 163, 106, 0.18);
  padding: 24px 14px;
  text-align: center;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.page-home .home-stats__card:hover {
  background: rgba(201, 163, 106, 0.12);
  border-color: rgba(201, 163, 106, 0.5);
}

.page-home .home-stats__unit {
  display: block;
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 700;
  color: var(--royal-gold);
  line-height: 1.15;
  margin-bottom: 8px;
}

.page-home .home-stats__label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.06em;
}

.page-home .home-stats__bottom {
  display: grid;
  gap: 28px;
  align-items: center;
}

.page-home .home-stats__meta p {
  margin: 0;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(201, 163, 106, 0.22);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.82);
}

.page-home .home-stats__meta p:last-child {
  border-bottom: none;
}

.page-home .home-stats__meta strong {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--wheat);
}

.page-home .home-stats__figure {
  margin: 0;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(201, 163, 106, 0.16);
}

.page-home .home-stats__figure img {
  width: 100%;
  height: auto;
  display: block;
}

.page-home .home-stats__figure figcaption {
  padding: 9px 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  border-top: 1px solid rgba(201, 163, 106, 0.14);
}

@media (min-width: 768px) {
  .page-home .home-stats__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }

  .page-home .home-stats__card {
    padding: 30px 18px;
  }

  .page-home .home-stats__unit {
    font-size: 36px;
  }

  .page-home .home-stats__label {
    font-size: 14px;
  }
}

@media (min-width: 1024px) {
  .page-home .home-stats__bottom {
    grid-template-columns: 280px 1fr;
    gap: 40px;
  }
}

/* ---------- 最新动态 ---------- */
.page-home .home-news {
  margin: 72px 0;
}

.page-home .home-news__layout {
  display: grid;
  gap: 26px;
}

.page-home .home-news__desc {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--mist);
}

.page-home .home-news__list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.page-home .home-news__item {
  display: block;
  padding: 16px 18px;
  background: var(--white);
  border-left: 3px solid var(--royal-gold);
  text-decoration: none;
  color: var(--text-color);
  box-shadow: 0 1px 3px rgba(10, 27, 46, 0.04);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.page-home .home-news__item:hover {
  box-shadow: 0 10px 26px rgba(10, 27, 46, 0.1);
  transform: translateY(-3px);
}

.page-home .home-news__item h3 {
  margin: 10px 0 0;
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.45;
  color: var(--deep-blue);
  font-weight: 600;
}

.page-home .home-news__more {
  justify-self: start;
}

@media (min-width: 1024px) {
  .page-home .home-news__layout {
    grid-template-columns: 280px 1fr;
    column-gap: 44px;
    row-gap: 20px;
    align-items: start;
  }

  .page-home .home-news__more {
    grid-column: 2;
    justify-self: start;
  }
}

/* ---------- 帮助工具入口 ---------- */
.page-home .home-tools {
  margin: 72px 0;
}

.page-home .home-tools__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 30px;
}

.page-home .home-tools__card {
  display: block;
  background: var(--white);
  border-top: 2px solid var(--royal-gold);
  padding: 24px 22px 28px;
  position: relative;
  text-decoration: none;
  color: var(--text-color);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.page-home .home-tools__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(10, 27, 46, 0.1);
}

.page-home .home-tools__code {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--dark-gold);
}

.page-home .home-tools__card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--deep-blue);
  margin: 8px 0 12px;
}

.page-home .home-tools__card p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--mist);
  margin: 0 0 16px;
}

.page-home .home-tools__link {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--dark-gold);
  border-bottom: 1px solid var(--dark-gold);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.page-home .home-tools__card:hover .home-tools__link {
  color: var(--royal-gold);
  border-color: var(--royal-gold);
}

.page-home .home-tools__card--ios {
  background: var(--deep-blue);
  border-top-color: var(--wheat);
}

.page-home .home-tools__card--ios h3 {
  color: var(--white);
}

.page-home .home-tools__card--ios p {
  color: rgba(255, 255, 255, 0.8);
}

.page-home .home-tools__card--ios .home-tools__code {
  color: var(--wheat);
}

.page-home .home-tools__card--ios .home-tools__link {
  color: var(--royal-gold);
  border-color: var(--royal-gold);
}

.page-home .home-tools__card--ios:hover {
  box-shadow: 0 16px 34px rgba(10, 27, 46, 0.35);
}

.page-home .home-tools__ios-body {
  display: grid;
  gap: 16px;
  align-items: center;
}

.page-home .home-tools__ios-body img {
  width: 84px;
  height: 84px;
  object-fit: cover;
  border: 1px solid rgba(201, 163, 106, 0.35);
}

@media (min-width: 768px) {
  .page-home .home-tools__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-home .home-tools__card--ios {
    grid-column: 1 / -1;
  }

  .page-home .home-tools__ios-body {
    grid-template-columns: 1fr 180px;
  }

  .page-home .home-tools__ios-body img {
    width: 180px;
    height: 180px;
    justify-self: end;
  }
}

/* ---------- 信任声明 ---------- */
.page-home .home-trust {
  border-top: 1px solid var(--border-color);
  background: var(--white);
  padding: 28px 0;
  margin-top: 40px;
}

.page-home .home-trust p {
  margin: 0;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--mist);
}

/* ---------- 降级动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  .page-home *,
  .page-home *::before,
  .page-home *::after {
    transition: none !important;
    animation: none !important;
  }
}
