.page-home {
  --home-pad: 20px;
  --home-gap: 24px;
  --home-block: 56px;
  background: var(--ink-900);
  color: var(--paper);
  overflow-x: hidden;
}

/* ---------- 首屏封面 ---------- */
.page-home .home-cover {
  position: relative;
  padding: calc(var(--header-h) + 40px) 0 48px;
  background:
    radial-gradient(circle at 82% 14%, rgba(25, 227, 208, 0.16), transparent 58%),
    radial-gradient(circle at 8% 92%, rgba(255, 176, 32, 0.10), transparent 52%),
    linear-gradient(158deg, var(--ink-900) 0%, var(--ink-800) 100%);
  border-bottom: 1px solid var(--ink-700);
}

.page-home .home-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    115deg,
    rgba(42, 90, 122, 0.16) 0px,
    rgba(42, 90, 122, 0.16) 1px,
    transparent 1px,
    transparent 84px
  );
  pointer-events: none;
}

.page-home .home-cover__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}

.page-home .home-cover__kicker {
  margin: 0 0 14px;
  color: var(--cyan);
  letter-spacing: 0.14em;
}

.page-home .home-cover__title {
  margin: 0 0 20px;
  font-family: var(--font-title);
  font-weight: 900;
  font-size: clamp(2.1rem, 8vw, 4.2rem);
  line-height: 1.06;
  letter-spacing: -0.015em;
  color: var(--paper);
}

.page-home .home-cover__title em {
  font-style: normal;
  color: var(--cyan);
  box-shadow: inset 0 -0.16em 0 rgba(25, 227, 208, 0.22);
}

.page-home .home-cover__lede {
  max-width: 34em;
  margin: 0 0 26px;
  color: var(--cool);
  font-size: 1.0625rem;
  line-height: 1.78;
}

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

.page-home .home-cover__index {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  border-top: 1px solid var(--ink-700);
}

.page-home .home-cover__index-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 12px;
  align-items: baseline;
  padding: 11px 0;
  border-bottom: 1px solid var(--ink-700);
}

.page-home .home-cover__num {
  grid-row: 1 / span 2;
  color: var(--cyan);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}

.page-home .home-cover__link {
  grid-column: 2;
  color: var(--paper);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 180ms ease, border-color 180ms ease;
}

.page-home .home-cover__link:hover,
.page-home .home-cover__link:focus-visible {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

.page-home .home-cover__hint {
  grid-column: 2;
  color: var(--cool);
  font-size: 0.75rem;
  line-height: 1.5;
}

.page-home .home-cover__figure {
  margin: 0;
  position: relative;
}

.page-home .home-cover__figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  clip-path: var(--cut);
  border: 1px solid var(--ink-700);
  background: var(--ink-800);
}

.page-home .home-cover__caption {
  display: block;
  margin-top: 10px;
  color: var(--cool);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-align: right;
}

/* ---------- 主体网格与侧轨 ---------- */
.page-home .home-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
  padding: 48px 0 64px;
}

.page-home .home-rail__label {
  margin: 0 0 14px;
  color: var(--cyan);
}

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

.page-home .home-rail__list .rail__link {
  display: block;
  padding: 8px 10px;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--cool);
  text-decoration: none;
  border-left: 2px solid var(--ink-700);
  transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.page-home .home-rail__list .rail__link:hover,
.page-home .home-rail__list .rail__link:focus-visible {
  color: var(--paper);
  background: var(--ink-800);
  border-left-color: var(--cyan);
}

/* ---------- 章节通用 ---------- */
.page-home .home-flow {
  min-width: 0;
}

.page-home .home-section {
  padding-bottom: var(--home-block);
  margin-bottom: var(--home-block);
  border-bottom: 1px dashed var(--ink-700);
}

.page-home .home-section--last {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: 0;
}

.page-home .home-section__head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 26px;
}

.page-home .home-section__num {
  flex: 0 0 auto;
  margin-top: 4px;
}

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

.page-home .home-section__title {
  margin: 0 0 10px;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: clamp(1.5rem, 5vw, 2.35rem);
  line-height: 1.2;
  color: var(--paper);
}

.page-home .home-section__desc {
  margin: 0;
  max-width: 40em;
  color: var(--cool);
  font-size: 0.9375rem;
  line-height: 1.8;
}

.page-home .home-section .media-frame {
  margin: 0 0 26px;
  position: relative;
}

.page-home .home-section .media-frame img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  clip-path: var(--cut);
  border: 1px solid var(--ink-700);
  background: var(--ink-800);
}

.page-home .home-section .media-frame--wide img {
  aspect-ratio: 7 / 4;
}

.page-home .home-compare__figure img {
  aspect-ratio: 12 / 7;
}

.page-home .home-ticket__figure img {
  aspect-ratio: 5 / 3;
}

/* ---------- 01 双入口 ---------- */
.page-home .home-entries {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}

.page-home .home-entry {
  display: flex;
  flex-direction: column;
  padding: 24px 22px 22px;
  background: var(--ink-800);
  border: 1px solid var(--ink-700);
  border-top: 3px solid var(--ink-700);
  clip-path: var(--cut);
  transition: border-top-color 200ms ease, background-color 200ms ease;
}

.page-home .home-entry--sub {
  border-top-color: var(--amber);
}

.page-home .home-entry--log {
  border-top-color: var(--cyan);
}

.page-home .home-entry:hover {
  background: #112a41;
}

.page-home .home-entry__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.page-home .home-entry__code {
  color: var(--cool);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
}

.page-home .home-entry__title {
  margin: 0 0 12px;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--paper);
}

.page-home .home-entry__text {
  margin: 0 0 18px;
  color: var(--cool);
  font-size: 0.9375rem;
  line-height: 1.78;
}

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

.page-home .home-entry__list li {
  position: relative;
  padding-left: 18px;
  color: var(--paper);
  font-size: 0.875rem;
  line-height: 1.7;
}

.page-home .home-entry__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.66em;
  width: 8px;
  height: 2px;
  background: var(--cyan-deep);
}

.page-home .home-entry--sub .home-entry__list li::before {
  background: var(--amber-deep);
}

.page-home .home-entry .btn {
  margin-top: auto;
}

/* ---------- 02 二级入口 ---------- */
.page-home .home-drawer {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}

.page-home .home-drawer__panel {
  background: var(--ink-800);
  border: 1px solid var(--ink-700);
  border-left: 3px solid var(--cyan);
  clip-path: var(--cut-tl);
  padding: 18px 18px 14px;
}

.page-home .home-drawer__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ink-700);
}

.page-home .home-drawer__barhint {
  color: var(--cool);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
}

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

.page-home .home-drawer__item + .home-drawer__item {
  border-top: 1px solid var(--ink-700);
}

.page-home .home-drawer__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 4px;
  text-decoration: none;
  color: var(--paper);
  transition: padding-left 180ms ease, color 180ms ease, background-color 180ms ease;
}

.page-home .home-drawer__link:hover,
.page-home .home-drawer__link:focus-visible {
  padding-left: 12px;
  color: var(--cyan);
  background: rgba(25, 227, 208, 0.06);
}

.page-home .home-drawer__label {
  font-size: 0.9375rem;
  font-weight: 600;
}

.page-home .home-drawer__meta {
  flex: 0 0 auto;
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  color: var(--cyan);
}

.page-home .home-drawer__side {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-content: start;
}

.page-home .home-side {
  padding: 22px 20px;
  background: var(--ink-800);
  border: 1px solid var(--ink-700);
  clip-path: var(--cut);
}

.page-home .home-side--ticket {
  border-color: var(--line);
  background: linear-gradient(150deg, var(--ink-800) 0%, #14344f 100%);
}

.page-home .home-side__title {
  margin: 0 0 14px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1.45;
  color: var(--paper);
}

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

.page-home .home-side__channels li {
  display: grid;
  gap: 4px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ink-700);
}

.page-home .home-side__channels li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.page-home .home-side__tag {
  color: var(--cyan);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
}

.page-home .home-side__txt {
  margin: 0;
  color: var(--cool);
  font-size: 0.875rem;
  line-height: 1.72;
}

.page-home .home-side__foot {
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--ink-700);
  color: var(--cool);
  font-size: 0.8125rem;
  line-height: 1.7;
}

.page-home .home-side__metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.page-home .home-side__stat {
  padding: 12px 10px;
  background: rgba(7, 21, 35, 0.55);
  border-left: 2px solid var(--cyan);
}

.page-home .home-side__stat .stat__value {
  display: block;
  font-size: 1.375rem;
  color: var(--cyan);
  letter-spacing: 0.02em;
}

.page-home .home-side__stat .stat__label {
  display: block;
  margin-top: 4px;
  color: var(--cool);
  font-size: 0.6875rem;
  line-height: 1.5;
}

/* ---------- 03 版本对照 ---------- */
.page-home .home-compare {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}

.page-home .home-compare__col {
  padding: 22px 20px;
  background: var(--ink-800);
  border: 1px solid var(--ink-700);
  clip-path: var(--cut);
}

.page-home .home-compare__col--stable {
  border-top: 3px solid var(--cyan);
}

.page-home .home-compare__col--beta {
  border-top: 3px solid var(--amber);
  background: linear-gradient(165deg, var(--ink-800) 0%, #2a2418 100%);
}

.page-home .home-compare__colhead {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding-bottom: 16px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--ink-700);
}

.page-home .home-compare__collabel {
  color: var(--cyan);
  margin: 0;
  flex: 0 0 auto;
}

.page-home .home-compare__collabel--amber {
  color: var(--amber);
}

.page-home .home-compare__coltitle {
  margin: 0;
  flex: 1 1 auto;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--paper);
}

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

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

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

.page-home .home-compare__dl dt {
  padding: 14px 0 4px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  color: var(--cool);
  border-top: 1px solid rgba(42, 90, 122, 0.5);
}

.page-home .home-compare__dl dt:first-of-type {
  border-top: 0;
  padding-top: 12px;
}

.page-home .home-compare__dl dd {
  margin: 0 0 6px;
  color: var(--paper);
  font-size: 0.875rem;
  line-height: 1.75;
}

.page-home .home-compare__col--beta .home-compare__dl dd {
  color: #efe6d4;
}

/* ---------- 04 工单状态 ---------- */
.page-home .home-ticket {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  counter-reset: ticket;
}

.page-home .home-ticket__step {
  position: relative;
  padding: 20px 18px 18px;
  background: var(--ink-800);
  border: 1px solid var(--ink-700);
  border-left: 2px solid var(--line);
  clip-path: var(--cut-sm);
  transition: border-left-color 200ms ease, background-color 200ms ease, transform 200ms ease;
}

.page-home .home-ticket__step:hover,
.page-home .home-ticket__step:focus-within {
  background: #112a41;
  border-left-color: var(--cyan);
  transform: translateX(3px);
}

.page-home .home-ticket__step:last-child {
  border-left-color: var(--amber);
}

.page-home .home-ticket__step:last-child:hover {
  border-left-color: var(--amber-deep);
}

.page-home .home-ticket__idx {
  display: block;
  margin-bottom: 10px;
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  color: var(--cyan);
}

.page-home .home-ticket__step:last-child .home-ticket__idx {
  color: var(--amber);
}

.page-home .home-ticket__name {
  margin: 0 0 8px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--paper);
}

.page-home .home-ticket__desc {
  margin: 0;
  color: var(--cool);
  font-size: 0.84375rem;
  line-height: 1.75;
}

/* ---------- 05 信任数据 ---------- */
.page-home .home-trust__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--ink-700);
  border: 1px solid var(--ink-700);
  margin-bottom: 24px;
}

.page-home .home-trust__stat {
  padding: 20px 16px;
  background: var(--ink-800);
}

.page-home .home-trust__stat .stat__value {
  display: block;
  font-size: clamp(1.5rem, 5vw, 2rem);
  color: var(--cyan);
  letter-spacing: 0.01em;
  line-height: 1.1;
}

.page-home .home-trust__stat .stat__label {
  display: block;
  margin-top: 8px;
  color: var(--cool);
  font-size: 0.75rem;
  line-height: 1.6;
}

.page-home .home-trust__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

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

.page-home .home-trust__facts li {
  position: relative;
  padding-left: 20px;
  color: var(--paper);
  font-size: 0.875rem;
  line-height: 1.75;
}

.page-home .home-trust__facts li::before {
  content: "/";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--amber);
  font-family: var(--font-mono);
}

.page-home .home-trust__cta {
  padding: 18px;
  border: 1px solid var(--ink-700);
  border-left: 2px solid var(--amber);
  background: rgba(255, 176, 32, 0.05);
  clip-path: var(--cut-sm);
}

.page-home .home-trust__ctatext {
  margin: 0 0 14px;
  color: var(--cool);
  font-size: 0.875rem;
  line-height: 1.75;
}

/* ---------- 06 起步三步 ---------- */
.page-home .home-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.page-home .home-step {
  display: flex;
  flex-direction: column;
  padding: 22px 20px;
  background: var(--ink-800);
  border: 1px solid var(--ink-700);
  clip-path: var(--cut);
}

.page-home .home-step__idx {
  display: block;
  margin-bottom: 12px;
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  color: var(--amber);
}

.page-home .home-step__name {
  margin: 0 0 10px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--paper);
}

.page-home .home-step__desc {
  margin: 0 0 18px;
  color: var(--cool);
  font-size: 0.875rem;
  line-height: 1.75;
}

.page-home .home-step .btn {
  margin-top: auto;
  align-self: flex-start;
}

/* ---------- 响应式 ---------- */
@media (min-width: 640px) {
  .page-home {
    --home-block: 72px;
  }

  .page-home .home-cover__index {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 28px;
  }

  .page-home .home-cover__index-item:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

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

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

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

@media (min-width: 900px) {
  .page-home .home-cover {
    padding: calc(var(--header-h) + 60px) 0 68px;
  }

  .page-home .home-cover__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 52px;
    align-items: center;
  }

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

  .page-home .home-drawer {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 22px;
  }

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

  .page-home .home-ticket {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
  }

  .page-home .home-trust__body {
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: 32px;
  }

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

@media (min-width: 1024px) {
  .page-home .home-body {
    grid-template-columns: var(--rail-w) minmax(0, 1fr);
    gap: 52px;
    padding: 60px 0 80px;
  }

  .page-home .home-rail {
    position: sticky;
    top: calc(var(--header-h) + 28px);
  }

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

@media (prefers-reduced-motion: reduce) {
  .page-home .home-cover__link,
  .page-home .home-rail__list .rail__link,
  .page-home .home-entry,
  .page-home .home-drawer__link,
  .page-home .home-ticket__step {
    transition: none;
  }

  .page-home .home-ticket__step:hover {
    transform: none;
  }
}
